Also watch out for protecting outputs. LED indicators can carry ESD discharges directly through the plastic into an output pin. This can happen with switches as well.
Also watch out for protecting outputs. LED indicators can carry ESD discharges directly through the plastic into an output pin. This can happen with switches as well.
I yet to run into that. I generally use a transistor to drive any output, including just a single LED. I used to use 2N3904, but am moving to as much SMD as possible so now it would be a MMBT3904.
Digikey have a good beginner article here: https://www.digikey.com.au/en/articles/techzone/2012/apr/protecting-inputs-in-digital-electronics
Personally having the circuit and resulting waveform images helped me greatly in understanding, I still occasionally reference the article from time to time
Not sure the point of your PTC. With a 1k series resistor you would need 50V across the 1k to get 50mA to flow. That's 50V x 50mA = 2.5W being dissipated by the resistor...
cheers,
george.
Not sure the point of your PTC. With a 1k series resistor you would need 50V across the 1k to get 50mA to flow. That's 50V x 50mA = 2.5W being dissipated by the resistor...
cheers,
george.
LOL, that is a good point. I will put a 0ohm resistor there instead.
Originally I wanted a 20mA PTC, but that was the smallest I could find in an 0805 footprint that was reasonably priced.
Not sure the point of your PTC. With a 1k series resistor you would need 50V across the 1k to get 50mA to flow. That's 50V x 50mA = 2.5W being dissipated by the resistor...
cheers,
george.
LOL, that is a good point. I will put a 0ohm resistor there instead.
Originally I wanted a 20mA PTC, but that was the smallest I could find in an 0805 footprint that was reasonably priced.
No, stick another series resistor in there, it will double the voltage withstand (element limiting) voltage versus a single resistor package.
OK, I will replace it with another 1k resistor.
OK, I will replace it with another 1k resistor.
If you have two resistors you could use Si diodes instead of schottky ones, even if they conduct at the same voltage the internal diodes will, as they have a 1k resistor in the middle the internal ones have no current to conduct, probably under 100µA.
If you can afford two schottky diodes you can probably afford a TVS, in which case you need only one part and only connected to ground, even less if you consider multiple channels ones are available so one part for a few channels. They also come with two sets of diodes and an internal resistor, you would just need to add a cap for filter/debounce the signal and you are good to go. It all depends on the BOM costs you aim for, the reliability and the environment you are working in.
Few weeks ago I build a circuit to communicate over one wire interface on a boat, tested on my boat first for a few days, all good, installed it, tested it ok. Next day the owner reports it didn't worked, the serial wiring on the client boat was close to the engine, when it was running the alternator noise wouldn't let the communication to work properly. For now I relocated the device and the client didn't came back but I need to solve the problem. Changing the wiring location is not an option so I'm thinking in lowering the pull-up resistor value, but I have to look that further as it might not be compliant with the standard (or simulating too many devices on the network). Enviroment can sometimes be a bitch.
JS
Also watch out for protecting outputs. LED indicators can carry ESD discharges directly through the plastic into an output pin. This can happen with switches as well.
I yet to run into that. I generally use a transistor to drive any output, including just a single LED. I used to use 2N3904, but am moving to as much SMD as possible so now it would be a MMBT3904.
I usually do the same thing. The external transistor serves to block ESD and also prevents high currents into the logic supply voltages which can be separated from the indicator supply voltages.
How rugged are low voltage SMT transistors like the 3904 (and the LED) in the face of ESD discharges? The relatively expensive microcontroller/logic may be saved but the product may still become unusable if an LED stops working. We would probably investigate and replace a blown driver transistor/LED but for most people repair is not economic.
If you need additional protection for the LED and/or transistor then you may as well skip the transistor.
How rugged are low voltage SMT transistors like the 3904 (and the LED) in the face of ESD discharges? The relatively expensive microcontroller/logic may be saved but the product may still become unusable if an LED stops working. We would probably investigate and replace a blown driver transistor/LED but for most people repair is not economic.
If you need additional protection for the LED and/or transistor then you may as well skip the transistor.
They are usually more rugged than a CMOS logic input or output. In a switching application, beta degradation from reverse breakdown on the base-emitter junction is not a serious problem. Offhand I have never seen a 2N3904 fail due to ESD in this application but I have seen CMOS ICs (but not TTL) fail under the same conditions.
If it mattered, I would test different configurations to destruction. If a 2N3904 is not tough enough, then a 2N4401 might be.
I have seen some designs where the exposed I/O buffers used socketted ICs for easy replacement.
Is there a good way to test ESD without expensive equipment? This winter would have been perfect, I was getting pretty epic static shocks. Now that the weather is changing they went away. I played around with rubbing some styrofoam but it doesn't seem to work to well.
What would be a more rugged option for output protection? I will compare the datasheets on the 2n3904 and 2n4401.
Would using a common emitter vs a common collector make any difference? Besides the signal being inverted.
I normally use a common collector design, because that was the logical way for a transistor to work in my brain. The only time I have used a common emitter is when I want the inverting. From what I have read recently common emitter has other advantages to though like less voltage drop and less dissipation in the transistor.