3D Xmas Tree Kit for Raspberry Pi
Deliveryfrom just £2.50
No Quibblereturns policy
Next Day DeliveryOrder by 2PM*
The perfect stocking filler for any geek with an interest in electronics and Raspberry Pi. Build it into a Santa detector or have it twinkling beneath the tree.
*Note - This board is currently in production, please register your interest via our "notify me" system above and we'll send you an email as soon as this product is available!*
Designed by our very own Rachel Rayns, this 3D Christmas tree add-on board for the Raspberry Pi has 25 LEDs, each controlled by its own GPIO pin. The tree can be used with any 40-pin Raspberry Pi and is especially cute on the Raspberry Pi Zero!
- 25 individually controlled LEDs (24 red, 1 white)
- Hidden "stars" cut at different PCB depths let the LEDs shine through the tree
- "To / From" section on the board edge makes this the perfect Xmas gift!
- 1 x 3D Tree PCB
- 24 x Red 3mm LED
- 1 x White 3mm LED
- 25 x 120 ohm resistors
- 1 x Right angle 2x20 header
- 1 x Right angle 20 way snap off headers
Full instructions on assembly will be supplied.
The easiest way to control your XMAS board is with GPIO Zero. This is pre-installed in Raspbian Jessie - but you'll need the latest version, v1.4. Make sure you have the latest version:
sudo apt-get install python-gpiozero python3-gpiozero
This example turns all the LEDs on one at a time, ending in the star:
from gpiozero import XmasTree from time import sleep tree = XmasTree() for light in tree: light.on() sleep(1)
This example turns the star LED on and sets all the red LEDs to flicker randomly:
from gpiozero import XmasTree from gpiozero.tools import random_values from signal import pause tree = XmasTree(pwm=True) tree.star.on() for bauble in tree.baubles.values(): bauble.source_delay = 0.1 bauble.source = random_values() pause()