Hi there, I'm basically working in a project where we are building a dual fuel injection system. For prototyping we are tapping the injection pulse of a fuel injector of a running engine and reading it via optocoupler and actuating another injector by pulse read by a microcontroller. We used Arduino for first stage of prototype, where the Arduino gets digital input from the optocoupler and adjusts the pulse width and gives out as output in a digital pin, which is connected to a MOSFET's gate pin. The drain and source pin of the MOSFET are connected between the injector's control line.
But we need a more reliable approach, since the injector we are using is peak and hold diesel injector. Currently we referred few sources and built a circuit, which resembles something like in the image. But is there any better way to read the signal and controlling the injector pulses using a microcontroller? 