Intro
There are different bio metric sensors on the market. They are commonly used to access a private area. Let it be a door, a safe or the privacy of your smartphone. The most known is the fingerprint sensor. A commercial bio metric sensor costs quite a fortune. But there is a cheap alternative for the Maker community. A fingerprint sensor for around 20€.But how to save and identify a fingerprint with an Arduino? Well, you don't need to. The sensor does all the work. You only have to tell the sensor what to do.
Wiring
If you're lucky, you'll get a color coded connection cable. If you aren't, you will get one where at least the GND line is marked. It should be in one of the corners of the cable. From there you can find the rest. The order would be: GND - RX - TX - 5V. And two pins without a connection.
You have to connect GND to GND, VCC to 5V, TX to RX and RX to TX. But if you want to use the serial monitor to watch your results, you shouldn't use the Rx and Tx on the Arduino side, because it will conflict with the USB-port. You can use the Software Serial library and use pin 2 and 3.
The sensor, I received, was only 5V compatible. So if you want to use it with a NodeMcu or any other ESP, you have to add +5V to power the sensor.
Programming
There is no need to reinvent the wheel. If you search for "fingerprint" in the library manager of your Arduino IDE, you'll probably find two libraries. I used the one from Adafruit. It's equipped with examples for a quick start.
With the example sketch "enroll", you can start saving fingerprints to the sensor.
To test it, use the sketch "fingerprint". You'll get the found ID in the internal database of the sensor and the probability for a positive match. With that, you have all you'll need to build your own access control.
Video
Links
Amazon
Fingerprint SensorArduino Uno
Banggood
Fingerprint Recognition Module -- https://goo.gl/QLYiBi
Wholesale Arduino Compatible SCM -- https://goo.gl/JxgyVQ
More Electronics (EU Warehouse) -- https://goo.gl/daHhVE
5% off Industrial & Scientific New Arrivals -- https://goo.gl/ccsqgu (code: ab9275)
This comment has been removed by a blog administrator.
ReplyDeleteWith pin are you using for the esp8266?
ReplyDeleteSince you use the Software Serial library, you can choose which pins you are using. I've used pin D2 and D3
Deleteplz send me software u r using and step by step directions to use it and match my ardiuno uno with fingerprint module
ReplyDeletecan you explain why you don't use the other two pins plz
ReplyDeleteBecause they aren't connected to anything on the fingerprint sensor.
DeleteHallo, hätte eine Frage bezüglich des Fingerprint Sensors. Ich möchte sobald der finger erkannt wurde einen Ausgang mit schalten worüber ich ein Relai zum anziehen bringen möchte um mein türöffner damit zu steuern. Gibt es dafür eine schnelle Lösung mit einem Code?
ReplyDeleteDanke im voraus
MFG Marius
I've done the connections as mentioned as I'm using ESP8266 so I used D2 and D3. But I'm getting "Did not find fingerprint sensor" on the serial output.can anyone help me with this
ReplyDeleteAm using arduino board to build a fingerprint door lock system. But am not using adafruit scanner. I need help please. I need the codes that can work on my arduino IDE. My project mini defense is this Wednesday. Thanks
ReplyDeleteIf I want to connect with an 8-pin esp8266, how can I connect to the fingerprint sensor?
ReplyDeleteIo
ReplyDeletePlease send Wires connection of finger print sensor
ReplyDelete