Today, I will share a simple door lock project using Arduino UNO, servo motor, and LCD. The system can unlock and lock the door when the correct password is entered. You can change the password and the rotation of the servo motor in Arduino IDE.
Components:
- Arduino
- Keypad 4 × 3
- LCD 16 × 2 I2C
- Servo motor
Steps:
- Add ARDUINO UNO R3, KEYPAD-PHONE, MOTOR-PWMSERVO, LM016L, and PCF8574 to the workspace.
- Connect keypad row pinouts of the keypad to 5, 4, 3, and 2 pins of Arduino UNO. Then, connect keypad column pinouts of the keypad to 8, 7, and 6 pins of Arduino UNO.
- Connect servo motor OUT pin to Arduino UNO pin 9. Then, connect GND and VCC pins to the ground and +5V.
- Connect LCD RS, RW, E, D4, D5, D6, and D7 pins to the PCF8574 IC P0, P1, P2, P4, P5, P6, and P7 pins. Then, connect PCF8574 IC A0, A1, and A2 pins to the +5V. Lastly, connect PCF8574 IC SDA and SCL pins to the Arduino UNO SDA and SCL pins.
- Click HERE to download the Arduino project code. Extract the project code and verify.
- Copy the Hex file, then paste it into the Proteus Arduino board.
- Start the simulation
- If the "DOOR IS LOCKED" word appears on LCD, enter the password and press "#" to unlock.
- If the "DOOR IS UNLOCKED" word appears on LCD, enter the password and press "#" to lock.
- If the "WRONG PASSWORD" word appears on LCD, press the "*" keypad key to reset the password.
Video:
If you have any suggestions, please write in the comment section. Thank you for your time 👷.
If you have any suggestions, please write in the comment section. Thank you for your time 👷.
No comments:
Post a Comment