
Serial.println("WRONG PASSWORD") //Display error message Serial.println("UNLOCKED") //Display unlocked message Inpt=inpt+inbyte //Changing the input character into a stringĬheck() //Run the password check routineĬase true: //If the lock is enabled/locked Inbyte=(char)Serial.read() //Char reading While(Serial.available()) //Repeat till bytes are available in buffer
Gaget locker serial#
Void serialEvent() //Checking for serial interrupt If(lock_enable=true) //Activator infinite loop PinMode(A0, OUTPUT) //Pin to activate the door Serial.begin(9600) //Enabling serial communication String pwd="frank" //Predefined passwordīoolean lock_enable=true //Flag to check lock status

Gaget locker android#
I have used SENA BTerm software Android for this project. This kind of software available for all smart phone platforms such as Android, iOS and Windows. This software is used to send raw data from our device to the HC-05 module connected to the Arduino. BT TERMINAL SOFTWARE:Ī special software known as Bluetooth serial terminal is needed for this project.

This module should be powered by +3.3v and special key pin for secured communication. This module converts the data received through Bluetooth and converts it into serial format that can be understood by Controllers equipped with UART communication. The HC-05 is a pretty famous Bluetooth module used in standard embedded applications where BT connectivity is required. I have added a simple LED in the project i have built-in place of Relay since i haven’t got one to use, kindly excuse me for that. If that’s the case alter the design in such a way that the system is provided with enough power to drive the activator.
Gaget locker Activator#
You may replace it with any other electronic activator or door activator if you are going to use it for doors. I have added a relay to act as an activator for the E-locker in the above design. DESIGN:Īrduino is the heart of this locker system and HC-05 module provides the bluetooth connectivity for the arduino. This locker allows you to lock/unlock your locker without physical touch when you are within the range of Bluetooth communication.

But this Bluetooth enabled Door locker uses Bluetooth as a medium to connect with the locker and your smart phone to feed input credentials.

DIY Arduino based lockers can be found plenty in the internet where keypad was used to feed lock input.
