I noticed my 433MHz sender not working anymore and tried narrowing the error down by using only minimal code but cannot seem to solve this problem any further. so my current code looks like this:
and i noticed my sender stops working as soon as i put the IrReceiver.begin() in the setup method. if i remove just this one line it starts working and I´m wondering what may causes this issue and how it is to be resolved.
thank you for any help in advance
The libraries conflict over timer usage, almost certainly Timer1 if you are using Arduino Uno R3 or related (Nano, Mega, etc.). Check to see whether there are alternative libraries.
There may be alternative timer options in the libraries you are presently using. Check the source code.
Edit: I checked RCSwitch and it uses micros(), so Timer0, which should not conflict with IRremote. IRremote has several options for timer usage, but the real problem may have something to do with interrupt usage.