Introduction: Unlock Your Door With a Hand Gesture

Picture of Unlock Your Door With a Hand Gesture

I was browsing the techchrunch website a while ago when i stumbled on an article talking about gesture recognition technology being used to open door locks, while the product is not out yet i thought to do my best with my smartphone and some components i have lying around.

Step 1: What We Need to Begin

Picture of What We Need to Begin

A- Hardware

1- An Arduino board (i am using an arduino Uno here)

2- 1sheeld

3- One micro servo

4- One door bolt (the one i am using is already mounted on the door)

5- Male to male jumper wires

6- a piece of striped wire

B- Software

1- The Arduino IDE which you can download here

2- Get the 1sheeld Arduino library and the phone app here

PS: make sure to go through the 1sheeld intro tutorial here and how to use 1sheeld with different Arduino boards here (i will be using Arduino UNO for the rest of the tutorial)


Step 2: Wiring and Setup

Picture of  Wiring and Setup
  1. mount the 1sheeld on the Arduino board
  2. Make sure the power switch shown above is turned to 5V (for Arduino UNO users) if you're using another Arduino board check here

  3. Connect your servo motor as shown in figure

VCC ==> to the 5V in your 1sheeld
GND ==> to your GND in 1sheeld

Signal==> to pin 10 in your 1sheeld

Step 3: Software

Picture of Software
  • Simply, the code reads the values of your phone's accelerometer and checks for a predefined gesture.
  • Upload the attached code and lets move to the next and final step.

PS: make sure the 1sheeld is in upload mode as seen in the image above

Step 4: Putting It All Together

Picture of Putting It All Together
  1. Mount the components on the back of the door as seen in pictures
  2. Attach the servo to the bolt using the striped wire
  3. Connect the servo to the 1sheeld as specified in step 2
  4. Connect the Arduino to your laptop and make sure the code is uploaded
  5. Switch the 1sheeld back to operating mode
  6. Open your 1sheeld app and connect your phone to your 1sheeld board (check 1sheeld tutorial here if you haven't already)
  7. Select the accelerometer and buzzer shields(the first two from the top), and press on the multiple shields icon at the top right of the app.
  8. Now, hold your phone flat -screen facing upward- , then rotate your phone left untill the screen is facing left, and finally put you phone in an upright position. (Or you can watch the video :D)
  9. Voilà the door is unlocked (will automatically re-lock after a short delay)
  10. Finally i want to encourage you to tinker around with the project add or remove from it however you see fit , and if there's anything i can help you with please let me know

PS: Tune the delay to see what works best for you.

Comments

nimbus2020 (author)2016-08-26

I have wanted to make this type of project since I saw The Amazing Spider Man, but I have been too lazy to try it. In the movie it was switch regulated, but I believe yours is better and easier. I am definitely going to try it. thanks a lot for the inspiration!

Subhajitdas298 (author)2016-08-25

Good simple work. I was thinking about same method. Good work. Keep it up.

AdhamN (author)Subhajitdas2982016-08-26

glad you liked it

DylanD581 (author)2016-08-24

Awesome! Hand gesture activation makes any project make you feel "in control"!

AdhamN (author)DylanD5812016-08-26

that's what i was aiming for :D

ROBO HUB (author)2016-08-20

cool bro...

AdhamN (author)ROBO HUB2016-08-21

thanks a lot.

DIY Hacks and How Tos (author)2016-08-20

Cool. Hand gesture controls give any projects a great futuristic feel.

They sure do, thanks for stopping by :D

About This Instructable

9,929views

129favorites

License:

More by AdhamN:Control an RGB LED Using Your Smart PhoneUnlock your door with a hand gesture
Add instructable to: