Pages: [1]   Go Down
Author Topic: Dealing with standby  (Read 329 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want an Uno to keep running no matter what a Mac does, and occasionally connect to it.

I've read that this causes a reset, which can be prevented by removing something that I couldn't find a picture of.

But what about the computer going to sleep? There should still be power, so will the sketch continue?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 613
Posts: 49270
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I want an Uno to keep running no matter what a Mac does, and occasionally connect to it.

I've read that this causes a reset, which can be prevented by removing something that I couldn't find a picture of.
http://arduino.cc/playground/Main/DisablingAutoResetOnSerialConnection

Quote
But what about the computer going to sleep? There should still be power, so will the sketch continue?
Time to do some testing, I think. Load the blink sketch, and see what happens when the Mac snoozes.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks! The capacitor does prevent reset and the LED kept blinking on a sleeping computer.

I looked at the code for the 16U2 (it's rather short so I probably missed some files) but couldn't find any handling of USB power events.
Logged

Pages: [1]   Go Up
Jump to: