Ks0032 keyestudio RGB LED Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
This is a full-color LED module, which contains 3 basic colors-red, green and blue. They can be seen as separate LED lights. <br>
This is a full-color LED module, which contains 3 basic colors-red, green and blue. They can be seen as separate LED lights. <br>
After programming, you can turn them on and off by sequence or can also use PWM analog output to mix three colors to generate different colors.  
After programming, you can turn them on and off by sequence or can also use PWM analog output to mix three colors to generate different colors.  
<br>[[File:321.png|500px|frameless|thumb]]<br>
<br>[[File:Ks0032.png|500px|frameless|thumb]]<br>


<br>
<br>
Line 48: Line 48:
== Result ==
== Result ==
Done uploading the code, you should see the RGB LED flashing with different colors.
Done uploading the code, you should see the RGB LED flashing with different colors.
<br>[[File:3222.png|500px|frameless|thumb]]<br>  
<br>[[File:Ks0032-1.png|500px|frameless|thumb]]<br>  


<br>
<br>

Revision as of 09:36, 15 April 2019


Introduction

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


Specification

  • Color: red, green and blue
  • Brightness: High
  • Voltage: 5V
  • Input: digital level


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);  
  }
}


Result

Done uploading the code, you should see the RGB LED flashing with different colors.
thumb


Resources

Video
http://video.keyestudio.com/ks0032/

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


Buy from