Sound sensor module with TinkerPie
A microphone with an amplifier. TinkerPie also has one on the board.
| Type | Analog sensors |
|---|---|
| Connect to | P10-P13 |
| Gives | 0-100 % |
| Simulator | Yes: a control appears under the simulated board |
How it works
The sound module has a small microphone and an amplifier. It measures how loud the sound is, not what is being said. The louder the sound, the higher the reading.
How to wire it
Plug the module's A0 / OUT into P10 (or P11-P13 when Wi-Fi is off), VCC to 3.3 V, GND to GND.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
sensors.soundSensor(Pin.P10)
// Arduino C++
sensors::soundSensor(Pin::P10) Good to know
- Gives a relative level (0-100 %), not calibrated decibels.
- The TinkerPie board also has a microphone on board.
- Claps and taps give quick peaks; read it often to catch them.
Similar modules
- Potentiometer (knob)
- Soil moisture sensor
- Light sensor module (LDR)
- Gas / smoke sensor MQ-2
- Air quality sensor MQ-135
- Rain drop sensor
- Water level sensor
- Force sensor (FSR)
More projects to try
Questions
Can I try the Sound sensor module without buying one?
Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.
Can the sound sensor understand words?
No, it only measures loudness. Understanding speech needs AI and a proper microphone, like a phone voice assistant.