Merry Christmas and Happy New Year
Let's build a blinking ornament and singing Christmas tree.
- 8.5" x 11" project printout (Colored or Color In)
- 8.5" x 11" Cardboard backing
- Paper glue
- Arduino Uno or Uno Compatible microcontroller
- Uno development shield or Mini Breadboard
- 9 LEDs of various colors
- Piezoelectric buzzer
- Minimum 24 Male/Female Jumper Wires but up to 42 Male/Female Wires
- Six (6) Male / Male Cables may be necessary
- Optional - Double-sided Tape
- Optional - electrical tape
- Optional Markers or Crayons of the same color as your LEDs
- Print out one of the project cut outs
- Affix the printout to the cardboard with the paper glue.
- Cut the tree shape out.
- Color the white circles with the same color of the LEDs you plan to use.
- Use a large pin or small nail to puncture two holes in the white circle areas that are spaced apart enough to pass the LED leads from front to back.
- Drill or cut holes in the tree large enough for the HC-SR04 to pass through from the back to the front. The base of the tree is an excellent place for it.
- Push the LED leads through the holes made in step 5.
- Connect each lead on the LEDs into the female end of the jumper cables. With 9 LEDs the wiring can be a spaghetti plate. Tape the LEDs to the wires with the electrical tape.
- Optional - affix the Uno board with the shield to the back of the tree leaving enough room at the bottom of the tree for the distance sensor.
- Connect the buzzer to the project using the jumpers. In this project we used a 5v speaker to make better sound, but a standard 5v piezo works well too.
- Connect the wires connected to the LEDs using the wiring diagram above. We like using a shield with a micro breadboard for this project and suggest you do as well.
- Connect the USB cable and use the Arduino IDE to upload the code to the board.
- You can change the timing of the blinking of the LEDs by changing the second number in the random code statements. You can also change the distance of the sensitivity of the HC-SR04.