The idea of using optocoupler is to have electrically separate circuits. If you connect the two reference points together as a common ground then what is the point of using an optocoupler? Connect directly the PWM to the MosFet and save few parts.
Ioannis
Bookmarks