I am in the automotive industry. I am working on a little project, where the engine computer originally uses MOSFET to drive an earth to charge up an ignition coil, and by cutting the earth, it fires the spark into the cylinder.
I would like to turn this earth back into a 5 V square wave, so I can use different type of ignition coil, where the MOSFET is built into the ignition coil.
So basically, on the original connector, I have a power supply which can range between 12 V to 15 V generated by the car's alternator. I have a constant earth, and the 3rd pin is the earth signal to charge up the primary coil in the ignition coil.
All I need is a 5 V square wave reacting as fast as possible to the to the earth signal, and will tolerate the hovering voltage of the car's alternator. And the charge time for the ignition coil is generally between 2-5 ms.
I have the basic idea of using a voltage regulator and a PNP transistor to create the signal, I am just not sure of how to build the circuit safely for my application with resistors and capacitors.
Any help would be appreciated.
