
Sector67 has windows, and presumably someone my think there are valuables inside. Chris wanted to create something that would detect glass breaking and create a loud noise to warn them and send an alert to him to let him know that something had happened.
We installed a series of 5812A-W shatter alarm sensors, which use microphones to detect the sound of breaking glass and then trigger a relay for four seconds to indicate the alarm. By wiring the trigger in series, any one sensor alerting would trigger the alarm. It took a day of climbing up and down a ladder, but I eventually got 7 installed around the main floor near all the windows. Wiring them is pretty straightforward. Two wires for power (6-15V DC), and two wires for the sensor.



The control electronics were simple. I used an ESP32 DevKit as the main microcontroller, then included a 12V->5V DC-DC converter to regulate power, and an N-Channel MOSFET to control a very loud piezo buzzer. Power is 12V supplied through the barrel plug, and the terminal blocks send power to the sensors and connect to the trigger loop, which is normally pulled up through a resistor.




The way it works is mostly simple. After turning on, it watches the trigger. If the trigger ever goes from High to Low, then it means a sensor has detected glass breaking. It immediately turns on the piezo buzzer. Then it connects to the internet and uploads a signal to a server. The server then sends an email to me and to Chris. Finally, it disconnects from the server and starts to switch the buzzer on and off, and continues to do so until it’s unplugged.
In a live demo (using a glass break test device, not actual glass) in front of a group of people, it worked really well, except that the email went straight to spam. We’ll have to fix that, but that’s not on my end. Otherwise this is a completed project.