Hello,
my CarDuino project is still ongoing and I am in the finishing stages of creating an engine data module that will do many things, from reading engine revs to vehicle speed, coolant and oil temperatures, and fuel tank level.
I'm not entirely sure yet how I am going to read the oil temperature sensor so that the input pin won't be damaged.
Basically, the oil temperature sensor is an NTC that is connected to GND and has only one wire on its plug. Its resistance varies between about 20 and 600 ohm. So I guess to get a reading from it, I am going to have to make a voltage divider that takes 5V from the Arduino and feeds it into my input pin with an inline resistor, and that part of the circuit then gets grounded through the oil temperature sensor. It being an NTC, this will then give me changing analog values on the A2 pin that I can use to calculate the oil temperature.
Here is an excerpt from my engine data module schematic (there is a lot more going on in the schematic, but I have largely omitted parts here that aren't relevant to my question):
Please click on the image for a larger view.
Can I just pull the A2 pin up to 5V with a 150 ohm resistor, or will that damage the pin? Pull-up resistors are usually much bigger, aren't they? And should I protect my circuit with a diode to make sure there won't be 12 volts from the car present on either my Vcc or A2 pin?