Arduino sleep during daylight
par Sofian, 23 juin 2008
in
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.pde | 5.16 Ko |


