For a project I need a zero crossing wave like this
Its generated by an inductive coil of a distributor of a car engine where that signal triggers a CDI (capacity discharge ignition) when it falls from positive to under -0.3v.
My target is to reproduce or at least mime such a zero crossing wave with a PWM wave using an Arduino Nano in a car environment.
In the circuit below I tried this by using a 2N3904 NPN transistor where the -5 volt are provided by an ICL 7660.
But with this circuit it results only in a +1v/-1v PWM (screenshot below) and not in a +5v/-5v PWM … actually a +2.5v/-2.5v PWM would be sufficient.
My question is: how can that circuit above be optimized to get at least a zero crossing +2.5/-2.5v PWM.
Thanks a lot in advance and sorry for the first complicated question attempt.








