Hello to all Arduiners !
I was thinking about the pulsing LED issue for a long time, but cant see the reason, though the program and the hardware is so simple that I dont even know where to look... So, the schematics is very basic, RGB LED on pins 3, 5 and 6, common anode via resistor hooked to +5V pin. Pot's on pins A0, A1 and A2. The link to video:
When controlling separate colors - everything seems to be OK, though I had LEDs flashing randomly, for example, red on 50%, green and blue at 0%, but still there were G and B flashing randomly (together) and brightly. Maybe due to bad contact in the board... Unlikely. From 25th second in the video you can see the LED flickering, this is not a camera thing, it is really flickering, or pulsing, call it what ever you want... Why could this be happening ? Program is very basic, generally one line in the loop per POT/LED:
analogWrite (red_led, map (analogRead (red_pot), 0, 1023, 0, 255));
So, what is creating the pulsing/flickering...?