Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
AnalogOutput.ino flicker solution. #765
With an Arduino Uno Nano ATMega328P running the example AnalogOutput.ino. There is a high frequency flicker on colors mixed between pin 3 and (pin 5 | pin 6 ).
Solution on the SecretsOfArduinoPWM page was to set pins 3 and 11 Timer2 to "Fast PWM" at 976Hz with the following code:
I am using IRLB8721 Mosfets to drive 12v non-addressable RGB SMD5050 led strip as per these Adafruit RGB LED strip instructions. May want to put a note in AnalogOutput.ino to change to registers to match PWM mode and frequency. Or move it into the FastLED class to detect and handle PWM pin registers transparently in the background.