Project tutorial

Push Button Combination Lock Using Arduino

In this tutorial, I am going to show how you can make combinational lock using push button and Arduino.

  • 6,133 views
  • 9 comments
  • 22 respects

Components and supplies

Necessary tools and machines

09507 01
Soldering iron (generic)
(Optional if you want to solder components)

Apps and online services

Ide web
Arduino IDE
Autodesk tinkercad
(Optional for simulation)

About this project

INTRODUCTION:

Combination locks have been there for decades and many products such as briefcase, doors are protected by them. There is keypad module for arduino that can help us to set combination password for various things, you may also use RFID cards to provide access and in this tutorial, I am going to explain how you can make push button combination lock.

This was originally posted on : http://bit.ly/2K4F5Kr

WORKING:

The project will help us to set combination password and you can set password by using 1-6 digits, When you will push the buttons, and the combination is matched the green LED will be turned on and if the combination is not matched the Red LED will indicate that the password is wrong.

INTERFACING OF PUSH BUTTONS:

The push buttons can be interfaced by arduino using pull down configuration i.e. button will give 5V when pressed and 0V when released and pull up configuration i.e. when button is pressed it will give 0V and when released it will give 5V. We are using pull up configuration and we are not using any external resistor instead we are using arduino internal pull up resistor.

CHANGE COMBINATION PASSWORD:

You can change combination password from arduino code, open the code and find the following line,

int code[] = {6,5,5,4,3,2};

and change the sequence, for now you will have to press 6th button followed by 5, again 5, 4, 3 and then 2 and your Green LED should be on.

MAKE CIRCUIT, UPLOAD CODE :

The Circuit diagram and code can be find below, make circuit open arduino IDE and don't forget to select port and board and upload the code.

VIDEO TUTORIAL:

Watch Video tutorial

CONCLUSION:

SO that way you can use arduino and push buttons as combination lock you can use that to secure your door or any other thing. If you are interested in such projects please subscribe us and that would be benificial for you.

Code

Schematics

Circuit
Circuit t4wyn0j9hr

Comments

Similar projects you might like

Arduino - Use Reset Button Like a Push Button

by RoHa

  • 2,832 views
  • 0 comments
  • 12 respects

Fade Lights and Push Button

Project tutorial by Phuong Vo

  • 2,332 views
  • 2 comments
  • 8 respects

Snap Circuits® - Push Button LED

Project tutorial by Daniel Porrey

  • 2,318 views
  • 0 comments
  • 10 respects

Snap Circuits® - Push Button Monitor

Project tutorial by Daniel Porrey

  • 1,198 views
  • 0 comments
  • 8 respects

Gesture-Controlled Lock

Project tutorial by Arduino “having11” Guy

  • 9,654 views
  • 7 comments
  • 37 respects
Add projectSign up / Login