Electronics lazyweb, am I correct in thinking I can make an "opto isolated pwm digipot" (not actually a pot but a variable voltage output determined by pwm duty cycle) with a PC817 optocoupler, 2 mosfets (1 for inversion), pullups/downs, and a capacitor?
This seems like a useful thing to have for interfacing with BLDC controllers without common ground or where you want isolation from faults at the motor controller.