Your position: Home / Sensors

Keyestudio Full Color Red Green Blue RGB module for arduino

KS0032
Price:
Wholesale:
5+
$2.38
    Please select the information you wantX
Quantity:
-
+
(969 available)
Shipping Cost:
to
Estimated Delivery Time:
Please select the country you want to ship from
  • Description
  • Reviews(108)

1234SMDt

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

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

}

}

 

See product video: https://youtu.be/umAjGWhZEAQ

 

 

Average rating: 4.0 based on 108 reviews
Share your thoughts with other customers
Write a review
Product reviews can be carried out after the member login, please click here to login