Animate Christmas Lights

813

13

1

Posted in TechnologyArduino

Introduction: Animate Christmas Lights

Hack simple store–bought holiday lights flash in fun rhythms!

Parts

  1. Sparkfun protosnap
  2. basic breadboard
  3. several 1 kilo-ohms resistors
  4. several jump wires
  5. cheap LED holiday lights

Tools

  1. a plier

Directions

  1. Remove bottoms of christmas lights
  2. plug your Sparkfun or Arduino into your breadboard
  3. In order, plug in the resistor, LED, and jump wires
  4. Connect your LEDs to respective pins
  5. ground your circuit (schematic and images above)
  6. upload code! (code available as attachment)

Theory

Cheap replacement LED holiday lights

Schematic
above

Code

The files are available for download above.

"Dimming" : Shorter int call version
"Dimming2" :The long, original version

"Blink":simply blinking without fading

You can find the original Arduino code at Files>Examples>BasicsEdit the pinMode numbers to match the Sparkfun pinMode numbers you connected to.

The code for my specific solution is in a screen shot above.

Share

    Recommendations

    • Spotless Contest

      Spotless Contest
    • Microcontroller Contest

      Microcontroller Contest
    • Pocket-Sized Contest

      Pocket-Sized Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    Comments