Prototype stand-alone timer for Battery powered Xmas lights.
bigclivedotcom 2:40
14,601 views · 187 likes Watch on YouTube ↗
This is just a prototype that was inspired by the commercial sets of battery operated lights that have a timer function where they switch on for 6 hours and off for 18 hours after being switched on so they come on at the same time very night. It's a nice simple idea that saves the lights running all night on a light sensor. In my version I've got rid of all the cheesy flashing effects and made it as minimalist as possible. It's just a PIC12 microcontroller, a 100nF decoupling capacitor and a 100 ohm resistor in series with a parallel string of LEDs like the ones you get with solar sets or as battery operated strings. This means that you can tuck everything easily into a battery box. As an optional extra you can add a "heartbeat" LED with a 10K series resistor that will blink dimly to show the software is running and give a visible timing reference as It turns on and off alternately on each second. The choice of a 10K resistor is purely to provide a low level visual indication without drawing much current at all. For a brighter light I could use a 1K resistor.
I actually assigned all available port pins as switching outputs, so you could run four strings of LEDs, each with their own 100 ohm resistor if you wanted, Each output is good for about 20mA which is ample to light 50 or so LEDs per circuit at a low level intensity while ensuring good battery life.
At the moment I've written the software to power the LEDs on for 8 hours and off for 16, to allow for a generous on-time and allow for non critical timing accuracy. I'm toying with adding a "work" mode where you can turn the lights on when you get in from work and they will subsequently light half an hour earlier so they are always on when you get home from work.
Battery life should be pretty good with anything from two weeks to a month on a set of 3AA alkalines or rechargeables.
I actually assigned all available port pins as switching outputs, so you could run four strings of LEDs, each with their own 100 ohm resistor if you wanted, Each output is good for about 20mA which is ample to light 50 or so LEDs per circuit at a low level intensity while ensuring good battery life.
At the moment I've written the software to power the LEDs on for 8 hours and off for 16, to allow for a generous on-time and allow for non critical timing accuracy. I'm toying with adding a "work" mode where you can turn the lights on when you get in from work and they will subsequently light half an hour earlier so they are always on when you get home from work.
Battery life should be pretty good with anything from two weeks to a month on a set of 3AA alkalines or rechargeables.
Category (YouTube): Science & Technology
Playback is via YouTube's official embedded player. Data from YouTube; Exumo is not affiliated with YouTube.