Questions tagged [programming-sequence]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
108 views

how to apply a timer to an analogWrite command for Arduino

I have 2 sketches that control a fan using Arduino UNO, that I try to combine. The 1st is a timer, that turns a pin ON and OFF for a determined period of time. The pin signal drives a MOSFET that in ...
-1
votes
1answer
69 views

Divide two integers resulting into a float

Suppose I want to divide two integer variables and put the result into a float. In order to prevent integer division do I have to program like this: int i = 6312; int j = 258; float f; ...
-2
votes
1answer
55 views

Using two leds with one push button [closed]

How can I make the code of this project where I will press one time a button, to turn on the first led (and turn off second led) and when other one press to turn on second led (and turn off the first ...
-2
votes
0answers
31 views

If-Condition sensor

Can someone help. I need to do, that when sensor is covered for 350ms (Sensor 1)is LOW and if sensor less covered than 350ms ( Sensor 1) HIGH, and when (Sensor 2) HIGH active pin 5 output. Becouse ...