
The last step in assembling the MegaSquirt is to put together a wiring harness. Which wire
The Skinny
Last month, we took the first steps on our journey of ECU enlightenment and assembled a $200 engine management system (EMS) that's capable of doing anything a mega-dollar standalone EMS can. While we haven't reached tuning Nirvana just yet, we're one step closer. And just as importantly, we now know there is no reason to fear the do-it-yourself ECU. However, that's not to say we didn't have our share of teething problems. We'll be the first to admit they were all our own fault, though.
In our haste to get the MegaSquirt installed and tuned a few months ago, we cut a few corners. One big mistake we made was failing to adequately insulate the wires of MegaSquirt's wiring harness when we soldered it together. As a direct result, we fried a couple of sensors and an ignition coil, leaving us with some stinky electronics that were frighteningly expensive to replace (for a $2,500 car, at least). So, learn from our mistakes and cover those bare wires the right way!
We're back this month with parts, ready to give it another shot (this time with well-insulated terminals).
We originally planned on running the MegaSquirt as a stand-alone ECU, but we quickly learned that would require buying and assembling more electronic components, and possibly hunting down used parts at the junkyard for idle control. While it would likely cost less than a $8 bowl of noodles at the local Pho joint, we decided to keep it simple for now and use the MegaSquirt to control just the spark and fuel. The other stuff, like the fuel-pump and cooling-fan relays, and idle will be left to the stock ECU. With a few changes down the road, we ditched the stock ECU entirely.

Take your time when soldering the wires to the DB-37 connector. We used 20-gauge wire and
Doing the install in small steps is a good idea. In fact, the MegaManual recommends using the MegaSquirt to control fuel only at first, then adding spark control only after getting the fuel map close and becoming comfortable with the tuning software (MegaTune 2.25, in our case). This is exactly what we did. Plus, if you only make one change at a time, you'll know just where to look if a problem should arise after making changes.
Without knowing which wires go where in the car, there's no way of installing the MegaSquirt. A complete set of wiring diagrams is a must-have for any install.
We logged on to Miata.net, searched around, and found a link to a complete set of wiring diagrams for the Miata. Armed with these, we dug through the factory wiring harness near the ECU and located the wires we needed to tap into by their colors. Once we identified each wire, we spliced it into the Megasquirt's corresponding wire, repeating for each and every wire going to the MegaSquirt.
After spending a few hours tracing, re-tracing and spicing wires, we were confident that we had all the wires coming out of the MegaSquirt connected to the right wires on the car's harness. We then busted out the laptop, plugged it into the MegaSquirt and powered up the car. After a little fiddling with the settings via our laptop, we had the PC and the Megasquirt talking to each other via serial link. But, it quickly became obvious that a few things were amiss.

This is the step we skipped last month that led to a catastrophic failure of the EFI syste
As we learned the old-fashioned way, when you wire one sensor to multiple ECUs, you send false readings to both ECUs. Incorrect sensor values make the ECU think temps are either too low or too high--meaning that the fuel and spark timing will be off, regardless of how much tuning we do. However, this is only an issue if using the MegaSquirt as a piggyback, like we are. If used as a standalone, this isn't an issue.
In our piggyback setup, when we had the coolant sensor connected only to the MegaSquirt, the MegaTune software showed a coolant temp of 150 degrees. With the sensor hooked up to the MegaSquirt and the stock ECU, MegaTune showed a temp that was over 200 degrees. Obviously, this needed to be addressed.
The solution was to use additional coolant and air temp sensors. The Megasquirt comes configured to use GM-style sensors, so that's what we used. A quick trip to the local "Pick-a-Part" netted us both sensors and harnesses for a paltry $4.50.
-

It's damn near impossible to tune the fuel delivery without knowing what the air/fuel rati
-

Connecting the MegaSquirt to the car is pretty straightforward. Just connect everything li
-

Here's the completed harness (minus the two leads for ignition control that we added later
Enjoyed this Post? Subscribe to our RSS Feed, or use your favorite social media to recommend us to friends and colleagues!