Electronic – Convert blinking (On/Off) power LED to fading

ledpower

I couldn't come up with a better title…but here's the explanation.

Basically, I need to create a small circuit for my PC to attach to the power LED. The way my motherboard works is that if the system is powered-on then the LED is ON. But when the system goes to standby the LED starts blinking.

I want to do two things:

  1. Have two separate color LEDs for each state i.e. powered-on(green) vs standby (amber).
  2. I want the standby LED to slowly fade-in/out (not fully out though, half-way).

I figured that I can make the blinking signal fade by attaching a capacitor and a diode (to prevent current going back to the motherboard). That should take care of standby light.

However, I can't figure out how to switch LEDs when the current goes from continous to intermittent. So when the system goes to standby the LED switches from green to amber. Any ideas? Btw, I don't want a expensive or complex circuit. I need something that will Not require any outside power-source and will work just from the current coming for the power-LED. Someone suggested me to use two RC circuits as such:

Explanation here: http://forum.allaboutcircuits.com/showpost.php?p=411691&postcount=8

Best Answer

First you need to detect the blinking/not blinking.

An RC lowpass filter followed by a comparator would do this.

Then you need to use the comparator output to switch between the LEDs.

I have thrown together a quick circuit that should work (sorry for the mess but I'm rushing at the moment):

PC LED power

And the simulation:

PC LED power sim

The pink line is the PC power indicator in, you can see it starts to toggle after around 2ms (I forgot to expand the time realistically, sorry - depending on the frequency of the flashing you will need to adjust R1 and C1 - probably 10k and 100uF are better values)

When it starts to toggle the voltage after the RC filter (RC_FILT) drops below V_REF and the comparator output switches (not shown)
Depending on the state of the output (5V or 0V) either the NPN or PNP transistor is on, and the LED in series with it is lit.
The botton graph is of the current through each LED - you can see one drops to 0 and the other turns on when the toggle starts/stops.

Hope this helps - ask if you don't understand anything and I will try to add some more later if needed.

EDIT - here is another version that does not use a separate power supply. It's a quick hack so I make no guarantees - the components shown are guidelines, you can use any small signal schottky and pretty much any small N-channel MOSFETs. This is about as simple as I think you can make something to do what you want:

PC LED Power 2

Here's the sim:

PC LED Power sim 2