color fader

Basic example to fade the colors of a RGB LED.

A potentiometer is used to display rainbow colors on an rgb LED. It is the type in the Fritzing Starter Kits (pins: red, com. cathode, blue, green).

By Stefan_Hermann
Created on June 17, 2011, 15:27

Category: Analog

Difficulty: amateurs

License:  Creative Commons Attribution-Share Alike 3.0 Unported License

Tags: rgb, led, fader

Files

Fritzing Files

Code Files

Comments

  1. StoneCut # Dec. 7, 2011, 11:03 p.m.

    Thanks for this. I'm just starting out and not very good with electronics so maybe you can help me ? My circuit doesn't work if I plug in the led the same way as pictured. I have to actually turn it 180 degrees and then the color fade really is not very good and it's even off somewhere near the end of the first third of the potentiometer only to kick back in a little later. I have a feeling this rgb led i got in the fritz kit has a common anode and you were using one with a common catode - could that be the problem ?
  2. André Knörig # Sept. 14, 2012, 9:30 a.m.

    Yes, that's right, sorry for the confusion. RGB LEDs sometimes come with a common anode (+) or a common cathode (-). The ones in the kit are nowadays common anode. The example inside the Fritzing software is already updated.

Login to post a comment...
  • Print this
© 2007 - 2011 University of Applied Sciences Potsdam