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.

  • 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 Sep 8 '15 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 Sep 8 '15 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. :) – Nick Gammon Sep 8 '15 at 21:23
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.

  • 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. – Nick Gammon Sep 8 '15 at 21:44
  • Thanks for replay, but can tell me the reason of why it takes some time to start sketch ? – MANSOR Sep 8 '15 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. – Majenko Sep 8 '15 at 22:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.