RGB LED Controller

Okay..so I just got my arduino duemilanove and RGB led pack. :slight_smile: . I am not at all into programming and want the arduino to control a single rgb led and change its colour randomely. :roll_eyes: . Please give me a code and pn configuration for this project and i would be so thankful. Please Help....!

HELP NEEDED !

http://www.ladyada.net/learn/arduino/lesson3.html

Look in playground "LED Lights and Displays":
http://arduino.cc/playground/Main/InterfacingWithHardware#Output

Assuming you have a common anode RGB LED.
Wire up like it is shown here.

Then use

analogWrite(9,redValue);
analogWrite(10,greenValue);
analogWrite(11,blueValue);

Where redValue, greenValue, blueValue, are all variables with the values between 0 and 255.
Note a value of 0 will be full bright and a value of 255 will be off and a value of 128 will be half way bright.

rgb.pdf (65.8 KB)

johnwasser:
Arduino Tutorial - Lesson 3 - Breadboards and LEDs

Nothing about RGB LED there johnwasser dude..sorry to say...still thanks :slight_smile:

Magician:
Look in playground "LED Lights and Displays":
Arduino Playground - HomePage

Its all about LEDs but nothing about RGB LED Controller...Still thanks... :slight_smile:

Grumpy_Mike:
Assuming you have a common anode RGB LED.
Wire up like it is shown here.

Then use

analogWrite(9,redValue);

analogWrite(10,greenValue);
analogWrite(11,blueValue);




Where redValue, greenValue, blueValue, are all variables with the values between 0 and 255.
Note a value of 0 will be full bright and a value of 255 will be off and a value of 128 will be half way bright.

Thank You..! :slight_smile: Finally..