Ks0032 keyestudio RGB LED Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<br>
==Introduction==
==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 program, we can turn them on and off by sequence. We can also use PWM analog output to mix the three colors to generate different colors.  
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>
<br>[[File:321.png|500px|frameless|thumb]]<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.  
 
<br>[[File:Ks0032-3.png|500px|frameless|thumb]]<br>


<br>
==Specification==
==Specification==
*Color: red, green and blue  
*Color: red, green and blue  
Line 9: Line 12:
*Voltage: 5V
*Voltage: 5V
*Input: digital level
*Input: digital level
*Size: 30 * 20mm
*Weight: 3g


<br>
==Connection Diagram ==
==Connection Diagram ==
<br>[[File:0032.png|700px|frameless|thumb]]<br>


<br>[[File:3222.png|500px|frameless|thumb]]<br>  
<br>


==Sample Code ==
==Sample Code ==
<pre>
<pre>
int redpin = 11; //select the pin for the red LED
int redpin = 10; //select the pin for the red LED
int bluepin =10; // select the pin for the blue LED
int bluepin =9; // select the pin for the blue LED
int greenpin =9;// select the pin for the green LED
int greenpin =11;// select the pin for the green LED
int val;
int val;
void setup() {
void setup() {
Line 40: Line 42:
   analogWrite(9, 128-val);
   analogWrite(9, 128-val);
   delay(1);   
   delay(1);   
}</pre>
}
}
</pre>
 
<br>
 
== Result ==
Done uploading the code, you should see the RGB LED flashing with different colors.
<br>[[File:Ks0032-1.png|500px|frameless|thumb]]<br>  


<br>
==Resources ==
==Resources ==


'''Video'''
'''Video'''<br>
http://video.keyestudio.com/ks0032/


http://www.keyestudio.com/wp/2016/05/ks0032-keyestudio-rgb-led-module-for-arduino/
'''PDF and Code'''<br>
https://fs.keyestudio.com/KS0032


'''Datasheet'''


http://www.keyestudio.com/files/index/download/id/1463650173/
<br>


==Buy from ==
==Buy from ==
http://www.keyestudio.com/keyestudio-rgb-led-module-for-arduino.html
*[https://www.keyestudio.com/keyestudio-full-color-red-green-blue-rgb-module-for-arduino-p0398-p0398.html    '''Official Website''']
 
*[https://www.aliexpress.com/store/product/Keyestudio-Full-Color-Red-Green-Blue-RGB-LED-module-for-arduino/1452162_32626695733.html?spm=2114.12010615.8148356.27.6cc560fdK0tEtR  '''Shop on aliexpress''']
 
 


https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=keyestudio+RGB+LED+module+for+Arduino
[[Category: Module]]
[[Category: Sensor]]

Latest revision as of 09:09, 8 January 2021


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 = 10; //select the pin for the red LED
int bluepin =9; // select the pin for the blue LED
int greenpin =11;// 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 and Code
https://fs.keyestudio.com/KS0032



Buy from