EveryCircuit
Contact
Reviews
Home
faceblast
modified 7 years ago

LM339 RGB LED fade effect

unlisted
Quad Comparator oscillating and controlling duty cycle on a common anode RGB LED to make it shift colour smoothly. Needs a sinusoidal three phase signal generator at a really low frequency
hamilton1300
11 years ago
Try a ring oscillator for the signal you need
rbrtkurtz
11 years ago
1) A three segment Astable Multivibrator will give a nice color organ effect. It'll be a pattern something like R, R+G, G, G+B, B, B+R... the only thing I wouldn't like about it, is that each color will fade on, but they'll turn off quickly. With this setup, it'll be hard to get them to fade off, but it's super easy to build. 2) You could use two op amps (741s maybe?) to create a sawtooth signal. Then use #1, #2, & #3 of the 339 to turn on each LED at different points on the sawtooth. Basically use the sawtooth as an input on each one, then setup a voltage divider on each one as a Vref. Methinks that would just turn each color on and off, not fade them. To be honest I haven't put a ton of thought into it, but it might be worth looking into.
rbrtkurtz
11 years ago
Or you can build an arduino uno clone for less that $10. ;)
rbrtkurtz
11 years ago
I posted an example of what I had in mind.

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2025 by MuseMaze, Inc.     Terms of use     Privacy policy