Go on green
LEDs light the way to a solution.
Brian Conley, Circuitsville Engineering LLC -- EDN, June 24, 2010
| View as PDF |
Troubleshooting a design—and adding things to that
design to help in troubleshooting—is among the
things engineers learn along the way. I learned this
lesson during my first gig as a consultant. A crusty, old
senior engineer had directed me to create a fixture, so
I drew a schematic and gave it to the technician to
build. When she was finished, she handed it to me. I tested and
then disconnected it and put it on the senior engineer’s desk.About an hour later, he came stomping over to my desk and growled at me: “It doesn’t work; fix it.” I didn’t argue but went into the lab to see what the problem was. The power came in through a connector that was supposed to be impossible to connect backward. Nevertheless, the senior engineer had managed to put it in backward. Putting the connector in backward was easier than I had imagined and could become a trap for a new user. I correctly plugged in the connector and tried the circuit to see whether any damage from voltage reversal had occurred.
When I was satisfied that the board was undamaged, I started to think about how I could prevent this scenario or at least show that it had happened. I got two LEDs—one red and one green—and two resistors out of the stockroom. I added these parts to the board so that, if a user correctly connected the power, the green LED would light. If the user incorrectly connected the power—that is, connected it backward—the red LED would light.
I reconnected the board to the test rig and informed the senior engineer that I had fixed it. He barked an acknowledgment, so I went off to do other things.
| Read more Tales from the Cube |
Recently, though, when designing a board for a client, I decided to omit the LED. It was a simple enough board, so what could go wrong?
Several days after my client received the board, I received a panicked e-mail. This message set off a frantic series of messages back and forth about the board’s not working to specification and signals’ feeding through to other signals. What was the problem? After a day of worry, the client realized, and sheepishly admitted, that he had correctly connected the power but had neglected to turn on the bench supply. Everything appeared to be working because the microcontroller got its power from the USB (Universal Serial Bus) line and the microcontroller LED was on. He didn’t make the connection that the power supply was off for more than a day. When he finally flipped on the power supply, everything was fine.
In the next revision, this board will get a green LED, too. Now, I take this step not just for me but also for my clients.
Here’s a recent update: A later version of this board added fuses and TVS (transient-voltage-suppressor) devices for ESD (electrostatic-discharge) protection. In addition, the client told me that the board was to be compatible with automotive power systems. From research, I found that automotive voltages can range from 7.2 to 28.8V. So I tested the board over that range and noted that, just below 10V, the LEDs flickered and went out. Debugging showed that the fuses had blown, but not why. I replaced the fuses and tried again, with the same result. It turned out that the chosen TVS had a clamp voltage of 9.6V. When the input got to that voltage, the TVS acted as a short circuit and blew the fuse, saving the board but screwing up my testing.
Talkback
-
Beware the automotive power systems because the voltage spikes there may be much higher than the 28.8 V, even more than 100 V. These are due to the breaking of high currents by solenoid relays.
However, people use to weld these things and connect the arc welding equipment quite randomly to the chassis wherever they find it convenient and thus may cause long duration high voltages to be present in the system.
Jouko Niiranen - 2010-27-7 05:52:00 PDT -
Thanks for the article. Lots of things, including advertising programs, could benefit from the addition of a green light.
Joe Murray - 2010-12-7 15:15:17 PDT -
A TVS, or even a zener diode, used for voltage limiting, will indeed fail the fuses, if fuses are included. One choice is to add a series resistor to limit the current so that the protective device won't fail during normal conditions. A second choice is much more expensive, which is to include a three-terminal voltage regulator device. For that, though, you do need a bit more voltage headroom. But adding a regulator may improve the performance of the system, or not.
Just think of the fun that you would have if the system got out into the field, and then a relatively normal higher voltage came along and popped the fuse, and it was one of those nice soldered in fuses and there was no spare. A quick addition of a jumper across the fuse would put things back in operation, but the next serious overvoltage would cause worse problems. A PTC current limiting device would be a better choice, even though they cost a bit.
William Ketel - 2010-25-6 13:31:42 PDT


















