Technical specifications
- Model: CMP-758
- Operating temperature: −25 to +70 °C
- Storage temperature: −25 to +70 °C
- Ambient humidity: 60–70%
- Atmospheric pressure: 860–1060 hPa
- Sensitivity: −60 to −56 dB
- Output impedance: 2.2 kΩ
- Maximum current: 800 μA
- Signal-to-noise ratio: 58 dB
- Voltage reduction: −3 dB
- Operating voltage: 1–10 V
- Dynamic range: 100 dB
- Dimensions: 9.7 × 6.5 mm
Description
This sensor detects loud, sharp sounds such as claps, whistles, and loud speech. It does not measure relative loudness: its output has only two states, “sound” and “no sound”.
Use
Connection
The sensor uses a standard 3-pin connector and connects to any IN port on Trackduino.
The signal line must be pulled up to 5 V, for example by enabling the internal pull-up resistor. When a loud sound is detected, the sensor connects the signal line to ground, bringing it to 0. Keep this behavior in mind when using custom functions.
Programming
The required blocks are in the “Sensors” block group.
| Block and generated function | Description |
|---|---|
![]() bool mic(int port) | Returns true when a loud sound is present at the time of the call, and false otherwise.Argument: int port — the port the sensor is connected to. |
The analog microphone block
does not work with this sensor; it is intended for the analog microphone.
Project example
Startled robot
Generated code:
void setup()
{
}
void loop()
{
if (mic(IN1))
{
startMotor(1, 100);
delay( 2000 );
}
else
{
stopMotor(1);
}
}

