กลับไปหน้ารวมไฟล์
christmas-led-tree-decoration-4ef9cb-en.md

Background and Inspiration

This project began with the intention of creating a special Christmas gift for my girlfriend and marked my full entry into the world of electronics engineering. It was greatly inspired by @Arduino_Jarod's project Wooden LED Christmas Tree, which sparked my desire to create my own version.

Core Project Concept

The main idea was to create a wooden Christmas tree decoration with embedded LED strips to simulate decorative lights wrapped around the tree, topped with a glowing star. Each layer of LEDs would be color-separated and independently controlled by an Arduino microcontroller, allowing me to design custom "Light Shows" using my own algorithms. This added depth and vibrancy to an otherwise simple wooden piece.

All leds turned on

Simple light show example

Electrical System and Circuit Structure Design

From an engineering perspective, the Arduino Nano has limitations regarding the number of Digital Input/Output (DIO) pins. Therefore, I designed a total of 13 circuit sets to cover the control (5 layers x 2 colors for the tree body) plus 3 sets for the star on top.

A significant challenge was that the Arduino's DIO pins could not supply sufficient voltage or current to drive a large number of LEDs simultaneously (typically, each pin can supply no more than 20-40mA). I therefore had to use an external 12V 1A power supply as the main power source and opted for NPN Transistors to act as electronic switches. These transistors receive low-voltage logic signals from the Arduino at their Base pins to switch the 12V power at the Collector pin to the LED sets.

Single color series circuit

Although 12V is significantly higher than the 5V from the Arduino, when driving very long strings of LEDs, connecting them all in Series would result in an accumulated Voltage Drop exceeding what the power supply could handle. I solved this by designing a Series-Parallel circuit: dividing the LEDs into smaller groups connected in series, and then connecting these groups in parallel before they connect to the transistor's Collector pin. This method reduces the overall voltage requirement but increases the Current Draw, which our 1A power supply could comfortably handle.

Single color series-parallel circuit

Once the electrical system was planned, I designed the component layout on a Pref-board, separating the 13 circuit sets into two columns: green rows at the top and red rows at the bottom. For neatness, I created horizontal "Power & Ground Stripes" mimicking a Breadboard layout to facilitate easy power connections to all parts of the circuit.

Simplified pref-board design with 2 single color led circuits. Rows 1, 2, 10, 11 are connected horizontally.

Wood Material Preparation Process

For the woodworking, I started by cutting the wood into a Christmas tree shape and creating a stable base. Then, I used a drill to make holes at the designed positions to embed the LEDs into the wood. This step required precision to ensure the light output was symmetrical and aesthetically pleasing.

Wiring and LED Soldering

I decided to use the LED leads themselves for connections instead of additional wires, as their length was sufficient to bend and solder them directly together. This helped keep the back of the tree cleaner. However, to prevent Short Circuits, I covered all critical solder joints with Heat Shrink Tubing.

LED Soldering process

Control Board Assembly

The most time-consuming part was soldering onto the Pref-board. I assembled the components according to the planned schematic, connected signal wires from the Arduino to the Base pins of the transistors via current-limiting resistors, and routed wires from the LED circuits to the board. In some areas with high wire density, I used a Hot Glue gun to help secure the connections and provide additional electrical insulation.

Soldering the control board

Final Assembly and System Testing

After the long process, it was time to assemble all the parts. I mounted the control board to the back of the tree, connected the wires from all LED strips to the prepared ports, and started writing the test code.

Initially, I encountered some hardware issues, such as Cold Solder Joints, which were due to my inexperience at the time. But after thorough Debugging and circuit tracing, the Christmas tree finally lit up as intended. The flickering lights through the wood gave a warm feeling and made all the effort truly worthwhile.

ข้อมูล Frontmatter ดั้งเดิม

title: "Christmas LED Tree Decoration"
description: "Wooden Christmas tree decoration, with led rows representing string lights of a Christmas tree and a star on top of it."
author: "henyte"
category: "Lights & LEDs"
tags:
  - "present"
  - "tree"
  - "led"
  - "christmas"
  - "wooden"
  - "gift"
  - "decoration"
views: 16295
likes: 3
price: 450
difficulty: "Intermediate"
components:
  - "13x Through Hole Resistor, 33 kohm"
  - "1x Soldering iron (generic)"
  - "4x Resistor 220 ohm"
  - "1x Resistor 475 ohm"
  - "1x Drill / Driver, Cordless"
  - "1x Through Hole Resistor, 680 ohm"
  - "3x Through Hole Resistor, 20 kohm"
  - "7x Resistor 330 ohm"
  - "1x Arduino Nano R3"
  - "23x 5 mm LED: Green"
  - "11x 5 mm LED: Yellow"
  - "1x Hot glue gun (generic)"
  - "1x SparkFun Solder-able Breadboard"
  - "21x 5 mm LED: Red"
  - "3x Resistor 100 ohm"
  - "13x General Purpose Transistor NPN"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "c873a3e29da5f986bac2d4ae9ec570e06be19af1a1cf9097f5ba677ae96e46fd"
encryptedPayload: "U2FsdGVkX1+vr7sIyBpgucK2paO+T/qK/vcWgymQrYgYPWu9vkG0RQAZ2eGmBycDhY604uJ3VaiZBJmKocgpOJgw+O6a6nI1zVM+9R+7+tw="
seoDescription: "Build a wooden Christmas LED tree decoration with Arduino, featuring LED rows as string lights and a star."
videoLinks:
  - "https://player.vimeo.com/video/382619529"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/christmas-led-tree-decoration-4ef9cb_cover.jpg"
lang: "en"