Loading...

Daily news and top headlines for electronic OEM design professionals

FREE Email Newsletter View Sample

Application Solutions

Designing a Robust Failure Indicator

Must-read news, features and analysis for electronic OEM design pros - Sign up now!

Share:

E-mail:

Print:

Bookmark:

RSS:

[-] Text [+]

Featured In: Newsletters | Application Solutions

By Chris Keeser, Applications Engineer Sr., Cypress Semiconductor Corp. | Wednesday, August 11, 2010

Double-click any word to search

Highlight any phrase & click HotSearch

Loading...

The other day I was driving to the local dump to drop off a load of trash carefully stacked into the back of the family minivan. Suddenly I noticed that the “trunk open” light came on. I quickly pulled over just as the rear hatch popped all the way open and the van began to empty my garbage bags all over the road. I hadn’t closed the hatch all the way when loading up, and the jostling of driving had caused it to pop open. I was immediately thankful for that simple little light that had prevented me from getting a littering ticket. It also reminded me how a malfunctioning “idiot” light had caused my sister to blow the engine in my ‘66 mustang.

Vehicles are complex machines with many critical systems working together to safely transport us where we need to go. All of the components are carefully monitored by a computer checking and rechecking the health of the engine, drive train, tire pressure, coolant system, and so on. If something goes wrong, the computer informs the operator of the problem through the various lights in the instrument cluster. However, what if one of the failures is the status light itself?

A great deal of information is captured behind that little “check engine” light. Over the years, they have been dubbed “idiot lights” based on the idea that if you didn’t take action when the light went on, you were an idiot or because even an idiot could understand the glowing red light with a “Check Engine” written beneath it means something is wrong.

Measuring resistance with a current stimulus, while limited to the rails in an open condition, avoids unintentionally generating too much current through the device if the resistance is unexpectedly lIn the past, the idiot light was an incandescent bulb. These failed regularly as the constant vibration caused the filament to weaken and eventually break. In the 70’s with the arrival of inexpensive Light Emitting Diodes (LEDs), status lights became far more reliable, but they were still not perfect. Typically, incandescent bulbs fail in an open mode, but LEDs can fail in either mode (open or short). These types of failures can occur when the LED has a bad connection to the PCB (or falls off entirely), is stressed by too much heat, or simply breaks.

To troubleshoot a failed light, you would normally break out your multimeter and measure the resistance of the failed light. If the light was an open circuit, it was bad. If the resistance was very low, then the LED had probably failed shorted. With a programmable system on a chip, the CPU that controls the indicator light can also measure its resistance and determine if the light is good, bad, or even questionable. What is needed is a way to measure the resistance.

Measuring resistance requires either applying a voltage stimulus and measuring the current, or applying a current stimulus and measuring the voltage. A voltage stimulus can have the undesired side effect of generating too much current through the device if the resistance is unexpectedly low. On the other hand, a current stimulus will try to apply the desired current but will be limited to the rails in an open condition. From a safety standpoint, a current stimulus is preferred (see Figure 1). 

It is common practice to place a current limiting resistance in series with the LED. A standard red LED has a forward voltage drop of about 1.8V when turned on and for a desired current of 5 mA in a 5V system, this resistor would be 634 ohms. For the resistance measurement, you can apply 10uA and expect a voltage around 1.806V (1.8V + 10uA * 634 ohms = 1.806V). If the indicator is open, you will see a voltage close to the rail. If the indicator is shorted, you will see a voltage around 6.3 mV. This approach has the advantage of not requiring any extra connections to the LED (no impact on system robustness or cost) and allows dynamic checking of the indicator health. The pin driving the LED is configured as an open drain “drives high” I/O and an analog connection is made to the pin. 

Cypress-Figure 2The GPIO can be driven high, turning the LED on, or it can be placed into a Hi-Z mode. The Hi-Z mode turns the LED off, and enables the optional test mode. By enabling a current DAC (IDAC), a precise current can be forced through the LED and the current limiting resistor. The voltage at the pin can be measured, and the LED status can be determined. This current should be small enough to not illuminate the LED.

With the IDAC, more intelligent indicator health monitoring can be done. A sweep of the current and a measurement of the resulting voltage can yield the I-V curve of the LED, providing much more detail on its health, plus an aesthetically pleasing increasing glow from the LED if the current is swept to a high enough value.

This technique can also be applied to a whole host of other indicators in, on, or around a vehicle. Imagine how helpful it would be if your car could tell you that the left rear brake light was out, rather than that pleasant policeman who just pulled you over. And while we’re checking the connection, we can also use the diode junction of the LED to determine its temperature. This allows us to measure the temperature of the instrument cluster. A diode can be modeled with the following equation:

Equation 1

With some manipulations the temperature can be derived as a forward voltage drop for an applied current, or as a function of the forward drop and a current ratio when two currents are applied. However, since LEDs are not ideal, the performance of a particular LED as a temperature sensor should be determined empirically.

Idiot lights can be an asset for complex systems to determine correct operation and to inform operators of critical failures, but only if they are functioning. With the addition of impedance measurement hardware, idiot lights can be turned into an idiot savant.

Join the Discussion
Rate Article:  Average 3 out of 5
register or log in to comment on this article!

1 Comments

  • Good solution to knowing if you have an indicator problem, but as an owner of an old classic car, I'd like to add my 2 cents. I think the term idiot light came from having a light tell you you have a problem like low oil pressure, high temperature, etc. as opposed to have a gauge to tell you want the oil pressure or coolant temperature actually was. You had to have some intelligence to read a gauge and know what it meant as opposed to having a light come on to simply tell you you had some sort of problem. The other thing that many people didn't know was that when you turn the key to the on position before actually starting the car, all of the idiot lights come on so that you know the bulbs are working. The problem is some people weren't smart enough to know that one of the lights didn't come on, so if a problem occurred, you didn't know it. I always liked the battery voltage gauge as opposed to the alternator light because you could tell if the battery had a dead cell, or if the alternator was charging or overcharging the battery. Ah, the good old days...

Add Comment

Text Only 2000 character limit

Page 1 of 1

Dungeons and Dragons Dice Gauntlet
Dungeons and Dragons Dice Gauntlet

Feb 3

The D&D bracer is a fairly quick, fun, nerdy LilyPad project. The final product is a wearable bracer with a display that will randomly generate numbers between 1 and 4, 6, 8, 10, 12, 20, or 100 in response to arm movement, so it can effectively replace all of the dice in your bag for a D&D session.

Sustainable?
Sustainable?

Feb 2

I'd like some genius to define sustainable. Could we count something that we can keep doing for 100 billion years - beyond the death of the Universe as we currently understand such things - as sustainable? How about a billion years?

TopicStarterLast Post
Digital watch voice recorderEdipo FerrariOct 1
HolidaysJason LombergMar 3
iPhone OwnerJason LombergNov 17
Video Game ViolenceJason LombergJan 6
Global Warming/Climate ChangeJason LombergAug 11
3D TechJason LombergNov 17
Medical ElectronicsJason LombergNov 17
The Incandescent BanJason LombergNov 17
Video of the Day


Free Electronic OEM Design
Industry Subscriptions

Magazine

ECN magazine

Newsletters

newsletters

Sign up now


Archived Issues

Top Stories and Headlines
EVERY DAY!

FREE Email Newsletter