This set of LEDs with wires is an unusual decoration for the Christmas tree. The author had the goal of quickly collecting something New Year's and luminous from the available materials. The idea was to combine a handful of LEDs on a frame from a single-core wire, the author tried to connect the LEDs in the form of a Christmas tree, although it looks more like a garland.
Materials:
- LEDs 12 pcs (3 each color)
- Arduino
- Single core wire (for frame)
- soldering iron
The LEDs are combined into four groups, each of three with a common anode. The series will go to Arduino digital pins, and the groups to analog pins (you can also use digital). Garland Pattern:
Assembly
First of all, the author processes the LEDs with sandpaper so that they scatter the light a bit and do not hit the eyes.
The assembly itself begins with the soldering of individual rows and their formation. At the bottom row, the side is about 60 mm, the middle is 50 mm, and the top is about 30 mm. Three rows separately look like this:
Now the first LED circuit is soldered, forming a design.
Further, the process is simplified and the second LED circuit is soldered. Similarly, the author soldered all the other chains to the frame.
Code and Verification
The garland test takes place on an Arduino Mega. The program code can be downloaded under the article. You can’t find anything supernova in the code, it is as simple as possible for modifications, and for the ability to set your program with the desired sequence that you like.
Result
After checking the operability of the structure, the author transferred the garland to the Arduino Fio and connected the Lipo battery for the mobility of the structure.