Welcome, Guest
Username: Password: Remember me

TOPIC: Audio: Sound Level Meter.

Audio: Sound Level Meter. 3 years 4 months ago #1871

  • Ray
  • Ray's Avatar
  • Moderator
  • Posts: 702
  • Thank you received: 152
  • Karma: 44
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

Last Edit: 3 years 4 months ago by Ray.
The administrator has disabled public write access.
Time to create page: 0.119 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio