Saturday, 4 April 2015

FYP 2 - Week 8(2)

TESTING FINGERPRINT 


First, download the Adafruit Fingerprint sensor library from github. To download click the ZIP button in the top bar, rename the uncompressed folder Adafruit_Fingerprint. Check that the Adafruit_Fingerprint folder contains Adafruit_Fingerprint.cpp and Adafruit_Fingerprint.h Place the Adafruit_Fingerprint library folder your /libraries/ folder. Users may need to create the libraries subfolder if it‟s first library. Restart the IDE.

Once we have restarted and we should be able to select the File→Examples→Adafruit_Fingerprint→fingerprint example sketch. Upload it to Arduino as usual. Open up the serial monitor at 9600 baud and when prompted place the finger against the sensor that was already enrolled.


You should see the following:



The 'confidence' is a score number (from 0 to 255) that indicates how good of a match the print is, higher is better. Note that if it matches at all, that means the sensor is pretty confident so you don't have to pay attention to the confidence number unless it makes sense for high security applications.

If you want to have a more detailed report, change the loop() to run getFingerprintID() instead of getFingerprintIDez() - that will give you a detailed report of exactly what the sensor is detecting at each point of the search process.

We did put together a simple sketch for enrolling a new finger via Arduino - its not as easy to use as the Windows program but it does work. Run the File→Examples→Adafruit_Fingerprint→enroll sketch and upload it to the Arduino, use the same wiring as above.


When you open up the serial monitor, it will ask for you to type in the ID to enroll - use the box up top to type in a number and click Send.


Then go through the enrollment process as indicated. When it has successfully enrolled a finger, it will print Stored!


Don't forget to do a search test when you're done enrolling to make sure its all good!

No comments:

Post a Comment