Home Forums Sparkfun MP3 Shield Library Support Forum Reading Sound Volumes Reply To: Reading Sound Volumes

#1804
Bill
Member

You can make sure the analog pin is working by connecting it to GND or 5V and then you should see the values change. Just unplugging the wire shouldn’t always make the values change.

Now ready the ‘volume’ of the output sound is a different story. Remember sound is sine wave signal. Reading it with an analog pin is going to produce different results depending when the sample was taken during the sine waveform. In order to do what you want, you should take several dozen samples and pick the biggest one to represent the amplitude of the sound at that time.