Go Down

Topic: RGB LED Controller (Read 819 times) previous topic - next topic

amansammy

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

HELP NEEDED !
Minds are like parachutes. They only function when they are open.

johnwasser

http://www.ladyada.net/learn/arduino/lesson3.html
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Magician

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

Grumpy_Mike

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

Then use
Code: [Select]
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.

amansammy


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

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


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

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


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

Then use
Code: [Select]
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..! :) Finally..
Minds are like parachutes. They only function when they are open.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy