Hi all. I designed and built a circuit based on the Arduino Nano to make light-to-sound VU meter. The same 12V supply runs the amplifier and the VU meter (which is stepped down to 5V by a buck converter). Stupidly, I forgot to test the circuit with the same power supply powering both the amplifier and the VU meter before I got some PCBs made. Images of the schematic, block diagram and board are
here.
When the lights are operating, an annoying whine is heard from the speakers via the amplifier. See video
here. At first I thought is might be the buck converter, so I made up a version using a linear regulator and it behaves the same. Then I thought it might be the nano (it's a knockoff!), but if the lights are lit whilst the nano is being reset, I still get the interference. It also occurs using a genuine Uno.
I can cut out the whine entirely by using a ground loop isolator between the output of the VU meter and the input of the amp, but I was wondering if I have made some sort of obvious mistake in my design that someone might be able to point out? That way I can correct it at the component level rather than adding an isolator after the fact.
Thanks everyone, and please ask me to clarify if anything is unclear.