Hey guys! I Hope you already enjoyed my previous project "NodeMCU Home Automation (ESP8266)" and you are ready for a new one, as usual I made this tutorial to guide you step by step an electronic Christmas tree to celebrate the Christmas your own way, this project could be a great gift that you can give to your kids too. Follow the steps of this video and keep watching the whole video to learn how to create your own Christmas tree.

During the making of this project, we tried to make sure that this instructable will be the best guide for you in order to help you if you want to make your own christmas tree, so we hope that this instructable contain the needed documents. This project is so handy to make specially after getting the customized PCB that we’ve ordered from JLCPCB to improve the appearance of our electronic device and also there is enough documents and codes in this guide to allow you create your beautiful christmas tree with some lights and sounds. We've made this project in just 2 days only, just one days to get all the needed parts and finish the hardware making and the assemble, then one day to prepare the code to suit our project and start the testing and the adjustments.

What you will learn from this instructable:

Step 1: Circuit Diagram

The project is super easy for everyone to make, and no specific knowledge required in order to make it since it is all about controlling RBG LEDs and a piezo buzzer to display the Christmas songs and all these parts will be placed in one PCB and controlled through an ATmega328 MCU which is the same Microcontroller of the Arduino UNO

The schematic has a piezo buzzer connected to the MCU which is the main responsible of displaying christmas songs. The lights blinking will be random while the device is on. the power supply used in this project a simplu 3 lithium batteries of 1.5V which makes a 4.5V enough to turn on the MCU.

Step 2: PCB Making

About JLCPCB

JLCPCB (Shenzhen JIALICHUANG Electronic Technology Development Co., Ltd.), is the largest PCB prototype enterprise in China and a high-tech manufacturer specializing in quick PCB prototype and small-batch PCB production. With over 10 years of experience in PCB manufacturing, JLCPCB has more than 200,000 customers at home and abroad, with over 8,000 online orders of PCB prototyping and small quantity PCB production per day. The annual production capacity is 200,000 sq.m. for various of 1-layer, 2-layer or multi-layer PCBs. JLC is a professional PCB manufacturer featured of large scale, well equipment, strict management and superior quality.

Talking electronics

After making the circuit design I transformed the circuit into a customized PCB design with a tree shape in order to get a beautiful PCB design when we order our circuit and to do so all what I need is to move toJLCPCBthe best PCB supplier in order to get the best PCB manufacturing service, as always just some simple clicks that’s all what you need to uploaded the appropriate GERBER files of the circuit design then I moved to set some parameters and this time we will use the green color for this PCB since we are producing a tree so it should be green anyway; just four days after placing the order and my PCBs are on my desktop.

Related download files

As you can see in the pictures above the PCB is very well manufactured and I’ve got the same PCB design that we’ve made for our main board and all the labels,logos are there to guide me during the soldering steps. You can alsodownload the Gerberfile for this circuit.

Step 3: Ingredients

Before start soldering the electronic parts let’s review the components list for our project so we will need:

★☆★ The necessary components ★☆★

- The PCB that we have ordered from JLCPCB

- One Arduino UNO : https://www.utsource.net/itm/p/8647184.html - ATmega328p MCU: https://www.utsource.net/itm/p/8972480.html

- RGB LEDs : https://www.utsource.net/itm/p/8664394.html

- 220 Ohm resistors : https://www.utsource.net/itm/p/8664394.html

- 16Mhz oscillator : https://www.utsource.net/itm/p/8664394.html

- Piezo buzzer : https://www.utsource.net/itm/p/8664394.html

Step 4: Hardware Assembly

ow everything is ready so let’s start soldering our electronic components to the PCB and to do so we need a soldering iron and a solder core wire and a SMD rework station for SMD components.

Safety first

Soldering Iron Never touch the element of the soldering iron....400°C! Hold wires to be heated with tweezers or clamps. Always return the soldering iron to its stand when not in use. Never put it down on the workbench. Turn unit off and unplug when not in use. As you can see, using this PCB is so easy due to its very high quality making and without forgetting the labels that will guide you guys while soldering each component because you will find on the top silk layer a label of each component indicating its placement on the board and this way you will be 100% sure that you will not make any soldering mistakes.I’ve soldered each component to its placement and you can use both sides of the PCB to solder your electronic components.

Step 5: Software Part & Test

Now we have the PCB ready and all the components soldered very well so it’s time to move to the software part I have made an arduino code that you can download for free from the link below nowall what we need now is to place the MCU in an Arduino UNO board and we upload the code to the microcontroller then we take it back to its socket on our PCB after that we put the circuit board inside the glass holder and we glue it.

After placing the batteries we turn on the device and we enjoy the sound and the view.

This project is so easy to make and an amazing one and we recommend it for you if you want to celebrate the Christmas your own way. But still some other improvements to perform in our project in order to make it much more butter, that’s why I will be waiting for your comments to improve it,