Gas Gauge - Kawasaki KLR 650 Forum
2008+ KLR650 Wrenching & Mod Questions For repair, maintaining or modifying discussions related to the newly updated 2008 and beyond, Generation 2 KLR650 Motorcycle.

Reply
 
LinkBack Thread Tools Display Modes
post #1 of 24 Old 10-15-2014, 11:09 AM Thread Starter
1st Gear
 
Ranger Ron's Avatar
 
Join Date: Oct 2009
Location: Sonoran Desert, Arizona
Posts: 71
Gas Gauge

Here's a quick look at my gas gauge.




Besides showing how much gas is in the tank, it also tells me how far I can go on that gas.




I always like to know the temperature, so I included it.




The unit works by measuring the pressure of the gas. Here's the pressure sensor.




The sensor in place.




There needed to be a way to get gas to the sensor. I made an extension plate for the oem petcock. It's 5/8" thick which allowed enough room to drill and tap for a 1/8" pipe fitting.




The extension plate with auxiliary petcock installed.




A PIC micro-controller is used to handle the computing chores.

Ron

Opinions are my own. Everything I describe is very likely wrong. Use at your own risk.
Ranger Ron is offline  
Sponsored Links
Advertisement
 
post #2 of 24 Old 10-15-2014, 12:26 PM
2nd Gear
 
Join Date: May 2014
Location: Kansas City
Posts: 202
Ron,
Way too cool!
How accurate is your gas gauge?
Did you have to gasket the extension plate?
How do I read more about the PIC micro-controller?

I really like this submission.
Great job, great pictures.
Jack

[email protected]
2009 Kawasaki KLR 650

always tinkering!
Jack.Moorhead is offline  
post #3 of 24 Old 10-15-2014, 12:55 PM Thread Starter
1st Gear
 
Ranger Ron's Avatar
 
Join Date: Oct 2009
Location: Sonoran Desert, Arizona
Posts: 71
Quote:
Originally Posted by Jack.Moorhead View Post
Ron,
Way too cool!
How accurate is your gas gauge?
Did you have to gasket the extension plate?
How do I read more about the PIC micro-controller?

I really like this submission.
Great job, great pictures.
Jack
Thanks, Jack!

The gauge is accurate to 1/10 of a gallon (12.8 oz).

I made a gasket for the tank side of extension plate. The oem o-ring/gasket works on the petcock side.

The PIC's are made by Microchip. If you Google PIC you can see a number of tutorials of various levels - from beginner to pretty complex.

Ron

Opinions are my own. Everything I describe is very likely wrong. Use at your own risk.
Ranger Ron is offline  
 
post #4 of 24 Old 10-15-2014, 01:14 PM
Pretty in Pink, dunno why
 
Tom Schmitz's Avatar
 
Join Date: Feb 2009
Location: Redondo Beach
Posts: 7,547
Garage
Ron -

Neat shit, Maynard.

Would it be possible (which is way beyond my capability) to use a PIC to build a muti-gauge that would read two or three pressure sources and oil temperature?

This is a rhetorical question, see the parenthetical comment...

What I would like to be able to do is read, seqeuntially, the oil pressure at the head, the middle banjo, the oil filter cover, and the oil temperature.

I have an IMS 10, so no need for a gas gauge. That thing always has another gallon in it, somewhere...

Tom

Tom [email protected]

“She went out slowly. The way she did it hadn’t been learned at business college.” -Philip Marlowe

“'Why' and 'How' are words so important they cannot be too often used.” -Napoleon Bonaparte


Sting like a butterfly.
Tom Schmitz is online now  
post #5 of 24 Old 10-15-2014, 01:47 PM Thread Starter
1st Gear
 
Ranger Ron's Avatar
 
Join Date: Oct 2009
Location: Sonoran Desert, Arizona
Posts: 71
Quote:
Originally Posted by Tom Schmitz View Post
Ron -

Would it be possible (which is way beyond my capability) to use a PIC to build a muti-gauge that would read two or three pressure sources and oil temperature?
Tom
For sure. That's the kind of thing they are made for.

The PIC I'm using for the gas gauge (a 18F2685) has eight separate inputs for the A/D module. I'm just using two of those for this project, one for the pressure sensor and one for a temperature sensor.

Ron

Opinions are my own. Everything I describe is very likely wrong. Use at your own risk.
Ranger Ron is offline  
post #6 of 24 Old 10-15-2014, 02:04 PM
Pretty in Pink, dunno why
 
Tom Schmitz's Avatar
 
Join Date: Feb 2009
Location: Redondo Beach
Posts: 7,547
Garage
I awoke this morning with a defined set of tasks to do.

Now I'm off to Google PICs.

"How will I ever get my chores done?", Tom asked lazily.

Tom

Tom [email protected]

“She went out slowly. The way she did it hadn’t been learned at business college.” -Philip Marlowe

“'Why' and 'How' are words so important they cannot be too often used.” -Napoleon Bonaparte


Sting like a butterfly.
Tom Schmitz is online now  
post #7 of 24 Old 10-15-2014, 05:30 PM
Moderator
 
klr4evr's Avatar
 
Join Date: Mar 2007
Location: Fort Sask , Alberta, Canada
Posts: 3,481
Garage
Send a message via Skype™ to klr4evr
You should market those.

My Kaw Barn - 2004 KLR, 2006 Concours (sold), 1997 Bayou 400.

"It's a friggen motorcycle, it's not supposed to be comfortable, quiet or safe. The wind noise is supposed to hurt your ears, the seat should be hard and riding it should make you shit your pants every now and then. "

<--- Please fill in the 'Location' on your personal profile page. User CP/Edit Your Details

This information makes it much easier for other members to answer/comment on your posts.
klr4evr is offline  
post #8 of 24 Old 10-15-2014, 09:13 PM
3rd Gear
 
Join Date: Jan 2014
Location: Phoenix, AZ
Posts: 527
Very cool.
bl4935 is offline  
post #9 of 24 Old 10-16-2014, 12:47 PM
2nd Gear
 
Join Date: May 2014
Location: Kansas City
Posts: 202
Ron,
As a developer in my work life, I see a chance to have fun in my recreational life. I would like to look more into the PIC because with 8 possible inputs / functions it would be possible to code in:
1. Clock
2. Temperature (OAT-Outside Air Temperature-for non-pilot types)
3. Temperature (Head)
4. Gas
5. Mileage remaining estimate
6. On board timer, (but I don't know really how useful this is)
7.
8.

What little I read, the PIC accepts ANSI C code. This is an automotive standard and a very basic OOP language. I think this will make a great winter time project and I would like to open up suggestions for the #7 & #8 slots.

Ron - You are the man!

[email protected]
2009 Kawasaki KLR 650

always tinkering!
Jack.Moorhead is offline  
post #10 of 24 Old 10-16-2014, 01:41 PM
Pretty in Pink, dunno why
 
Tom Schmitz's Avatar
 
Join Date: Feb 2009
Location: Redondo Beach
Posts: 7,547
Garage
Jack -

Oil temp and pressure, perhaps.

This sensor might work for pressure and it's cheap enough. Not positive, as the Honeywell .pdf site is down.

I think an analog temperature probe could easily be made to work, too.

Tom

Tom [email protected]

“She went out slowly. The way she did it hadn’t been learned at business college.” -Philip Marlowe

“'Why' and 'How' are words so important they cannot be too often used.” -Napoleon Bonaparte


Sting like a butterfly.
Tom Schmitz is online now  
Sponsored Links
Advertisement
 
Reply

Quick Reply
Message:
Options

Register Now



In order to be able to post messages on the Kawasaki KLR 650 Forum forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:
OR

Log-in










Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode



Similar Threads
Thread Thread Starter Forum Replies Last Post
fuel gauge joseaventurero 2008+ KLR650 Wrenching & Mod Questions 5 12-30-2013 08:56 PM
Temp gauge not working Rustydust 2008+ KLR650 Wrenching & Mod Questions 2 11-23-2012 03:47 PM
temp gauge problem desertraider 2008+ KLR650 Wrenching & Mod Questions 6 03-15-2012 05:17 AM
Sprocket Wear Gauge tomatocity KLR & Other Motorcycle Related Discussion 3 05-17-2011 10:17 PM
Gauge Lights tomatocity 1987 to 2007 Wrenching & Mods 5 07-18-2010 10:24 AM

Posting Rules  
You may post new threads
You may 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
Trackbacks are On
Pingbacks are On
Refbacks are On

 
For the best viewing experience please update your browser to Google Chrome