RGB LED 모듈 -5V, Common Cathode
(RGB LED Module -5V, Common Cathode)
개요
- 본 제품은 5050 사이즈의 RGB LED가 장착되어 있는 모듈입니다.
- R,G,B를 세개의 PWM 핀을 이용하여 제어가 가능합니다.
- 5V 로 동작하며, 마이크로컨트롤러와 연결하기 위해서는 전류 제한 저항(문서섹션 참조)이 필요합니다.
특징
- using 5050 full color LED with max current of 20mA
- Forward Voltage : Red 1.80V (2.4 max), Green,Blue 2.8V (3.6V)
- RGB trichromatic limiting resistor to prevent burnout
- through the PWM adjusting three primary colors can be mixed to obtain different colors
- with a variety of single-chip interface
- Operating voltage: 5V
- LED drive mode: common cathode driver
문서
-
Since you can't connect the led's directly to the Arduino you will need resistors!!
- Arduino pin 9 --> 180 Ohm resistor --> Pin 'R' of KY-009 module
- Arduino pin 10 --> 100 Ohm resistor --> Pin 'G' of KY-009 module
- Arduino pin 11 --> 100 Ohm resistor --> Pin 'B' of KY-009 module
- Arduino GND --> pin '-' of KY-009 module
-
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=0; void setup () { pinMode (redpin, OUTPUT); pinMode (bluepin, OUTPUT); pinMode (greenpin, OUTPUT); Serial.begin (9600); } void loop () { for (val=255; val>0; val--) { analogWrite (redpin, val); analogWrite (bluepin, 255-val); analogWrite (greenpin, 128-val); delay (1); } for (val = 0; val <255; val++) { analogWrite (redpin, val); analogWrite (bluepin, 255-val); analogWrite (greenpin, 128-val); delay (1); } Serial.println (val, DEC); }
연관제품
- 연관제품 1