Arduino code of the Invisible Drawer Lock project built for Robotics@Berkeley's Dorm Ex Machina (Dorm of the Machine) competition (Won Second Place! Yay). The Arduino board can read sensor input, send alerts to server via wifi and handle on/off requests via bluetooth connection. Also implemented sleeping functions to save power.
An alerting device that can message your phone if someone opens your drawer without your permission. You need to put the hardware (Arduino plus Wifi, Bluetooth and sensor) in your drawer, and turn on the device with the Drawer Switch app on your Android phone after closing your drawer. Then just wait for any alerts about your roommate trying to sneak your snacks in the drawer!
The codes for smartphone is available here. The codes for server backend is available here.