Hello Sir! Very good Video. I tried by myself and it works very fine. But now I have a question for a modification. I want to bulid Helicopter-Anti-Collison lights. So I need the LEDs flashing. Now the LED is 1 second on, and 1 second off. For the Heli-Light I would need for example 25 milliseconds on and 1 second off. How can I realize that? Thank you very much!
veramente un buon lavoro ma dove possso copiare il codice senza scriverlo a mano?....Nel caso volessi fare su entrambe le uscite 4 lampeggi poi un t off regolabile mi serve per ogni ramo un ciclo di conteggio poi un delay con uscita off ? Hai qualche esempio di codice per contare i lampeggi per poi fare un jump a un ciclo for-next? Grazie per la tua gentilezza . Piero
is it possible to blink the lights at two different random rates? I'm trying to simulate the "flicker" of a tv on the walls of a model structure on an HO Model railroad. This is soooo close to what I need! I just need randomness on both legs now! Doable??
Many thanks I have a text file stored in sd memory as follows, it consists of three columns 0'10,0 10,0,0 0,0,10 0,0,0 10,0,0 .. I have three LEDs connected to three terminals (pins) of the Arduino, for example 7,8,9 How do I get a code that enables the Arduino UNO to read the text file and convert each number 10 to 5 volts on one of the three pins Thus, it will light three LEDs sequentially according to the data stored in the SD card memory. Thank you very much
How accurate would this program be? shouldn't it totally be dependent on how fast the Arduino is able to run through the loop? so say if it loops through every 20 miliseconds (just a random number i made up), you would go from 1280 to 1300 milisec in one iteration, so the led would instead be blinking at 1300 milisec.
Yes you're correct in your understanding. Now, the Arduino goes very fast (each instructions is just a few microseconds), so one iteration of the void loop should take way less than a millisecond (if you don't have delay() and no huge loop inside). So, the program can be quite accurate, up to a few microseconds.
Yes, the time with millis() is going to overflow after about 50 days, but the way the code is written, it's not going to be a problem - so it's going to work indefinitely. Check out the explanation here --> ruclips.net/video/P6R_ofWQfuw/видео.html
This overly underrated, adore it. TYSM♥
Great video. Thanks mate!
Excellent video. Is is possible to download the sketch you created in the video? Thanks.
Hello Sir!
Very good Video. I tried by myself and it works very fine. But now I have a question for a modification. I want to bulid Helicopter-Anti-Collison lights. So I need the LEDs flashing. Now the LED is 1 second on, and 1 second off. For the Heli-Light I would need for example 25 milliseconds on and 1 second off. How can I realize that? Thank you very much!
This helped a bunch! Subscribed and thank you😁
veramente un buon lavoro ma dove possso copiare il codice senza scriverlo a mano?....Nel caso volessi fare su entrambe le uscite 4 lampeggi poi un t off regolabile mi serve per ogni ramo un ciclo di conteggio poi un delay con uscita off ? Hai qualche esempio di codice per contare i lampeggi per poi fare un jump a un ciclo for-next? Grazie per la tua gentilezza . Piero
Perfect tutorial. Thank you! This is a nice one to place on your website.
is it possible to blink the lights at two different random rates? I'm trying to simulate the "flicker" of a tv on the walls of a model structure on an HO Model railroad. This is soooo close to what I need! I just need randomness on both legs now! Doable??
Thanks, this is great stuff.
if i don't write byte just ledstate = low, is it still correct ?
Thank u, you helped me a lot. Keep up the excellent work! :D
Many thanks
I have a text file stored in sd memory as follows, it consists of three columns
0'10,0
10,0,0
0,0,10
0,0,0
10,0,0
..
I have three LEDs connected to three terminals (pins) of the Arduino, for example 7,8,9
How do I get a code that enables the Arduino UNO to read the text file and convert each number 10 to 5 volts on one of the three pins
Thus, it will light three LEDs sequentially according to the data stored in the SD card memory. Thank you very much
What if I want to stop both leds up to 1 minute?
How accurate would this program be? shouldn't it totally be dependent on how fast the Arduino is able to run through the loop? so say if it loops through every 20 miliseconds (just a random number i made up), you would go from 1280 to 1300 milisec in one iteration, so the led would instead be blinking at 1300 milisec.
Yes you're correct in your understanding. Now, the Arduino goes very fast (each instructions is just a few microseconds), so one iteration of the void loop should take way less than a millisecond (if you don't have delay() and no huge loop inside). So, the program can be quite accurate, up to a few microseconds.
@@RoboticsBackEnd Thank you for your answer!
In this now how to set different high and low delay for a single led
How to make LED1 blinks 5 times, and the LED2 blinks 10 times when the LED2 stops blinking
You could add 2 variables: use a counter for LED1, and a counter for LED2
@@RoboticsBackEnd I'm not so pro. How to add a counter on it please. And thank you for replying
Actually, the program will stop working after about 50 days because passed time will overflow unsigned int and will become zero again
Yes, the time with millis() is going to overflow after about 50 days, but the way the code is written, it's not going to be a problem - so it's going to work indefinitely. Check out the explanation here --> ruclips.net/video/P6R_ofWQfuw/видео.html
overflow doesn't matter if you write it right
Beaucoup trop compliqué!