fuel gage correction application
yarisboy
Posts: 245
I have an after market fuel gauge in my dash that requires 90 ohms/full and 0 ohms/empty. I have a sender in my tank that is 30 ohms/full and 0 ohms/empty. As a consequence when my tank is full I get a reading of 1/3rd tank. Can I use one of my props to "read" the sender, process the result, and generate a 3x resistance on an output? I haven't done a Prop application for over a year. My fogged up memory suggests that I go into the books reading about the sigma-delta circuits and applications to get a reading on the sender for an input, then use PWM sinking on an output to get a pseudo 3x resistance the Auto Meter 2316 gauge would be happy with.
In stage one I just want to get the gauge working on my '64 Chevy pickup. I suspect that the same setup could be used (with a look-up table) to linearize the gauge on my 2008 Toyoto Yaris (unless it's can-buss). We hate that the Toyota(s) look full like, forever, then sink like a rock below half full. I suspect I can use one of the running average routines from the OBEX to smooth out transient readings caused by braking and cornering.
In stage one I just want to get the gauge working on my '64 Chevy pickup. I suspect that the same setup could be used (with a look-up table) to linearize the gauge on my 2008 Toyoto Yaris (unless it's can-buss). We hate that the Toyota(s) look full like, forever, then sink like a rock below half full. I suspect I can use one of the running average routines from the OBEX to smooth out transient readings caused by braking and cornering.
Comments
I am no electrical genius, so my advice might be worthless. However, if it was me attempting this project, here is what I would attempt to do.
- Fill up the gas tank
- Siphon out one gallon at a time until the tank is empty, meanwhile measuring the voltage from the sender with an ADC0831.
- Refill the tank with the siphoned gas.
- Hook up a digital pot between the propeller and the fuel guage and send it some test resistances. I would find a number of resistance values that would equal the number of gallons in the gas tank and make sure that various resistance values properly record tank levels.
- While using gas with the engine running, take samples from the ADC0831, and send corresponding gas tank levels to the digital pot to accurately reflect gas tank levels.
BruceEDIT: However, if the guage expects a nominal 12V or the sender outputs a nominal 12V, I am sure it would get more complicated than I made it sound.
-Phil
Thanks,
Stan
Testing is easier with resistors than with a pot since we need to measure the total resistance and the voltage across the resistors. With a pot you must remove one of the wires from the gauge to measure the resistance. With the resistors you simply short out one or more and subtract sum of their resistance from the total.
What you need to do is measure the voltage across the resistors for at least 3 resistances. I would suggest 0 ohms, 50 % of total resistance, and total resistance.
BTW the resistors do not have to be the same values as long as they do not add up to more than 90 ohms when in series.
For the prop signal output can I put a 90 ohm resister between the gauge input and ground, then tie my prop output from the gauge input to ground? Then a duty cycle of 0 on the pin would read full and a duty cycle of 100 % (ground shunt) would read empty. If the current is too high for a single pin I should be able to use multiple output pins. Prop manual says 40 ma max per pin so I should limit the load per pin to 20 ma max. Phoenix conditions.
Can it really be that simple? Time to do more digging. I have a nagging feeling I'll need diodes between the gauge and the prop output pins so that a 3 volt high won't affect the reading but a duty cycle shunt low will have the desired effect. Am I thinking correctly? Would the .7 volt forward bias threshold of the diodes need to be offset in the software?