Notices
944 Turbo and Turbo-S Forum 1982-1991
Sponsored by:
Sponsored by: Clore Automotive

Speedometer Calibrator

Thread Tools
 
Search this Thread
 
Old 03-12-2013, 12:11 PM
  #16  
nofalls
Racer
 
nofalls's Avatar
 
Join Date: Mar 2009
Location: Tucson, AZ
Posts: 309
Likes: 0
Received 0 Likes on 0 Posts
Default

Tom,
the price could go down if you used https://www.sparkfun.com/products/11113. FTDI cable would be required to load the sketch but if the pot can do all the adjustment the end used would not need one.
Old 03-12-2013, 01:24 PM
  #17  
Tom M'Guinn

Rennlist Member
Thread Starter
 
Tom M'Guinn's Avatar
 
Join Date: Jan 2002
Location: Just CA Now :)
Posts: 12,567
Received 534 Likes on 287 Posts
Default

Great point -- that could cut the cost in half probably. I used the nano because it made testing software so easy, but you're exactly right. I'm pulling together a little page with the schematic and code I used so folks can improve/modify as they prefer. Would be nice to put up a pcb file too but would need someone to host that. If you're an eagle guy and want to do a board file for all just let me know.
Old 03-12-2013, 03:17 PM
  #18  
nofalls
Racer
 
nofalls's Avatar
 
Join Date: Mar 2009
Location: Tucson, AZ
Posts: 309
Likes: 0
Received 0 Likes on 0 Posts
Default

Tom - I am happy to help in any way I can. I can write up a BOM with Digikey PNs too.

Have you ever seen these guys? I had a board made there. 10 50mm x 50mm, two sided and plated through hole for about $10. http://www.seeedstudio.com/depot/fus...html?cPath=185

-Mark
Old 03-12-2013, 03:22 PM
  #19  
gregeast
Addict
Rennlist Member

 
gregeast's Avatar
 
Join Date: Jan 2004
Location: Loveland, Colorado USA
Posts: 2,911
Received 41 Likes on 32 Posts
Default

Keep up the good work guys, I love getting to "hang out" with the cool geeks
Old 03-23-2013, 02:54 AM
  #20  
Tom M'Guinn

Rennlist Member
Thread Starter
 
Tom M'Guinn's Avatar
 
Join Date: Jan 2002
Location: Just CA Now :)
Posts: 12,567
Received 534 Likes on 287 Posts
Default

I took a stab at a web page showing the basics on how I did this. There is a link to it on the front page of my site listed below. Would like to get a downloadable PCB going, but am not much of an Eagle guy.... (hint, hint....).
Old 03-23-2013, 06:11 PM
  #21  
nofalls
Racer
 
nofalls's Avatar
 
Join Date: Mar 2009
Location: Tucson, AZ
Posts: 309
Likes: 0
Received 0 Likes on 0 Posts
Default

Tom - Nice write up! I put together the Eagle files, gerbers and digikey parts list. Once all of that is done I'll send it to you for review/comment/red lines. If you do not mind I would like to try to layout the board to be 2"x2" at most. That will keep the board cost down.

Mark
Old 03-23-2013, 07:06 PM
  #22  
Tom M'Guinn

Rennlist Member
Thread Starter
 
Tom M'Guinn's Avatar
 
Join Date: Jan 2002
Location: Just CA Now :)
Posts: 12,567
Received 534 Likes on 287 Posts
Default

Originally Posted by nofalls
Tom - Nice write up! I put together the Eagle files, gerbers and digikey parts list. Once all of that is done I'll send it to you for review/comment/red lines. If you do not mind I would like to try to layout the board to be 2"x2" at most. That will keep the board cost down.

Mark
That would be great. The board can indeed be much smaller. I was using the fixed board size they give you on the expresspcb 3-1 deal, but subsequently was able to squeeze two boards on each, so can cut them in half and have two boards that are 1.25 x 1.9". That actually brings the cost down to under $10 a piece, but you have to make at least 6. Gerber files would be great -- if you wanted to design one and posted it on batchpcb for others to buy, I'd be happy to link to your product on my page. Batchpcb has a marketplace where you can post your design for others to buy, and even make a buck or two if you want. That would be a great way for the non-electronics types -- so they just have to stuff the board and be done with it.
Old 03-24-2013, 05:59 AM
  #23  
Techno Duck
Nordschleife Master
 
Techno Duck's Avatar
 
Join Date: Jun 2003
Location: San Diego, CA
Posts: 9,980
Likes: 0
Received 8 Likes on 5 Posts
Default

Tom, now you need to make one to fix the fuel level gauge .
Old 03-24-2013, 11:32 AM
  #24  
gregeast
Addict
Rennlist Member

 
gregeast's Avatar
 
Join Date: Jan 2004
Location: Loveland, Colorado USA
Posts: 2,911
Received 41 Likes on 32 Posts
Default

Yeah Tom, quit yer slackin' off!

DucK: There was some discussion on this on the gauge cluster bench testing thread
Old 03-24-2013, 02:17 PM
  #25  
Laust Pedersen
Addict
Rennlist Member

 
Laust Pedersen's Avatar
 
Join Date: Sep 2003
Location: Menifee, CA
Posts: 1,357
Received 8 Likes on 6 Posts
Default

Tom, can these gauge correction circuits correct for non-linear errors?

I am sure there is a need/market for a small and easily programmable box for gauge corrections with both analog and digital inputs (tachometer).
My Jalpa, for example, has a tachometer showing too high value at idle (about 20%) and too low value near redline (about 10%).

Laust
Old 03-24-2013, 02:59 PM
  #26  
Tom M'Guinn

Rennlist Member
Thread Starter
 
Tom M'Guinn's Avatar
 
Join Date: Jan 2002
Location: Just CA Now :)
Posts: 12,567
Received 534 Likes on 287 Posts
Default

Originally Posted by Laust Pedersen
Tom, can these gauge correction circuits correct for non-linear errors?

I am sure there is a need/market for a small and easily programmable box for gauge corrections with both analog and digital inputs (tachometer).
My Jalpa, for example, has a tachometer showing too high value at idle (about 20%) and too low value near redline (about 10%).

Laust
Laust, the basic approach in this project would work equally well for a tach (at least those like the 951 what are triggered by ignition ground pulses). As for linear v non-linear, the short answer is yes. The correction factor is done in the software, which can be written however needed. The Arduino measures the incoming pulses and then can create any output it wants. My speedometer was consistently 10% fast, so I just changed the pulse by 10% across the board. However, no reason at all the correction correction could not be more complicated. If you can reduce it to a single mathematical function across the range, you could have an elegant firmware solution. Regardless though, the Arduino is plenty fast enough for conditional correction factors such as:

if signal=idle speed, then make it 20% slower
if signal>idle & less < 1k, then make it 15% slower
...
if signal>5k, then speed it up 10%

That said, it sounds like your Jalpa tach is off in a linear way, sort of, such that something like this concept might do it:

RPM_FACTOR = ((CURRENT_RPM)/REDLINE_RPM)*30%
TACH_CORRECTION = 20% - RPM_FACTOR
MODIFIED_TACH = ORIGINAL_TACH - TACH_CORRECTION
Old 03-24-2013, 04:52 PM
  #27  
Tom M'Guinn

Rennlist Member
Thread Starter
 
Tom M'Guinn's Avatar
 
Join Date: Jan 2002
Location: Just CA Now :)
Posts: 12,567
Received 534 Likes on 287 Posts
Default

Originally Posted by gregeast
Yeah Tom, quit yer slackin' off!

DucK: There was some discussion on this on the gauge cluster bench testing thread
Tough crowd... I'll start a new thread on the fuel gauge and see what I can do. Its problems seem to be different in nature than the speedo and tach, but easy enough to solve with some effort...

Last edited by Tom M'Guinn; 03-24-2013 at 05:16 PM.
Old 03-24-2013, 04:55 PM
  #28  
gregeast
Addict
Rennlist Member

 
gregeast's Avatar
 
Join Date: Jan 2004
Location: Loveland, Colorado USA
Posts: 2,911
Received 41 Likes on 32 Posts
Default

Old 03-30-2013, 05:09 PM
  #29  
nofalls
Racer
 
nofalls's Avatar
 
Join Date: Mar 2009
Location: Tucson, AZ
Posts: 309
Likes: 0
Received 0 Likes on 0 Posts
Default

Tom,
this is the foot print I have for the Nano. Funny thing is the A0-A7 pins appear to be backwards from your schematic. Which is right?
Attached Images  
Old 03-30-2013, 05:18 PM
  #30  
Tom M'Guinn

Rennlist Member
Thread Starter
 
Tom M'Guinn's Avatar
 
Join Date: Jan 2002
Location: Just CA Now :)
Posts: 12,567
Received 534 Likes on 287 Posts
Default

Hmmm.... here is a picture from the Arduino.cc site, which matches the Nano's I have...
Attached Images  


Quick Reply: Speedometer Calibrator



All times are GMT -3. The time now is 06:29 PM.