Hi!
I want to implement a small Nano-based RGBW (RGB+white) LED controller with IR remote. After having read that the PWM on pins 5 and 6 is slightly impaired, I opted for the other PWM pins: 3, 9, 10, 11. They work perfectly, as long as I don't add the IR functionality. Pin 9 and 10 remain unaffected, but pin 11 and 3 start to respond erratically to AnalogWrite, and after that, the IR receiver also ceases to work. I've tried the receiver on other pins, no difference. Just calling enableIRIn and then an AnalogWrite is enough to reproduce the problem.
I'm absolutely beginner with Arduino and microcontrollers in general (have received my very first board yesterday), but I suspect that it has something to do with the fact that these pins use Timer2, and so does IRLib.
Any ideas? It would be very cool to be able to use 4 full-valued and identically behaving PWM outputs along with IR receiving capability...
Source is attached - the hardware setup is pretty straightforward.
TriggerTheProblem.ino (233 Bytes)