Data Sheet

1/15/2018 Gravity: Analog Sound Level Meter SKU:SEN0232 - DFRobot Electronic Product Wiki and Tutorial: Arduino and Robot Wiki-DFRobot.com
https://www.dfrobot.com/wiki/index.php/Gravity:_Analog_Sound_Level_Meter_SKU:SEN0232 3/4
Expected Results
After uploading the sample code, you can open the serial monitor, and get the decibel value. The test environment is the office.The decibel value is shown as below.
(/wiki/index.php/File:Soundlevelmeterresult.png)
Relation between Decibel Value and Voltage Output
For this product,the decibel value is linear with the output voltage.When the output voltage is 0.6V, the decibel value should be 30dBA. When the output voltage is
2.6V, the decibel value should be 130dBA.
The calibration is done before leaving the factory, so you don't need to calibrate it.
So we can get this relation: Decibel Value(dBA) = Output Voltage(V) × 50, as shown below.
/***************************************************
DFRobot Gravity: Analog Sound Level Meter
<https://www.dfrobot.com/wiki/index.php/Gravity:_Analog_Sound_Level_Meter_SKU:SEN0232>
***************************************************
This sample code is used to test the analog sound level meter.
Created 2017-06-26
By Jason <jason.ling@dfrobot.com@dfrobot.com>
GNU Lesser General Public License.
See <http://www.gnu.org/licenses/> for details.
All above must be included in any redistribution
****************************************************/
/***********Notice and Trouble shooting***************
1. This sample code is tested on Arduino Uno with Arduino IDE 1.0.5 r2.
2. In order to protect the microphone on the board, you should not touch the black membrane on the microphone. Also you should keep it clean.
3. Please do not place this module on the surface of conductor or semiconductor. Otherwise, this will cause the microphone pin to be shorted
****************************************************/
#define SoundSensorPin A1 //this pin read the analog voltage from the sound level meter
#define VREF 5.0 //voltage on AREF pin,default:operating voltage
void setup()
{
Serial.begin(115200);
}
void loop()
{
float voltageValue,dbValue;
voltageValue = analogRead(SoundSensorPin) / 1024.0 * VREF;
dbValue = voltageValue * 50.0; //convert voltage to decibel value
Serial.print(dbValue,1);
Serial.println(" dBA");
delay(125);
}