So basically, earlier last week I was supposed to get an order from UPS. Unfortunately, I missed that order because I had my headphones on at the time. When I called UPS, I was told they'd come the next business day which was June 22, 2020. However, I received this on my door yesterday (Sunday). So, clearly someone was misinformed. And to make sure UPS doesn't miss my package again, I built a sound sensor that will alert me as soon as someone knocks on the door of my apartment.
So here's how it works in a nutshell. The UPS guy knocks on the door. A sudden change in frequency is picked up by KY-038 Sound Sensor module (see images 1-2). This will be reflected by a digital HIGH (i could've done analog and set threshold but was too lazy to implement an ADC lol, Digital out gets the work done in this case) and send this signal to me (my laptop) over a websocket via my Raspberry Pi as the server and my laptop as the client. This alert will be sent as a boolean which when true indicates that someone knocked on the door and will alert me by playing a 30-second audio clip which will clearly make me aware that someone just knockd on the damn door.
- Sound (knock) to Digital Output ✅
- Websockets
- Client ✅
- Server ✅
- Socket Communication ✅
- Hardware Setup ✅
Full door view Close up of the sound sensor (RaspPi4) Photo at an angle cuz skills another one to keep you scrolling...