Security is a the concern of many organization where a entry of an unauthorized person is to be restricted. So a system which would help to differentiate between a valid personnel and an invalid person is greatly required. We could develop a solution to this problem with some by using our knowledge from our post of interfacing the fingerprint sensor. So lets start building this system from scratch.
Introduction
Before we begin building the system lets study some of the other techniques which can be used for applying the security. The RFID security system which is secure to many extent, has a loop-hole i.e the person who gets the card can easily pass through the system thus exploiting the security of the system. This can led to complete failure of the system. So if we take into account, humans unique features such as the fingerprint then it increases the security of the system and making it more secure as the system incorporating it need’s human interface for scanning its fingerprint for the access. So we understood to what extent our system can provide the security.
Components Required
- Fingerprint Scanner R307
- Micro-controller Board(Arduino Uno)
- IR Sensor(Infrared Sensor)
- DC Motor
- Buzzer
Working Principle of the Project
The working principle is based on the authentication assistant entry. The basic logic is to allow the entry to the person who has its id already stored in the database of the fingerprint scanner. after the completion of the successful authentication the lock is opened with the help of the mechanism created with the help to DC motor and a nut and Screw. The system after been successfully opened remains open for certain amount of time as decided by the system administration. The minimum you can use is 5-10 sec. After that time the mechanism performs reverse operation and comes back to the original stage. Any unidentified person trying to access the system by exploiting the system, can be brought into notice to the system administration with the help of a alarm which we created in this system with the help of buzzer.
Connection’s for the Project
The connection for this project starts by first, connecting the Fingerprint scanner to the Arduino. Connection for this has been already explained in the tutorial of interfacing the Fingerprint scanner. Let’s see what connection should we do:
- VCC OF THE FINGERPRINT SCANNER CONNECTED TO THE +5 VOLTS BOARD
- GROUND OF THE FINGERPRINT SCANNER CONNECTED TO THE GND (0 VOLTS) OF BOARD
- TX OF THE FINGERPRINT SCANNER CONNECTED TO THE D2 OF BOARD
- RX OF THE FINGERPRINT SCANNER CONNECTED TO THE D3 OF BOARD
So we finished the connection for fingerprint scanner. now we proceed to the connection for the IR sensor. Before starting with the connection. lets understand the use to the IR sensor in our projects. Consider a scenario where a unauthorized person is trying to interrupt the system by performing some unethical task. so here is when IR sensor comes into action. a normal person accessing the system requires a minimum of 10-12 sec and maximum 20 sec in the worst case scenario. so taking this time into consideration we set a counter which counts for the time till it reaches our set value, if we get a IR value of less than the minimum possible value, which is observed when a person is very close to the system and this continues till it reaches our set counter value, The buzzer is set into action and the Person in-charge is brought into consideration of this scenario. So after we detail discussion we should come back to the connection. the connection for the IR sensor are:
- Ground to the GND (0 volts) of the board.
- VCC to the +5 volts of the board
- data pin to the D4 of the board.
Lets connect the DC motor to the Arduino board. The connection is as follow:
- Ground to the GND (0 volts) of the board.
- VCC to the D5 of the board.
This DC motor is also called as the feedback motor which starts performing its rotational motion, when it receives +5 volts with the help of function in Arduino IDE called DigitalWrite(pin,value).
The last component is the manual lock which we created by our-self which we will study in further discussion.
Manual Lock using a Screw and Nut
This mechanism consist of the rotational motion and the Translational motion. The screw is connected to the rotating arm of the DC motor which performs the rotational motion and the nut which is connected to the screw performs the translational motion, which is connected to the lock and motion on positive axis opens the lock and motion on negative axis closes the door.

Final Output
After going through the all the above steps, everyone would be interested in the output we get. All you need to do is to enroll the person in the fingerprint database if it is not been registered to register the user use the Enroll-Fingerprint code. click it and code well be downloaded. upload the code in the Board and enroll yourself. once you have enroll now you need to upload our main code which will provide Authentication ability to our system.

The output of the testing is given below, shows that the confidence value is above 100. if the fingerprint matches with the one in its database, this value is used as the validation value for the person trying to access the door. One thing which we can do to make our system less prone to error is to allow a user to put his/her fingerprint for 2-3, if he/she is trying to access the system and not trying perform any illegal action. with this the writing gets over and now you are ready to create this project.

Code for Download
Download the code and after the enrollment process is completed, upload to the board
Inspiration for the project :- https://youtu.be/gpXuEghz1zc
Thankyou for going through the article. I hope it had all the necessary content