Working on adding a digital tachometer to my 1985 f-150, 300 Inline 6 engine! Im using the negative side of the ignition coil, taking it through a "signal cleaner" circuit board, and feeding that into an EPS32 with 3.3 volt Logic. i know very little out electrical things like this, trying to learn
The basic premise of using the negative ignition coil side, everytime a sparkplug fires, the ignition coil sends, i assume, the excess voltage and current out to the ground. By tapping that and making the signal defined and clear we can count spark, and thus rotation.
My system currently does work, but my MAIN issue is that there is voltage "ringing" inside of the cleaner, which is mistriggering the esp32 and giving bad input to the system.
The commercial equivalent is the CoilX:
https://wiki.autosportlabs.com/CoilXHow my circuit is designed:
Input from negative ign coil into-
- 1000v rectifier diode
-Then 1k

resistor
-Into a junction, one junction leg is a 470

resistor
-another junction leg is 5.1 zener diode into gnd
-The 470

resistor goes into pin 1 of an optocoupler (PC817)
-The optocoupler output (collector pin, i think its called) goes into a 10k

pullup resistor to 3.3 volts
-The optocoupler output ALSO goes into pin 1 of a schmitt trigger, 74HC14. Then i collect the output of the schmitt to go into the esp32 interrupt pin.
Yeah, so the main issue is that my reading is fine most of the time, but i think there are small mistriggers from just ringing around that circuit. The CoilX board uses a 75 volt zener diode to prevent this. How can i modify the circuit to get rid of these unwanted oscillations? It needs to be a clear defined, i think its called a square wave. If you click on that coilx link theres a great picture at the bottom showing this visually. Thanks for reading this, i know its long and probably confusing!