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

Répondre

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.