New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arduino doesn't receive messages for 2 seconds after connection #12
Comments
I realized just now that it's because most of the Arduino boards reset themselves when you connect via the built in serial to USB converter. Article from the Arduino site: http://playground.arduino.cc/Main/DisablingAutoResetOnSerialConnection. In short: a 10uF capacitor between RESET and GROUND will prevent it with the UNO. Most of the other boards require a 120 Ohm resistor between RESET and 5V. Leonardo doesn't auto reset by default. I've tried the 10uF cap on my UNO and it works. Starts up quickly. It doesn't look like there's anything we can do about this in software though. |
good find I thought it was something to do with IO flush for a while. I still think we need to make sure IO is always flushing to the board at execution time rather than buffering. http://www.ruby-doc.org/core-1.9.3/IO.html#method-i-sync is the solution |
Both |
that makes sense |
I am not sure what causes it but the arduino seems to not get any messages for about 2 seconds after connecting.
Possible places to check
The text was updated successfully, but these errors were encountered: