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
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.