Friday 5 July 2024

Arduino Digital Door Lock

 

Creating a detailed tutorial for your digital door lock project involves breaking down the process into clear, manageable steps. Below is an outline of how to structure your tutorial, including the necessary sections and descriptions. This will guide readers through the process from start to finish.


Digital Door Lock Using Arduino and 3x4 Keypad



Introduction

In this tutorial, we'll show you how to create a digital door lock using an Arduino and a 3x4 keypad. This project will enhance the security of your home or office by requiring a password to unlock the door. We'll cover the components needed, the circuit diagram, the code, and how to assemble everything. You can also watch the full process in our [YouTube video](https://www.youtube.com/setnfix).


Components Needed

  1. - Arduino UNO Board
  2. - 3x4 Matrix Keypad
  3. - 12V Relay
  4. - 5V Relay
  5. - 12V Solenoid Door Lock
  6. - Push Button Switch
  7. - LEDs
  8. - Resistors (120Ω, 1kΩ)
  9. - ATmega328P
  10. - 16MHz Crystal
  11. - Capacitors (22pF, 104pF, 100μF)
  12. - Transistors (D313, 2N2222)
  13. - Battery Casing and 12V Batteries
  14. - 1N4007 Diode
  15. - Various wires and connectors
  16. - Soldering Iron
  17. - Vero Board
  18. - Screws, nuts, and bolts
  19. - Spacers


Matrix KeyPad 3*4



KeyPad Pin connection

Key                    Arduino
1                           N/C
2                            3
3                            8
4                            4
5                            5
6                            2
7                            6
8                            7
9                          N/C
                              



 Circuit Diagram






 Assembling the Components

1. **Prepare the Vero Board:**
   - Cut the Vero board to a suitable size.
   - Place the components on the board and arrange them according to the circuit diagram.
   
2. **Soldering:**
   - Solder the components in place. Ensure that all connections are secure and there are no short circuits.
   - Attach the wires to connect the components as per the circuit diagram.

3. **Connecting to Arduino:**
   - Connect the keypad to the Arduino pins according to the pin configuration specified in the code.
   - Connect the relays, solenoid lock, push button switch, and other components to the Arduino as shown in the circuit diagram.

4. **Power Supply:**
   - Connect the battery casing to provide 12V power to the circuit.
   - Ensure that the power connections are secure and the batteries are properly placed.


You need to download the keypad library

-

 The Code

Upload the following code to your Arduino:










Download the CODE


## Testing and Usage

1. **Initial Setup:**
   - Power on the Arduino by pressing the power switch.
   - The default password is `1234#`.

2. **Unlocking the Door:**
   - Enter the default password `1234#` on the keypad within 8 seconds.
   - If the password is correct, the door lock will open.
   - If the password is incorrect or the time runs out, the power will be cut off.

3. **Changing the Password:**
   - Enter the current password and press `*` within 15 seconds.
   - If the password is correct, enter the new 4-digit password followed by `*`.
   - The new password will be saved to the EEPROM.

---

## Conclusion

By following this tutorial, you will have created a functional digital door lock using an Arduino and a 3x4 keypad. This project not only enhances security but also provides a great learning experience in electronics and programming.

For a visual guide

, watch our [YouTube video](https://www.youtube.com/setnfix) and visit our [website](http://www.setnfix.com) for more projects and tutorials.





Happy making!

---

Feel free to adapt and expand this tutorial based on your specific needs and preferences. Adding images, diagrams, and more detailed steps can enhance the clarity and effectiveness of your tutorial.
Latest
Next Post

post written by:

0 comments: