1

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.

Nick Gammon
38.9k13 gold badges69 silver badges125 bronze badges
asked Sep 8, 2015 at 12:11
3
  • 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? Commented 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? Commented Sep 8, 2015 at 21:19
  • 1
    Please 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. :) Commented Sep 8, 2015 at 21:23

1 Answer 1

3

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
3
  • 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. Commented Sep 8, 2015 at 21:44
  • Thanks for replay, but can tell me the reason of why it takes some time to start sketch ? Commented Sep 8, 2015 at 22:31
  • 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. Commented Sep 8, 2015 at 22:39

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.