resistive fuel sender


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    beto's Avatar
    beto Guest

    Default resistive fuel sender

    Hi All!
    I want connect a resistive fuel sender (gasoline tank level), to my PIc using
    the POT comand, but, the total max resistance is only
    255 Ohms and min 0 Omhs, (This doesn't work) What I can do..?
    Can I, use an Built in A-to-D Converter to read Ohms?
    I confused... Thanks

  2. #2
    Wragie's Avatar
    Wragie Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by beto
    Hi All!
    I want connect a resistive fuel sender (gasoline tank level), to my PIc using
    the POT comand, but, the total max resistance is only
    255 Ohms and min 0 Omhs, (This doesn't work) What I can do..?
    Can I, use an Built in A-to-D Converter to read Ohms?
    I confused... Thanks
    The POT command is expecting much higher resistance 20-50Kohm which is why it isn't working.

    You should be able to read it via the A/D. The A/D is just reading the voltage so you can calculate the results to see what you should get. Think of calculating it like a limiting resistor for a LED and you'll get it.

    I think you will find you will need to average your readings and use far fewer steps than 0-255 or the result is going to be pretty jittery ie not stable.

    W

  3. #3
    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    237


    Did you find this post helpful? Yes | No

    Post

    You could connect a 220Ohm resistor in series with the sender and beef up the capacitor to somewhere between 1 and 10 uF. You'll end up with about 7 bits resolution(118-255) but thats probably more than enough ....

    /Ingvar

  4. #4
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi,

    If possible, leave the original fuel level gauge connected to the sending unit.
    (The sending unit is the potentiometer inside the tank).
    Using the A/D inside the PIC, measure the voltage present on the wire
    which connects the fuel level gauge to the sending unit.
    (When the tank is empty you will have the the maximal voltage on this wire).
    Use two resistors as voltage divider if this voltage exceeds 5V which is
    the maximal voltage for the A/D inside the PIC. Protect the A/D input of
    the PIC in order to limit the voltage to 5V. (If you disconnect the sender
    you will have 12V through the fuel level gauge).

    See attached BMP file.

    Do not connect 12V or 5V directly to the sender.
    If you do that, you will destroy the potentiometer and in the worst case
    you will cause the explosion of the fuel tank. All the parts of the
    potentiometer are in contact with the fuel.

    Be careful with gasoline!

    - Gasoline is toxic.
    - Gasoline forms an explosive mixture with air.

    Luciano
    Attached Images Attached Images  

  5. #5
    beto's Avatar
    beto Guest


    Did you find this post helpful? Yes | No

    Default

    I have setup the 10bit A/D Converter With this resistor-divider (see bmp) to read fro 0v (sender in R) to ~1.75v (max R sender)
    and I use a PIc18f452 to read the resulting voltage, and send it to hyperterm
    This work but no very well, manually moving the sender the readings is'nt stable there is variation, someties without move the sender!
    another issue, a simple math operation I=v/r show the i aplied to my sender
    i=3/510= 5mA this is safe current to prevent rupture of the sender...?
    Attached Images Attached Images  

  6. #6
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    If you still have the original gauge, connect it temporarily
    to the sender and measure the current with an ampere meter.
    Once you know the current flowing with the original gauge, then just
    dimension the resistors accordingly.

    Old thermally-actuated gauges use a voltage stabilizer or "vibrator" in
    order to compensate the voltage changes when the generator is charging.
    In this type of gauge the current will not constantly flow through the
    rheostat of the sender. See URL.

    http://www.nls.net/mp/volks/htm/fuel_ga.htm

    Another type of gauge is the balance coil gauge.
    No voltage regulation is required with this type of gauge.
    In this type of gauge the current will constantly flow through
    the rheostat of the sender. See above URL.

    * * *

    Your circuit is fine because the voltage is regulated.

    * * *

    When you go around a turn, or up a hill, the fuel can slosh
    to one side of the tank and quickly change the float position.
    If the gauge needles were to respond quickly to all of these changes,
    it would be bouncing all over the place.
    The capacitor C1 on my BMP was to limit this problem but you
    can also take care of that in the software.

    If your fuel sender is a wirewound rheostat, then don't expect
    a resolution better than E, 1/4, 1/2, 3/4, F.

    Example of modern fuel sender on ceramic substrate.
    http://www.bourns.com/pdfs/fuel_card_apno.pdf

    Again, be careful!

    Luciano

Similar Threads

  1. Fuel consumption display
    By veijavi in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 27th December 2011, 06:05
  2. fuel flow sensor?
    By droptail in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 20th May 2009, 04:01
  3. peak and hold fuel injector driver
    By mrhrholden in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 7th October 2008, 02:18
  4. Using CCP1 and CCP2 to measure instant fuel consumption
    By srspinho in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 20th September 2008, 15:50
  5. Fuel Tank level????
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd March 2008, 09:57

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts