The speed sensor outputs a pulse every 1.5' which provides adequate resolution for doing all kinds of slick things related to distance/time.)
By my calculations, a pulse (four pulses per speedo rev, right?) should come every 1.2675 feet with 810 rev/mile tires (average mfr. spec) and a 2G speedo gear.
Did you calculate tire circumference from diameter or did you roll the car down the street to take your measurement? I'd like to measure actual rolling average, but I haven't yet.
Assuming 810 rev/mile tires (6.5185ft/rev) and a speedo gear that turns 1.2857 times per front diff revolution (2G speedo), you should see a speedo pulse every 1.2675 feet, NOT every 1.5'; that would be some pretty significant error -- like 18% error!
6.5185 ft/rev multiplied by the 2G speedometer gear ratio (28/36) becomes 5.070 feet/sender_rev.
Divide 5.070 feet/sender_rev by 4 pulses/sender_rev.
End up with 1.2675 feet/pulse
With the same tires and a 1G speedo gear (27/36), one pulse should come every 1.2222 feet.
Can anyone find a problem with my calculations? That should land you the most accurate speedometer information possible. Perhaps having a text box to input the tire rev/mile info would be a nice feature.
-Chris
__________________
The Pansy Patrol - a 3000GT/Stealth car blog with how-tos Pearl Yellow 1994 R/T TT w/84k - FOR SALE! new 4-Bolt factory short block, DR StgII heads, Titan TD05 headers, 14B turbos w/ ported 7cm^2 housings, 3" minimum-bend catless exhaust, SCE oil pan, RPSII clutch, Fidenza flywheel, OZ F1 Plus 17x9.5" wheels, Kumho Ecsta MX 245/45 tires, Drweldin DSM SMICs, 3SX engine mounts (Maximal solid front), GReddy 60mm P/H/W boost, Carbotech Panther Plus & Bobcat pads w/ slotted/drilled rotors, KSport GT-Pro coilovers, Maximal rear camber arms, SCE balljoints, ABS delete w/ cockpit-mounted Wilwood proportioning valve, AC delete, EGR/evap/dashpot delete, cruise/vacuum-tank delete, '95 Lexan headlights, McCulloch 4300K HIDs, GReddy Type-S BOV, solid shift bushings; Misc Parts: Walbro341, 20# fixed-back seats, Accelerated Moto catch can
By my calculations, a pulse (four pulses per speedo rev, right?) should come every 1.2675 feet with 810 rev/mile tires (average mfr. spec) and a 2G speedo gear.
Did you calculate tire circumference from diameter or did you roll the car down the street to take your measurement? I'd like to measure actual rolling average, but I haven't yet.
Assuming 810 rev/mile tires (6.5185ft/rev) and a speedo gear that turns 1.2857 times per front diff revolution (2G speedo), you should see a speedo pulse every 1.2675 feet, NOT every 1.5'; that would be some pretty significant error -- like 18% error!
6.5185 ft/rev multiplied by the 2G speedometer gear ratio (28/36) becomes 5.070 feet/sender_rev.
Divide 5.070 feet/sender_rev by 4 pulses/sender_rev.
End up with 1.2675 feet/pulse
With the same tires and a 1G speedo gear (27/36), one pulse should come every 1.2222 feet.
Can anyone find a problem with my calculations? That should land you the most accurate speedometer information possible. Perhaps having a text box to input the tire rev/mile info would be a nice feature.
-Chris
1.5' was an approximation for sake of friendly discussion, not a scaling constant from the code.
UI will provide speedo gear + tire data input and/or measured mile which is by far the most accurate. (1/16" tire wear could create a 300' error - the length of a football field. Also not sure how much tire pressure affects the outdide diameter of the tire but the measured mile would null out this error as well.)
How about helping out with some calculations for acceleration / HP and drag calculations?
The interface processes a speed interrupt every 1.5' (approximately) and I have uS timing resolution so we have the option of very accurate/high resolution HP/acceleration numbers.
Clint
__________________
1991 Stealth RT/TT - Firestorm Red - 193K Miles / Original Owner
Maint: Castrol 10W40 / Mitsu Filter / Rislone
Replaced: 2X clutch / 3X brakes / 2X front rotors / 2X ABS HU / 1X NGK Plugs / 1X Ball joints / 2X Antenna mast / 1X Active exhaust cable / 1X Windshield / 1X Fuel FIlter / 1X Struts / 1X rear rotors / 1X Front Head / VSS / 1X rear wheel bearings / 1X Transfer case (warranty) / 1x Tie rod end (drivers side)
Overhauled: Starter, IAC, BISS, CV Boots
Upgrade: SilverStar Headlights / ebay "Xenon" Fog Bulbs (no more yellow!)
A/F Gauge / MAP - Electronic Boost Logging / MMCd Data Logger
Pending Projects: Steering Rack
This is sounding very interesting - Theoreticly you could the graph hp along with everything else. Awsome. I would think You would need to take into account the weight of the car in hp calculations then. In its basic form 1 hp = 550 ft*lbs/sec. Sorry though my physics is a little rusty.
sam
__________________
92 Stealth R/T TT - 13t's Installed. note:Is the machining right? - boosting to 15psi so far. Do I do this for others? No. robbeck is your man.... We know his work .
This is sounding very interesting - Theoreticly you could the graph hp along with everything else. Awsome. I would think You would need to take into account the weight of the car in hp calculations then. In its basic form 1 hp = 550 ft*lbs/sec. Sorry though my physics is a little rusty.
sam
Correct. Pretty sure these calcs are fresh in Multiades mind. Otherwise I will need to dig out an old physics book to make sure I get the formulas right for accelaration and HP calculations.
Note: In additon to gross vehicle weight, we may also want to compensate for drag by measuring the time it takes for the car to slow from 60 to 30 MPH. Pretty sure GTECH includes this as part of their setup/calibration.
here is a far out idea. Our ecs struts some how adjust for body role and stuff don't they? Is the esc computer reading some sort of feed back from the struts? Think that could be used for a weight measurment - feedback from all four struts for a on the fly weight calculation? For that heavy passenger
I know I am probably dreaming but that would be neet.
sam
Quote:
Originally Posted by cbatters
Correct. Pretty sure these calcs are fresh in Multiades mind. Otherwise I will need to dig out an old physics book to make sure I get the formulas right for accelaration and HP calculations.
Note: In additon to gross vehicle weight, we may also want to compensate for drag by measuring the time it takes for the car to slow from 60 to 30 MPH. Pretty sure GTECH includes this as part of their setup/calibration.
here is a far out idea. Our ecs struts some how adjust for body role and stuff don't they? Is the esc computer reading some sort of feed back from the struts? Think that could be used for a weight measurment - feedback from all four struts for a on the fly weight calculation? For that heavy passenger
I know I am probably dreaming but that would be neet.
sam
No such magic. ECS has no idea how much the car weighs.
Car weight is well documented and unless you lie about the weight you see on your bathroom scale, the HP calcs should be pretty close.
Found my nemesis. Subtle interaction between the vehicle speed and ECU interrupt service routines. Had to build some timing circuits to make the problem repeatable enough to isolate the code sequence. (Could not see any problems using debugger / simulation.) It took a week to find but only one line of code to solve.
Everything in the expansion interface is interrupt driven which is why I am able to simultaneously communicate with with Palm @ 56K baud, extract data from the ECU @ 1953 baud, update vehicle speed 4 times per tire revolution and scan each one of the analog inputs more than 500 times per second. Pretty slick piece of code.
Some 3SI Firsts:
1. First time a Sony Clie SJ33 has EVER logged 1G car data (Expansion communication interface works with ANY Palm compatible device. Could also be used with Pocketlogger / Mirage with minor changes to support higher baud rates.)
2. First time logging/displaying new sensors along with existing ECU data
3. First digital speedometer display using Large Digit mode - you could even set an alarm at 55 MPH to warn that you are speeding - NOT!
4. First logging of fuel pressure - (Unfortunately I forgot to enable the signal for this log - I was so busy screwing around with the MPH signal.)
After lunch I will post another 3SI FIRST - Real time MPG calculation based on INJD (injector duty cycle) and MPH speed sensor. (Tonight I will run some wires so I can begin logging fuel pump voltage.)
Time to get out the bits/bytes/interrupts of the expansion code and make a few changes to the MMCd code.
In the next day or two I will create a new thread to gage overall interest in the expansion interface. Based on the level of interest I will get a sense of how many PCB / parts to purchase for the first build.
holy shnikes...this is a big deal to say the least. Great work!
__________________
2004 WRX
IHI VF23 turbo
JDM STi pink injectors
TurboXS UTEC
Injen Front Mount Intercooler
Injen short pipe intake
TurboXS turbo-back exhaust (4" downpipe, high flow cat, 3" piping, standard TurboXS muffler)
GT-Spec header/integrated velocity chamber uppipe
STi short throw shifter
Kartboy shifter bushing
STi engine pitch mount
BC Racing coilovers (aggressive street alignment)
Rota Grid wheels
Falken Azenis RT-615 tires
Hotchkiss front and rear tubular
Front/rear sway bars
Perrin front and rear end links
Urethan steering rack bushings
Rear subframe outrigger bushings
Brake speed bleeders
The active aero "knows" what speed the car is going and there are G-sensors that you might be able to utilize for lateral acceleration calcs. Just a few random thoughts I thought I would add. Also, my AVCr boost controller tracks speed very well using a stock speed sensor tap from the ECU.
The AutoGuide.com network consists of the largest network of enthusiast-owned enthusiast-operated automotive communities.
AutoGuide.com provides the latest car reviews, auto show coverage, new car prices, and automotive news. The AutoGuide network operates more than 100 automotive forums where our users consult peers for shopping information and advice, and share opinions as a community.