13400-Me RGB LED
The Me RGB LED module comprises four adjustable and panchromatic RGB LEDs. The color of each LED can be decided by the values of red (R), green (G), and blue (B).
[modifier] Spécifications techniques
- Operating voltage: 5V DC
- Quantity of LED: 4 x RGB LED
- Maximum current: 60mA each, 240mA in total
- LED type: WS2812-4
- Luminance range: 0~255
- Control mode: Single-digital port control
- Angle of visibility: >140°
- Module size: 51 x 24 x 18 mm (L x W x H)
- Connecting with RJ25
[modifier] Programmation Arduino
If you use Arduino to write a program, the Makeblock-Library-master should be invoked to control the Me RGB LED. This is a routine to change the color of four LEDs regularly to implement beautiful color cycling through Arduino programming.
[modifier] Programmation Scratch
[modifier] Fichier d'exemple
[modifier] Principle analysis
Me RGB LED adopts the mode of single-line-return-to-zero code as its communication protocol. When the pixel is in power and reset, the DIN end receives the data sent from the controller. The first 24 bits of the data are retrieved by the first pixel and sent to the data latch for the pixel; the rest of the data is reshaped and amplified by internal reshaping circuit, and then forwarded to the next cascaded pixel through the DO port. The signal is reduced by 24 bits transmitted through a pixel. The automatic reshaping and forwarding technology is used by the pixels, so that the number of cascaded pixels is not limited by the transmission of signal, but limited by the speed of signal transmission.