UploadedSubmitted by: chipwich Project Website: https://corticalcafe.com/picaxe_simple_nightlight.html
Simplest Picaxe Night-light
This minimalist hardware project is balanced by the wonderful software capabilities that are embodied in even the simplest Picaxe chip.
Consisting only of an 08M2, an LED, and a battery, this light uses the LED to dynamically sense the darkest hours of the day, and then pulses a warm comforting light at that time.
The night-light uses negligible power, and will run for many weeks on AA cells that are already too weak to use in other devices. It further saves power by napping with disabled brownout protection when possible.
And every 24 hours (approx), it resets the min/max light values in order to automatically adapt to new environments without hard-coding the light trigger threshold.