dannyelectronics.wordpress.com discuss about how to build a mcu based LED vu meter and provides sample code.
From time to time, I see people trying to build an audio VU meter. In the analog era, that’s typically done with a voltage divider + a series of comparators; or using chips like LM3914/3915.
Those chips are harder and harder to find, or you may need more resolution, or a different output profile. What to do?
Modern MCUs offer an easy solution
MCU based LED VU Meter – [Link]