The SparkFun Sound Detector is a microphone-based sensor designed to detect the presence and intensity of sound in its surroundings.
Note : It does NOT provide decibel readings, so it’s not suitable for precise noise level measurements.
Note : It’s NOT a sound recorder— It only measures sound intensity (volume) and provides a corresponding signal.
More info : here
The sensor’s microphone converts air-pressure variations (sound waves) into electrical signals, which are then processed to indicate sound intensity. This processed signal is available in two forms:
-
GATE: Processes DIGITAL signals that indicate whether the sound level is above or below a certain threshold. In other words, it works like an on/off switch to detect sound vs. no sound.
-
ENVELOPE: Processes ANALOG signals that represent ambient sound volume. In other words, it allow us to monitor sound amplitud.
- Arduino UNO
- Sparkfun Sound Detector
Envelope diagram reference image : here
Note: Arduino A0 pin is connected to the sensor's ENVELOPE pin
-
Upload this code to your Arduino board
-
Open the Serial Monitor to visualize the incomming data from the sensor
-
Next: Add an LED and resistor, and upload this code to your board.
-
Bonus: Add a decay effect to your LED. Use this code
Gate diagram reference image : here
Note: Arduino A0 pin is connected to the sensor's GATE pin
-
Upload this code to your Arduino board.
-
Look carefully at this new code. It is very similar to the previous one, but key elements have changed.
-
Open the Serial Monitor. How is this GATE data different to previous ENVELOPE one.
-
Next: Add an LED and resistor, and upload this code to your board.