“When one door closes, another opens.” Or you can try opening the same door (because that’s how they work), especially if it’s a smart door like the one presented in this Instructable by newt446.
This project uses a Digilent chipKIT Max32, a 6.1V zener diode, a vibration sensor, a Bluetooth wireless module, a micro servo, and two 100Ω resistors.
First, construct the circuit.
Then, use the provided code to connect the Max32 to a webpage. This uses Python and JavaScript to tell you whether or not the door is open, how long it’s been open, and the maximum time it can be open. You’ll then have to address some issues with hosting the server. As the author says, “To properly load the server for your own local space, you need to have a .html file named index in your folder C:\inetpub\wwwroot.” Finally, load the MPIDE code for the Bluetooth-cellphone app interface and data output. This code has also been included.
On that note, we’ll close the door on this charming Instructable. Feel free to comment with your thoughts!