The voltage divider really is the current limiter. Something in the 10K Ohm range. You can usually get away without the TVS but that is good practice if you expect static electricity from people touching it.
If the divider outputs betwen about 3.5V and 5V for the normal range of 12V battery voltages,
a digital input is OK to use. An analog input gives more information, but you have to code more...
MorganS:
Analog turn signals would be great. 6V could mean "I'm thinking of turning at the street after next."
1V would of course mean "I've been driving for 10 minutes with the indicator on solid and the bulb is getting tired."
i agree with this, should be a feature by car manufacturers for the smart car (read: dumb driver) - turn signals automatically switch off after 5 minutes (maybe even less, how long really is enough time to indicate your intention to the driver behind ?)
BabyGeezer:
i agree with this, should be a feature by car manufacturers for the smart car (read: dumb driver) - turn signals automatically switch off after 5 minutes (maybe even less, how long really is enough time to indicate your intention to the driver behind ?)
Only 5min? You need to experience some of the lights around here. You don't use turn signals for the benefit of the driver behind you, but to remind yourself what you are doing when you finally get to move
This will mostly result in hot resistors and a hot zener as those resistance values are far too low.
Why don't you just use a 22-100k resistor and connect the 13.9V/0V signal directly to your Arduino's input.
Yes, this is safe. You simply rely on the clamping diodes (rated up to 1 mA) to take care of the over voltage. 22k gives about 0.4 mA through those diodes at 13.9V input.