Hi. I have a PWM that i'd like to isolate from the business end of the dc motor. i bought some cheap 4n25 optocouplers for starts and I can't figure out how to get them to work for my situation.

I don't know how to explain this well so let me give you a scenario.

Lets say my optocoupler has a PNP photo-transistor on the output side. To drive my gate driver circuit, I would connect the collector pin to Vcc and the emitter pin to the gate driver input to source current. Correct?

Well the problem I have is that my optocoupler has an npn phototransistor on the output side and npn transistors sink current, right? Meaning I can't use it to pulse current to my gate driver because the load has to go between the collector and Vcc?

I'm not sure if that made any sense but here's a graphical representation of what I mean:

I know I could buy the pnp version to solve my problem but it there any way I could make this work for what I have?

bare in mind I'm really new to electronics so it could just be that I have no idea what I'm talking about, so go easy on me