Smart Door Lock using Arduino

buy projects online

Bluetooth-enabled Smart Door Lock using Arduino is to create a secure and convenient method for remotely controlling access to a physical space or object using an Arduino , Bluetooth communication, and a solenoid valve. The project leverages the capabilities of Arduino and wireless communication to enable a mobile app to send commands to lock and unlock the solenoid valve. This guide provides a comprehensive, step-by-step approach to help you navigate the construction, programming, and fine-tuning phases of your voice-controlled wheelchair. Here’s a step-by-step guide to get you started:

Smart Door Lock using Arduino
Smart Door Lock using Arduino

Components required for Smart Door Lock using Arduino

• Arduino Uno R3: The main microcontroller that will process sensor data and control the motors.

• Bluetooth module (HC-05): This module enables wireless communication between the users’ smartphones.

• Electric lock (solenoid lock): This locking system is used for the locking mechanism as per the user’s requirements.

• Relay module: The relay module is an electrical switch that is operated by an electromagnet to either open or close an electric circuit.

• 18659 Battery and battery holder: Here battery is used as the main power supply to the system.

• Jumper wires: These are the cables that are used to make the connections.

• Base: Use a wooden base or foam board.

Hardware Assembly

• Gather Components: Make sure you have all the necessary components listed earlier.

• Electric locking system: Take the base as your requirement and place the solenoid lock on the base.

• Microcontroller: Place Arduino uno to the base the same way as the solenoid lock.• Bluetooth module (HC-05): Same way place the Bluetooth module on the base and connect Bluetooth module RX, TX to Arduino uno TX, RX and connect Bluetooth ground to Arduino ground. Then Bluetooth VCC to Arduino 5V.

• Relay module: Place the relay module to the base then connect the relay module pin(IN) to Arduino digital pin 3, same way relay VCC to Arduino 5V, relay ground to Arduino ground. Connect one of the relay output pins to the solenoid and another to the power supply.

• Power supply: Same way place the battery holder to the base and provide the required power supply (18659 Battery).

Working of Smart Door Lock using Arduino

• User interface: The application is developed to build communication between users and Bluetooth module.

• Bluetooth module: Here Bluetooth receives the command from the application and sends it to the microcontroller (Arduino UNO).

• Microcontroller: Here Arduino processes the command received through Bluetooth from the application and sends signals to the relay module.

• Relay module: The relay module receives the signal from Arduino and acts as an electric switch between the power supply and solenoid.

• Power supply: 18659 Battery supply power to entire system

Circuit Diagram of Smart Door Lock using Arduino

Circuit Diagram of Smart Door Lock using Arduino
Circuit Diagram of Smart Door Lock using Arduino

Pin Connection

Following are the pin connections needed to be done for Smart Door Lock using Arduino.

• Connect the Bluetooth module VCC-GND-TX-RX to 5V-GND-RX (Pin 10)-TX (Pin 11) of Arduino uno R3.

• Connect Relay IN-GND-VCC to D3-GND-VCC of Arduino Uno R3

• Connect to Relay out COM-NC to Power terminal positive (+) in-out to Solenoid valve Positive.

• Connect 7805, Mosfet respect to circuit diagram input-GND-Output to Solenoid valve

• Connect Arduino uno R3 Vin to Positive (+) bread board.

• Connect Arduino uno R3 GND to negative (-) bread board.

Software Programming

To implement smart lock system using arduino, the following software part has to be done.

• Set Up Arduino IDE

• Download and install the Arduino IDE (Integrated Development Environment) from the official Arduino website: Arduino Software.

• Open the Arduino IDE and make sure your Arduino board is selected under the “Tools” menu. Choose the appropriate board type (e.g., Arduino Uno) and the port your board is connected to laptop.

• Install the Arduino IDE and libraries: Bluetooth library, Speech Recognition library (e.g., Julius, Sphinx)

• Upload the Arduino code to the board.

• Install the Android app on your smartphone.

• Pair the Bluetooth module with your smartphone.

• Open the app and configure the controls.

App Setup

App Set-up: Download the BT Voice Control for Arduino from Google Play store.

Smart Door Lock using Arduino

Turn on your device Bluetooth then select Bluetooth name HC-05 after that use Button and slider use it.

Smart Door Lock using Arduino

Code for Smart Door Lock using Arduino

#include <SoftwareSerial.h>
SoftwareSerial bluetooth(10, 11);
const int relayPin = 3;
void setup() {
pinMode(relayPin, OUTPUT);
digitalWrite(relayPin, LOW);
Serial.begin(9600);
bluetooth.begin(9600);
}
void loop() {
if (bluetooth.available() > 0) {
char command = bluetooth.read();
if (command == '1') {
digitalWrite(relayPin, HIGH
delay(500);
digitalWrite(relayPin, LOW);
}
}
}

Conclusion

• Test the wheelchair in a safe environment and adjust as necessary for optimal performance and user comfort.

• Choose high-quality components for reliable and safe operation.

• Follow proper circuit diagrams and safety guidelines during construction.

• Test the wheelchair thoroughly in a controlled environment before using it in public.• Regularly maintain the wheelchair for optimal performance and safety.

Spread knowledge

Leave a Comment

Your email address will not be published. Required fields are marked *