Gravity: Digital RGB LED Module
SKU:DFR0605
Introduction
Gravity: Digital RGB LED Module is a cascadable single RGB LED module compatible
with RGB LED strip. The Gravity interface provides a more elegant manner for the
connections between modules and most of mainstream controllers such
as Arduino, micro:bit, Firebeetle Series, LattePanda, and Raspberry Pi with an abundant
kinds of DFRobot IO expansion shield. Compared to the traditional RGB LED module,
where three control signal pins are required for a single LED, this module only needs
one signal pin for all LEDs in cascade. Thanks to such individual module design, RGB LED
strip built by such independent modules can realize extremely low power consumption
per meter compared to traditional RGB LED strip. And such feature makes it possible to
cascade more than 100 modules with a total length up to several tens of meters but
power requirement no more than 5V 2A. This also makes it much simpler and more
flexible to configure the length of an RGB LED strip, without the need of cutting a RGB
LED strip or soldering every LED pieces.
The module adopts the same high-brightness RGB LED in the traditional RGB LED strip,
inheriting its excellent display performance and is fully compatible with the driving
circuit or program. This requires little changes for existing programs to shift from RGB
LED strip to RGB LED module string. Have fun with this tiny RGB LED module by cool
effects of flashing, rainbow, even letters, pictures or animations.
Features
Excellent display performance, quality high-brightness WS2812 REB LED
Extremely long cascading length, low unit length power consumption
High compatibility, compatible with 3.3V/5V controller, RGB LED strip drivers or
programs
Standard connector, easy setup without cutting or soldering
Application
Holiday Decorations
Signal Indicator
Specification
LED Type: WS2812 RGB 5050 LED
Input Voltage: 3.3V~5.5V
Maximum Current: 48mA
Quiescent Current: 0.7mA
Interface: Gravity 3P Digital
Dimension: 30.0mm*22.0mm / 1.18*0.87 in
Board Overview
No.
Label
Description
1
-
Power supply GND
2
+
Power supply VCC(3.3~5.3V)
3
DI
Control data signal input
4
DO
Control data signal output
Arduino Tutorial
This tutorial presents a basic usage of the module with Arduino UNO.
Requirements
Hardware
o
DFRduino UNO R3 (or similar) x 1
o
Gravity: Digital RGB LED Module x 1
o
Gravity 3P digital sensor cable (or Dupont wires) x 1
Software
o
Arduino IDE
o
Adafruit NeoPixel Library. (About how to install the library?)
Connection Diagram
Sample Code
Connect the module to the Arduino according to the connection diagram.
Install "Adafruit NeoPixel Library".
Open the Arduino IDE and upload the following sample code to Arduino UNO.
#include
#define PIN_LED 3 // Control signal, connect to DI of the LED
#define NUM_LED 1 // Number of LEDs in a strip
// Custom colour1: Yellow
#define RED_VAL_1 255
#define GREEN_VAL_1 255
#define BLUE_VAL_1 0
// Custom colour2: Purple
#define RED_VAL_2 255
#define GREEN_VAL_2 0
#define BLUE_VAL_2 255
// Custom colour3: Cyan
#define RED_VAL_3 0
#define GREEN_VAL_3 255
#define BLUE_VAL_3 255
// Custom colour4: White
#define RED_VAL_4 255
#define GREEN_VAL_4 255
#define BLUE_VAL_4 255
Adafruit_NeoPixel RGB_Strip = Adafruit_NeoPixel(NUM_LED, PIN_LED, NEO_GRB +
NEO_KHZ800);
void setup() {
RGB_Strip.begin();
RGB_Strip.show();
RGB_Strip.setBrightness(128); // Set brightness, 0‐255 (darkest ‐ brightest)
}
void loop() {
colorWipe(RGB_Strip.Color(255, 0, 0), 1000); // Red
colorWipe(RGB_Strip.Color(0, 255, 0), 1000); // Green
colorWipe(RGB_Strip.Color(0, 0, 255), 1000); // Blue
colorWipe(RGB_Strip.Color(RED_VAL_1, GREEN_VAL_1, BLUE_VAL_1), 1000); // Custom
colour1: Yellow
colorWipe(RGB_Strip.Color(RED_VAL_2, GREEN_VAL_2, BLUE_VAL_2), 1000); // Custom
colour2: Purple
colorWipe(RGB_Strip.Color(RED_VAL_3, GREEN_VAL_3, BLUE_VAL_3), 1000); // Custom
colour3: Cyan
colorWipe(RGB_Strip.Color(RED_VAL_4, GREEN_VAL_4, BLUE_VAL_4), 1000); // Custom
colour4: White
rainbow(20); // Rainbow
}
// Fill the dots one after the other with a color
void colorWipe(uint32_t c, uint16_t wait) {
for (uint16_t i = 0; i
很抱歉,暂时无法提供与“DFR0605”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格 香港价格
- 1+17.166121+2.06122