Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

how to drive dual color common cathode led from 10vpp ac source

Status
Not open for further replies.

danjel

Member
I want to drive a dual color led (common cathode) from an 10vpp ac source so that on positive excursions one color is lit and on negative portion the other color is lit.

The simplest way I have done this in the past is to put both leds (in opposite directions in parallel) in the feedback of an inverting opamp and then control the current to them via the resistor connected to inverting terminal.
In this situation I do not have the luxury of a spare opamp and space is limited.

There should be a simple way to do this with two transistors and some resistors but my simulations are not working out properly (using a 2n3904 and a 2n3906 I can get alternating flashing but it is not smooth or balanced)

any ideas?
 
Can you post a drawing of your attempt, so far, and include information about the desired current, what's driving the circuit and such as that?
 
ac led

Is something like this what you are looking for?

Oops, missed the common cathode part.
 

Attachments

  • acled.PNG
    acled.PNG
    54.4 KB · Views: 311
Last edited:
All you need are two rectifiers and a resistor.

Connect the AC source to each LED anode. Connect a rectifier in inverse direction in parallel across each LED from the LED's anode connection to the common cathode connection (with the appropriate resistor in series with one the AC connections to limit the LED current to the desired value).

That way the LEDs will alternately light, one on each half cycle with the rectifier carrying the current around the LED that is reverse biased.
 
Last edited:
Ac led

OK, Here is another one. Might need a tx with higher Vbeo than the 2N2222.
 

Attachments

  • acled.PNG
    acled.PNG
    58.9 KB · Views: 185
Here's a simulation of the two rectifier diode, one resistor circuit. The oscilloscope shows the currents for the two LEDs (1mV = 1mA). Notice that each LED lights on alternating half cycles of the sine wave input.

New-1.jpg

Edit: Changed voltage source from 10Vrms to 3.5Vrms (10Vpp).
The difference in current between the two LEDs is due to the difference in forward voltage between the red and green LEDs. If this is not desirable, then you could use two different value resistors in series with each LED instead of the one resistor in series with the source.
 
Last edited:
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top