Introduction: Combination Padlock 2.0
HHello, I am sure you may have used one of these combination lock shown in the image. Well would you like to make an electronic lock which works just like these? If yes, than this instructable is for you. This could be use to secure your electronic project secure and only accessible by authorized persons.
I would be using Grove Rotary angle sensor as the rotating center piece. This is just the coding part and instructions and you can code what it unlocks when right combination is entered.
This is second part of combination lock I have made earlier with a twitter notification when the lock is opened successfully. Lets get started.
Step 1: Things Needed
- Intel edison with expansion board (can use arduino uno too)
- Grove motor shield (for easier connections and to protect the edison or Arduino Uno)
- Grove Led (just for testing)
- Grove Rotary Angle Sensor
- micro-USB to USB cable
- Connecting cables for connection to motor shield
Step 2: Hardware Connection and Coding
Assuming you have completed Intel edison getting started, attach USB cable to your computer and open Arduino IDE for Intel. Code is in the file attached.
You could play with the code and once you have mastered rotary sensor you can decrease the range of last value. Also you could add more than 3 steps and also change the coding for what to unlock once the code works. Connections are pretty simple. Attaching LED D7 and rotary sensor to A0 which can also been seen in the photo. above.
For Twitter you will need a find the token for your account. You could find it here by clicking on this link. Copy paste the token in the code.
Step 3: Future Considerations
You could 3D print the case for everything, if your project is portable. You could secure a lot of your projects with this and setup time is less than a minute ( though i can`t think why you would need to take it apart). Well this project was simple and can be done any person new to this field. Feel free to comment below if you have any questions or need help on similar projects.
We have a be nice policy.
Please be positive and constructive.