Hello, I'm trying to retrieve data from my old car. Now for water temperature there is a ground wire is going into sensor and a second one going out from sonsor with ohms value.
Connect a 47 ohm resistor from V+ to the sensor.
Now the sender becomes a voltage divider.
Edit: You may need to increase the resistor value to reduce the current.
The higher the temperature, the lower the voltage between the resistor and the sensor.
That is your call. I might use the separate power supply.
The 5v pin on Arduino can't supply a lot of current.
You can increase the resistor value and use the Arduino 5v pin but the resolution will decrease. With a 74 ohm resistor, the voltage at the sensor/resistor junction will be 2.5v at 5 degrees.
With a 150 ohm resistor, the voltage will be 1.66v.
Edit: With 74 ohms, you'll need a 1/2 watt resistor.
With 150 or 220 ohms. a 1/4 watt will do.
Doesn't sound like it. Check the resistor temperature when the engine is up to temperature. If it is hot to the touch, it isn't rated for that wattage.
Edit: If I wasn't clear before: As the engine temperature increases, the voltage at the resistor/sensor junction will drop. That will increase the current through the resistor.
When its hot the resistance is low thats why the voltage is high and when its cold the resistance is high thats why the voltage is low.
But i was just wandering that the current of 2.5v when its hot or 1.7v when its cold will not damage anything in the sensor of water temperature that is basically works with ground wire ?
Well 47, 74.9 and 220 ohm resistors have been suggested so far.
Maybe you should find out a little more about the sensor and the device that is reading it before you go any further.
It's an old car. Analog gauges.
The 47 ohm was if I was using a separate power supply.
The 74 ohm is what the OP has.
The 220 ohm is what I would try.
Good enough?
Your ground wire should be going to your Arduino Ground. The other wire on the sensor should have a voltage proportional to temperature. You should not need to add any resistance since that should be done by the ECU when things are connected. Next you are sure of those resistance values?
Looks like a VW and in 89 VW did have an ECU. Matter of fact depending on Make/Model VW had ECUs on 87 through 89 and the same ECU. What year and what model?
The temp sensor should be two pins and one is likely ground and when operating the remaining pin should be outputting a voltage. Have you measured it? With engine running.
Yes you are right they did have ecu on gasoline engine named GTI, this is golf mk2 GTD 1989 that's why i do not have ecu
Yes I did the first broun wire is connected to ground, goin into sensor and the other one Yellow going out from sensor is grouded too but with Ohm value, yes i did mesure it with car running
I just solved the problem with @SurferTim solution above, i did use 295 Ohm resistor and its working like charm... Max voltage I have back to ground sensor is 0.4v so it won't damage the sensor