Welcome, Guest
Username: Password: Remember me

TOPIC: Audio: Sound Level Meter.

Audio: Sound Level Meter. 3 months 1 week ago #1871

  • Ray
  • Ray's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 685
  • Thank you received: 146
  • Karma: 40
This code was originally written by openmusiclabs.com , all credit to them, they deserve it.
The program has parts coded in assembly, which makes it a bit difficult to understand.

The main idea is to read the A0 analog value and represent the level of the audio signal using bars. The code makes the FFT of the input signal and then averages the value.
  • If the signal is too weak or too strong, you can adjust the level using the gain potentiometer.
  • You can change the intensity of the light changing the line
    lc.setIntensity(i, 10); // 15 = brightest
  • I have included all the libraries in the same folder so you don't need to install them. Just unzip and compile!

Hope you like it:

File Attachment:

File Name: Level_Meter_With_Bars.zip
File Size: 588 KB



level_meter.jpg
Last Edit: 3 months 6 days ago by Ray.
The administrator has disabled public write access.
Time to create page: 0.191 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio