My project is a sound reactive LED display on an Arduino Nano. There are 112 WS2811s in series connected to 5v, Gnd and D5 via 220ohm resistor.
I have a Keyes style sound detection module that has an analog output. It is connected to 5v and Gnd as well, and to A0.
The code reads the analog signal and then maps it to the brightness of the LEDs, in theory causing the LEDs to pulse.
Unfortunately what's happening is the brighter the LEDs, the higher the readings on the analog pin from the sound module.
Power is 5v 3A connected directly to Gnd and 5V with a 1000mF cap across + & - on the barrel adapter. I did this to allow the LEDs to draw the full 3A from the AC/DC converter (and to avoid having to power this via USB)
My suspicion is that as the LEDs get brighter the voltage to the sound module fluctuates which is throwing off the readings. Is there some merit to this hypothesis or is there another possible explanation?
Short of running two separate power lines (one to the Arduino and the other exclusively to the LEDs) are there any other ways I can regulate the voltage to the sound module regardless of the draw by the LEDs?