I've been doing some more work extracting the stock ignition map.
I've tried changing ECT and IAT temperature, enabling/disabling TEN, and playing with the WOT and closed throttle switches.
So far the only thing that seems to affect the timing is whether the closed throttle switch is shorted to GND or not.
Closed throttle ignition timing:
Open throttle ignition timing:
The data can be downloaded here and here.
Monday, 24 June 2013
Friday, 21 June 2013
Idle Valve Drive
Just had a quick look at the idle speed output.
With TEN shorted to GND it outputs a fixed 160Hz PWM with a negative width of ~2.6ms and a positive witdh of ~3.6ms.
It seems unaffected by AFM voltage and RPM.
At some point I'll look at what it does when TEN isn't enabled.
With TEN shorted to GND it outputs a fixed 160Hz PWM with a negative width of ~2.6ms and a positive witdh of ~3.6ms.
It seems unaffected by AFM voltage and RPM.
At some point I'll look at what it does when TEN isn't enabled.
Wednesday, 19 June 2013
First attempt at extracting the stock Ignition Map
I've been doing some more fiddling with the stock ECU and can now control the RPM and AFM voltage going into it, and measure the spark angle coming out (using my STM dev board).
I wrote a little bit of code that steps the RPM and AFM voltage and spits the spark angle out of the UART.
I logged the UART data and inserted it into Excel and managed to produce this:
As before I've currently got TEN shorted to GND, and a fixed resistor for IAT (2k) and ECT (330R), and closed/wide-open throttle inputs left open.
Note that I've added 10 degrees to the angles to account for the stock static 10 degree offset.
I'll publish the raw data once I've done some more work and confirmed what I'm doing and what I think I'm measuring are correct.
One more note whilst I'm thinking about it - The ECU logs an error when the AFM voltage drops to 0.2V or lower.
---
Update: Although the static timing is set at 10 degree on the MX5, I've just been looking at the spark outputs again - at idle with TEN and closed throttle shorted to GND (the conditions under which static timing is set on the engine) the spark triggers at 3 degrees before the falling edge of the crank signal.
So, rather than being at -10 degrees, I think the falling edge of the crank signal is probably more like -7 degrees.
Though given that people often increase the advance by 2 to 4 degrees on the 1.6 engine my additional 10 degrees advance is probably about right!
I wrote a little bit of code that steps the RPM and AFM voltage and spits the spark angle out of the UART.
I logged the UART data and inserted it into Excel and managed to produce this:
As before I've currently got TEN shorted to GND, and a fixed resistor for IAT (2k) and ECT (330R), and closed/wide-open throttle inputs left open.
Note that I've added 10 degrees to the angles to account for the stock static 10 degree offset.
I'll publish the raw data once I've done some more work and confirmed what I'm doing and what I think I'm measuring are correct.
One more note whilst I'm thinking about it - The ECU logs an error when the AFM voltage drops to 0.2V or lower.
---
Update: Although the static timing is set at 10 degree on the MX5, I've just been looking at the spark outputs again - at idle with TEN and closed throttle shorted to GND (the conditions under which static timing is set on the engine) the spark triggers at 3 degrees before the falling edge of the crank signal.
So, rather than being at -10 degrees, I think the falling edge of the crank signal is probably more like -7 degrees.
Though given that people often increase the advance by 2 to 4 degrees on the 1.6 engine my additional 10 degrees advance is probably about right!
Thursday, 13 June 2013
ECT and IAT Calibration
Some notes on the ECT (engine coolant temp) and IAT (intake air temp) sensors.
The following is info I've googled, so I don't know if it's accurate or not...
The voltage is calculated from the 'googled' temp/resistance values based on the 2k7/5V pull-up in the stock ECU.
Temperature, Resistance, Voltage
-20, 16150, 4.28
40, 1150, 1.49
80, 330, 0.545
ToDo: Update with some better data when I've found it.
The following is info I've googled, so I don't know if it's accurate or not...
The voltage is calculated from the 'googled' temp/resistance values based on the 2k7/5V pull-up in the stock ECU.
Temperature, Resistance, Voltage
-20, 16150, 4.28
40, 1150, 1.49
80, 330, 0.545
ToDo: Update with some better data when I've found it.
Tuesday, 11 June 2013
CAS Signals
Just some notes on the CAS signals.
Apparently this is from the service manual of a mitsubishi 4g18 engine (which uses the same CAS as an NA)
I believe it's advanced by another 2 degrees on the MX5 though:
Some more info I found on the CAS timing signals:
The numbers are crank degrees relative to the #1 TDCC (negative being before and positive after)
crank signal (CKP) edges in one engine cycle (8 edges total):
raising edge at -80
falling edge at -10
raising edge at 100
falling edge at 170
raising edge at 280
falling edge at 350
raising edge at 460
falling edge at 530
cam sync signal (CMP) edges in one engine cycle:
raising edge at -95
falling edge at 48
raising edge at 265
falling edge at 335
Apparently this is from the service manual of a mitsubishi 4g18 engine (which uses the same CAS as an NA)
I believe it's advanced by another 2 degrees on the MX5 though:
Some more info I found on the CAS timing signals:
The numbers are crank degrees relative to the #1 TDCC (negative being before and positive after)
crank signal (CKP) edges in one engine cycle (8 edges total):
raising edge at -80
falling edge at -10
raising edge at 100
falling edge at 170
raising edge at 280
falling edge at 350
raising edge at 460
falling edge at 530
cam sync signal (CMP) edges in one engine cycle:
raising edge at -95
falling edge at 48
raising edge at 265
falling edge at 335
Stock 1.6 ECU Dwell Time
I'm currently playing around with a stock MX5 ECU on my desk.
It's a B64F ECU, which I think is off a Mk1 1.6l UK car.
Today I looked at the ignition trigger pulse width and made a graph of it against rpm:
I did this by simulating the CAS and TACHO signals using an STM32F3DISCOVERY dev board, and measured the pulse width with a scope.
I've currently got TEN shorted to GND, a fixed resistor for IAT (2k) and ECT (330R), and a variable resistor connected to the VAF input.
Changing the VAF input didn't affect the width at all (except when I went too far and caused the ECU to go into some kind of fault mode!).
I haven't tried playing with the closed or wide open throttle or crank inputs yet.
Changing the battery voltage didn't have any affect either.
I can currently measure the spark advance using the dev board, but haven't had a chance to map that out yet.
I want to get the dev board generating the VAF signal next so I can automate the spark-advance vs rpm vs flow measurement.
-----
UPDATE: Whilst playing about with the supply voltage I noticed that the ECU varies the dwell time, increasing it as battery voltage decreases.
I'll revisit this at some point and map out dwell-vs-rpm-vs-voltage.
It's a B64F ECU, which I think is off a Mk1 1.6l UK car.
Today I looked at the ignition trigger pulse width and made a graph of it against rpm:
I did this by simulating the CAS and TACHO signals using an STM32F3DISCOVERY dev board, and measured the pulse width with a scope.
I've currently got TEN shorted to GND, a fixed resistor for IAT (2k) and ECT (330R), and a variable resistor connected to the VAF input.
Changing the VAF input didn't affect the width at all (except when I went too far and caused the ECU to go into some kind of fault mode!).
I haven't tried playing with the closed or wide open throttle or crank inputs yet.
Changing the battery voltage didn't have any affect either.
I can currently measure the spark advance using the dev board, but haven't had a chance to map that out yet.
I want to get the dev board generating the VAF signal next so I can automate the spark-advance vs rpm vs flow measurement.
-----
UPDATE: Whilst playing about with the supply voltage I noticed that the ECU varies the dwell time, increasing it as battery voltage decreases.
I'll revisit this at some point and map out dwell-vs-rpm-vs-voltage.
Subscribe to:
Posts (Atom)