Direct contact to infrared receiver from microcontroller
You are trying to overpower the IR receiver's logic level output. 

You might add a resistor in series with that "high" level,  then use your transistor/ optoisolator to superimpose your data stream