All About Circuits Forum  

Go Back   All About Circuits Forum > Circuits and Projects > The Projects Collection

The Projects Collection A collection of completed projects from All About Circuits forum members. Comment, ask questions, and add to their ideas.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 11-02-2009, 07:52 PM
Jack_K Jack_K is offline
Member
 
Join Date: May 2009
Location: Fort Worth, TX
Posts: 54
Default Project: Auxilliary gas gauge for a motorcycle

I wanted to add an extra gas gauge to my motorcycle because the existing gauge is very small and not very accurate. I selected a gauge used on 2000 to 2003 Harley Davidson cruisers. I picked this because it should be rugged enough for motorcycle use and I got a really good deal on ebay. This gauge needs 12 volts and ground plus a connection from the fuel level sending unit of the motorcycle.

Unfortunately the HD fuel level sending unit has a different resistance range (10 – 70 ohms) than my Stratoliner’s sending unit (10 – 210 ohms). That means the HD gauge will not read accurately (actually, not even close). The HD gauge can be “fooled” by an electronic circuit that reduces the voltage going to the gauge.

The gauges are not quite linear but we can consider them to be so. That means we can use the slope-intercept equation y=mx+b to calculate the change in voltage required.

I was able to measure the voltage across the motorcycle's gas gauge sending unit. I obtained the following voltages across the sending unit corresponding to the gauge reading:

Ohms Resistor voltage
10 -- 0.53 Full
88.8 -- 3.60 Half tank indicated
214 -- 5.90 Empty (low fuel light on)

Putting resistors to ground, in series with the HD gauge, produced the following voltages:
Ohms Resistor voltage
10 --- 0.40 Full
20 --- 1.33
30 --- 1.92
40 --- 2.52
50 --- 2.94
60 --- 3.24
70 --- 3.50 EMPTY

It seems like it is pretty close to linear. A little hard to tell but close enough.
Using gauge 2 as x and gauge 1 as y --

y = mx + b, m is the change in y divided by the change in x.

m = (0.4 – 3.50) / (0.53 – 5.9) ~ .57728

To find b we will plug in a value for x and y. Let's use the first point --

y = .577x + b
0.4 = .577 * .53 + b
b = 0.094v

The amplifier needs to have a gain of .577 and you need to add 0.094V to the input.
The equation would be Vresistor2 = .577 * Vresistor1 + 0.094V

I used an L2722 op-amp because Sgt Wookie pointed out that it can drive the output almost all the way to ground and I needed a 0.40 volt output.

Adjust R1/R2 to get 0.577 times V1 at pin 7 of the op-amp. Adjust R8 to get 0.094 volt at the junction of R4, R7, R8, and the diode. Actually, the diode can be omitted.

This circuit turned out to work beautifully and is actually more accurate than the existing gauge.
Attached Images
File Type: jpg Gas Gauge Circuit-6.jpg (30.3 KB, 23 views)
File Type: jpg Gas Gauge Circuit-6-PCB-Actual.JPG (6.2 KB, 6 views)

Last edited by Jack_K; 11-03-2009 at 02:48 PM.
Reply With Quote
  #2  
Old 11-04-2009, 05:34 AM
SgtWookie's Avatar
SgtWookie SgtWookie is online now
Senior Member
 
Join Date: Jul 2007
Location: Orlando, FL USA
Posts: 8,378
Default

Nice job, Jack.

The amount of current necessary to be sunk from the new gas gauge eliminated most common opamps from consideration. The L2722 is an active product that was readily available, compact, and inexpensive. It's not rail-to-rail, but met the requirements of the project.
Reply With Quote
Reply   Post New Thread

Bookmarks

Tags
, , , ,

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with non-linear(?) Op-Amp circuit Jack_K The Projects Forum 20 08-31-2009 06:34 PM
Need a resistance divider (?) or gas gauge Jack_K The Projects Forum 17 07-30-2009 06:12 PM
Strain gauge project loui Homework Help 1 06-04-2009 07:58 PM
help with analog gauge project jaodesign General Electronics Chat 1 05-15-2009 12:52 AM
Help with school project on strain gauge lagitech General Electronics Chat 1 09-19-2006 03:56 PM


All times are GMT. The time now is 09:16 AM.


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License.
Copyright © 2009, All About Circuits. All Rights Reserved.