Arduino sleep during daylight

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).

Fichier attachéTaille
SleepDuringDaylight.pde5.16 Ko