Hi,
I want to detect some 12v signals like brake, parking, turn, reverse etc in my car and feed into microcontroller.
The requirements of microcontroller for detecting an input are :-
1. The Arduino (ATmega) will report HIGH if: a voltage greater than 3.0V is present at the pin
2. The Arduino (ATmega) will report LOW if: a voltage less than 1.5V is present at the pin
As you see I just want to detect ON/OFF signal nothing else. Also the voltage at the pin cannot be higher than 5v.
Here is the circuit that I am going to use :-

Using the voltage divider to half the voltage, further zener diode with breakdown voltage of 4.7V to clamp the voltage down to acceptable levels and a capacitor for smoothing the pulse.
Note :- Many circuits recommend using an optocoupler for this job which I want to avoid.
The problem which worries me is this :-

The automotive environment is very harsh and full of noise, like you see above. The voltage can be all over the place. Is the circuit above robust enough to survive this?
Thanks.