DIY PROM Do It Yourself PROM chip burning help. No PROM begging. No PROMs for sale. No commercial exchange. Not a referral service.

Q for Craig Moates about modifying his software...

Thread Tools
 
Search this Thread
 
Old Aug 29, 2001 | 11:33 PM
  #1  
james_fearn's Avatar
Thread Starter
Member
 
Joined: Jul 2000
Posts: 402
Likes: 0
From: SoCal
Q for Craig Moates about modifying his software...

I am not a code monkey but I'm not intimidated by code. The question I have has to do with altering the code for the throttle % value. I want it to be a little more accurate. Currently with my TPS at .54 volts your software displays ~12% throttle and at full throttle it displays ~90% throttle. You told me a few months ago it was because the voltage range is 0v to 4.5v and I beleive that corresponds to 0 to 256 bits. I think this is the line of code that computes the throttle %:

'*-=-= Set descriptions, formats, and do calculations for summary page =-=-*'
SummaryMeas:

IF ecmtype = 1 THEN
meas(64) = meas(11) * 25!
meas(65) = meas(25) * 12.5
meas(66) = meas(10) / 2.56 <== this line right here
meas(67) = meas(14) + meas(15) / 256!


since .54v = 31 bits and 4.0v = 228 bits, I want 31 bits to equate to 0% throttle and 4.0v to equate to 100% throttle, I came up with this code:


meas(66) = ((meas(10) - 31) * 1.3) / 2.56

I used the basic equation that people use to convert *F to *C, which is a simple equation to convert between any two scales.

I don't know too much about computing time and I have never compiled in basic, much less written in it. So will the scan program choke with the added calculating?


James


------------------
1985 Z-28, 350 TPI, T-Tops, edelbrock 6085 heads, ZZ4 cam, accel base/runners & 24 lb/hr inj., ported plenum, everything gasket matched, crane AFPR, SLP 1 5/8 headers, single 3" flowmaster catback, 3" Catco cat, modified tranny, 165 ECM & ARAP code, MSD 6AL/wires, edelbrock STB, Spohn SFC/LCA/PR, GW "wonderbar"
Reply
Old Aug 30, 2001 | 02:15 AM
  #2  
james_fearn's Avatar
Thread Starter
Member
 
Joined: Jul 2000
Posts: 402
Likes: 0
From: SoCal
oops, the voltage scale from 0v to 5v.

https://www.thirdgen.org/messgboard/...ML/001564.html

so the code will have to change accordingly. I should probably lower the base voltage on the TPS to an assumed .53v to make sure there isn't a negative throttle. I don't mind throttle above 100% because at least I know the ECM beleives I'm at WOT, right?

At what TPS voltage does the ECM go into WOT? is it 4.0v?

James

------------------
1985 Z-28, 350 TPI, T-Tops, edelbrock 6085 heads, ZZ4 cam, accel base/runners & 24 lb/hr inj., ported plenum, everything gasket matched, crane AFPR, SLP 1 5/8 headers, single 3" flowmaster catback, 3" Catco cat, modified tranny, 165 ECM & ARAP code, MSD 6AL/wires, edelbrock STB, Spohn SFC/LCA/PR, GW "wonderbar"
Reply
Old Aug 30, 2001 | 02:00 PM
  #3  
james_fearn's Avatar
Thread Starter
Member
 
Joined: Jul 2000
Posts: 402
Likes: 0
From: SoCal
does this software need to be compiled while 'hooked up' to the vehicle or can I just start up in DOS and compile it? Although to compile it looks simple enough, I can't seem to get it to compile right. The page where the software links to the ECM is oscillating letters and the like. The first page that says 'craig' displays correctly and also pressing 'q' to exit works. Strange.

James
Reply
Old Aug 30, 2001 | 08:01 PM
  #4  
james_fearn's Avatar
Thread Starter
Member
 
Joined: Jul 2000
Posts: 402
Likes: 0
From: SoCal
here is theline of code I ended up using because the voltage is scaled fom 0v to 5v:

meas(66) = (meas(10) - 27) * 144 / 256

I also was able to compile it as stated in the readme. I unzipped everything again and it worked. I guess I messed up a n important file when I was messing around.

It works good. I would just like to know what the ECM sees as 0% throttle and 100% throttle.

James
Reply
Old Aug 30, 2001 | 08:39 PM
  #5  
Sarkee's Avatar
Member
 
Joined: Jul 2001
Posts: 198
Likes: 0
From: Western NY area, USA
<font face="Verdana, Arial" size="2">Originally posted by james_fearn:
Currently with my TPS at .54 volts your software displays ~12% throttle and at full throttle it displays ~90% throttle.</font>
That's odd...My 6 or 7 runs I just did also show no higher than 90% throttle, but I'm sure I had it to the floor...

???

Reply
Old Aug 30, 2001 | 10:15 PM
  #6  
james_fearn's Avatar
Thread Starter
Member
 
Joined: Jul 2000
Posts: 402
Likes: 0
From: SoCal
I have recompiled the program several times by now. I didn't want 1% throttle whan I was idling. I didn't need 26.3% throttle when 26% is good. I don't have a need for that much precision.

I changed the format so the throttle % no longer has a decimal place. I changed the algorithm that determines throttle position. I couldn't get an IF-THEN-ELSE to work so I used a couple of complimenting IF statements that worked. I also noticed that even though using my DMM and my TPS set at .54v, the ECM was seeing around 29 counts for the TPS at idle and changed when I started my car because of the alternator output. Knowing the counts can change one or two counts I gave myself some room so that I have a couple counts before it displays any throttle other than 0.

IF meas(10) < 32 THEN meas(66) = 0
IF meas(10) >= 32 THEN meas(66) = (meas10) - 29) * 145 / 256


I am still assuming 4.0v as being 100% throttle but it still can go however high it wants to go, i.e 124%. Once I get clearification on the throttle% settings I'll recompile it.

I think Craig did a fantastic job with this program. You have to give him credit that he also gives the source code for anyone to mess with.

James

[This message has been edited by james_fearn (edited August 30, 2001).]
Reply
Old Aug 31, 2001 | 10:07 PM
  #7  
Craig Moates's Avatar
Supreme Member
 
Joined: Jul 1999
Posts: 1,577
Likes: 0
From: Baton Rouge, LA, USA
Car: 87 T/A
Engine: 441 SBC 12.5:1 0.680" Lift
Transmission: T-56
Axle/Gears: 4.10 TruTrac Moser 9"
You could perform the conversion initially? Say, instead of:

meas(66) = meas(10) / 2.56

maybe put in:

zerothrottle=0.54: fullthrottle=4.00

meas(66)=(100/(fullthrottle-zerothrottle))*(5*meas(10)/256)-zerothrottle)

You could set up zerothrottle and fullthrottle variables as inputs...

Glad to see folks having fun!
-Craig

Reply
Old Sep 18, 2001 | 04:49 PM
  #8  
edfirebird's Avatar
Junior Member
 
Joined: Sep 2001
Posts: 83
Likes: 0
From: Somerset,NJ 08873
!!!
Persistance is Key!!!
Thanks EVERYONE....
Traxion , Craig, & everyone else...
I got a hypertech chip for a 89 165 yucky
350 B&B 4blt splayed 68 forged crank pink LT4 Hot , Dart S/R Torquer 2.02 1.60
30# Svo , ... Now it runs like **** overheats.. goes so lean it melted the speedo cable ...
I'm gonna try to build that ALDL cable ang log some data ..
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
hectre13
Car Audio
26
Mar 3, 2022 05:38 PM
InfernalVortex
Electronics
10
Apr 20, 2021 11:31 AM
91L98Z28
Southern California Area
10
Sep 19, 2015 09:35 AM
Hotrodboba400
Firebirds for Sale
0
Sep 2, 2015 07:28 PM




All times are GMT -5. The time now is 06:03 AM.