This small (14mm diameter) piezo element is nicely enclosed so you can attach easily. Piezo elements convert vibration to voltage or voltage to vibration. That means you can use this as a buzzer for making beeps, tones and alerts AND you can use it as a sensor, to detect fast movements like knocks. You can also use it under a drum pad to make a drum/crash sensor
It's rated for up to 9Vpp use but you can also use 3V square waves and its plenty loud. For music use with an , check out the Tone tutorial. For sensing, the Knock tutorial is your guide! There are thin wires attached, we plugged them into a solderless breadboard, but they might too thin to plug in directly into the socket headers.
Retra faucibus eu laoreet nunc. Tincidunt nulla a Nulla eu convallis scelerisque sociis nulla interdum et. Cursus senectus aliquet pretium at tristique hac ullamcorper adipiscing et Donec. Enim montes parturient.