Skip to content

jnsat/lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lock

lock logo

Unlock a door wirelessly using your phone. Uses an Android app to send commands over UDP to and Arduino. android key app screenshot

parts

build

To wire the Arduino connect the servo like this

Servo Arduino
White pin 9
Red 5v
Black gnd

Make an enclosure. For our first one we mounted the servo on top of the deadbolt int a metal case. Alternatively, if you want to use the second case (work in progress), which is 3d printed:

  • convert case/box.scad to stl
  • print using replicatorG

install

  • Patch your arduino library to use printf if needed (used in current version) using this guide http://playground.arduino.cc/Main/Printf
  • open udp/udp.ino in the Ardiuno IDE, change the SSID and password to match yours. upload to Ardiuno.
  • Open android app inside android/ folder using Android Studio. upload to phone by clicking the play symbol (for debug) or another way.

files

android/	android key app
udp/	arduino lock code
info/	presentations etc.
case/	scad file for 3d printed enclosure!

encryption

Working on using AES CBC.

[X] Send random IV

todo

  • design nice case
  • 3d print the case
  • status led
  • multi user?
  • battery

useful tools

What Why
Android Studio dev and run android app
Arduino IDE flash Arduino
OpenSCAD 3d model by programming
ReplicatorG convert or send model to 3d printer

external docs

Android Developer
Arduino WiFI
OpenSCAD cheatsheet
There was a nice Android UDP guide on Google code, I saved it in
info/AndroidUDP.md

thanks

Thanks to Dr. Lin for the guidance and Marcus for the hardware