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
- 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
-
-
-
Open Source Very Large Stick - Freejoy & MMjoy2 breakout board
619 0 0 -
RF Control training board for students based on ESP32 C3
798 0 2 -
Aquarius+ Computer, Standard PCB
1052 0 6 -
KINETIC COASTERS with a TWIST! Laser or 3D Print some DIY Magic
673 0 1 -
RPI - 8 IO PLC With ATTiny85 Watch Dog
583 0 1 -
Nintendo Famicom HVC-001 Controller Shells
692 0 1 -
COMMODORE 128 DIAGNOSTIC REV.785260 KEYBOARD DONGLE
648 0 4