Liste des Groupes | Revenir à col misc |
On 11/27/24 12:12 AM, Computer Nerd Kev wrote:Depends on the details. Say you have flashing warning lights
driven by a microcontroller which also has spare remapable ADC
inputs: You could add a capacitor in parallel with the LED+resistor
and switch the micro's pin from HIGH digital output into ADC input
mode to turn the LED off. While the light fades from on to off,
measure the discharge of the capacitor - too fast means a short,
too slow means open-circuit. Yet there's only one more component
per LED if you already have a suitably capable microcontroller
there.
For traffic lights to look normal, you could flash so quickly that
it's not noticable to the eye (if you've got surplus brightness).
Now the problem is that capacitors tend to fail short-circuit more
often than most other common components including LEDs. So you can
detect the failure, but the failure is now more likely.
Another commenter's statement of inverting the indicator, where "on"
means "situation normal" and "off" means "abnormal" is probably the
absolute simplest way to go. But then the "LED indicator" fights human
psychology that senses a new stimuli appearing in the environment (lamp
turning on) far more readily and quickly than noticing that a continual
low level stimuli has disappeared (light has gone out).
Flashing to indicate a warning instead of turning permanently off
would help there. Need to retrain everyone to use traffic lights
which always have two lights on if applied to that example
application though, so probably not a solution there.
There are 'critical' lights - traffic, railway, nuke-reactor -
that simply can't show "nothing".
For the original question, I think using two FETs, an N
and P, linked to the + on LED-1 can form a "voltage-range
error" circuit without too many parts. LED-2 is the
indicator lamp. So, whether LED-1 fails open or closed
LED-2 still lights full. Attach an extra tiny red led
or piezo buzzer or whatever to it to indicate fail mode
if you can't just tell by looking.
Les messages affichés proviennent d'usenet.