Capacitive Fingerprint Sensor / Scanner Arduino Tutorial | ESP8266 DFRobot

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey yo what is up guys akersh here back with another video today we'll be taking a look at a capacitive fingerprint sensor we'll be interfacing that the fingerprint sensor with an arduino and an esp8266 we'll be making a small project with it so that we can understand how we can interface this with the arduino or the esp8266 module you might have any project in mind or in your list wherein you might require to secure it maybe it uh door lock or be it an access system wherein you need a fingerprint sensor earlier in the market we used to have these kinds of optical sensors which were slow and not very accurate they took multiple swipes to get into but the capacitive fingerprint sensor that we have here today is pretty fast in reading and pretty accurate as well that is why you see these kind of fingerprint sensors on the back side of your phones so this is the same kind and we'll be taking a look at this and how we can interface it with the arduino uno today in this video so stay tuned if that's interesting [Music] pcb gogo is the leading supplier of turnkey pcb assembly services including pcb manufacturing pcb assembly component sourcing functional testing and ic programming they have been in the pcb industry for over 10 years they are equipped with the most advanced production equipment such as yamaha pick and place reflow oven wave soldering x-ray aoi testing and the most professional technical staff pcb gogo provides the order service from prototype to mass production join them now from the link in the description box below so first things first taking a look at the fingerprint scanner which comes from df robot it comes in a cute small packaging uh with directly the capacitive fingerprint sensor it comes in an esd bag i have already opened it and it comes with this connector which is a small pitch connector i've attached some wires to it i'll tell you why so this is a pretty light it's like a 5 mm thick by 1 centimeter 1.2 centimeter diameter sensor it's a circular sensor with a good metallic ring outside which gives it a good depth if you may say and it's very easy to locate and it's kind of the same one which you have on your back of your smartphones for fingerprint scanner so it's a pretty good and accurate one it has a good acrylic casing as well and then this has a connector at the back so this is the connector which sits in like this so the ends of this were bare wires what i did is i connected it to some female header so that i can connect it with our arduino uno or esp8266 today in this video we'll be connecting it with the arduino uno the connections to the esp8266 are pretty much similar the code that you use in the arduino uno can be used on the esp8266 node mcu as well you can use the code with an esp32 and you can interface this with an esp32 as well so it's a pretty versatile thingy uh so let's quickly first take a look at the pin diagram of this fingerprint scanner so at the back of the sensor if we look at it from this way i've color coded the same wires that are present over here you might receive the same jumper so the colors will remain the same for you but the color code is a bit confusing because the red wire isn't the power wire it's instead the ground wire whereas the black wire is not again the ground wire it's the rx pin then we have the dx pin then we have the voltage vcc that you must say then we have the irq which is like a feedback mechanism when the sensor is reading so we use this pin as well and finally we have the power supply so the difference or both these pins the vcc and power supply is that uh essentially this pin is used to power the module whereas vcc is a conditional pin when this is high or when we are sending in voltage over here this this module remains active or else it goes in sleep so what we have done here is i have connected this and this directly to a common wire through which i given 3.3 volts and as you can see that i've joined these two wires over here the green wire and the white wire it's gray over here or to a red wire so there we have it so that's the vcc then i've corrected the color coding when i've connected the red wire to a black or grayish wire so that is over there then i have rx tx and irq color coded over here now let's look at the connections of this with the arduino uno the vcc and the power supply pin of the fingerprint scanner goes to the 3.3 volt pin of the arduino the ground pin of the fingerprint scanner goes to the ground pin of the arduino the rx pin of the fingerprint scanner that is the black wire goes to digital pin 3 of the arduino the tx pin or the yellow wire coming out from the fingerprint scanner goes to pin number 2 of the arduino and finally the irq pin goes to pin number 6 of the arduino so i've connected the fingerprint scanner to the arduino according to this diagram now let's move on to our laptop for the next steps all the relevant code and libraries will be on my github repository the link of the same will be down in the video description box below so first of all you need to download this df robot id809 file because this is the library for the capacitive fingerprint sensor you need to put this in your arduino libraries folder then you need to head over to the arduino code irono you need to copy this code and paste it over on your arduino ide once you're done with this step you can go ahead and connect your arduino to the computer once your arduino is connected to your computer you can go ahead to the tools menu select the correct com port and just hit the upload button once the code gets uploaded you can head over to the serial monitor the code that we just uploaded on the arduino has three functions which is read and test the fingerprint that we press then adding a new fingerprint and then deleting a fingerprint so first we'll add a fingerprint so for that you need to touch the fingerprint scanner wait for it and once the three yellow lights blink you can release it you can touch it again release it touch it again and then you need to touch it last for the third time and then it says green green is the indication uh which says that the fingerprint got recorded and we can see the same on the serial monitor as well it's id5 now in the first mode when we just touch the finger after three blinks it it shows a green light and it says that it has matched with id2 so i already enrolled this thumb with id2 as well so that is why it's showing duplicates so id two and id five are kind of same so on third it again says green that it got detected on id2 uh now we can also delete this fingerprint so for deleting we need to hold it so this is the first option which was about checking this is the second option for reading and this is the third option for deleting it shows green and on the serial monitor we can see it says that the id 2 has been deleted now let's try it again it says red and it's not detected if i try it on a different angle it might detect yes it does detect with id5 so that is how you can play around with this capacitive fingerprint sensor you can you can use this code modify it add it on your project and you will be able to add a capacitive fingerprint scanner onto your project also if you want to you can before connecting the fingerprint scanner to the arduino you can directly connect it to a usb 2 serial board you need to connect the rx pin of the fingerprint sensor to the tx pin of the usb to serial converter and the rx pin of the converter to the tx pin of the sensor apart from that you need to connect the ground pin and the vcc pin you need not require to connect the irq pin once you connect those four wires you can connect the serial monitor onto your laptop and then you can open this noem host software the the software will be available on my github repository as well you can open the software connect to the com port and there are a lot of features get which get enabled as soon as you connect the fingerprint scanner you can view the images of the fingerprints scanned you can perform a check and whatnot so the possibilities are endless you can even use this fingerprint scanner with an esp8266 do let me know in the comment section below if you did use this fingerprint sensor or what are your thoughts of this pretty sleek and cool small fingerprint sensor as compared to the big optical sensor that we are all used to yet so if you have any cool ideas in mind with this fingerprint scanner for a project do let me know in the comment section below as well this was it from my side for today's video thanks for watching subscribe to our channel if you haven't till now also hit the bell icon to stay notified this is our first signing off [Applause] [Music] you
Info
Channel: CETech
Views: 49,682
Rating: undefined out of 5
Keywords: dfrobot, fingerprint, scanner, sensor, door lock, security, arduino, esp8266, esp32, raspberry pi, Smart Remote, Universal remote, iot, home automation, infrared, IR, Remote, AC, Appliance control, smart, automate, receiver, transmitter
Id: Y87V0O1yMCk
Channel Id: undefined
Length: 9min 40sec (580 seconds)
Published: Sun Nov 08 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.