These blocks are for Parallax's Sound Impact Sensor (#29132) [1] and the Propeller Activity Board WX, FLiP, or Other board types. Not available for Badge or Scribbler Robot board types.
New to this sensor? Click here to see an example schematic and quick Blockly program [2] to help you get started
This block launches a processor automatically. Use only one instance of this block per project.
The Sound Impact initialize block sets up the Sound Impact Sensor.
If you have defined a constant using the constant define block, the constant will show up in all of the pin menus and can be selected instead of a numbered pin:
If you forget this block, the other Sound Impact Sensor blocks will display a triangle warning icon as a reminder:
The Sound Impact get count block returns how many sound impacts (loud sounds) were detected since the last time this block was used. If no sound impacts were detected, it provides a value of zero.
The Sound Impact close block makes the Propeller microcontroller stop listening to the Sound Impact Sensor and frees up the resources it was using inside of the Propeller.
The Sound Impact Sensor detects sound from up to 3 meters away, lending noise-activation possibilities to your microcontroller projects
Use a 2.2 k-ohm resistor (red-red-red) between the Sound Impact Sensor's SIG pin and the Propeller I/O pin.
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.
Links
[1] http://www.parallax.com/product/29132
[2] https://learn.parallax.com/support/reference/activity-board-wx-block-reference/sensor/sound-impact-sensor/sound-impact-wiring