Electronic Voting Machine Using Fingerprint Sensor Sensor On Arduino

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so before start the actual project explanation I request you please subscribe my channel so you can see on the screen up till now I have uploaded more than 66 video on Raspberry Pi the Raspberry Pi with iot that is all this video then Al also iot with ardino all these video are 26 and recently we started the new series on the pck My Controller before that I also cover the project on the python web application so if you want to Learn Python iot Raspberry Pi ardino pck from the scratch and from freely then please subscribe my Channel please support me and the most important part is whatever the code I have explained whatever the project I have created on this YouTube channel all this project are freely available you no need to pay anything for this project so just if only point is you should watch complete video and you should follow my process so if you want to learn something from the scratch and freely then support me and please subscri my channel and please click on like button hello friend in today's video we will learn how we can design and develop a smart electronic o machine project by using fingerprint sensor and already know so before start the next part I would like I would like to tell you the same project I have designed but by using the phas reconnection technique that time I haven't used the fingerprint sensor so if you want same project with the face recognition technique then please watch my uh face recognition video the video THB uh video thumbnail you can see on the screen and also I have attached the video link in the description okay so in this project what we will cover so we will cover connection of each and every Hardware you can see there are many Hardware so how to connect that Hardware with the ardino that we will cover also we will cover the software part of this project so that you can design and develop this project by yourself now before start the next part I would like tell you what will be the flow of this project okay let's understand the project flow so basically if any order come uh first he he should enroll his finger so any water can enroll his one of one of his finger so let's consider if first water come and his enroll his thumb fing thumb finger so with his thumb finger he has one ID another water come and another water enroll uh let's say his index finger and next order come and he enroll his middle finger so likewise any order can enroll uh one of his finger into database okay after enrolling has done the next is actual oting day so actual oting day what happen first on the LCD it will ask please scan your finger so once the water place his finger whatever the finger he has enrolled once he place the finger on this scanner then it will ask the give your vot and after that if you press any one of the switch SL let's say here I consider the three three parties so one one party is Congress then NCP and then uh BJP so let's say if it's finger is Match Into database then uh on the LCD it is asking give your roote so once he pressed any switch let's say this switch then this switch is considered as a congress switch then congress party gets one vot so likewise if the next water come and next water again scan is another finger let's say uh index finger or midd finger then again same process happen in this case let's say if any water scan his finger and again he scan again at the same time he scan and his finger uh but it will not give the access to that water because he's already given the O at that time and it will show on the L3 duplicate o and the buzzer will turn on and buzzer will ring uh three times so it will give the idea it is a invalid o and for the valid V buzzer will only uh ring only one time and if let's say admin want to check which party has uh win this election then admin can come admin can scan his finger one ID we have given to the admin so that ID if the admin scan is finger then automatically here on the LCD it will show winner party name so this is the complete project flow I hope you understand the project flow now we will see the actual project demonstration so that you will get better idea about this project okay uh now we will see the Practical demonstration now you can see there is no power if I give the power to the Ardo then here it will display the project name smart electronic hting machine and then it is asking please scan your finger now for for my case I have taken the four finger like this four finger which consider the each water let's say this is one water this is another water this is third water and this is fourth water and second left hand right hand finger I consider as a admin access so four water and one admin access so you can consider there are four water because at my home I'm only one person uh which can execute this project so there are five finger which are considered as a five person so this is just for practical demonstration okay now first is asking please scan your finger now okay now what what I will do I will place my finger one by one and then I will give the so it is asking me place your finger so I will place my first finger here so you can see your water ID is one now it is asking give your your what and press button so once I press this button you can see buzzer on thanks for voting and it is asking for next person uh please place your finger now in this case if I give the same uh water like let's say same water again try to give the water now what will happen so you can see same finger same ID duplicate what buzzer on now three time buzzer will turn on so this is the some security concept I have I have I have taken here so that only one order can give the uh One V at a one time okay now let's say if the next person come next person means my index finger so index finger I place here you can see your water ID is two now press your V now again I will give this party so this party already we have given the vot now I will press this so thanks for your third finger now third is index finger now I will PR this index finger your water right is three now again I will give the what this switch third switch so third party so you can see thanks for your again I will scan my next hand this another hand thumb is nothing but the my admin access and this is the another water you can consider so I will press this finger here you can see water ride is five now I again press the first W so that first switch that first party you can see thanks for now what happened I for the first party I have pressed the switch two times that means this party has the uh larger root so if I give my admin access now so this is the admin AIS thumb so if I give the admin access then it will show Congress is winner because this is the Congress uh switch Congress party switch so I will press this finger you can see what id is four and winner part is Congress now I will again repeat the same process for another party let's consider the BJP BJP is nothing but the third number switch so again I will do power on power off so smart electronic voting machine place your finger one by one eyes quickly scan my all the VES so first finger I press place then give the vot first voting done now second finger I press second W now third finger now again fourth finger and for this time the third switch I will press two times and again the admin access thumb so you can see winner name is BJP so in this case uh we demonstrate demonstration of this project has done I hope you understand the project flow uh and demonstration of this project now we will see the hardware connection of this project and then we will see the programming part of this project okay now let's understand the hardware connection of this project so first part is this circuit so basically this is nothing but one Zer PCB and Bug strip I have attach here it is considered as a common VC and Common Ground so you can use the braid board also no issue I have the Zer PC that's why I have connected here uh just we need common this is a common ground so that uh if any sensor require 5 Vol we can give from here and if if I require ground then we can give the ground from here so this is simple circuit nothing much complicated you can see here short here you can see this line so this is the common common ground circuit very simple circuit okay first we connect the common with common ground so ardo you can see on Ardo the pin number clearly mentioned so just follow that PIN number and connect that one so first VCC pin so so this is the VCC pin from the ardino so VCC pin should be connected to Common VCC Point here then ground pin from the ardino should be connected to Common Ground so whenever I require common whenever I require VC I will take from here now and ground take from here so this is the first part that we have done now after that we will quickly connect the ITC display if you want the detail explanation of this ITC display uh then please watch my it with ardino video in that video I have clearly mentioned and in detail mentioned how to connect the display with Ardo here I only connect the four pins quickly so you can see on i2c display we have sdl ground and VCC pin so connect that as per that connection so first is ground so this is the ground pin that should be connected to Common Ground which is here then next pin is VCC pin this C pin from this i2c display that should be connected to 5 volt from here we already taken the 5 Vol from here and ground from here so whenever we require 5 Vol and ground we will take from there then after that sdl and so this is the uh SC pin of this i2c display so first connect the pin of i2c display to the last pin of ardino so here is the last pin of Ardo you can see this is the last pin of ardino so I connect here and SDA pin should be connected to just near to that okay so and sdl we connected successfully so in this way we so in this way we quickly connect the LCD and the common VC common ground with the ardino now the next part is uh this fingerprint sensor model so whenever you purchase the fingerprint sensor model uh this pin the one additional work you have to do you have to shoulder this pins like this pins so that you can easily place that pin into the ardino otherwise uh and when you purchase this this is not connected here like this it is remote I can show you so this is a remote connection just place this one and on this uh on this sensor only you can me you can see there is a one number and there is a six number number you can see one number and six number is here if you if you like this you can see this one number and six number so uh we need one number two number three number and four number pin only so we need one number two number and three number pin only one number act as a VCC two number act as a ground and uh three number act as a TX which connected to ardino two number pin and fourth number pin act as RX which connected to Ardo three number pin so this is very simple and easy connection again I will I will repeat connection one number pin which is red pin you can see it is act as a VCC do not go with the color code just follow the pin number because maybe your color of this pin may be different so just follow the PIN number so one number pin in my case it is a red which is connected to 5 Vol then two number pin is a black wire which is is connected to ground okay then three number pin is TX uh which is nothing but the yellow wire which is connected to the ardino 2 number and uh next is a green pin which is a four number pin of this uh sensor which is connected to Aro 3 number pin so like this we have to do the connection quickly I can do so quickly I can do the connection you can see the VCC pin that is uh red pin disconnected to 5 vol common VCC pin okay then black is nothing but the ground pin should be connected to Common Ground okay this is done then after that yellow pin is connected to two number which is TX pin of this sensor which connected to two number pin of ardino okay and then after that uh green pin which is rx pin of this sensor which connected to R TF that is three three number pin so in this way we completed the sensor part also connection also okay next we connect one circuit you can see this circuit so how I design this circuit I will explain here on this paper so basically when you when you have this switch each switch having four pins you can see there are four pins on each switch you can see clearly four pins on each switch then we use the resistor you can use 1 kilm 1 ohm 1 kilm resistor or 500 Ohm resistor also no issue and then we require some Buck strip for soering uh to connect the wire like this so I will show you the circuit what exactly so basically you can see each switch having four pin slow like this 1 2 3 and four let's consider this is the let's consider this is the first your first switch now this pin switch uh this this is the here 1 2 3 and four so four pin we have so from the fourth number pin we have taken one register you can see this is the regist we have taken and then the resistor next point we have connected to the ground so this is the common ground ground so this is the one part now spin this first number pin consider the first number not second not third exactly this cross connection first number pin it is connected to 5 Vol here you can see this is the 5 Vol okay so this is the one pin uh connection one switch connection now with the same repeat we have another switch another switch connected here like this then again 1 2 3 4 number of this switch then from the fourth again we have taken register 1 kilm resistor or 500 ohm resor now this pin is connected direct to directly to the common you can see common here Common Ground ultimately it's connected to ground then this pin we have to connect it to the VCC so ultimately we have shorted this like this indirectly it is connected to the VCC okay again we have the third switch here then third switch again having the four pin 1 2 3 4 same way the from the fourth pin we have taken one register and shorted here okay and then from the one pin we are connected like this common VCC so all this uh all these three pins are connected to Common VC all these register three pins are connected to Common Ground okay now in between fourth number pin and the register point in between fourth number pin register point in between fourth number pin and register point of each switch there is one point out here you can see in between this this one point then there is second point and then the third third point so this point is nothing but the ardino two number uh three uh ardino four number five number and six number so from this point we have taken uh one connection which is connected to AR four number arino five number and Aro six number so I hope you understand this circuit you can see this circuit like this and where is this circuit you can easily develop on bidboard if you want to develop on breadboard please watch my previous video in that video I have developed this circuit on the braid board okay now this is the final output of this switch of this circuit you can see same connection each pin having common VCC you can see this is the common VCC point then this is the common ground point and in between pin uh switch pin and the register one pin out one pin out one pin out which is connected to the ardino that's simple okay okay now we connect we will connect this circuit with the ardino so first we will connect the common VCC so this is the VCC point so from the VCC we take this common VCC very simple then common ground this is the ground pin Common Ground pin of this switch connected to Common Ground pin here very simple then again uh this pin is connected to ardino 4 number add four number then another switch is connected to already know five number then another switch again here which connected to ardino six number so very simple and we completed the switch part now only one part is remaining buzzer buzzer is simplest one only there are two pins one pin is VCC and one pin is ground just connect the VCC pin of this B that is the red pin to the 7 number pin of already know and the ground pin which connected to Common Ground so likewise we completed the circuit part it it look like some M uh but it is completed now we will verify first we will verify the power supply it is very important so this is the ground pin should be connected to the Common Ground just verify it is yes common ground this is VCC pin should be connected to VCC yeah connected then sensor VCC pin should be connected to 5 Vol connected ground connected to the ground uh then LCD ground pin is first number pin is connected to LCD ground pin is connected to ground yes VCC to VCC so this is connection is correct okay now we will give the power supply and just check whether our circuit is correct or not so for power supply you can use the ardino cable and directly connect this USB to the laptop okay smart electron roing machine it is there you can see LCD is working yeah it is asking place your finger it is working you can see LCD is asking place your finger uh now I will place my finger just see whether finger is connected you can see your orti is one now I press the button just check whether connection is working or not it is working perfectly so in this way we completed the hardware connection part uh now we will see the programming part and we will see how to enroll the finger that also we can see [Music] later okay now let's understand the program part of this project so first important part you should download my electronic ardino evm ardino fingerprint sensor folder the Google Drive Link or the web page link you in the description from that web page you will find one download button just click on the download button and uh this this folder it will automatically download at your PC it will be in the zip file so you have to unzip that one so once you unzip that one then you will get this folder so inside this folder there is is a ardino soft uh program for this project another part is you should require the ardino software in your laptop if you don't have the AR software in your laptop then please watch my accident detection video thumbnail you can see on the screen in that video I have explained how to install this software in your laptop okay after that what you have to do you have to just uh double click on this file or you can open the Aro software from the laptop so let's say I have opened the AR software from my laptop okay once the software open go to the file click on open so once you click on open button go to that folder where you downloaded my file so let's say this is the file just click on that file and click on open button so once you click on open the button the project will be open at your end so basically we have Ed uh inbuilt ad our fruit Library fingerprint sensor Library so information of that Library it is given here so very important point point is you should install that library in your laptop so how to install I will tell you process okay to install that Library go to the skch then include library and click on this manage Library uh and before that first check whether internet is connected to your laptop or not it is very important you should have the Internet connect connectivity in your laptop so after you click on that include uh manage Library button it will take some time to open that Library window so wait for some time so you can see this Library manager will be open wait for some second it will download all the libraries so wait for that also this process completed once it completed then we have to type uh fingerprint here so once you type fingerprint then you will get adof frot Library so wait for some second it will show this download completed okay now you can see once it completed just type here fingerprint and press enter wait for some second it will search the fingerprint Library so you can see this library is there adult fruit fingerprint sensor Library here I I I can see my update button because I already installed that library in your case you can select here in install button but and select version 1.1.1 that I use just just click on this install button that Library get install in your laptop so once you click on install it will automatically start installation like this if I want to install here install button it's showing so like same for the fruit Library here you will find the install button so for the fingerprint sensor you can use this library and for liquid Crystal again you can type here Liquid Crystal so so for i2c LCD you require another Library Liquid Crystal you can see this Library I use it is already installed so in your case again here you will find install button just click on install and this Library will install my current version is 1.0.7 it is already installed in my laptop so this two library is very important you should install in your laptop otherwise program will give a compilation error okay so this is the basic steps before start the program okay once you install all the libraries now next part is uh we have to check whether that Library get installed or not for that one go to the file go to the example and here you will find the here you can see here you will find the adder fruit sensor Library fingerprint sensor library and also Liquid Crystal i2c if this two library is coming here that means you successfully install all this library in your in your laptop so first point is we have to enroll our finger so how to enroll our finger just go to the add or fingerprint sensor library and click on this enroll so once you click on this enroll this fun file will be open connect your laptop uh connect your Ardo to your laptop and then fingerprint sensor to your laptop uh to your ardino so once you connect fingerprint sensor to ardino and ardino to laptop go to the tools go to the board here you you should select the ardo you know and comport as for your ardino comport when you connect it will show the ardino comport then uh click on this upload button so wait for some second it will upload this file into your ardino after that you can enroll your finger so make sure your connection is correct that I already told you how to connect the hardware with your ardino okay once you connect just go to this serial monitor here you will find the serial monitor button and here here board should be 96 Z then here it is asking ID for your finger so whatever the finger ID you have to give what id you can give there so let's say if I enroll my thumb I will give first and press enter so once it will press enter it will showing waiting for the finger after that you here you can see here you can see here you can see I have connected the hardware to my ardino now it is asking for the finger uh I will press my finger here so you can see it is uh message on screen again press the same finger uh so place the same finger again there and here you can see store ID 1 waiting for valid finger ID one is store so in this way you can enroll your finger if you want to enroll the second finger again just click on this serial monitor button and again it is asking the ID uh second ID so once I give the two number and press enter now I will uh add my index finger so again I will place my index finger here you can see image taken image converted id2 place the same finger again so again I will place the same finger you can see ID to also store here it is showing uh print match ID to store so that mean two finger I have store now if I want to verify the ID of my finger just go to the file again go to the example and again go to the fingerprint sensor library and here you will see fingerprint function uh program so click on that fingerprint program and just download this program again into your ardino so once I download just click on this serial monitor and again it is waiting for the finger so thumb thumb I have enroll and index finger so I press the thumb on this sensor so once I place the thumb on this sensor you can see found ID one so ID one that means it is enroll now I will place the index finger id2 also found so likewise you can verify your ID and you can enroll your ID so this is the basic steps to enroll your finger uh into database okay now once we enroll our finger into database just go to the main project so this is our main project I will explain the importance of lines that have added into this project so first is Library a fingerprint sensor library then serial monitor library then Liquid Crystal library that three Library we needed for this project then we use uh liquid crystal i2c display the address is 27 why this address is 27 that I detail explain my previous video it to see and ardino video please watch that video based on your address of your ITC address change your address my address is 27 your address may be 26 23 so just find your address uh by watching that video and just replace this 27 by your address generally is 27 but if not working with the 27 then find your address first try with 27 if it's working well and good not fine then go to watch uh go to that video watch again and find your address of your LCD then software serial two number pin three number pin is already know RX pin and three number is already no TX pin that we use in this project then 4 five6 number it is button pin that we have defined buzzer pin connected to seven number that Define here so all these pin connection are defined here two number three number 4 5 6 7 whatever the pin number we have use in the hardware that I Define here then some are button State variable which is which is used to store the state when you press the button then state will be one when you release the button then state will be zero so that for that one we use this button State then uh it is a library inbuilt function some variable what is use of this variable we will see later okay in void setup we first Define the all the pin as output uh sorry buzzer pin as output and the button pin as input because already know taking the input from the switch and already not given the output to the buzzer so that's why it is output pin and all the button pin are the input pin then we are initializing the LCD we are turning the back light then we are defining the serial communic ation board rate then here we are printing on serial terminal here the ADP Library detected then fingers sensor found or not found if the connection is okay then it show the found the fingerprint sensor if not found then it will show the fingerprint sensor not found and uh main part is comes here like it is printing on the LCD smart electronic coting machine when we give the power on then LCD will print this message by using this line then after that main wide Loop started so inside wide Loop you can see what taken is variable we we will see later what is use of this variable so first we print on the LCD place your finger so once you press the finger then here you will get the ID of that finger if the ID is greater than zero that mean it is valid finger if the ID is Les less than zero that means it is invalid finger it is not detected so always ID should be greater than zero then after that if the ID is greater than zero then we are asking we are asking to the user give your word that means it is a way it is a at this point we are asking the user to press the switch okay so uh if the ID is four then that mean it is admin so for admin we have given the four ID here so whenever you want to admin access for any finger just press the four and then enroll your thumb or and any admin uh finger if you want to change the number you can change here 5 six whatever you want in my case I have given the four number for the admin and that finger comes with that four number you can change easily uh while enrolling the finger you the any number and just change that number here okay if the ID is four then it is count it is taking the count one is greater than count two or count one is greater than count three then BJP win if the count two is greater than count one count two is greater than count three then NCP win and nothing about uh like this condition fail this condition fail then ultimately third party win so that is the logic to identify which is the winner of this party and then it is printing on the LCD winner party name so name we have taken from here you can see winner name winner name winner name so it will print on the LCD and while one that mean our project is completed here uh okay if the ID is four let's say if ID is not four then it come here it is checking uh previous ID so let's say so let's say if you scan the finger and again same finger will be scann that at the same time so it's checking whether previous ID is same as the current ID if it's same then it will show here you can see duplicate what and buzzer will on three times so on and off on and off on and off so that will be ring on off on off on off so three time it will start the buzzer it will print on the LCD duplicate out if the double ID comes at the same time so that is the logic here then do while loop started and here if the ID is not four then we are asking give your OTE give your root and press button so it is asking to press the button so once the button press so how to ident button press by using this three line digital read button one digital read button two then digital read button three and the state of that button so which button is pressed that state having high high Spike or high state so let's say button one is PR then spike is high then party one W is equal to party one W plus one so previous one what plus one so 1+ one so that means party on W gets incremented likewise same logic we have given here button two and button three and each button having the party count you can see party count is there so that is incrementing by one by one every time you press the button and what taken variable set to the one so once the what taken variable set to the one then we have to print on the LCD thanks for your vot you can see here that is the logic here thanks for your and one buzzer will turn on pip and stop only one time because it is valid so it is do while loop why it is do while loop because till someone press the switch the message should be display on the LCD give your give your give your out like this so that means do we require do while loop and here you can see that while statement is here till y token is equal to zero means there is no press switch is not pressed when the switch press then we have given that variable to one value so till that variable having zero value print on the LCD give your V and wait for the switch to press so that's logic comes inside this do while loop and once that logic is one it is come out from the loop it's again go to the top and again our project will be start running in the continue Loop so this is the logic I I haven't explained the below logic because this is the inbuilt logic for that fingerprint sensor we don't care about this logic we about the our main logic so main logic I would explain you I hope you understand the logic if you have any doubt reach me out my WhatsApp number in the description just send me the message don't call me send me a message on the WhatsApp whenever I get the free time then I will text you uh I will reply back uh yeah this is the complete idea behind this project how to run this project Hardware connection programming part detail I have explain each and everything if you like my content please click on like button please subscribe my channel and please support me thanks for watching this video
Info
Channel: Rahul Jadhav
Views: 3,477
Rating: undefined out of 5
Keywords: electronic voting machine model, electronic voting machine project, electronic voting machine drawing, electronic voting machine using arduino, electronic voting machine working model, electronic voting machine project using arduino, fingerprint sensor with arduino, electronic voting machine using fingerprint sensor, how to connect fingerprint attendance system with pc, arduino fingerprint tutorial, electronic voting machine using 8051 microcontroller
Id: AKo8_dNeFeY
Channel Id: undefined
Length: 39min 2sec (2342 seconds)
Published: Sun Dec 31 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.