Help with creating a “status led”

Hello :waving_hand:

I’m stuck on my project and really need some help to put it right, hope someone sees this and knows how to solve:

The brief is this:
I want to create a “status light” that is on and blue when 6.0V is detected and only turns off if the detected voltage drops below 5.9V - in which case a red light is on.

The context here is I am regulating a 2 cell lipo at 6V for an rc setup with pwm servos. The regulator itself, whilst has an indicator light, is inside an assembly - I need to be able to see it is functioning and the voltage is stable from outside this assembly.

Have been told I need a comparator LM393, an rgb 4 pin common cathode LED, a TLV431 voltage reference shunt regulator and a bunch of other components I can barely describe.

I am one or two notches above an electronics novice - this is very out of my comfort zone!

If someone could draw the circuit and show me any pins and where they go etc I’d be MASSIVELY grateful :smiling_face:

Please post schematics. Hand drawn using pen and paper, and photo posted usually works well.

One key question is how the build is powered, and which controller You use.

Could you place a phototransistor inside the assembly to pick up the light from the existing indicator and bring wires out to the external led(s)?

6.0-5.9=0.1V
(0.1/6)*100% = 1.67%
Is your 6V regulator actually that accurate?

Clever idea - I really like that kind or thinking but in this case I’m not sure how the led of the regulator performs when voltage is below 6v - the manual doesn’t specify this. My next concern with your method is whether that would be sensitive/responsive enough? Also - when I say ‘assembly’ I mean fuselage - ie I don’t mean the regulator will be hiding in a dark enclosed box per se

I barely know where to start with a schematic - that’s why I’ve been as specific in my brief as possible.

In terms of power, as I mention I’m using a 2 cell lipo (8.4v max, 7.2v nom) with this regulator unit down to 6v



You might find my map2colour library useful, allows all gradations between blue and red if needed (or more).

There is no information about accuracy.
If it's +/-5% then what you think is 6V could be anywhere between 6.3V and 5.7V.
So your idea is not practical

@siera100
Another topic caused me to dig out a piece of 1000 um Core, 2.2 mm Jacketed Plastic Fiber Optic Cable. You can use a short piece to route the LED light out to a visible location on the fuselage.
On the other hand, your comment about not knowing if the internal LED provided the information you needed about the voltage level might make this impractical.

BRILLIANT use of existing technology.

No pun intended. :winking_face_with_tongue:

Aye, she is one of our bright lights...

I love these kinds of solutions, and it has made me file a little mental post-it note that wherever I need a status light, etc, in the future, flush mounting the end of a piece of fibre optic cable is far superior to an exposed LED in those cases where the status light does NOT need to be seen from any angle or far away.

If you have a "straight" path you can also use a piece of Lucite rod.
There are commercial options


designed to sit over an SMD LED.

I've used transparent PLA filament to do much the same job. Lightly flame polish the cut ends and it works amazingly well.

I'm not sure why you mentioned it at all then.

Seems irrelevant now, but a phototransistor would certainly be sensitive enough, but it would be important to exclude ambient light around it and the indicator.

Ok, next idea.

A small Arduino compatible microcontroller called a Digispark.

These have an internal voltage reference. It's not super-accurate, but you could calibrate it using a multimeter.

They also have an on-board regulator so it could run off the 6V power.

A voltage divider (1K + 10K resistors) could reduce the 6V down to something below 1.1V so the Digispark could measure it and switch the red & blue LEDs. You will need a current limiting resistor for the LEDs, such as 330R.

Keeps getting better, thanks. I do have an application I could use these ideas on, will let you know how it goes.

Glad I was able to provide you with some ideas!