Christmas Decoration: Village in a Tree

by gubutek in Circuits > Raspberry Pi

409 Views, 4 Favorites, 0 Comments

Christmas Decoration: Village in a Tree

PXL_20231221_213140106.jpg
Christmas gift🎁 I turned a 🎄 into a winter village (with servo motor, RGB LEDs and RP pico)

In this project you will build a lamp in the shape of a Christmas tree. The inside of the tree is a winter Chirstmas village lighted up by RGB LEDs. The tree can turn in one side to show the inside village or to the other side with Santa Claus and his reindeer. You can check on my video for more details

Supplies

3d printed part

Electronics components

  • 1 servo motor 9g
  • 5x LEDs RGB W2812B (can be more if you want more light)
  • 1 Raspberry Pi Pico (or Pico W)

Tool

  • sodering iron
  • cutter pliers
  • 2M screws 2x

Print the Parts

PXL_20231220_170710765.jpg
PXL_20231220_222252367.jpg

You will need to print all the part in the stl file. Be careful when you clean up the village because it has small details

Assembly the Rotating Parts

vlcsnap-2023-12-23-08h28m50s907.png
PXL_20231221_165207203.jpg
vlcsnap-2023-12-23-08h29m30s191.png
  1. Glue the Santa piece to the village, make sure that you have their holes mate together
  2. Press the servo horn (cut short) into the wing holder
  3. Add the wing holder into the santa piece

Mount the LEDs

vlcsnap-2023-12-23-08h45m23s632.png

You can place the Leds on the big tree part. Their position will be more or less under those holes of the houses. The number of Leds can be more if you prefer more light. Then pass the wire through the hole to the base

Mount the Servo Motor

vlcsnap-2023-12-23-08h46m48s665.png
vlcsnap-2023-12-23-08h47m33s294.png

Add the servo motor to the base and pass the cable of the LEDs to the base

Mount the Base

vlcsnap-2023-12-23-08h53m17s487.png
vlcsnap-2023-12-23-08h54m35s327.png
PXL_20231221_145943686.jpg

Mount the base into to big cone part and tighten it with 2M screws

Connect the RP Pico

vlcsnap-2023-12-23-08h39m01s948.png
Christmas2023_bb.png
vlcsnap-2023-12-23-09h03m36s246.png

Add the RP Pico into the base cap and connect it with the LEDs and servo motor wires then close the cap

Glue the Leds

vlcsnap-2023-12-23-09h04m01s823.png

Secure the LEDs with hot glue. This is to make sure that it won't stuck to the moving parts when it rotates

Add Python Code to RP Pico

Add these two files on RP pico. I used Thorny to do it but you can use what ever you prefer.

Downloads

Test It

vlcsnap-2023-12-23-09h08m22s529.png

Power the RP pico and test it. You can also modify the code to change the position and light settings

Enjoy

IMG_1461b.JPG
IMG_1462b.JPG
IMG_1463b.JPG

Enjoy your light or give it to the one you love.

Merry Christmas! (and happy making :) )