Cart 0

Feeling Festive? Check out our 3D Xmas Tree Kit for Raspberry Pi

3D Xmas Tree Kit for Raspberry Pi

Deliveryfrom just £2.50

20,000+customer reviews

No Quibblereturns policy

Securepayment system

Next Day DeliveryOrder by 2PM*

Sold Out
£10.00

We will notify you when this product becomes available.



Share this Product


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!

Features:

  • 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!

Kit Contents:

  • 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()

Share this Product


More from this collection