Use Bluetooth to send a digital code to an arduino. If the code is correct, your locked door will open!

Inspiration: Everyone gets locked out of rooms. Here's a way to combat it: you may not have your keys, but certainly everyone has their phone. Download the app, turn on Bluetooth (because f@#* Berkeley WiFi), set up the door if you haven't already, and open the door.

What it does: Given a master key, set a door with a name and that master key. Assuming the key is correct, the servo motor on the other side of the door will turn the door open!

How I built it: We developed an Android app (named P1N) and used an Arduino. Developed the arduino code in C++ and the app in Java. We connected the two via a Bluetooth module and set up the hardware. No breadboard needed: just send the command and let us do the work!

Challenges I ran into: Had trouble connecting Bluetooth on the final product, front-end and back-end aspects, creating a dynamic UI, consolidating power (using a 9V battery vs 4 AA batteries vs built-in 5V/3.3V), numbers in serial port coming in as reverse hexadecimal values, not having enough t-shirts, etc. The usual.

Accomplishments that I'm proud of: Having finally made a functioning Android app and arduino code and connecting the two via Bluetooth.

What I learned: Arduino programming, Android development, Bluetooth knick-knacks, using non-USB battery sources, how to construct a UI, how to integrate UI with EE and CS.

What's next for P1N: Implement a temporary key module, where you can give temporary access to others for a given time frame. Also, construct an encryption function that encrypts received PIN and valid PIN.

Share this project:

Updates