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.

  • 25,648 views
  • 18 comments
  • 42 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

  • 13,909 views
  • 0 comments
  • 13 respects

Keypad Entry Lock

Project in progress by 3 developers

  • 23,226 views
  • 18 comments
  • 48 respects

Arduino Lock Box

Project tutorial by LoganSpace42

  • 15,686 views
  • 10 comments
  • 27 respects

Ultrasonic Security System

Project tutorial by Ivan

  • 91,038 views
  • 54 comments
  • 179 respects

Dimming Lights with PWM using Push Button

Project tutorial by Phuong Vo

  • 18,006 views
  • 4 comments
  • 18 respects
Add projectSign up / Login