Grove - Loudness Sensor Release date: 9/20/2015 Version: 1.0 Wiki: http://www.seeedstudio.com/wiki/Grove_-_Loudness_Sensor Bazaar: http:/www.seeedstudio.com/depot/Grove-Loudness-Sensor-p-1382.
Document Revision History Revision Date Author Description 1.0 Sep 21, 2015 Victor.
Contents Document Revision History ···································································································2 1. Introduction ···················································································································2 2. Specifications ·················································································································3 3.
Disclaimer For physical injuries and possessions loss caused by those reasons which are not related to product quality, such as operating without following manual guide, natural disasters or force majeure, we take no responsibility for that. Under the supervision of Seeed Technology Inc., this manual has been compiled and published which covered the latest product description and specification. The content of this manual is subject to change without notice.
1. Introduction The Grove - Loudness Sensor is designed to detect the loudness of environmental sound. Based on amplifier LM2904 and a built-in microphone, it amplifies and filters the high frequency signal that received from the microphone, and outputs a positive envelop. This will make for Arduino’s signal acquisition. The output value depends on the level of sound input. In order to avoid unnecessary signal disturbances, input signal will go through two times’ filtering inside the module.
2. Specifications Voltage 3.
3. Demonstration 3.1 With Arduino This module uses the chip LM2904 to amplify the electronic signal produced by the mini microphone. At last, you will get the analog-to-digital conversion value. Let's try to read the output value. As the picture on the below indicates, the Loudness sensor is connected to analog port A0 of the Grove - Basic Shield Connect Arduino/Seeeduino to PC by using a USB cable. Copy and paste code below to a new Arduino sketch. int val; void setup() { Serial.
} Upload the code. Then open the serial monitor to observe the output results. There will be a significant change when blow to the sensor. The blue line is the original signal from microphone and the yellow is the sig pin of Loudness Sensor. It is the original signal envelope that the module outputs. Here is the test screenshot from the oscilloscope.
Speak to the sensor: 3.2 With Raspberry Pi 1. You should have got a raspberry pi and a grovepi or grovepi+. 2. You should have completed configuring the development environment, otherwise follow here. 3. Connection. Plug the sensor to grovepi socket A0 by using a grove cable. 4. Navigate to the demos' directory: cd yourpath/GrovePi/Software/Python/ To see the code nano grove_loudness_sensor.
except IOError: print "Error" 5. Run the demo. sudo python grove_loudness_sensor.
4.