Sceadwian
Banned
It depends on the exact micro controller you're using Misch, as Gayan said all you need on many micros is a 1 meg resistor, the I/O lines of many modern micros have built in clamp diodes, you just have to limit the current through them, which is what the resistor does, the diodes are connected to the VCC and GND rails. You could use a pair of Schotky diodes if you want to be safe. If you're not sure how to connect them another user here may be able to post a quick schematic for y ou or I can do it when I get home (nothing to do it with here)