Sound Impact Wiring & Example Code

The Sound Impact Sensor detects sound from up to 3 meters away, lending noise-activation possibilities to your microcontroller projects

 

Wiring & Connections

Use a 2.2 k-ohm resistor (red-red-red) between the Sound Impact Sensor’s SIG pin and the Propeller I/O pin. 

 

Quick Code Example

Using the connections shown in the wiring diagram above, this example will display “Sound detected!” if the sensor detects one or more sound events, and “No sound detected.” otherwise.