This looks slow 
Optos are notorious for sluggish response, and discharging IRF740 (or any other power mosfet) through 1k is most certainly slow. A Schmitt of some kind should do much better and cooler.

Optos are notorious for sluggish response, and discharging IRF740 (or any other power mosfet) through 1k is most certainly slow. A Schmitt of some kind should do much better and cooler.
Comment