Blogger

Delete comment from: Ken Shirriff's blog

Ingmar Arvidsson said...

I am trying to create an IR-controlled RGBW-led strip controller using an Arduino micro.
This works almost perfect. The only problem is that one of the LED-channels behavs funny.
I have connected the channels in the following way;
#include
const int RECV_PIN = 11;
const int WHITE = 10;
const int BLUE = 9;
const int GREEN = 6;
const int RED = 5;
According to all information I can find this should function OK but the GREEN channel - 6 only give out values 0 or 255 all other channels work OK being able to control in the range 0-255.
If I comment out all "IR-code" then channel 6 also work OK.
There must be something with Timers or Interrupts but I can not understand why only ch6 is affected and not also ch5 since they are coupled to the same timer.
I am using the IR-library as is without any changes and also pinMode(ch, OUTPUT) + analogWrite().
I am using the delay()-function but a change to instead use loops with millis() did not help.
What is going wrong? Any hints would be much appreciated.

Nov 12, 2014, 4:27:32 PM


Posted to A Multi-Protocol Infrared Remote Library for the Arduino

Google apps
Main menu