C4 Tech/Performance L98 Corvette and LT1 Corvette Technical Info, Internal Engine, External Engine

electronics project: collect mph data

Thread Tools
 
Search this Thread
 
Old Jan 12, 2006 | 02:31 AM
  #1  
kevin-design's Avatar
kevin-design
Thread Starter
Advanced
 
Joined: Jul 2003
Posts: 59
Likes: 0
From: Charlotte nc
Default electronics project: collect mph data

Since c4's have that handy digital mph readout, and since I dabble in electroincs from time to time, I was considering building a little 0-60 circuit to document performance changes and/or driver improvement. It would be really simple, just a plug in module and a reset button. Reset at wherever you're stopped- timer begins when first non-zero reading begins, stops when 60mph (or other set mph) is reached. Lather, rinse, repeat. Really very easy. The only trick is that I need an accurate way to collect the MPH data. Any tips? or is something like this already readily available? I'm sure any racing computer would happily tell you that statistic and plenty more, but I'm going for simple and easy here (oh, and cheap. did I mention cheap?). Thanks for any help!

-kevin
Reply
Old Jan 12, 2006 | 02:49 AM
  #2  
CentralCoaster's Avatar
CentralCoaster
Team Owner
 
Joined: May 2002
Posts: 24,337
Likes: 25
From: San Diego , CA Double Yellow DirtBags 1985..Z51..6-speed
Default

Tap into the VSS signal. It delivers 4000 pulses per mile or something, 2 per revolution of the driveshaft I think. You'd have to convert the frequency over.

Or you could buy a Gtech on ebay for $60. It uses an accelerometer and integrates to find speed and distance. 0-60 is just a statistic invented by car magazines anyways... 1/4 mile ET/mph is more important.
Reply
Old Jan 12, 2006 | 03:25 AM
  #3  
Stingraynut's Avatar
Stingraynut
Burning Brakes
20 Year Member
 
Joined: Dec 2002
Posts: 1,199
Likes: 4
From: Cairns Australia
Default

That sounds v interesting kevin-design.

I have very little electronic knowhow but I've always wanted to have a device with preset cruise speeds.

I use the cruise a lot to help avoid speeding fines, it's so great to go past the speed camera and see the digital readout and know I'm safe.

As I pass from one speed limit to another, instead of continually resetting the cruise, I would just press a preset button and smoothly go up or down to the setting - if you get your device working, you may discover enough knowledge to make my idea work too.

What do you reckon?

S'nut
Reply
Old Jan 12, 2006 | 09:10 AM
  #4  
AGENT 86's Avatar
AGENT 86
Team Owner
20 Year Member
Active Streak: 30 Days
Active Streak: 60 Days
Active Streak: 90 Days
 
Joined: Jan 2003
Posts: 20,254
Likes: 221
From: Summerland B.C. Canada
Default

The moates software has a 1/4 mile program and it's free.
Note: I only tried this feature on a closed course.
Reply
Old Jan 12, 2006 | 09:43 AM
  #5  
JoBy's Avatar
JoBy
Melting Slicks
25 Year Member
Liked
Loved
Community Favorite
 
Joined: Mar 2001
Posts: 2,147
Likes: 302
From: Timra, Sweden
Default

I did something similar using the microphone input on a laptop.

This is what the recorded .wav file looks like. The red is the VSS signal and the blue is the RPM signal.



I wrote a program that analyze the recorded VSS signal and calculate some data.

This is a printout from the program.

======================================== ======================================
60ft Time: 2.34[s] Speed: 14.18[m/s] 51.05[km/h] 31.72[mph]
330ft Time: 5.94[s] Speed: 29.87[m/s] 107.55[km/h] 66.83[mph]
594ft Time: 8.34[s] Speed: 36.77[m/s] 132.39[km/h] 82.26[mph]
1/8 mile Time: 8.88[s] Speed: 37.99[m/s] 136.76[km/h] 84.98[mph]
1/8 mile Trap Speed (last 66ft) Speed: 37.42[m/s] 134.71[km/h] 83.70[mph]
1000ft Time: 11.42[s] Speed: 43.35[m/s] 156.04[km/h] 96.96[mph]
1254ft Time: 13.15[s] Speed: 46.51[m/s] 167.43[km/h] 104.04[mph]
1/4 mile Time: 13.58[s] Speed: 47.20[m/s] 169.92[km/h] 105.58[mph]
1/4 mile Trap Speed (last 66ft) Speed: 46.87[m/s] 168.74[km/h] 104.85[mph]
------------------------------------------------------------------------------
10m Time: 1.66[s] Speed: 10.35[m/s] 37.25[km/h] 23.15[mph]
50m Time: 4.04[s] Speed: 22.83[m/s] 82.18[km/h] 51.06[mph]
100m Time: 5.93[s] Speed: 29.83[m/s] 107.40[km/h] 66.73[mph]
500m Time: 15.59[s] Speed: 48.73[m/s] 175.44[km/h] 109.01[mph]
------------------------------------------------------------------------------
0-40[km/h] Time: 1.80[s] Distance: 11.50[m] 37.7[ft]
0-50[km/h] Time: 2.29[s] Distance: 17.60[m] 57.7[ft]
0-70[km/h] Time: 3.33[s] Distance: 35.00[m] 114.8[ft]
0-90[km/h] Time: 4.55[s] Distance: 62.40[m] 204.7[ft]
0-60[mph] Time: 5.06[s] Distance: 75.50[m] 247.7[ft]
0-100[km/h] Time: 5.34[s] Distance: 83.20[m] 273.0[ft]
0-130[km/h] Time: 8.06[s] Distance: 170.90[m] 560.7[ft]
0-150[km/h] Time: 10.59[s] Distance: 269.51[m] 884.3[ft]
0-100[mph] Time: 12.14[s] Distance: 336.31[m] 1103.4[ft]
------------------------------------------------------------------------------
40-70[km/h] Time: 1.52[s] Distance: 23.50[m] 77.1[ft]
40-100[km/h] Time: 3.54[s] Distance: 71.70[m] 235.2[ft]
40-130[km/h] Time: 6.26[s] Distance: 159.40[m] 523.0[ft]
40-150[km/h] Time: 8.79[s] Distance: 258.01[m] 846.5[ft]
70-100[km/h] Time: 2.01[s] Distance: 48.20[m] 158.1[ft]
100-150[km/h] Time: 5.25[s] Distance: 186.31[m] 611.3[ft]
------------------------------------------------------------------------------

Last edited by JoBy; Jan 12, 2006 at 09:47 AM.
Reply
Old Jan 12, 2006 | 11:02 AM
  #6  
kevin-design's Avatar
kevin-design
Thread Starter
Advanced
 
Joined: Jul 2003
Posts: 59
Likes: 0
From: Charlotte nc
Default

JoBy,
Nice Data! You're obviously more experienced than I with this!
Centralcoaster:
Thanks for the info- looks like I have my answer! 0-60 is a nice figure 'cause I can derive it pretty easily from only the speed data and there's no need to set up a 1/4 mile course/timer. I agree, the 1/4mi # is more relevant, but in this case its about simplicity and convenience.
A86:
That 'Moates' program- it gets all its input from an accelerometer? I'd think it would be more accurate to get it (in my application) from speed sensor on the car.
stingray:
yeah, it wouldn't be too tough to tap into the cruise control advance/decrease contacts and activate them accordingly. First things first though. If I ever make this work, and have spare time available, then I'll start thinking about other features.

Thanks all!
-kevin
Reply
Old Jan 12, 2006 | 03:17 PM
  #7  
AGENT 86's Avatar
AGENT 86
Team Owner
20 Year Member
Active Streak: 30 Days
Active Streak: 60 Days
Active Streak: 90 Days
 
Joined: Jan 2003
Posts: 20,254
Likes: 221
From: Summerland B.C. Canada
Default

Originally Posted by kevin-design
A86:
That 'Moates' program- it gets all its input from an accelerometer? I'd think it would be more accurate to get it (in my application) from speed sensor on the car.
I believe it is using the VSS and when compared to my track results was very damn close.
Reply
Old Jan 12, 2006 | 05:02 PM
  #8  
CentralCoaster's Avatar
CentralCoaster
Team Owner
 
Joined: May 2002
Posts: 24,337
Likes: 25
From: San Diego , CA Double Yellow DirtBags 1985..Z51..6-speed
Default

The VSS should be close. Assuming no tire spin, it's a direct link to road speed. Then you just have to find the factor for speed vs. pulses per minute.
Reply
Corvette Stories

The Best of Corvette for Corvette Enthusiasts

story-0

5 Reasons to Upgrade to an LS6-Powered Corvette; 5 Reasons to Stay LT2

 Michael S. Palmer
story-1

2027 Corvette vs The World: Every Model vs Closest Competitor

 Joe Kucinski
story-2

10 Most Common Corvette Problems of the Last 20 Years!

 Joe Kucinski
story-3

5 MOST and 5 LEAST Popular Corvette Model Years in History!

 Joe Kucinski
story-4

2027 Corvette Buyer's Guide: Everything You Need to Know!

 Joe Kucinski
story-5

10 Things C8 Corvette Owners Hate (But Won't Tell You)

 Joe Kucinski
story-6

10 Best Corvettes Coming to Barrett-Jackson Palm Beach 2026!

 Brett Foote
story-7

Every Corvette Grand Sport Explained! (C2, C4, C6, C7, & C8)

 Joe Kucinski
story-8

Grand Sport & Grand Sport X Launch Alongside All-New 535hp LS6 V8!

 Michael S. Palmer
story-9

5 Reasons Bad Drivers Crash & 5 Ways to Avoid a Costly Mistake!

 Joe Kucinski
Old Jan 12, 2006 | 08:30 PM
  #9  
VetNutJim's Avatar
VetNutJim
Safety Car
 
Joined: May 1999
Posts: 3,651
Likes: 5
From: Atlantis
Cruise-In I Veteran
Default

A standalone system using a simple PIC with the VSS signal for input that writes the data to it's internal EPROM would be VERY easy to build.
As many data points as desired could easily be collected.
The data could be downloaded to a PC and another simple program could display the data and do the horsepower calculations based on an accurate weight of the vehicle input.
PIC's are IDEAL for projects like this and MUCH cheaper that the BASIC Stamps and Atmel stuff. MUCH cheaper!!

But the G-Tech is already bult and doesn't cost that much.

I have built a circuit/system that uses the VSS for input that displays the speed of the vehicle, elapsed time and odometer data using a Microchip PIC 16F628. It also stores the maximum speed obtained during the run. Code is pretty much ANSI C and the hardware is about as simple as it gets. I'm using 7 Segment LED's at the moment but am going to switch over to a EL Backlight 4x20 LCD.
I built this for my old '73 Chevy TPI truck.
The next feature to be added will read the injector pulse width, MAP and TPS to determine the fuel consumption. From there I'll use the fuel gauge as an input to compute the mileage to empty and run a low fuel warning. Probably will throw insome code to use the same device as a tachometer.
Much more than that and the 16F877 is a better choice.(I want to add digital display of the water temp, oil pressure, etc)

A lot of functionality for an old vehicle.

Just an interesting project while I'm outta 'real' work and starving to death. LOL
Most of the jobs for folks like me have been 'outsourced' to Pakistan and India where they can hire software engineers for 50 cents an hour:

Don't know if there's a market for such a device as I've built but it might be popular over on ChevyTalk.Com.


BTW, the VSS outputs either 2000ppm or 4000ppm. PPM = Pulses Per Mile. There are magnetic VSS generators and some optical ones out there. Most of the PIC chips have a Schmitt Trigger so no input waveshapping is necessary. Pretty much straight in from the VSS through a resistive isolation network.


BTW, Datamaster has a 1/4 mile calculator built into it.
Does most of what the original poster wanted to do.

Last edited by VetNutJim; Jan 12, 2006 at 08:39 PM.
Reply
Old Jan 12, 2006 | 08:46 PM
  #10  
VetNutJim's Avatar
VetNutJim
Safety Car
 
Joined: May 1999
Posts: 3,651
Likes: 5
From: Atlantis
Cruise-In I Veteran
Default

Then you just have to find the factor for speed vs. pulses per minute.
Here's that information. I just copied these comments out of my code for anybody that wants to work with the VSS data....
It's pretty straightforward.


/*======================================= ========
Nov.25th,2005 J.Alford
This Data Is Useful For Building A Digital Speedometer
VSS Sensor Timing Data:

4000PPM VSS:
60mph @ 4000 pulses Per Hour = 240,000 Pulses Per Hour
30mph @ 4000 pulses Per Hour = 120,000 Pulses Per Hour

60mph = 240000/3600 = 66.66 Pulses Per Second or 66.66hz
30mph 120000/3600 = 33.33 Pulses Per Second or 33.33hz
-------------------------------------------------------

2000PPM VSS Calculations:
60mph @ 2000 Pulses Per Hour = 120,000 Pulses Per Hour
30mph @ 2000 Pulses Per Hour = 60,000 Pulses Per Hour

60mph 120000/3600 = 33.33 Pulses Per Second or 33.33hz
30mph 60000/3600 = 16.66 Pulses Per Second or 16.66hz

After 4000 Pulses, The Vehicle Has Traveled 1 Mile
1/10 of a Mile Is 400 Pulses
Every 400 Pulses, Update Mileage Accumalator By .1

======================================== ============*/

Last edited by VetNutJim; Jan 12, 2006 at 08:56 PM.
Reply
Old Jan 13, 2006 | 01:11 AM
  #11  
JoBy's Avatar
JoBy
Melting Slicks
25 Year Member
Liked
Loved
Community Favorite
 
Joined: Mar 2001
Posts: 2,147
Likes: 302
From: Timra, Sweden
Default

I first did this in 2001 on the Corvette VSS signal. I calibrated the software using a 'pulses per distance' calibration constant. I recorded a wav file from stand still over a known distance to stand still and had the program analyse the file and present the number of pulses in it. Now I have the calibration factor.

By recording the wav file using samples at 44.1 kHz the time axis is known.

In the program I set up two series of 'interesting' data points, one for distance and one for speed.

Each distance is a fixed number of pulses from the start.
Each speed is a fixed number of samples between two pulses.

When the program starts it first finds the first pulse in the file, and set that sample as time 0.0 and distance 0.0. Then it counts the samples, samples from previous pulse, and pulses. When a new pulse is detected a new data point is stored with the current time, distance and speed. By comparing current time and speed with the time and speed at the previous pulse acceleration is also calculated.

The data point is compared to the two lists of 'interesting' data points so see if a new distance or speed is reached.

Both data file with all pulses and a file with 'interesting' data points is stored to disk.

This is a example if a data file with all pulses:
http://www.joby.se/wavtrack/f2004-09...04-09-01_1.dat

This is the same data imported and graphed in excel:
http://www.joby.se/wavtrack/f2004-09...04-09-01_1.xls

This is the 'interesting ' data points:
http://www.joby.se/wavtrack/f2004-09...04-09-01_1.txt

This data was recorded on a friends IROC where we built a 'new' VSS sensor of from wheel to eliminate wheelspin problems with the data.

We used ten small magnets and a hall effect switch.
http://jobyteknik.homeip.net/fredrik...20_Hjulsensor/

We got about 4 times better resolution than the Corvette VSS signal.
Reply
Old Jan 14, 2006 | 11:52 PM
  #12  
VetNutJim's Avatar
VetNutJim
Safety Car
 
Joined: May 1999
Posts: 3,651
Likes: 5
From: Atlantis
Cruise-In I Veteran
Default

We got about 4 times better resolution than the Corvette VSS signal.
Hi JoBy,

There's not enough pulses/sec in the VSS signal to provide the resolution that we would like. It's pretty rough as you guys found.
I multiplied eash pulse by 8 in the PIC ISR (Interupt Service Routine) to get better 'psuedo' resolution.
ECM datastream offers much greater possibilities but with this device there's no need for a laptop in the vehicle.
My plan is to package and install it permanently in the vehicle.

I may use the datastream later as input for additional functions.
The fuel calculations are , I believe, made in the CCM which I don't have on my truck. So thought I'd add those calcs. later. Will probably use a comparator to run a low fuel warning system directly off the fuel gauge.

All this stuff can be bought but I've got more time than money and do a lot of this stuff just because I can.
Very similar to your projects, Joby. You carry out some very interesting projects.
Reply
Old Jan 15, 2006 | 06:41 AM
  #13  
JoBy's Avatar
JoBy
Melting Slicks
25 Year Member
Liked
Loved
Community Favorite
 
Joined: Mar 2001
Posts: 2,147
Likes: 302
From: Timra, Sweden
Default

Originally Posted by VetNutJim
Hi JoBy,

There's not enough pulses/sec in the VSS signal to provide the resolution that we would like. It's pretty rough as you guys found.
I multiplied eash pulse by 8 in the PIC ISR (Interupt Service Routine) to get better 'psuedo' resolution.
ECM datastream offers much greater possibilities but with this device there's no need for a laptop in the vehicle.
My plan is to package and install it permanently in the vehicle.

I may use the datastream later as input for additional functions.
The fuel calculations are , I believe, made in the CCM which I don't have on my truck. So thought I'd add those calcs. later. Will probably use a comparator to run a low fuel warning system directly off the fuel gauge.

All this stuff can be bought but I've got more time than money and do a lot of this stuff just because I can.
Very similar to your projects, Joby. You carry out some very interesting projects.


Once the car is rolling the resolution is good enough. In my program I used a rolling average to smooth the data along the time axis. It is not difficult to calculate any distance between the pulses by interpolation. On the Corvette the pulse distance was a bit over a foot. On Fredriks Camaro it was about 4 inches.

The only real problem is to measure the start and there are two resons. The first is wheelspin because that will give you a false distance. We elimited that problem by using the front wheel on the Camaro. The second problem is that you don't know the time and distance from the actual starting point to where the first pulse is detected. It is like not knowing if you do a deep or shallow stage at the track. This is where you really benefit from higher pulse relolution.

On the 1984-1989 Corvete the MPG data is calculated by the dash computer from data provided from the ECM om the ALDL data line. The data that the ECM sends out are injector size, a distance counter, an injector time counter, and a few more data. Both counters count from 0 to 255 then it rolls over to 0 again.

Example where both speed and fuel comsumption is constant.
Between each sample the distanse has increased by 59 units and the fuel used has increased by 49 units.

Distance Fuel
130 38
189 87
248 136
51 185
110 234
169 27
228 76

The resolution is much better on the VSS signal than the data from the ECM.

Last edited by JoBy; Jan 15, 2006 at 06:44 AM.
Reply

Get notified of new replies

To electronics project: collect mph data





All times are GMT -4. The time now is 08:25 PM.

story-0
5 Reasons to Upgrade to an LS6-Powered Corvette; 5 Reasons to Stay LT2

Slideshow: Should you buy a 2020-2026 Corvette or wait for 2027?

By Michael S. Palmer | 2026-04-22 10:08:58


VIEW MORE
story-1
2027 Corvette vs The World: Every Model vs Closest Competitor

Slideshow: 2027 Corvette lineup vs the world.

By Joe Kucinski | 2026-04-20 17:58:41


VIEW MORE
story-2
10 Most Common Corvette Problems of the Last 20 Years!

Slideshow: 10 major Corvette problems from the last 20 years.

By Joe Kucinski | 2026-04-14 16:37:05


VIEW MORE
story-3
5 MOST and 5 LEAST Popular Corvette Model Years in History!

Slideshow: 5 most and least popular Corvette model years.

By Joe Kucinski | 2026-04-08 13:25:01


VIEW MORE
story-4
2027 Corvette Buyer's Guide: Everything You Need to Know!

Slideshow: 2027 Corvette buyer's guide

By Joe Kucinski | 2026-04-17 16:41:08


VIEW MORE
story-5
10 Things C8 Corvette Owners Hate (But Won't Tell You)

Slideshow: 10 things C8 Corvette owners hate, but won't tell you.

By Joe Kucinski | 2026-04-01 18:36:07


VIEW MORE
story-6
10 Best Corvettes Coming to Barrett-Jackson Palm Beach 2026!

Slideshow: Should you add one of these incredible Corvettes to your garage?

By Brett Foote | 2026-04-01 18:14:05


VIEW MORE
story-7
Every Corvette Grand Sport Explained! (C2, C4, C6, C7, & C8)

Slideshow: Every Corvette Grand Sport explained

By Joe Kucinski | 2026-03-26 07:13:44


VIEW MORE
story-8
Grand Sport & Grand Sport X Launch Alongside All-New 535hp LS6 V8!

Slideshow: Breaking down the 2027 Grand Sport, Grand Sport X, Stingray, and LS6 V8.

By Michael S. Palmer | 2026-03-26 13:48:45


VIEW MORE
story-9
5 Reasons Bad Drivers Crash & 5 Ways to Avoid a Costly Mistake!

Slideshow: 5 reasons bad drivers crash sports cars & 5 ways to avoid a costly shame!

By Joe Kucinski | 2026-03-25 16:32:55


VIEW MORE