Here is a code snippet inspired from the ArduinoSleepCode that makes an Arduino wake up at night.
You need to attach a photoresistor to pin 2 and to couple it with a well adjusted resistor (use a potentiometer to start with, in order to get the right value).
| Attachment | Size |
|---|---|
| SleepDuringDaylight.pde | 5.16 KB |