MotorLock is an Arduino-based project that controls a DC motor using a keypad and LCD display. The motor will only work if the user enters the correct password.
- Arduino Uno board
- LiquidCrystal_I2C LCD display
- Keypad 4x4
- Breadboard
- Relay module
- DC motor
- Download the MotorLock code from this repository.
- Install the LiquidCrystal_I2C and Keypad libraries in the Arduino IDE. You can do this by navigating to Tools -> Manage Libraries, then searching for and installing "LiquidCrystal_I2C by Frank de Brabander" and "Keypad by Mark Stanley, Alexander Brevig".
- Connect the components as shown in the circuit diagram.
- Upload the MotorLock code to your Arduino board using the Arduino IDE.
- Power up the circuit using a 12V DC power supply.
- When the circuit is powered up, the LCD display will show the "Enter password:" message.
- Enter the correct password using the keypad. The default password is "1234", but you can change it in the code.
- If the password is correct, the LCD display will show the "Access granted, Motor is ON" message and the motor will start running.
- If the password is incorrect, the LCD display will show the "Access denied" message and the motor will not run.
you can replace LED with the component you want to lock I loked DC-Motor
Circuit Diagram
This project was inspired by the many Arduino-based projects on the internet. Special thanks to the authors of the following libraries:
- LiquidCrystal_I2C by Frank de Brabander
- Keypad by Mark Stanley, Alexander Brevig