I am using a power MOSFET to switch a solenoid valve. The MOSFET is driven with a optocoupler (LTV-847) to isolate the 12V required to switch the valve from the 3.3V used by the microcontroller. However, from what I understand, this requires a noninverting optocoupler. The circuit I am using at the moment is:
I've breadboarded it and it seems to work fine. Is it OK to have a pulldown on a simple optocoupler like this (I know that some of the faster ones don't like that). If it is, then why do most websites suggest the inverting congfiguration with a pullup resistor? See for example this Sparkfun board which includes extra transistors to invert the signal: Sparkfun optocoupler board