You will probably get a fair bit of noise from the IR receiver itself - it'll have internal filters and AGC to only respond to 36-40Khz signals, but even with heavy filtering on its power line it'll still output almost random pulses. Is the noise present without your modifications? ie: on the data line without anything else connected.
As you're using an optocoupler, I'm assuming the MCU is running off a completely different supply to the DVD player (no common ground). You could disconnect the optocoupler from the DVD player completely, add a pull-up resistor and check the collector output to see if the noise is coming from your MCU.
You have the right idea using an optocoupler (for isolation) or an NPN (for when the unit has common ground) but the IR receiver will have a built-in pull-up on its output (which is open collector) so it shouldn't just pick up noise on that line. It could even be interference in your logic analyzer, that a string pull-up or double checking solid probe connections would sort out.
" Is the noise present without your modifications? ie: on the data line without anything else connected."
No, that's the thing, I don't get any noise, I have what seems to me a clean HIGH signal, I am measuring it with a cheap logic analyzer like this:
But it is pretty precise to me.
"As you're using an optocoupler, I'm assuming the MCU is running off a completely different supply to the DVD player (no common ground)."
Yes i am running MCU with my PC usb power suppy, maybe there noise is because logic analyzer and MCU both are from the same PC?
DVD player uses power from 200V socket.
"You could disconnect the optocoupler from the DVD player completely, add a pull-up resistor and check the collector output to see if the noise is coming from your MCU. "
I tried to read MCU output directly from pins with logic analyzer and the output was also clean, will try with resistor, thanks.
" but the IR receiver will have a built-in pull-up on its output (which is open collector) "
the IR receiver is a typical one, I bought a random one from aliexpress and it worked.
"It could even be interference in your logic analyzer, that a string pull-up or double checking solid probe connections would sort out."
It could be, its a cheap device, I will try to get into my schools lab, they have osciloscopes. Sorry, I didn't understand what you meant by string pull-up or double checking solid probe connections, could you explain?
Huge thank you for spending time to give some help, I really appreciate it, will not give up on this project. Thank you!