I'm encountering a problem using the IRremote library with my project. The setup can initiate the motor and the feedback LED blinks as expected. However, once the motor starts, the IR remote becomes unresponsive, and I can't stop the motor. Additionally, the feedback LED stops functioning. Interestingly, everything returns to normal functionality when I disconnect the motor while it's running.
Could the motor be generating noise that interferes with the IR receiver's ability to read the signal? Has anyone else experienced similar issues with IR remotes when motors are running?
You might want to look at this How to get the best out of this forum before you proceed any further.
We only know what you tell us, and without knowing what you have, we don't stand a chance.
So post your schematic and code like the above link tells you how to do.
It is probable that your code is not written in the correct way.
Indeed, I have read it at first but didn't realize it was the analogWrite. So I guess it's not possible to control a motor with the remote since the motor needs analogWrite.