Christmas Tree Rainbow LED for micro:bit

$9.90
SKU EF-EF03420

We have 4 units in our Sydney Warehouse available for immediate dispatch.

We can get a further 1100 units into Australia from Elecfreaks. If you order today, we can dispatch this stock between Dec 28, 2024 - Jan 09, 2025.

The Christmas tree rainbow LED, with 6 coding LEDs,can help you to decorate a beautiful Christmas night.

This picture is just for a design sketch , the product includes only Christmas tree. The snowflake buzzer, the micro:bit and Alligator cables (Black ,Red ,Yellow) will need to be purchased separately.  

Features

  • In Christmas tree shape, adapt to the Christmas scene

  • With coding rainbow LED for any colour you like.

  • With crocodile clip lines, no need for a expansion board

Quick Start

Preparation

  • 1 x Christmas Tree Rainbow LED

  • 3 x crocodile clip lines(Please prepare by yourself)

  • 1 x micro:bit(Please prepare by yourself)

Hardware Connect

  • 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 makecode https://makecode.microbit.org/#

  • Click on "New Project" and set a new Project.

  • 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 rainbow LED glows colourful light to bring beauty to the christmas night.