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

    Combination Padlock 2.0

    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.

    Combination Padlock 2.0
    combination_padlock_part2.ino2 KB

    Step 3: Future Considerations

    Combination Padlock 2.0

    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.

  •  
     

    Tag cloud

    make build easy simple arduino making homemade solar laser printed portable cheap mini building custom cardboard wooden create super lego turn paracord chocolate your paper light intel