Adafruit Optical Fingerprint Sensor

Similar documents
Adafruit MCP9808 Precision I2C Temperature Sensor Guide

Fingerprint Based Biometric Attendance System

Adafruit SHT31-D Temperature & Humidity Sensor Breakout

Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout

2.2" TFT Display. Created by Ladyada. Last updated on :15:09 PM EDT

DS1307 Real Time Clock Breakout Board Kit

Arduino Lesson 1. Blink

RGB LED Strips. Created by lady ada. Last updated on :00:18 PM EST

Design And Implementation Of Bank Locker Security System Based On Fingerprint Sensing Circuit And RFID Reader

AR1100 Resistive Touch Screen Controller Guide

Arduino Lesson 5. The Serial Monitor

Arduino Lesson 13. DC Motors. Created by Simon Monk

TSL2561 Luminosity Sensor

1.5" & 2.1" Monochrome 128x64 OLED Display Module

Adafruit ATWINC1500 WiFi Breakout

CAN-Bus Shield Hookup Guide

Arduino Lesson 16. Stepper Motors

1.8" TFT Display Breakout and Shield

A REST API for Arduino & the CC3000 WiFi Chip

TCMS V2 WITH OFIS SCANNER

Tiny Arduino Music Visualizer

INTRODUCTION TO SERIAL ARM

2.3" Monochrome 128x32 OLED Display Module

ZKTime5.0 Attendance Management Software User Manual

OA101 Fingerprint Time attendance system Preface

FrontDesk Installation And Configuration

Arduino Wifi shield And reciever. 5V adapter. Connecting wifi module on shield: Make sure the wifi unit is connected the following way on the shield:

Arduino Due Back. Warning: Unlike other Arduino boards, the Arduino Due board runs at 3.3V. The maximum. Overview

Adafruit Proto Shield for Arduino

How to Make a Pogo Pin Test Jig. Created by Tyler Cooper

All About Arduino Libraries

Connecting Arduino to Processing a

Sending an SMS with Temboo

How to connect to a Class II router using a mobile-phone data cable specifically for Solwise & Safecom routers

Arduino Lesson 17. Sending Movement Detector

Arduino Lesson 4. Eight LEDs and a Shift Register

Work with Arduino Hardware

Adafruit Si4713 FM Radio Transmitter with RDS/RDBS Support

Character LCDs. Created by Ladyada. Last updated on :45:29 PM EDT

IR Communication a learn.sparkfun.com tutorial

C4DI Arduino tutorial 4 Things beginning with the letter i

Installing Global Logger USB Drivers

2.8" TFT Touchscreen. Created by lady ada. Last updated on :00:25 PM EST

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205]

Summer Project Report. Fingerprint Based Attendance System

PN532 NFC RFID Module User Guide

BeagleBone Black: Installing Operating Systems

RS232/DB9 An RS232 to TTL Level Converter

Thermistor. Created by Ladyada. Last updated on :30:46 PM EDT

Arduino ADK Back. For information on using the board with the Android OS, see Google's ADK documentation.

PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL

The $25 Son of a cheap timer This is not suitable for a beginner. You must have soldering skills in order to build this kit.

USING USB FLASH DISK WITH TCMS V2

A Foolproof Biometric Attendance Management System

FOLGER TECHNOLOGIES, LLC 2020 i3 3D Printer Kit

Lizard Standalone Mode Guide Version 1.0:

Creating a Project with PSoC Designer

EPIC 950 THERMAL TICKET PRINTER

MANUAL FOR RX700 LR and NR

STIM202 Evaluation Kit

How to setup a serial Bluetooth adapter Master Guide

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable. Created by Simon Monk

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

SP8 Programmers 硕 飞 科 技. User's Guide. TEL: FAX: WEB:

#include <Gamer.h> Gamer gamer; void setup() { gamer.begin(); } void loop() {

PROXIMITY CARD READERS C-10, C-20, C60, C70

Digital Persona Fingerprint Reader Installation

[USING THE NM150 WITH ADULTICIDING] July 13, 2015

Adafruit Music Maker Shield

Remote Terminal Functionality

Adafruit LSM9DS0 Accelerometer + Gyro + Magnetometer 9-DOF Breakouts

Once form has been completed by one or more employees the information can be entered on the employees direct deposit screen.

QUICK START GUIDE. SG2 Client - Programming Software SG2 Series Programmable Logic Relay

Arduino Lesson 0. Getting Started

USB + Serial RGB Backlight Character LCD Backpack

mybullard Personal Control Panel User Guide

Your Multimeter. The Arduino Uno 10/1/2012. Using Your Arduino, Breadboard and Multimeter. EAS 199A Fall Work in teams of two!

Arduino DUE + DAC MCP4922 (SPI)

MS830 / MS833 Barcode Reader v1.0 9-December-2014

Eric Mitchell April 2, 2012 Application Note: Control of a 180 Servo Motor with Arduino UNO Development Board

Web Ambassador Training on the CMS

Access Control Software Manual

Basic Software Setup Guide.

Waspmote. Quickstart Guide

Programming the VEX Robot

Fingerprint Time Attendance Hardware User Manual

Yun Shield Quick Start Guide VERSION: 1.0 Version Description Date 1.0 Release 2014-Jul-08 Yun Shield Quick Start Guide 1 / 14

Programming the On-Chip Flash on a phycore-xc161 phycore-xc167

Yun Shield User Manual VERSION: 1.0. Yun Shield User Manual 1 / 22.

RN-WIFLY-EVAL-UM. WiFly Evaluation Kit Roving Networks. All rights reserved. RN-WIFLY-EVAL-UM Version 1.32r 10/9/2012 USER MANUAL

Create a Simple Website. Intel Easy Steps Intel Corporation All rights reserved.

User Guide Reflow Toaster Oven Controller

FTDI VCP DRIVER (free) (WIN/MAC/LINUX)

L5354 ControlNet Communications Interface

SAA Simulator. Instruction Manual. Revision 0

FX-BTCVT Bluetooth Commissioning Converter Commissioning Guide

Setting up a Local Interconnect Network (LIN) using dspace MicroAutoBox 1401/1501 Simulink Blocks

USING THE MODEL IQ 1000 INTELLICLOCK

ESP8266 WiFi Module Quick Start Guide

Transcription:

Adafruit Optical Fingerprint Sensor Created by lady ada Last updated on 2016-03-07 06:04:10 PM EST

Guide Contents Guide Contents Overview Enrolling vs. Searching Enrolling New Users with Windows Searching with the Software Wiring for use with Arduino Enrolling with Arduino Downloads Support Forums 2 3 5 6 11 12 15 17 18 Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 2 of 18

Overview Secure your project with biometrics - this all-in-one optical fingerprint sensor will make adding fingerprint detection and verification super simple. These modules are typically used in safes - there's a high powered DSP chip that does the image rendering, calculation, feature-finding and searching. Connect to any microcontroller or system with TTL serial, and send packets of data to take photos, detect prints, hash and search. You can also enroll new fingers directly - up to 162 finger prints can be stored in the onboard FLASH memory. There's a red LED in the lens that lights up during a photo so you know its working. We like this particular sensor because not only is it easy to use, it also comes with fairly straightforward Windows software that makes testing the module simple - you can even enroll using the software and see an image of the fingerprint on your computer screen. But, of course, we wouldn't leave you a datasheet and a "good luck!" - we wrote a full Arduino library so that you can get running in under 10 minutes. The library can enroll and search so its perfect for any project (http://adafru.it/arz). We've also written a detailed tutorial on wiring and use (http://adafru.it/clz). This is by far the best fingerprint sensor you can get. Supply voltage: 3.6-6.0VDC Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 3 of 18

Operating current: 120mA max Peak current: 150mA max Fingerprint imaging time: <1.0 seconds Window area: 14mm x 18mm Signature file: 256 bytes Template file: 512 bytes Storage capacity: 162 templates Safety ratings (1-5 low to high safety) False Acceptance Rate: <0.001% (Security level 3) False Reject Rate: <1.0% (Security level 3) Interface: TTL Serial Baud rate: 9600, 19200, 28800, 38400, 57600 (default is 57600) Working temperature rating: -20C to +50C Working humidy: 40%-85% RH Full Dimensions: 56 x 20 x 21.5mm Exposed Dimensions (when placed in box): 21mm x 21mm x 21mm triangular Weight: 20 grams Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 4 of 18

Enrolling vs. Searching There are basically two requirements for using the optical fingerprint sensor. First is you'll need to enroll fingerprints - that means assigning ID #'s to each print so you can query them later. Once you've enrolled all your prints, you can easily 'search' the sensor, asking it to identify which ID (if any) is currently being photographed. You can enroll using the windows software (easiest and neat because it shows you the photograph of the print) or with the Arduino sketch (good for when you don't have a windows machine handy or for on-the-road enrolling). Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 5 of 18

Enrolling New Users with Windows The easiest way to enroll a new fingerprint is to use the Windows software. The interface/test software is unfortunately windows-only but you only need to use it once to enroll, to get the fingerprint you want stored in the module. First up, you'll want to connect the sensor to the computer via a USB-serial converter. The easiest way to do this is to connect it directly to the USB/Serial converter in the Arduino. To do this, you'll need to upload a 'blank sketch' this one works well for "traditional" Arduinos, like the Uno and the Mega: // this sketch will allow you to bypass the Atmega chip // and connect the fingerprint sensor directly to the USB/Serial // chip converter. // Red connects to +5V // Black connects to Ground // White goes to Digital 0 // Green goes to Digital 1 void setup() {} void loop() {} The "blank" sketch won't work for ATmega32u4-based Arduinos like the Leonardo and the Micro! Use the Leo_passthru sketch instead! If you're using a Leonardo, Micro, Yun, or other ATmega32U4-based controller, use this Leo_passthru sketch instead of the "blank" sketch. //Leo_passthru // Allows Leonardo to pass serial data between // fingerprint reader and Windows. // // Red connects to +5V // Black connects to Ground // Green goes to Digital 0 // White goes to Digital 1 void setup() { Serial1.begin(57600); Serial.begin(57600); } void loop() Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 6 of 18

{ while (Serial.available()) Serial1.write(Serial.read()); while (Serial1.available()) Serial.write(Serial1.read()); } Wire up the sensor as described in the sketch comments after uploading the sketch. Since the sensor wires are so thin and short, we stripped the wire a bit and melted some solder on so it made better contact but you may want to solder the wires to header or similar if you're not getting good contact. When you plug in the power, you should see the red LED blink to indicate the sensor is working. Start up the SFGDemo software and click Open Device from the bottom left corner. Select the COM port used by the Arduino. Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 7 of 18

And press OK when done. You should see the following, with a blue success message and some device statistics in the bottom corner. You can change the baud rate in the bottom left hand corner, as well as the "security level" (how sensitive it is) but we suggest leaving those alone until you have everything running and you want to experiment. They should default to 57600 baud and security level 3 so set them if they're wrong Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 8 of 18

Lets enroll a new finger! Click the Preview checkbox and press the Enroll button next to it (Con Enroll means 'Continuous' enroll, which you may want to do if you have many fingers to enroll). When the box comes up, enter in the ID # you want to use. You can use up to 162 ID numbers. Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 9 of 18

The software will ask you to press the finger to the sensor You can then see a preview (if you cliecked the preview checkbox) of the fingerprint. You will then have to repeat the process, to get a second clean print. Use the same finger! On success you will get a notice. If there's a problem such as a bad print or image, you'll have to do it again. Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 10 of 18

Searching with the Software Once you have the finger enrolled, it's a good idea to do a quick test to make sure it can be found in the database. Click on the Search button on the right hand side. When prompted, press a different/same finger to the sensor. If it is the same finger, you should get a match with the ID # If it is not a finger in the database, you will get a failure notice. Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 11 of 18

Wiring for use with Arduino Once you've tested the sensor, you can now use it within a sketch to verify a fingerprint. We'll need to rewire the sensor. Disconnect the green and white wires and plug the green wire into digital 2 and the white wire to digital 3. You can change these pins later but for now, use the default pins. In the diagrams below we show the wires plugged directly into the Arduino. However, this does not work well because the wires are so thin and they dont make contact. You should solder thicker solid core wires to each wire, to make good contact It is normal for the sensor to blink the red LED quickly once powered, after that the LED will be off until you've started to request data from it Leonardo users: The Leonardo does not support software serial on pins 2 & 3. Use pins 8 and 9 and change the example code to match. Mega users: The Mega does not support software serial on pins 2 & 3. Use pins 10 and 11 and change the example code to match. Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 12 of 18

Next, download the Adafruit Fingerprint sensor library from github (http://adafru.it/arz). 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. You may need to create the libraries subfolder if its your first library. Restart the IDE. Once you've restarted you should be able to select the File Examples Adafruit_Fingerprint fingerprint example sketch. Upload it to your Arduino as usual. Open up the serial monitor at 9600 baud and when prompted place your finger against the sensor that was already enrolled. You should see the following: Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 13 of 18

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. Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 14 of 18

Enrolling with Arduino 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! Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 15 of 18

Don't forget to do a search test when you're done enrolling to make sure its all good! Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 16 of 18

Downloads Arduino interface library on github (http://adafru.it/arz) User Manual (http://adafru.it/ard) Datasheet (its not really a great datasheet and its Chinese but its better than nothing) (http://adafru.it/arb) English version of the User Manual (http://adafru.it/ard) "SFGDemo" Windows-only test software (http://adafru.it/arc) Adafruit Industries https://learn.adafruit.com/adafruit-optical-fingerprint-sensor Page 17 of 18

Support Forums Support Forums (http://adafru.it/forums) Adafruit Industries Last Updated: 2016-03-07 06:04:11 PM EST Page 18 of 18