Raspberry Pi Christmas tree
A Raspberry Pi Christmas tree for programming beginners. It was desinged for my 4 years old doughter and she had fun with it.
It can be controlled by any computer language that runs on the Raspberry Pi OS, including Python and C++.
This tree requires 40 pin socket, 9 LED/resistors pair to be soldered.
I try this thing as simple as possible for biggners, so there is no brightness control(PWM), just ON or OFF.
If you wish to change the brightness, adjust resistor value for the LED.
Resistor values are depending on your LEDs, for the maximum brightness typically 200ohm ~ 500ohm range.
Bonus: I've added few i2c pins and push button to the PCB so you can play with it.
import RPi.GPIO as GPIO
import time
leds = [6, 5, 13, 11, 16, 19, 9, 12, 26]
GPIO.setmode(GPIO.BCM)
for pin in leds:
GPIO.setup(pin, GPIO.OUT)
while(True):
for pin in leds:
GPIO.output(pin, GPIO.HIGH)
time.sleep(0.1)
for pin in leds:
GPIO.output(pin, GPIO.LOW)
time.sleep(0.05)
GPIO.cleanup()
Raspberry Pi Christmas tree
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(1)
- Likes(7)
- Engineer Sep 18,2024
- yn1v Nov 07,2022
- James Hauser Dec 27,2021
- Engineer Dec 22,2021
- Massimo Del Zotto Dec 15,2021
- Tor-Eirik Bakke Lunde Dec 10,2021
- (DIY) C64iSTANBUL Dec 09,2021
- 1 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
-
10design
-
1usability
-
7creativity
-
8content
More by Kota
-
-
-
kmMiniSchield MIDI I/O - IN/OUT/THROUGH MIDI extension for kmMidiMini
125 0 0 -
DIY Laser Power Meter with Arduino
173 0 2 -
-
-
Box & Bolt, 3D Printed Cardboard Crafting Tools
164 0 2 -