Fuel Gauge
I have made the change to line 1755, put in a 68 ohm resistor & have done some experimenting.
I have tried various PWM_MAX values between to 100 & 125 range to see what happens.
The car measures +0.030mV @ 71 ohms = empty & +0.70mV @ 283 ohms = full between the sender wire & car earth. The sender wire by itself measures 106mV to earth.
So far, I haven't been able to get the needle to move via the PWM yet but it will move with a variable resistor between the sender wire & earth.
By my reckoning, the PWM should be about 38% for full & about 80% for empty. That equates to a PWM_MAX of 0x61.
Reading some stuff, it seems like I may need a low pass filter. That may give a signal that the computer likes better. I could also try a digital pot perhaps.
Last edited by ianbartie; 06-01-2011 at 08:21 AM..
|