SKU_M011.00184_RGB_LED_strip-DFRobot

Introduction

The RGB LED strip is a simple lighting module that can produce various lighting effects by adjusting the color settings, making it widely used in scenarios such as decorative lighting, event venue decoration, and celebrations for holidays like Christmas, Halloween, Valentine's Day, Easter, and National Day.

Specification

Pinout

Label Name Description
1 DI Signal Input
2 DO Signal Output
3 VCC Power Positive
4 GND Power Negative

Usage Description

Before using the colorful light strip, load the library in Mind+. Open the Mind+ programming platform, find the "Extension" in the lower left corner and click it, then click the WS2812 RGB light in the "display" to load the relevant commands. At this time, the display module will appear in the command area. After completing the above steps, connect the light strip to the micro:bit board to control the effect of the light strip through programming.

Principle

The RGB LED strip consists of seven colored LED lights. It uses WS2812 RGB LED components mounted on a flexible printed circuit board (FPC). And The LED and circuit are fully encapsulated in flexible plastic strip to provide good insulation and waterproof performance, making it safe to use. The strip supports 5V power supply.

Application

1. Lighting up the LED strip

Description:
Burn the written codes into micro:bit, and you can light up the LED strip to present colorful lighting effects.

Components:

micro:bit microbit expansion board
M011.00184 RGB LED Strip MBT0039 micro:bit BOS0040 micro:bit BOSON Expansion Board

Connection Diagram:

① Select the LED strip's pin to be connected to micro:bit, and the number and brightness of the LED of the strip. The command statement is as follows. Here we set the pin to P0, the number of LED to 7, and the brightness to 255 (range 0-255).

Mind+ Sample Code:

MakeCode Sample Code:

② Determine the range of usable LED. The commands to be called are shown below. Here the range is 0-6 in Mind+ and 1-7 in MakeCode.
Then determine the range of the LED strip hue, and the commands to be called are shown below. Here the hue range is 1-360 (red - green - blue).

Mind+ Sample Code:

MakeCode Sample Code:

The final program is shown below.

Mind+ Sample Code:

MakeCode Sample Code:

Colorful Effect:

Add the "rotate pixels" block into the main program so that the LED strip can light up and shows gradient color recurrently. It's more beautiful to present a light ring effect.

Mind+ Sample Code:

MakeCode Sample Code:

Video Demo

Programming

2. LED Brightness Control (Programming)

Description:

Use the rotation sensor to control the brightness of the LED strip.

Components:

BOS0001 Rotation Sensor M011.00184 RGB LED Strip
MBT0039 Micro:bit BOS0040 Micro:bit BOSON Expansion Board

Connection Diagram:

Flow Chart:

Mind+ Sample Program:

Makecode Sample Program:

Demo Videos:

Programming

3. Button-controlled Lighting (Programming)

Description:

Use a button to control the color of the LED strip.

Components:

BOS0002 Push Button Module(i2r/i2g/i2b) M011.00184 RGB LED Strip
MBT0039 Micro:bit BOS0040 Micro:bit BOSON Expansion Board

Connection Diagram:

Flow Chart:

Mind+ Sample Program:

Makecode Sample Program:

4. Electric Candle (Programming)

Description:

Let's make a birthday candle that you can blow out!

Components:

M011.00184 RGB LED Strip MBT0039 Micro:bit BOS0040 Micro:bit BOSON Expansion Board

Connection Diagram:

Flow Chart:

Mind+ Sample Program:

Makecode Sample Program:

Demo Videos:

Programming

FAQ

For any questions, advice or cool ideas to share, please visit the DFRobot Forum

Turn to the Boson Kit Page