I'm looking to take an input signal from a coil pack which is a nominal 12V and feed it into an Ardunio Mega 2560. I have VERY basic electronics knowledge so am looking for the simplest solution possible.
I thought I would use a voltage divider with a 10k and 1k resistor but this drops the nominal 12V value to below the threshold for the Arduino to see a state change on the pin.
So my question is what's the easiest way to take a 12V signal which can spike up to ~40-50V and make it a nice clean 5V input. Is it optos?