Go Down

Topic: Dealing with standby (Read 591 times) previous topic - next topic

breadman

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?

PaulS

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.
The art of getting good answers lies in asking good questions.

breadman

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.

Go Up