All wired up
BUT...
now having an issue with the CDI unit.
It is expecting a 12v signal but the Microsquirt only outputs a 5v signal.
Didn't realise this for a little while but I'm sure the neighbours were amused by the loud explosions they heard..
The main issue, apart from the signal level, is the noise on the line coming out of the ECU....
The voltage should be a steady 5v but it's between 3.9v and 7v
Put a 10k µf cap on the 5v reference voltage and it cleaned it up a bit, 4.1v to 6v.
Building a small circuit using a 1 farrad super capacitor, a schmitt trigger and a mosfet to
a.clean up the 5v reference voltage.
b. Level shift the 5v output to 12v.
The issue is that the mosfet will invert the output, ie: instead of being a steady 12v with a pulse to 0v signalling the coil to fire, it now will be a steady 0v with a 12v pulse when signalling the coil to fire.
Luckily the ECU can invert the signal and the CDI can trigger on either the positive or negative slope.
If you have made it this far, you are either confused or know a bit about electronics..
The Super capacitor is much like a battery and should hopefully clean up the 5v reference voltage.
The Schmitt Trigger then cleans up the 5v to 0v trigger signal.
The Mosfet then inverts and level changes the trigger signal from 5v-0v to 0v-12v.
Again, there is an issue of propagation delay which according to the IC and mosfet specs, may be as high as 1° at 10k rpm (200µ seconds), but I'll be able to compensate for that in the timing table.
I'll take a few pics tomorrow to better explain what happens.
Cheers.