Notices
Pre-Power Stroke Diesel (7.3L IDI & 6.9L) Diesel Topics Only

Complete/guide: Accurate Custom Digital Tach.

Thread Tools
 
Search this Thread
 
Old May 28, 2013 | 10:44 PM
  #1  
Macrobb's Avatar
Macrobb
Thread Starter
|
Postmaster
Joined: Dec 2011
Posts: 3,860
Likes: 7
Complete/guide: Accurate Custom Digital Tach.

About a year ago, I got frustrated with my tachometer going out when it got wet, especially at low speeds, so I replaced it. This solved the problem of it failing, but I realized it wasn't accurate - compared to where the gearing and MPH said I should be, the tach was off.
I looked around for a tach. Since our diesels have no computer or coil, standard (cheap) tachometers won't work, and I had a hard time finding one which would work at all, for any price.
I decided "DIY time!"

Since that time, I've put a very decent solution together. I actually had it working a good 8 months ago, but there were always glitches of one sort or another; I finally got the time to properly wire, mount and attach everything.
Take a look!

First off, stopped:
Name:  EneIFCql.jpg
Views: 258
Size:  45.5 KB

Running at different speeds. Note that I've got total revs run(since power on of arduino), RPM, and then calculated speeds(note: gear 6 = GearVendor overdrive + s5-42 in overdrive) based on RPM and gear ratio. Using a nominal value for tire size, I ended up with it reading about 1.75MPH fast at 60MPH, compared to the GPS in my phone(which is still better than the stock speedometer which is like 2MPH slow). I've since adjusted the calculation-factor to drop that to perhaps .5MPH off.
Name:  jZEPgAMl.jpg
Views: 263
Size:  31.1 KB
Name:  gkEqMyfl.jpg
Views: 251
Size:  30.6 KB

Here's the guts: I installed a plate under where the middle seat used to be(bucket seat configuration), and installed a cover over it which slides back(black at the bottom):
Name:  zmh9D4Gl.jpg
Views: 254
Size:  61.0 KB

Top of my custom board(details below):
Name:  uQ1N3TJl.jpg
Views: 288
Size:  57.8 KB
Name:  HrLKVROl.jpg
Views: 251
Size:  45.6 KB
Back side of custom board:
Name:  I54CAQLl.jpg
Views: 251
Size:  62.9 KB
Arduino below:
Name:  ugZDB54l.jpg
Views: 248
Size:  55.4 KB


Now, Once I got the thing together for the first time, I was impressed with how accurate it was - it seemed right, but I couldn't test it.
A few weeks ago, though, I got my Fox Valley luminocity probe setup, and I compared the output of this device with a "proper" digital tach - a Snap On timing light with tach, hooked up to the luminocity probe. I got within one or two RPM at the speeds I tested, and consider that "good enough" :P


How it works:
-------------------------
Now, first off, our tachometer sensor is a http://en.wikipedia.org/wiki/Variable_reluctance_sensor. This is basically a coil of wire and a magnet which is positioned on top of the 106 tooth injection pump gear, which turns once per two revolutions of the engine. Whenever a tooth goes past, you gear one positive and one negative pulse(a full sine wave) out of the sensor. The time between pulses is inversely proportional to the RPM.

In order to make a tachometer, I needed three things: One, something to read the (very weak) pulses of the sensor and translate them into something usable, a computer to take that signal and do some calculations, and a monitor to display it.

For these three components I used:
VRS amplifier: lm1815 (<$5)
Computer: Arduino Uno (~$15-20)
Display: http://www.ebay.com/itm/20X4-LCD-2004-LCD-2004A-LCD-LCD-2004-LCD-Display-Module-5V-yellow-green-screen-/140852727363?pt=LH_DefaultDomain_0&hash=item20cb7a0e43 ($10 or so; I had one handy spare)
To keep things neat, I used a http://www.ebay.com/itm/ARTduino-Proto-Prototype-Shield-DIY-KIT-for-Arduino-UNO-R3-Mega-1280-2560-328P-/181119016638?pt=LH_DefaultDomain_0&hash=item2a2b88debe (Is not a standard Arduino-endorsed design)
and http://www.ebay.com/itm/5M-16-FT-Rainbow-flat-Ribbon-stranded-10-Way-cable-10-pin-conductor-300v-/160993311415?pt=LH_DefaultDomain_0&hash=item257bf2fab7 so I could separate the Arduino from the screen.

I don't have the exact schematics for you guys now, but it's fairly easy to deduce - the lm1815 chip is off to the side, wired up on it's own entirely, with one wire(yellow jumper) connecting it to the arduino. LCD is wired up in a 4-bit configuration, pin numbers are in my code.


Here's my code:
http://pastebin.com/wjgjPxYC

The only confusing bit about the whole operation is the constants involved. Converting from microseconds per pulse to RPM is a string of calculations that got boiled down to the following: rpm= (60*10^6)/diff, diff being the time for 53 teeth to go by.
(note, as I was typing this out, I found an error in my math. I had that factor as 59904575, which is 1130275 * 53, 1130275 being /rounded/ 60/53*10^6, or the conversion from one tooth to RPM - multiplied by 53, I get the 599 number, which is off by rounding margin, or 3 RPM at 2K)

The other bit is converting the RPM to MPH - it's basically a matter of taking your final drive ratio, convert RPM to RevsPerHour, and use the circumference of your tire.


Cool or what, guys?

Any input? Questions? Comments?
 

Last edited by Macrobb; May 28, 2013 at 10:44 PM. Reason: Better code link
Reply
Old May 28, 2013 | 10:52 PM
  #2  
hairyboxnoogle's Avatar
hairyboxnoogle
Lead Driver
Joined: Apr 2008
Posts: 6,942
Likes: 13
wow......





The stuff i could do if i knew what you know.... mind blown
 
Reply
Old May 28, 2013 | 11:44 PM
  #3  
monte97z's Avatar
monte97z
Senior User
Joined: Jun 2010
Posts: 291
Likes: 0
From: Long Island, NY
That's amazing
 
Reply
Old May 28, 2013 | 11:48 PM
  #4  
Aune163rd's Avatar
Aune163rd
Logistics Pro
15 Year Member
Joined: Sep 2010
Posts: 4,411
Likes: 4
From: Victor, MT
Club FTE Silver Member

That is so awesome"!!! Reps to you sir!!
 
Reply
Old May 29, 2013 | 01:02 AM
  #5  
genscripter's Avatar
genscripter
Cargo Master
10 Year Member
Photogenic
Liked
Loved
Joined: Oct 2012
Posts: 3,072
Likes: 48
From: California
That is one of the coolest things I've seen on this forum.
 
Reply
Old May 29, 2013 | 07:07 AM
  #6  
RacinNdrummin's Avatar
RacinNdrummin
Postmaster
20 Year Member
Photogenic
Photoriffic
Shutterbug
Joined: Dec 2004
Posts: 2,941
Likes: 30
From: Maple Valley, WA
Haha, that is some good stuff!
 
Reply
Old May 29, 2013 | 08:50 AM
  #7  
Chevy_Eater's Avatar
Chevy_Eater
Logistics Pro
20 Year Member
Photogenic
Liked
Loved
Joined: Apr 2005
Posts: 4,221
Likes: 17
Wow is right!!!
 
Reply
Old May 29, 2013 | 02:18 PM
  #8  
bobracing's Avatar
bobracing
Junior User
Joined: Apr 2004
Posts: 51
Likes: 0
From: Washington
After a little talk with the "Electrical Gurus", that little card can do just about anything that gives a 0-5V signal or boosted and converted signal as above.

Just think actuate sensors on oil temp, oil pressure, coolant temp, boost, EGT left/right/after turbo, EGT warning light, RPM, air in/after turbo/after intercooler, probably even throttle % if you have the auto TPS.
With 13 inputs you'd running out of thing to put sensors in.
 
Reply
FTE Stories

Ford Trucks for Ford Truck Enthusiasts

story-0

10 Things Every Truck Owner NEEDS (2026 Edition)

 Michael S. Palmer
story-1

Rezvani's Latest Post-Apocalytic Monster Is a Ford F-150 Raptor Underneath

 Verdad Gallardo
story-2

Top 10 Most Expensive Ford Trucks Ever Sold on Bring a Trailer

 Joe Kucinski
story-3

2027 Ford Super Duty Buyer's Guide (Every Model, Engine, & Package)

 Brett Foote
story-4

Top 10 Ford Truck Tragedies

 Joe Kucinski
story-5

AEV FXL Super Duty - the Super Duty Raptor Ford Doesn't Make

 Brett Foote
story-6

Lobo Vs Lobo: Proof the F-150 Lobo Should Be Even Lower!

 Michael S. Palmer
story-7

Ford's 2001 Explorer Sportsman Concept Looks For a New Home

 Verdad Gallardo
story-8

10 Best Ford Truck Engines We Miss the Most!

 Joe Kucinski
story-9

2026 Shelby F-150 Off-Road: Better Than a Raptor R?

 Brett Foote
Old May 29, 2013 | 04:30 PM
  #9  
swooshcmk's Avatar
swooshcmk
Elder User
Joined: Apr 2002
Posts: 950
Likes: 2
From: West Bend
Nice! I picked up an arduino a few weeks ago that I plan to utilize in my truck as well.... I may have to pick your brain later
 
Reply
Old May 29, 2013 | 07:08 PM
  #10  
Macrobb's Avatar
Macrobb
Thread Starter
|
Postmaster
Joined: Dec 2011
Posts: 3,860
Likes: 7
Originally Posted by bobracing
After a little talk with the "Electrical Gurus", that little card can do just about anything that gives a 0-5V signal or boosted and converted signal as above.

Just think actuate sensors on oil temp, oil pressure, coolant temp, boost, EGT left/right/after turbo, EGT warning light, RPM, air in/after turbo/after intercooler, probably even throttle % if you have the auto TPS.
With 13 inputs you'd running out of thing to put sensors in.
Yup! And if you need more, it can talk on a variety of bus protocols(i2c for instance), and you can buy standalone i2c sensor chips; with that, you can have as many devices as you want(100+).

The only problem I have thus far is that my next project is going to involve EGT, and I can't find a converter chip which will go over about 1000C, and we need like 1300C for an upper limit.

Things like oil pressure/water temperature are straight resistance sensors, easy to setup and read for an Arduino, however the cheap ones aren't all that accurate.

Throttle position... Hm, I wonder if we'd een need a TPS - Looking at the schematics, the cruise control has a feedback variable resistor which /might/ just read throttle position, but I haven't looked into it enough to be sure.
 
Reply
Old May 29, 2013 | 07:45 PM
  #11  
hairyboxnoogle's Avatar
hairyboxnoogle
Lead Driver
Joined: Apr 2008
Posts: 6,942
Likes: 13
1300F would be enough i would think 1300C is well, you probably know better than me, but way hotter than exhaust needs to be.
 
Reply
Old May 29, 2013 | 10:20 PM
  #12  
Macrobb's Avatar
Macrobb
Thread Starter
|
Postmaster
Joined: Dec 2011
Posts: 3,860
Likes: 7
Just looked that up. Hm, that makes things quite a bit easier. - only have to worry about 800C/1300F then.
 
Reply
Old May 30, 2013 | 03:40 AM
  #13  
ifrythings's Avatar
ifrythings
Fleet Mechanic
10 Year Member
Photogenic
Photoriffic
Shutterbug
Joined: Aug 2011
Posts: 1,571
Likes: 258
A K type thermo coupler should be well within range and fairly easy to find. Also, you could easily get your setup to "figure" out what gear your in by using the tone ring in the diff and engine rpm,
 
Reply
Old May 30, 2013 | 12:40 PM
  #14  
Gettysburg150's Avatar
Gettysburg150
Elder User
Joined: Mar 2013
Posts: 691
Likes: 2
That is amazing, I wish I understood what half it means lol

All I got is this screen tells you accurately what happens, either way, good job!
 
Reply
Old May 30, 2013 | 07:30 PM
  #15  
Macrobb's Avatar
Macrobb
Thread Starter
|
Postmaster
Joined: Dec 2011
Posts: 3,860
Likes: 7
Originally Posted by ifrythings
A K type thermo coupler should be well within range and fairly easy to find. Also, you could easily get your setup to "figure" out what gear your in by using the tone ring in the diff and engine rpm,
I've got one, and it works a treat, but I just used it with an off-the-shelf digital readout; haven't interfaced one to an Arduino yet.
My plan, if I do do this, is to interface 8 or 9 sensors - one in the exhaust manifold in front of each cylinder, one in the intake, and perhaps one before/after a turbo if I ever get one.
With an arduino, some op-amps(which is apparently the way to interface these 'properly'), and a multiplexer or 8-channel spi DAC(or two), I could interface /many/ sensors, then pull the temps in and display low/high/average temps etc.
 
Reply



All times are GMT -5. The time now is 08:40 AM.

story-0
10 Things Every Truck Owner NEEDS (2026 Edition)

Slideshow: the best gifts for dads & grads

By Michael S. Palmer | 2026-06-02 21:45:57


VIEW MORE
story-1
Rezvani's Latest Post-Apocalytic Monster Is a Ford F-150 Raptor Underneath

Slideshow: Called the Fortress, the 850-horsepower pickup combines Raptor underpinnings with military-inspired features, survival equipment, and a starting price of $285,000.

By Verdad Gallardo | 2026-05-30 18:33:59


VIEW MORE
story-2
Top 10 Most Expensive Ford Trucks Ever Sold on Bring a Trailer

Slideshow: 10 most expensive Ford trucks ever sold on Bring a Trailer.

By Joe Kucinski | 2026-05-27 16:24:34


VIEW MORE
story-3
2027 Ford Super Duty Buyer's Guide (Every Model, Engine, & Package)

Here's everything that has changed for the latest model year.

By Brett Foote | 2026-05-27 16:17:28


VIEW MORE
story-4
Top 10 Ford Truck Tragedies

Slideshow: Top 10 Ford truck tragedies.

By Joe Kucinski | 2026-05-18 19:34:33


VIEW MORE
story-5
AEV FXL Super Duty - the Super Duty Raptor Ford Doesn't Make

And it might be even better than that.

By Brett Foote | 2026-05-18 19:26:42


VIEW MORE
story-6
Lobo Vs Lobo: Proof the F-150 Lobo Should Be Even Lower!

Slideshow: Does lowering an F-150 Lobo RUIN the ride quality?

By Michael S. Palmer | 2026-05-18 19:20:37


VIEW MORE
story-7
Ford's 2001 Explorer Sportsman Concept Looks For a New Home

Slideshow: Ford's bizarre fishing-themed Explorer concept has resurfaced after spending decades largely forgotten.

By Verdad Gallardo | 2026-05-12 18:07:46


VIEW MORE
story-8
10 Best Ford Truck Engines We Miss the Most!

Slideshow: The 10 best Ford truck engines we miss the most.

By Joe Kucinski | 2026-05-12 13:09:47


VIEW MORE
story-9
2026 Shelby F-150 Off-Road: Better Than a Raptor R?

Slideshow: first look at the 810 hp 2026 Shelby F-150 Off-Road!

By Brett Foote | 2026-05-12 12:50:07


VIEW MORE