{"product_id":"3d-xmas-tree-for-raspberry-pi-discontinued","title":"3D Xmas Tree for Raspberry Pi [Discontinued]","description":"\u003cp\u003eThe perfect stocking filler for any geek with an interest in electronics and Raspberry Pi. Build it into a Santa detector, use it as an advent calendar or just have it twinkling beneath the tree.\u003c\/p\u003e\n\u003cp\u003eDesigned 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 W!\u003c\/p\u003e\n\u003ch2\u003eVersions\u003c\/h2\u003e\n\u003cp\u003e\u003cspan style=\"text-decoration: underline;\"\u003e\u003cstrong\u003eThere are two versions of this product (via the \"options\" dropdown above):\u003c\/strong\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003ePre-soldered Kit \u003c\/strong\u003e- The ultimate Christmas gift for the Raspberry Pi enthusiast in your life. There is no soldering required for this kit, we've done it all for you. Simply snap the pieces out of their PCB frame and plug into your Raspberry Pi! \u003c\/li\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cem\u003eContents - 1x 3D Xmas tree - Ready to rock \u0026amp; roll! Simply snap out of the PCB frame and plug into your Raspberry Pi!\u003c\/em\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eSoldering Kit\u003c\/strong\u003e - Looking for more of a challenge? This version requires full assembly, you'll need to solder on the components before you snap the pieces out of their PCB frame and plug into your Raspberry Pi. Don't worry though, we changed the components in this kit to use nice, easy to solder through hole components and you can find step-by-step instructions in the tab above!\u003c\/li\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cem\u003eContents - 1x 3D Tree PCB, 24x Red 3mm LED, 1x White 3mm LED, 25x 120 ohm resistors, 1x Right angle 2x20 header, 1x Right angle 20 way snap off headers\u003c\/em\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cul\u003e\u003c\/ul\u003e\n\u003c\/ul\u003e\n\u003cp style=\"text-align: left;\" data-mce-style=\"text-align: left;\"\u003e\u003cstrong\u003e*Warning\u003c\/strong\u003e - Do NOT place the Xmas Tree on your Raspberry Pi backwards... Bad things will happen!\u003cstrong\u003e*\u003c\/strong\u003e\u003c\/p\u003e\n\u003ch2\u003eAssembly instructions\u003c\/h2\u003e\n\u003cp\u003e\u003cstrong\u003e\u003cem\u003eAssembly instructions available here!\u003c\/em\u003e\u003c\/strong\u003e\u003c\/p\u003e\n\u003ch2\u003eSoftware\u003c\/h2\u003e\n\u003cul\u003e\n\u003cul\u003e\u003c\/ul\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe easiest way to control your XMAS board is with GPIO Zero. This is pre-installed in Raspbian Stretch\u003c\/p\u003e\n\u003cpre class=\"brush: text; plain-text\" id=\"code\"\u003e\u003cem\u003esudo apt-get install python-gpiozero python3-gpiozero\u003c\/em\u003e\u003c\/pre\u003e\n\u003cp\u003eThis example sets all the red LEDs to flicker randomly:\u003c\/p\u003e\n\u003cpre class=\"brush: text; plain-text\" id=\"code\"\u003efrom gpiozero import LEDBoard\u003cbr\u003efrom gpiozero.tools import random_values\u003cbr\u003efrom signal import pause\u003cbr\u003etree = LEDBoard(*range(2,28),pwm=True)\u003cbr\u003efor led in tree:\u003cbr\u003e led.source_delay = 0.1\u003cbr\u003e led.source = random_values()\u003cbr\u003epause()\u003cbr\u003e\u003c\/pre\u003e\n\u003ch2\u003eSchematic + Pin Numbers\u003c\/h2\u003e\n\u003cp\u003eDownload the Schematic Here\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003ePin numbers used\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eStar = GPIO 2\u003c\/li\u003e\n\u003cli\u003eTree Lights = GPIO \u003cspan data-mce-fragment=\"1\"\u003e4, 15, 13, 21, 25, 8, 5, 10, 16, 17, 27, 26, 24, 9, 12, 6, 20, 19, 14, 18, 11, 7, 23 and 22.\u003c\/span\u003e\n\u003c\/li\u003e\n\u003cli\u003e\u003cspan data-mce-fragment=\"1\"\u003ePhysical pin #6 is used for GND\u003c\/span\u003e\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"The Pi Hut","offers":[{"title":"Pre-soldered Kit","offer_id":48623776661722,"sku":"viy1789678195702","price":16.17,"currency_code":"USD","in_stock":true},{"title":"Soldering Kit","offer_id":48623776694490,"sku":"mox1789678195703","price":11.97,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0824\/8318\/3834\/files\/3d-xmas-tree-for-raspberry-pi-discontinued_1.jpg?v=1789678201","url":"https:\/\/memoryfoamwear.shop\/products\/3d-xmas-tree-for-raspberry-pi-discontinued","provider":"My Store","version":"1.0","type":"link"}