Many of the boards I make can/do have their inputs connected to parts that are exposed to touch, can be hooked to very long wires, or both. I am trying to make those inputs as robust as possible. Both to being fried and to getting triggered falsely by EMI or static electricity.
I also need to protect against incorrect wiring during the install process, such as hooking a 12v supply directly to an input. The inputs are generally just buttons, switches, or similar; no analog or digital signals.
Most of the boards use ATMegas, but I also use raw 4000 series ICs when it makes sense. 4000s ICs seem much more fragile so I made my first board with my ideas on input protection using one of these.
Attached is a pic of the protection I added to my 4082 board, which should be waiting in my mail box when I get home.
There is a diode to protect against reverse current, a current limiting resistor, a PPTC for extra current limiting, a cap to filter out any EMI/static, and a zener to cap the voltage at an appropriate level.
What do you guys think? Have an suggestions? Would I be better off just using an optoisolator?
Please let me know if you want me to clarify anything.
If mods think this is better of in the Beginners section feel free to move it.