2nd Generation Specific (1986-1992) 1986-1992 Discussion including performance modifications and technical support sections.

Stock ECU Real-Time Tuning / Datalogging

Thread Tools
 
Search this Thread
 
Old Jul 29, 2014 | 01:41 PM
  #101  
lastphaseofthis's Avatar
My job is to blow **** up
Tenured Member 20 Years
iTrader: (8)
 
Joined: Jan 2005
Posts: 2,903
Likes: 5
From: palmyra Indiana
Originally Posted by SonicRaT

What series/ecu/aspiration/fuel setup are you using? Boards come in sets of three, so ideally it'd be useful to have three piggies.
i have a stock s5 vert i'm going SEMI PP 13b( making housings now).. haven't picked fueling/ecu for it yet. would like to run 4xId1000.. 2 in the irons, 2 angled into the PP. may go less on the primaries..

i have an 88 turbo that has an rTek i would be willing to re do the wiring go to the S5 Turbo ECU which i have... i think a chipped version( like knightports?). the motor needs to come out and be refreshed, may have a cracked apex seal but w/e.

i would totally wiring up a modded fc ECU to use in the rx8 for a turbo setup.. also i have an FB that was carb'd pretty much empty canvas at this point.

so you yell me how you want it, i think the na s4 is the least needed? s5 n/a would be nice, and i would do either series of turbo.
Reply
Old Jul 29, 2014 | 02:37 PM
  #102  
Clubuser's Avatar
Senior Member
Tenured Member: 10 Years
Liked
Loved
Community Favorite
 
Joined: Aug 2010
Posts: 415
Likes: 8
From: Treasure coast
subscrided
Reply
Old Jul 29, 2014 | 02:42 PM
  #103  
RevinRx7's Avatar
Concerned Citizen
Tenured Member 20 Years
iTrader: (3)
 
Joined: Nov 2001
Posts: 699
Likes: 0
From: Miltown, WI
Originally Posted by j9fd3s
the JDM shop manuals have the sensor voltage curves, i can scan a few in if you like. we even have the AFM voltage/airflow curves
I think that would be beneficial.
Reply
Old Jul 29, 2014 | 02:51 PM
  #104  
j9fd3s's Avatar
Moderator
Community Builder
Liked
Loved
Community Favorite
iTrader: (3)
 
Joined: Mar 2001
Posts: 31,837
Likes: 3,233
From: https://www2.mazda.com/en/100th/
here is the AFM info; https://www.rx7club.com/2nd-generati...mo-afm-961741/
Reply
Old Jul 29, 2014 | 07:25 PM
  #105  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
Originally Posted by j9fd3s
That there be useful info.
Reply
Old Jul 29, 2014 | 10:10 PM
  #106  
Craze8's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Apr 2009
Posts: 311
Likes: 2
From: Lynchburg, VA
Just got out of work, didnt get a chance to do any voltage readings vs temps, though it seems we have gotten afm readings, thats a step in the right direction. I will get on the temp readings tomorrow and see what all I can get you.
Reply
Old Jul 29, 2014 | 11:32 PM
  #107  
RevinRx7's Avatar
Concerned Citizen
Tenured Member 20 Years
iTrader: (3)
 
Joined: Nov 2001
Posts: 699
Likes: 0
From: Miltown, WI
I forgot I didn't have a 12V power source at home, but If I have some time at work tomorrow I'll bring in my setup and try for some measurements.
I did however get values for the IAT Resistance vs. Temp. (Yes I know you asked for voltage)

I thought I could extract it out, but without a reference current it's useless. Do you know what the ECU uses for current on that wire? I'm guessing about 1 milliamp.
My experiment, that I'll repeat tomorrow:


Water covered only the sensor, starting with a high temperature and lowering progressively.
I used a cheap meat thermometer to verify temp and a Bluepoint EEDM5035 to collect values.
Temp (F) Res (kOhm)
87 23.6
90 21.9
96 18.6
100 16.8
104 14.8
107 13.4
115 12.3
120 10.9
125 9.9
130 8.8
135 7.9
140 6.9
145 6.3
150 5.4
157 4.8




Also from the FSM:
The IAT in the MAF:
Reply
Old Jul 29, 2014 | 11:39 PM
  #108  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
Originally Posted by RevinRx7
Do you know what the ECU uses for current on that wire? I'm guessing about 1 milliamp.
I'm not quite sure. Although, I may be able to figure that out by working backwards. The ECU defaults to a specific ADC value which corresponds to given values they reference in the FSM. Using the FSM, I would have a resistance reference to a set voltage, so I should be able to work backwards to obtain current.
Reply
Old Jul 30, 2014 | 03:57 AM
  #109  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
With the above information, I've worked out some generic linear conversions that match up fairly well to the FSM findings. These should likely be sufficient enough.

(Vref - WTS or AFMAIT) * (160/Vref) - 60 = Temp*C
(Vref - AIT) * (125/Vref) = Temp*C

Example:

(5.0v - 2.38v) * (155/5.0v) - 60 = ~21.2*C (FSM indicates this voltage should be 20*C)
(5.0v - 0.5v) * (155/5.0v) - 60 = ~79.5*C (FSM indicates this voltage should be 80*C)

Using the actual ADC value from the ECU:
(255 - 122) * (155/256) - 60 = ~20.5*C
(255 - 27) * (155/256) - 60 = ~78*C
Reply
Old Jul 30, 2014 | 01:15 PM
  #110  
Craze8's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Apr 2009
Posts: 311
Likes: 2
From: Lynchburg, VA
Seems we got most of the information. Some math should give us the range. Going off alldata at -4*f we should see a resistance of 16.2k .003a draw...68*f we should see a resistance reading of 2.45k should be .002a draw 104*f 1100ohms .004a :140*f 550ohms .009a and at 176*F 320 ohms should be a .015A draw on the circuit. Havent had time to verify this yet and alldata has been known to be wrong on its values in the past.
Reply
Old Jul 30, 2014 | 05:36 PM
  #111  
j9fd3s's Avatar
Moderator
Community Builder
Liked
Loved
Community Favorite
iTrader: (3)
 
Joined: Mar 2001
Posts: 31,837
Likes: 3,233
From: https://www2.mazda.com/en/100th/
here are some of the sensor graphs. notice please that the Japanese manual has theses and the US manual does not.

the air temp sensor is S4, S5 and Cosmo, same part number. the FD has a different part, so they could get it to break all the time, and its curve is reversed.

the water temp sensor is the same S3, S4, S5, Cosmo. FD is different, but the sensor curve is the same. the newer one is actually smaller to clear the alternator!

the MAP is for a T2, and Cosmo, its just a 2 bar sensor, the FD uses a 2.25 bar sensor, or thereabouts.

and last is the S5, Cosmo, and FD TPS curve. the S4 would use just the narrow range part
Attached Thumbnails Stock ECU Real-Time Tuning / Datalogging-photo-1-7.jpg   Stock ECU Real-Time Tuning / Datalogging-photo-2-6.jpg   Stock ECU Real-Time Tuning / Datalogging-photo-3-3.jpg   Stock ECU Real-Time Tuning / Datalogging-photo-4-2.jpg  
Reply
Old Jul 30, 2014 | 10:34 PM
  #112  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
Cool. Think we're set to go on the sensor data now.

I've been working on the fuel correction. Currently, I'm performing fuel corrections almost entirely in the same manner as an S-AFC. Basically, I apply the correction to the AFM value. From here, the ECU does the rest of its corrections/additions to this base value. As a result, this allows me to do a swing of -100% to +100% while maintaing the stock ECU injector controls -- ie, max duty cycle, etc. I can perhaps allow the max duty cycle to be a hair higher to accommodate more control.

In other news, I have successfully tested one of two methods for ditching the AFM. This first method is extremely easy -- basically all I do is mimic the AFM values using a RPM/MAP based lookup table. This gives you 1024 steps of resolution to control the fuel values in a 20x20 table.

The second method will be a lookup table that actually contains the base injector timing (ms) map. This will take a little longer, as I'll need to adapt the various corrections to work on this value.
Reply
Old Jul 31, 2014 | 10:33 AM
  #113  
driftxsequence's Avatar
Rotisserie Engine
Tenured Member: 15 Years
Liked
Loved
Community Favorite
iTrader: (8)
 
Joined: Jan 2007
Posts: 1,945
Likes: 107
From: Wilmington, DE
Reply
Old Jul 31, 2014 | 11:32 AM
  #114  
Craze8's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Apr 2009
Posts: 311
Likes: 2
From: Lynchburg, VA
Originally Posted by SonicRaT
Cool. Think we're set to go on the sensor data now.

I've been working on the fuel correction. Currently, I'm performing fuel corrections almost entirely in the same manner as an S-AFC. Basically, I apply the correction to the AFM value. From here, the ECU does the rest of its corrections/additions to this base value. As a result, this allows me to do a swing of -100% to +100% while maintaing the stock ECU injector controls -- ie, max duty cycle, etc. I can perhaps allow the max duty cycle to be a hair higher to accommodate more control.

In other news, I have successfully tested one of two methods for ditching the AFM. This first method is extrem the ely easy -- basically all I do is mimic AFM values using a RPM/MAP based lookup table. This gives you 1024 steps of resolution to control the fuel values in a 20x20 table.

The second method will be a lookup table that actually contains the base injector timing (ms) map. This will take a little longer, as I'll need to adapt the various corrections to work on this value.
I love the idea of ditching the stock vaf. I might be reading this wrong, but is any of the above able to apply the map sensor reading (scaleable for a larger map sensor) and apply it to the injector map?
Reply
Old Jul 31, 2014 | 11:46 AM
  #115  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
Originally Posted by Craze8
I love the idea of ditching the stock vaf. I might be reading this wrong, but is any of the above able to apply the map sensor reading (scaleable for a larger map sensor) and apply it to the injector map?
I'm not exactly sure what you're stating -- but yes, I should be able to make it work with a larger MAP sensor.
Reply
Old Jul 31, 2014 | 01:34 PM
  #116  
Craze8's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Apr 2009
Posts: 311
Likes: 2
From: Lynchburg, VA
I reread the post, you've got it covered already, I just wasnt reading it clearly.
Reply
Old Jul 31, 2014 | 03:04 PM
  #117  
RevinRx7's Avatar
Concerned Citizen
Tenured Member 20 Years
iTrader: (3)
 
Joined: Nov 2001
Posts: 699
Likes: 0
From: Miltown, WI
I also had one more question comparing your set up to existing units out there (Rtek). I currently am utilizing the Variable Resistor as an input, because pocket logger has internalized the settings into the software. Would you be doing something along these lines at all to create optional logable/ scaleable inputs with otherwise "open" pins on the ECU.

I only ask because I will need to disable this if you don't offer this. I am using this channel to log my AFR's from a wideband.
Reply
Old Jul 31, 2014 | 03:13 PM
  #118  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
Originally Posted by RevinRx7
I also had one more question comparing your set up to existing units out there (Rtek). I currently am utilizing the Variable Resistor as an input, because pocket logger has internalized the settings into the software. Would you be doing something along these lines at all to create optional logable/ scaleable inputs with otherwise "open" pins on the ECU.

I only ask because I will need to disable this if you don't offer this. I am using this channel to log my AFR's from a wideband.
Yes, this is already done. Currently I only have the VRes input setup this way, but I may expand it to more in the future if needed.
Reply
Old Aug 1, 2014 | 03:33 PM
  #119  
AbortRetryFail's Avatar
Trunks are for corpses.
Tenured Member 10 Years
 
Joined: Nov 2003
Posts: 189
Likes: 0
From: St.Pete FL
I've got a spare S4 N/A ECU and a daily driver car I could possibly test this on.

Did you ever post any of this someplace public like Google Code or Github? I wanted to build a desktop PC application and LED dashboard readout for my Rtek 2.0 but only got so far reverse engineering their serial protocol so this project is really interesting to me.
Reply
Old Aug 1, 2014 | 03:55 PM
  #120  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
Originally Posted by AbortRetryFail
I've got a spare S4 N/A ECU and a daily driver car I could possibly test this on.

Did you ever post any of this someplace public like Google Code or Github? I wanted to build a desktop PC application and LED dashboard readout for my Rtek 2.0 but only got so far reverse engineering their serial protocol so this project is really interesting to me.
Not yet, I'll do that once I get all of the basic "features" I want finalized. Shoot me a PM if you need some help with the serial protocol.
Reply
Old Aug 8, 2014 | 10:35 PM
  #121  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
First batch of boards are finally here. There were a couple of minor issues with this board revision that have been fixed for the next set. Another order of parts should be here tomorrow from digikey that'll let me finalize everything to get these things ready to go on test vehicles.

Attached Thumbnails Stock ECU Real-Time Tuning / Datalogging-pcb-1.jpg  
Reply
Old Aug 9, 2014 | 02:05 PM
  #122  
Craze8's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Apr 2009
Posts: 311
Likes: 2
From: Lynchburg, VA
Good deal. Glad to hear what you found on the board was only minor and didnt require a complete rework.
Reply
Old Aug 10, 2014 | 01:47 PM
  #123  
RX744CSP's Avatar
Senior Member
Tenured Member 10 Years
iTrader: (4)
 
Joined: Apr 2004
Posts: 340
Likes: 0
From: Charleston, SC
Man, wish I'd seen this earlier. I can donate two S5 Turbo ECU's that I won't be needing, I'll even pay the shipping one way cheap/slow. One is marked N374 (Japanese market), the other came with a JDM motor but the sticker's boogered up, can't read it. PM if interested.

I would like to be able to real time tune an S4 T2 with the separate knock control box. Also, is there any way you could find the sensor data for the knock sensor's output?

Oh, and subscribed!

Last edited by RX744CSP; Aug 10, 2014 at 01:53 PM.
Reply
Old Aug 10, 2014 | 02:29 PM
  #124  
SonicRaT's Avatar
Thread Starter
Super Raterhater
Tenured Member: 20 Years
iTrader: (6)
 
Joined: Dec 2001
Posts: 10,630
Likes: 3
From: NY, MA, MI, OR, TX, and now LA or AZ!
Originally Posted by RX744CSP
Man, wish I'd seen this earlier. I can donate two S5 Turbo ECU's that I won't be needing, I'll even pay the shipping one way cheap/slow. One is marked N374 (Japanese market), the other came with a JDM motor but the sticker's boogered up, can't read it. PM if interested.

I would like to be able to real time tune an S4 T2 with the separate knock control box. Also, is there any way you could find the sensor data for the knock sensor's output?

Oh, and subscribed!
It'll be a while before I get around to the S5, but I'll need some ECU's when it happens.

As for the knock control -- you can find some basic information on how it works within the training manuals. I may actually see about making it configurable within the ECU to allow for more timing retard, etc.
Reply
Old Aug 10, 2014 | 05:53 PM
  #125  
RX744CSP's Avatar
Senior Member
Tenured Member 10 Years
iTrader: (4)
 
Joined: Apr 2004
Posts: 340
Likes: 0
From: Charleston, SC
Cool. Be happy to send them on whenever you need them, I have no plans to do anything with them.

Did that training manual with the other sensor specs have any knock sensor output information? The US market FSM just says 'can't test, replace' about the sensor itself, says to tap on the rotor housing with a screwdriver etc and watch for timing retard.
Reply



All times are GMT -5. The time now is 10:11 AM.