KY-016 RGB Sensor Module


৳ 120.00

KY-016 RGB Sensor Module

RGB LED module made from a plugin full-color LED, through the R, G, B three pin PWM voltage input can adjust the three primary colors (red/blue/green) strength so as to realize full color melange effect.With the Arduino module can realize the control of cool lighting effects.

  • Working voltage: 5 v
  • The use of plug-in full-color LED
  • The RGB tricolor current-limiting resistance to prevent burn out
  • With a variety of single chip microcomputer interface
  • The PCB size: 15 mm * 10.6 mm
  • PCB color: green
  • USES 5050 full-color super bright LED
  • To prevent burn resistor LED
  • Can meet all kinds of single chip microcomputer
  • High light LED
  • Can be used directly plugged into the motherboard Arduino, without dupont lines to connect

Package Included:
1 X KY-016 RGB Sensor Module

Diagram

Circuit of RGB 3 Color LED Module KY-016 in Arduino

Sample Code:

int red = 7; // select the pin for the red LED
int blue = 8; // select the pin for the blue LED
int green = 9 ;// select the pin for the green LED
int val;

void setup ()
{
pinMode (red, OUTPUT);
pinMode (blue, OUTPUT);
pinMode (green, OUTPUT);
Serial.begin (9600);
}

void loop ()
{
for (val = 255; val> 0; val –)
{
analogWrite (11, val);
analogWrite (10, 255-val);
analogWrite (9, 128-val);
delay (10);
Serial.println (val, DEC);
}
for (val = 0; val <255; val ++)
{
analogWrite (11, val);
analogWrite (10, 255-val);
analogWrite (9, 128-val);
delay (10);
Serial.println (val, DEC);
}
}

Based on 0 reviews

0.0 overall
0
0
0
0
0

Be the first to review “KY-016 RGB Sensor Module”

There are no reviews yet.