element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Fuel level sensor to protect me from myself. First Arduino project
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 11 replies
  • Answers 3 answers
  • Subscribers 393 subscribers
  • Views 884 views
  • Users 0 members are here
  • frontpage
Related

Fuel level sensor to protect me from myself. First Arduino project

Former Member
Former Member over 9 years ago

Im looking for guidance with my first project.

 

Background for this project.

 

I have a 100gal diesel transfer tank in my truck. From this tank i have a small 12v pump connected to the fuel tank of my truck, i use this pump to fill my truck on long trips, or if i get into areas where i cant get to a filling station. The problem I have and the reason for this project is the pump is SLOW. That in itself isnt the problem, the problem is that i sometimes forget to turn it off, and yes i have forgot about it long enough to dump 70+ gallons of fuel on the highway ( expensive mistake)

 

Scope of this project;

 

I would like to use the fuel sender in the truck tank to turn off/interrupt power to the coil of the relay controlling the pump at a set level ie. 7/8 full. This way I can turn on the switch and if i forget to turn it off i will no longer over fill the truck.

 

Since this is my first attempt working with arduino im not really sure where to start.

 

Tomorrow morning I'll be taking some measurments of the fuel sender although im pretty sure it is resistance based.

 

So i guess the first thing i need help with is interfacing with the sending unit without adversly affecting the guage on the dash.

 

 

After this part of the project is complete Id like to also monitor the sending unit in the transfer tank so when that tank is empty ( or at some set point ie. 1/4 tank) also turn off/interrupt power to the coil of the relay controlling the pump so as not to burn the pump out from running dry.

  • Sign in to reply
  • Cancel

Top Replies

  • mcb1
    mcb1 over 9 years ago in reply to Former Member +2 suggested
    jamesb128 James A simple voltage comparator circuit using an OpAmp will give you all you need. It's late and bed calls but maybe if jw0752 is still up he will have the circuit and have proved it before…
  • mcb1
    mcb1 over 9 years ago +1 suggested
    jamesb128 Welcome to the world of electronics, and Arduino. Before you start you're going to have a couple of problems. 1. The sender and guage are 12v (or 24v) which is incompatible with the 5v of the…
  • Former Member
    Former Member over 9 years ago in reply to mcb1 +1
    Hi mark thanks for your reply. Im certainly not tied to using an arduino or any other microcontroller for that matter. Only reason i chose to use one is well i have it and i was looking for a starter project…
  • mcb1
    0 mcb1 over 9 years ago in reply to mcb1

    Okay

    I gave up on trying to use my normal schematic package ... it sucks

     

    Here is the old fashioned version. No guarantees but it should give you a good start point.

    I think I've got the logic correct, and I've assumed the sender goes low in resistance when the tank is full.

     

    image

     

    This is the turn OFF at 7/8th full version.

    The LM339 has 4 comparators and they suggest tying the unused inputs to ground.

     

    Using another 1/4 of the LM339 you should be able to duplicate to make the "Turn off at 1/4" but you need to swap the inputs so that the preset part is on the +ve input and the sender part is on the -ve input.

    You can add the relay output in series.

     

    The capacitor across the sender should help smooth the fluctuations but will need to be sized according to the sender resistance. I suspect a 1000uF might be needed.

    The 1M and 1K for a feedback to stop it oscillating when it's close to the trigger point. I suspect the pump and tube will also give some additional hysterisis so it may not be required.

     

    In theory a couple of LED's (with resistors) at each point in the voltage feed will show the switch is ON, the receiving tank is READY and the supplying tank is OKAY.

    You may want to change how the power is fed so that the switch is the final part, that way you can have a LED to prompt you to switch it ON.

    You have enough spare inputs to create a third section to prompt you when the tank is below 1/4 ....

     

     

    Cheers

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
<
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube