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 shared platform and we are not responsible for any design issues.
- Comments(1)
- Likes(6)
-
yn1v Nov 07,2022
-
James Hauser Dec 27,2021
-
Engineer Dec 22,2021
-
Massimo Del Zotto Dec 15,2021
-
Lunde Dec 10,2021
-
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
-
-
-
-
-
-
-
-
-
-
ESP32-S Development Board, in "Arduino Uno" form factor
3981 4 15