RGB LED Light

by Samuel Yang in Circuits > Arduino

123 Views, 0 Favorites, 0 Comments

RGB LED Light

IMG_2202 (1).JPG

This is an easy RGB LED Light device, it need Arduino to make it. It is so easy that people who don't know Arduino can easily make it.

Things you need

RGB LED

可變電阻

電阻(220)* 1

Arduino Uno廣泛* 1

麵包板* 1

USB電纜* 1

IMG_2202 (1).JPG

Use the material on the list and copy it same as the picture on top.

Code

Copy this code

void setup(){ // put your setup code here, to run once:

}

void loop(){ // put your main code here, to run repeatedly: analogWrite(6 , ( analogRead( A0 ) / 4 )); //analogWrite values from 0 to 255 analogWrite(5 , ( analogRead( A1 ) / 4 )); //analogWrite values from 0 to 255 analogWrite(9 , ( analogRead( A2 ) / 4 )); //analogWrite values from 0 to 255 }

Done

Your device should look like this.