Ks0032 keyestudio RGB LED Module

From Keyestudio Wiki
Jump to: navigation, search

Introduction

This is a full-color LED module, where contains 3 basic colors-red, green and blue. They can be regarded as separate three LED lights. After programming, you can turn them on and off by sequence. And you can also use PWM analog output to mix these three colors to generate different colors.
thumb

Specification

  • Color: red, green and blue
  • Brightness: High
  • Voltage: 5V
  • Input: digital level
  • Size: 30 * 20mm
  • Weight: 3g

Connection Diagram


thumb

Sample Code

int redpin = 11; //select the pin for the red LED
int bluepin =10; // select the pin for the blue LED
int greenpin =9;// select the pin for the green LED
int val;
void setup() {
  pinMode(redpin, OUTPUT);
  pinMode(bluepin, OUTPUT);
  pinMode(greenpin, OUTPUT);
  }
void loop() 
{for(val=255; val>0; val--)
  {analogWrite(11, val);
   analogWrite(10, 255-val);
   analogWrite(9, 128-val);
   delay(1); 
  }
for(val=0; val<255; val++)
  {analogWrite(11, val);
   analogWrite(10, 255-val);
   analogWrite(9, 128-val);
   delay(1);  
}

Resources

Video

http://www.keyestudio.com/wp/ks0032/

PDF

https://drive.google.com/open?id=14s3PqVei8BwSbTUayAVzQQRgUERpbS5T

Buy from

Official Website

http://www.keyestudio.com/keyestudio-rgb-led-module-for-arduino.html