Project 11 – Piezo Sounder Alarm

By connecting a piezo sounder to a digital output pin, you can create a wailing alarm sound. It's the same principle that you used in Project 7 when creating a pulsating lamp via a sine wave, but this time you replace the LED with a piezo sounder or piezo disc.

Parts Required

Piezo Sounder (or piezo disc) images
2-Way Screw Terminal images

Connect It Up

First, make sure your Arduino is powered off by unplugging it from the USB cable. Now take the piezo sounder and screw its wires into the screw terminal. Connect the ...

Get Beginning Arduino now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.