Elmwood no more, long live Elmwood! Elmwood Electronics and PiShop are now together!
Please order via PiShop.ca, as we are no longer taking orders through this site.
More details are in our blog!

Christmas Tree Rainbow LED for micro:bit

EF03420

Elmwood Electronics has stopped accepting orders. This product might be available at PiShop.ca. Please check this blog post about our recent team merger.

View on PiShop.ca (SKU 933-1)

Light up your micro:bit with Christmas cheer with the Christmas Tree Rainbow!

This cute tree-shaped PCB has 6 programmable RGB LEDs. Use your micro:bit to program a pretty miniature holiday display!

Also available in a bundle with the Snowflake buzzer and synchronize your lights to some beepy Christmas carols!

Features

  • Fir-tree-shaped PCB for maximum holiday cheer

  • Can be coded to display any colours you like!

  • Attaches with crocodile clips, no soldering required!

Quick Start

You will need:

  • 1 x Christmas Tree Rainbow LED

  • 3 x crocodile clip lines(Sold separately)

  • 1 x micro:bit(Sold seperately)

Hardware Connection

  • Connect the black crocodile clip line to the GND port of the micro:bit, the other side of the black crocodile clip line to the G port of the Christmas tree rainbow LED.

  • Connect the red crocodile clip line to the 3V port of the micro:bit, the other side of the red crocodile clip line to the V port of the Christmas tree rainbow LED.

  • Connect the yellow crocodile clip line to the 0 port of the micro:bit, the other side of the yellow crocodile clip line to the S port of the Christmas tree rainbow LED.

Software

Step 1

  • Click on "Advanced" for more code blocks and click the Extensions at the bottom of the column.

 

 

  • Serch "neopixel" and add neopixel as a codebase.

 

Step 2

  • Snap "set strip to neopixel at pin with leds as" from neopixel into the on start. Set pin to P1 with 6 LEDs in RGB pattern.

Step 3

  • Snap the strip rotate block from the neopixel under the forever. Set the rotate pixels to 1 and set the LEDs change its colour one by one.

  • Then, snap a strip show block for colourful light.

 

Program

Program link:https://makecode.microbit.org/_MMcHh7AjY97M

You also could directly download program by visiting website as below:

 

Result

The Christmas tree LEDs rotate through a rainbow of every colour, bringing light and cheer to your micro:bit!

 


Collections: ElecFreaks

Type: micro:bit add on