Arduino as ECU?
#106
For a laugh, I ported my code to my mBed board... Wow, this project would be much easier on a super fast mcu
#108
It has 32k of code memory (more than enough for our needs, my barebones code uses about 4k) and 2k of RAM which is adequate. It runs at 16Mhz, with 1 instruction per cycle, so we can brute force a lot of stuff.
I/O pins 2 and 3 can trigger interrupts... Though I've opted not to use interrupts with my software design.
The I/O system is is all 5volt so spot on for the Mazda electronic system. The more powerful mBed device is all 3.3volt so would be a bit more involved to interface with the 5volt electrical system of the mx5...
I would say it's a fair bit better than the 6800 in the stock ECU.
My code is hardcoded to the mk1 (NA) CAS.
If you look at my code, you can see the input/output pins are configurable, so the software is flexible WRT hardware if need be.
-Edit- If you do get one, then let me know, and I'll send you my latest code.
Last edited by bloodline; 10-08-2010 at 02:49 PM.
#109
I found a dump of the '94 1.6 ECU ROM here:
http://forum.miata.net/vb/showpost.p...&postcount=332
I've been working through it to see if there is anything I can learn. It seems pretty straight forward and I'll build my timing and fuelling maps based on that data, which should give a good safe starting point.
I've also started thinking about a Laptop App to allow ECU parameter adjustment while the ECU is running (MacBook only for the time being, apologies)... that should be quite useful.
http://forum.miata.net/vb/showpost.p...&postcount=332
I've been working through it to see if there is anything I can learn. It seems pretty straight forward and I'll build my timing and fuelling maps based on that data, which should give a good safe starting point.
I've also started thinking about a Laptop App to allow ECU parameter adjustment while the ECU is running (MacBook only for the time being, apologies)... that should be quite useful.
#112
That would be brilliant! I spend most of my days using Objective-C and C++ so I tend to keep my personal projects to those languages (I'm quite comfortable with most Asm languages too, hense my interest in micro controllers)... I will make the communication protocol very simple, we can bash out a spec together at a later date
#113
I popped into my local electronics store to pick up a couple of potentiometers, so I can test my analog code, and bought a piazo transducer... After a quick test, it looks like it would be quite easy to add a knock sensor to this project, would have to run extra wiring from the engine bay though as the existing loom lacks any spare wires :(
#114
I don't know if any one is still interested, but I have moved my injector code over to an interrupt based system, (the old system had a limit to the maximum injector open time) and also the coil dwell time is now adjustable. I will be releasing this new code soon. The project is now at version 0.5
I hope someone will find it useful.
I hope someone will find it useful.
#120
having read your other posts (all on this thread) I can only imagine you're a non-miata guy and you joined this forum because of this thread. That said, please spend 5 minutes before posting questions to do basic research.