Why when I press the reset button it takes 2 second before I see my sketch start? The model of Arduino is UNO, and the text in serial communication.
-
This is not a particularly helpful question. Reset button on what Arduino model? What is "some time"? A second? A minute? What is "output"? Text in the serial monitor? An LED flashing?Nick Gammon– Nick Gammon ♦2015年09月08日 21:13:08 +00:00Commented Sep 8, 2015 at 21:13
-
The model of Arduino is UNO and it takes 2-3 second and the text in the serial monitor. The output is the Sketch. I will say the question again Why when I press the reset button it takes 2 second before my Sketch stast?MANSOR– MANSOR2015年09月08日 21:19:20 +00:00Commented Sep 8, 2015 at 21:19
-
1Please edit your question to improve it with this new information. The question should stand on its own without having to skim through the comments. Thanks! And welcome to Arduino StackExchange. :)Nick Gammon– Nick Gammon ♦2015年09月08日 21:23:49 +00:00Commented Sep 8, 2015 at 21:23
1 Answer 1
Because first the bootloader is executed and takes 2 seconds (or more on a Leonardo) to time out when it doesn't receive a proper response from the computer.
answered Sep 8, 2015 at 12:55
-
You can set the fuses on the processor to not run the bootloader, in which case it will start a lot faster. However uploading sketches then is harder, as you have to use ICSP programming to do that.2015年09月08日 21:44:42 +00:00Commented Sep 8, 2015 at 21:44
-
Thanks for replay, but can tell me the reason of why it takes some time to start sketch ?MANSOR– MANSOR2015年09月08日 22:31:54 +00:00Commented Sep 8, 2015 at 22:31
-
1Because first the bootloader is executed and takes 2 seconds (or more on a Leonardo) to time out when it doesn't receive a proper response from the computer.Majenko– Majenko2015年09月08日 22:39:32 +00:00Commented Sep 8, 2015 at 22:39
lang-cpp