Problem with optoislated PWM signal

thanks a lot!

Grumpy_Mike, sorry, but I don't know how to connect a PNP and NPN transistors to drive an optocoupler... :blush:

DC42, Obviously your circuit is 100 times better than mine... I will construct it and I will give a feed back.

Miquel