RGB LED Strip

../_images/ledstrip1.png

An RGB LED strip.

Specifications

  • Dimensions: 1000 x 10 x 2 mm

  • Voltage: 5V

  • Current: 1A

  • Wattage: 0.3W

  • No. of LEDs: 60

Wiring Diagram

This product is recommended for use with Robotbit.

../_images/ledstrip2.png

../_images/ledstrip3.png

  • Connect Red wire to 5V

  • Connect White wire to GND

  • Connect Green wire to Signal Pin

MakeCode Coding Tutorial

Import Robotbit Extension: https://github.com/KittenBot/pxt-robotbit

Importing Extensions

Neopixel Coding Blocks

../_images/ledstrip4.png

Neopixel Coding

Lighting Up a Single Colour

../_images/ledstrip5.png

Sample Program

Lighting Up a Rainbow Effect

../_images/ledstrip6.png

Sample Program

Adjusting Brightness

../_images/ledstrip7.png

Sample Program

Controlling Individual LED

../_images/ledstrip8.png

Sample Program

Use the show block to update the effects.

LED Marquee

../_images/ledstrip9.png

Sample Program

../_images/ledstrip10.png

Sample Program

For shift, the effect will end after the pixel moves past the end(60 LEDs).
For rotate, the pixel will restart at 0 after moving past the end(60 LEDs).

Lighting Up a Selection of LEDs

../_images/ledstrip11.png

Sample Program

Custom Colours

../_images/ledstrip12.png

Sample Program

Extension Version and Updates

There may be updates to extensions periodically, please refer to the following link to update/downgrade your extension.

Makecode Extension Update

FAQ

Q: Why does the LED strip only lights up RED no matter what colour I chose? A: There is not enough power.

Solution: Switch on the power of the Robotbit or connect an external power supply or lower the brightness.

Precautions

  • Do not apply a voltage more than 5V.

  • Connect an external power supply such as an USB power bank for extended periods of use.

  • Lower the brightness when lighting up a large number of LEDs.

  • This product is designed for users 14 years or older, please seek parental assistance for users under 14.

  • Please refer to official product guidelines before using. Only connect wires according to the instructions.

  • Do not place this product on top of metal or conductive surfaces when using to prevent short circuits.

  • Do not use this product near water or wet areas to prevent short circuits.

  • Do not touch exposed contacts or wires.