Inputs, Conditioning Ignition/Timing signals for CPU (56k??)
Posted: Wed Feb 20, 2008 7:53 pm
This is a subject near and dear to my heart since... I've spent months fighting it whereas everything else on my MS-II is a gimmie.
I've heard a lot of people mention that the OEMs use "very advanced" inputs which can't be copied by the amature, however I don't believe they are spending $7,000 an ECU and it's only bits of baked sand anyways. So I popped open my ecu and did a little digging:

And discovered the inputs (which had components that were very nicely numbered, kudos Mazda) were two identical circuits, one for the cam sensor, one for the crank. The crank sensor sees some very fast (angular) pulses, especially at full tilt.
The circuit is based around this chip:

and the whole circuit, including a filter cap, looks like so:

To give a little background, I started with these:

Which were based on a similar design used with some success by a friend who has his ecu in parallel with the OEM ecu. I only added a pull up resistor, but was having strange bucking issues, so added a filter cap. The trouble is finding a cap which takes the noise and leaves the signal.
This circuit worked well also:

But in general, they all had issues. Notice one input is inverting, and one is not (note, if I forget to put this in the features thread, the ability to accept either polarity signal on either sensor would be nice.). This is due to unreliable behavior of the leading tooth edge on most Hall Effect sensors I have read about, at low speed (under cranking conditions). This unreliable behavior led me to think the sensors were inverted relative to each other, although it turned out not to be.
Anyway, down to the suggestion part: Based on my experiences, I would want to see a board with the solid state buffer pictured above built on. It can be quite fast, though it's easy to slow it down by tuning the RC circuit within. I found a 10nf cap would lose sync even on an idealized pulsetrain from the JimStim at ~8,700 RPM (4 pulses per revolution, pulses ~10 degrees wide). At 1nf the circuit worked great on the simulator and mediocre on the car. After a few other values, I've settled on no cap at all, but the nice part is this is an easy to tune circuit by swapping values - once the board is there, leaving a cap in or out becomes trivial.
I will report back soon when I have a friend run this circuit in his parallel set up, to let you know if the NPN-followers are also a good idea to leave on, they certainly don't take up a lot of space - and with clever jumpering you might not even need to add much space on the board.
I'm very interested to see what other inputs people are using, or feel will work well.
One thing is for sure, I don't want to have a board with 1/3 of the total space wasted on inputs that you won't use most of except one, and that one you'll have to build a second copy of. A single opto-circuit makes good sense for converting carbed cars over, but something more sensical needs to be done in general, with an eye on keeping it flexible and small.
I've heard a lot of people mention that the OEMs use "very advanced" inputs which can't be copied by the amature, however I don't believe they are spending $7,000 an ECU and it's only bits of baked sand anyways. So I popped open my ecu and did a little digging:

And discovered the inputs (which had components that were very nicely numbered, kudos Mazda) were two identical circuits, one for the cam sensor, one for the crank. The crank sensor sees some very fast (angular) pulses, especially at full tilt.
The circuit is based around this chip:

and the whole circuit, including a filter cap, looks like so:

To give a little background, I started with these:

Which were based on a similar design used with some success by a friend who has his ecu in parallel with the OEM ecu. I only added a pull up resistor, but was having strange bucking issues, so added a filter cap. The trouble is finding a cap which takes the noise and leaves the signal.
This circuit worked well also:

But in general, they all had issues. Notice one input is inverting, and one is not (note, if I forget to put this in the features thread, the ability to accept either polarity signal on either sensor would be nice.). This is due to unreliable behavior of the leading tooth edge on most Hall Effect sensors I have read about, at low speed (under cranking conditions). This unreliable behavior led me to think the sensors were inverted relative to each other, although it turned out not to be.
Anyway, down to the suggestion part: Based on my experiences, I would want to see a board with the solid state buffer pictured above built on. It can be quite fast, though it's easy to slow it down by tuning the RC circuit within. I found a 10nf cap would lose sync even on an idealized pulsetrain from the JimStim at ~8,700 RPM (4 pulses per revolution, pulses ~10 degrees wide). At 1nf the circuit worked great on the simulator and mediocre on the car. After a few other values, I've settled on no cap at all, but the nice part is this is an easy to tune circuit by swapping values - once the board is there, leaving a cap in or out becomes trivial.
I will report back soon when I have a friend run this circuit in his parallel set up, to let you know if the NPN-followers are also a good idea to leave on, they certainly don't take up a lot of space - and with clever jumpering you might not even need to add much space on the board.
I'm very interested to see what other inputs people are using, or feel will work well.
One thing is for sure, I don't want to have a board with 1/3 of the total space wasted on inputs that you won't use most of except one, and that one you'll have to build a second copy of. A single opto-circuit makes good sense for converting carbed cars over, but something more sensical needs to be done in general, with an eye on keeping it flexible and small.