While a piezo speaker can be an output or an input device you can also use a more traditional microphone that can be attached to your Arduino and can act as a sound based controller where either an analog or digital input into the Arduino UNO can trigger an event or device.
Microphone sound sensor module KY-038 is such an example.
1
|
AO
|
Analog input
|
2
|
G
|
Ground (GND)
|
3
|
+
|
5-volt power
|
4
|
DO
|
Digital input
|
|
Not actual size (Enlarged) |
MAX MSP lessons continue in Chapter 12
|