Fingerprint Scanner Set Up with Raspberry Pi - Unlock With Biometric Control!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
unlock biometric control with a Raspberry Pi and this Adafruit fingerprint scanner hey gang Tim here at Crow electronics and today we set up this scanner to register fingerprints to be recognized then we'll use fingerprints to control attached Hardware we will even produce digital images of the emerald fingerprints so let's crack on in when this Adafruit Optical fingerprint scanner captures a fingerprint it's going to return a confidence value if it finds a matching enrolled fingerprint remarkably this small module can store 300 unique fingerprints in its non-volatile flash memory this means that even if you completely depower this system this scanner is still going to remember all your enrolled fingerprints today I'm using a Raspberry Pi 4 model B with this add a fruit fingerprint scanner and on screen now is everything you will need to follow along we will assume you know how to run a Raspberry Pi as a desktop computer and that you have all the hardware to do so check the main written article for resources on this if you need link down below first connect the breakout cable to the scanner be careful and don't force it as the connectors are quite delicate observe here that the lead may not lie completely flat against the board now make sure your Raspberry Pi is unpowered for this next bit we're going to connect the red wire to the 3.3 Power Pin on the Raspberry Pi connect the black wire to any ground pin these next two are for the uart connect the white wire to gpio14 and the yellow wire to gpio50 four of these wires will remain unconnected from the optical scanner a note here this add a fruit fingerprint scanner will break if you connect it to five volts so be sure to double check all the connections before powering up the system with that double check done let's power up the Raspberry Pi communication with the scanner is all handled by a two-wire uart connection the buyer's uart Port is disabled by default but will need it to be available for this scanner to do this click the top left menu button go down to preferences and then click on the Raspberry Pi configuration under the interfaces tab make sure that serial Port is turned on you're also going to want to disable the serial console having done this press OK and restart your system Now open up a new terminal window to install the fingerprint scanner packages in the article find the software setup section and copy these commands one by one into a new terminal enter y if prompted the First Command will install some python driver packages and the second and third commands will download helpful example Scripts with that complete we are ready to begin scanning fingerprints from here we will open up funny IDE click on the application menu this is that Raspberry Pi symbol on the top left of the screen and hover over the programming tab there you'll find funny IDE click the open button and navigate to our freshly downloaded examples find them by jumping through these directories home Pi out of roots circuit python fingerprint examples then choose the simple example fingerprint simple test RPI Dot py now this script we're going to need to modify slightly so that it will use our uart port comment out this line 14 by adding a hash symbol to the front of it uncomment line 17 by deleting the hash symbol make sure to save your script after doing this with that done we can now press the Big Green Run button this will spit out some information to the Shell offering us several options let's start by enrolling a new finger into this system to do this type in enter e we are being prompted for an ID and as this is my first fingerprint I will enter one scanner lights up and we are instructed to place a finger on the sensor you will need to press your finger onto the scanner two separate times to lock it in then we can check whether it's been correctly enrolled by testing our system type and enter f then place that same finger onto the scanner like I'm doing here as you can see it's detecting my fingerprint perfectly written in the Shell it states detected number one and it has provided a confidence value as well in my case 273 the confidence value is from 0 to 500 with higher values meaning higher confidence as a note on incorporating confident scores into your projects it only really makes sense for higher security applications if the scanner confirms a detection you can feel pretty self-reassured about it and just to make sure I'm going to try scanning an unenrolled pinky finger foreign 's working as it should if you want to remove all captured fingerprints from this device simply press R and enter let's now control some gpio with our fingerprints utilizing the breadboard I have added an LED and resistor in series to gpio 21 and a ground pin on the Raspberry Pi singleboard computer the end goal here is to turn on the LED based on our correctly identified fingerprint full schematics found on the written article if you need gpio pins are the gateway to the rest of the world this led is simply a placeholder to represent whatever Hardware you want to connect to in the article find the next example copy and paste this code here into a new script with it copied across make sure to save it I've saved mine as led fingerprint control having pressed run I'm going to place my fingertip onto the scanner hey and it lit up exactly how we wanted it to beautiful now when you scan an enrolled fingerprint like this one right here it's going to turn the LED on for a second nice and of course unenrolled fingerprints are ignored no light and no match bound this script that I've created here is just a remix on one of the examples that we've already downloaded jumping into the script you can see where I have initialized gpio 21 as the output pin that is the PIN that's driving the LED I've also imported the gpio pins to this script so that way we have all our gpio functionality I've set the extrenuous warnings to be false so that way it won't give us warnings all the time and I've set pin which in this case is pin 21 to be an output pin when you set up a gpio pin like this it defaults to low voltage now when we recognize the enrolled fingerprint we toggle the LED on with a brief delay scrolling down a little bit further we can see this else statement this else statement is only ever reached by the python interpreter when an index finger is detected this is why we can see that I then set our led to toggle on sleep for one second and then toggle off and that is how we get our beautiful light turning on and off just like so I hooked up a 12 volt solenoid to our Raspberry Pi system which can act as a door lock this is the makings of a home brew access control system based on biometrics boom I have a guide on hooking up 12 volt solenoids with a Raspberry Pi system so check the description for assembly and code tips we could also modify this script to get different uses for different enrolled fingerprints we could also make the script so it runs infinitely so that way it will constantly be searching for new fingerprints naturally I had to 3D print a mount for this scanner I downloaded this super swell mountable case linked to it down below in the description and I printed it using TPU on the Audi maker 3 behind me I also really wanted to see what the image of my fingerprint would look like through the fingerprint scanner the script can be found in the where to now section of my written guide and you can copy paste and save and run in just the same way as before whenever you run the script using funny IDE in the same manner as before and you press your finger onto the scanner it's going to export a BMP image of your fingerprint it does take about 10 seconds to do so but I think it's proper name and with that you can now take this concept to wherever your imagination desires with your Biometrics as the control lever the sky is the limit and if you want to further your biometric controls with Raspberry Pi we have a video on facial recognition so go check that out link down below we have a forum that you can directly contact us if you ever need a hand with any of your projects plus unlike YouTube comments you can attach photos to your questions so we can troubleshoot for you even faster we are full-time makers and we are here to help so until next time staycode [Music] [Applause] [Music]
Info
Channel: Core Electronics
Views: 19,649
Rating: undefined out of 5
Keywords: optical finger print scanner, unlock solenoid with fingerprint, print capturing onto device, fingerprint control, fingerprint access control, open source, control door lock with finger print, fingerprint software, biometric access control systems, rasp pi, RPi system, best biometric system, code, script, greatest singleboard computer, library, adafruit finger sensor python, r307, R305, FPM10A, Enroll, enrolling, matching fingerprints, confidence value, GPIO Control with Fingerprint
Id: -IUae_-LqR4
Channel Id: undefined
Length: 10min 48sec (648 seconds)
Published: Mon Nov 07 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.