Click here for a free subscription to "HDE" our site newsletter.

Christmas Lights Icicle Sketch

Battery board assembled onto the Icicle decoration

I haven't had time to write a full featured program to control the icicle but the prototype sketch below provides an icicle that drips every 8 seconds then goes into 'Power Down Sleep' mode in between drips. You can use and modify this sketch whichever way you want.

The enterSleep() function puts the Pro-Mini to sleep. You must give it a parameter which matches one of the cases in the switch statement. I said it was a prototype. The burst() and burstPair() functions illuminate one or two LEDs by enabling the LEDs then sending a square wave to the voltage booster. go_sleep() just calls the enterSleep() function and the loop() function sequences the flashing.

Have a good holiday.

Now subscribe to our newsletter and don't miss a thing


No comments yet.

Add Comment

* Required information
(will not be published)
Bold Italic Underline Strike Superscript Subscript Code PHP Code Quote Insert line Bullet list Numeric list Link Email Image Video
Smile Sad Huh Laugh Mad Tongue Crying Grin Wink Scared Cool Sleep Blush Unsure Shocked
Enter code:
Notify me of new comments via email.
Remember my form details on this computer.
I have read and understand the privacy policy. *
I have read and agree to the terms and conditions. *
Click here for a free subscription to "HDE" our site newsletter.