Ks0032 keyestudio RGB LED Module: Difference between revisions
Jump to navigation
Jump to search
Keyestudio (talk | contribs) No edit summary |
Keyestudio (talk | contribs) No edit summary |
||
Line 42: | Line 42: | ||
}</pre> | }</pre> | ||
== | ==Resources == | ||
'''Video''' | |||
http://www.keyestudio.com/wp/2016/05/ks0032-keyestudio-rgb-led-module-for-arduino/ | http://www.keyestudio.com/wp/2016/05/ks0032-keyestudio-rgb-led-module-for-arduino/ | ||
'''Datasheet''' | |||
http://www.keyestudio.com/files/index/download/id/1463650173/ | |||
==Buy from == | |||
http://www.keyestudio.com/keyestudio-rgb-led-module-for-arduino.html | |||
https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=keyestudio+RGB+LED+module+for+Arduino | |||
[[Category: Sensor]] | [[Category: Sensor]] |
Revision as of 10:13, 24 November 2016
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.
Specification
- Color: red, green and blue
- Brightness: High
- Voltage: 5V
- Input: digital level
- Size: 30 * 20mm
- Weight: 3g
Connection Diagram
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/2016/05/ks0032-keyestudio-rgb-led-module-for-arduino/
Datasheet
http://www.keyestudio.com/files/index/download/id/1463650173/
Buy from
http://www.keyestudio.com/keyestudio-rgb-led-module-for-arduino.html