background image

Unfortunately, the fingerprint scanner’s Arduino example code for the does not work with the Arduino Due. You would need to modify the code and use it with the hardware
serial UARTs because the Arduino Due does not support software serial. This old forum post will explain why there are compilation errors with the example code using the
Arduino Due board definition => Arduino.cc Forums: SoftwareSerial for Arduino Due.

6.) What are the dimensions of the fingerprint scanner?

The dimensions are listed on page 8 of the datasheet.

7.) I soldered to the back of the fingerprint scanner and none of the Arduino examples work.

Those pins are broken out if you wanted to connect the fingerprint scanner directly to a USB port. The USB data lines are different from a serial UART protocol. If you are
using the Arduino examples for your project, it is recommended to connect to the JST SH connector. If you are interested in plugging the scanner directly to your computer’s
COM port, feel free to test it out and experiment. It has been tested to work with the previous models.

Fingerprint Scanner USB Pinout

Surprise! You found the extra section on how to connect to the USB pins! The connection to the USB was not included in the beginning of the tutorial because the main
objective was to use it in an embedded project with an Arduino microcontroller. To connect the fingerprint scanner with the demo software and your computer’s USB port, you
can connect the pads on the back of the board labeled J1 directly to the USB port of your computer. The image and table below shows the pinout:

Fingerprint Scanner

USB Port

Shield (right most pin)

USB Shield (not necessary if using a USB breakout board). Tied to GND.

GND

GND (Standard USB Black Wire)

D+

D+ (Standard USB White Wire)

D-

D- (Standard USB Green Wire)

Vcc (square pad)

5V (Standard USB Red Wire)

For more information about soldering to the USB pads, check out the instructions provided in the the older tutorial. The directions are essentially the same.

CONNECTING TO THE FINGERPRINT SCANNER'S USB DATA PINS

Resources and Going Further

Now that you’ve successfully got your fingerprint scanner up and running, it’s time to incorporate it into your own project!

For more information, check out the resources below :

GT-521F32/GT-521F52

Datasheet
Programming Guide
SDK Demo Software

GitHub Repository for the FPS’s Arduino Example Code
SparkFun Product Showcase: GT-521Fx2 Fingerprint Scanner

Shawn’s Product Showcase Gist Demo Code

Old Tutorials and Project Examples

For more tutorials and project ideas using the older models of ADH-Tech’s fingerprint scanner, check below:

Arduino

Instructables.com - DIY Fingerprint Scanning Garage Door Opener
Starting Electronics - GT-511C3 Fingerprint Scanner Hardware, Wiring and Connector Numbering
Homautomation - Playing with finger print scanner (FPS) on arduino
SparkFun’s Fellowship of the Things! - Internet of Things Ep 1: AirLock Demo Project w/ 3 Factor Authentication and GitHub Repo for IoT 3 Factor Verification

Raspberry Pi

There’s a Raspberry Pi Python Library for this fingerprint scanner if you look at the post by user jeanmachuca in the Pi forums =>
https://www.raspberrypi.org/forums/viewtopic.php?f=61&t=74178 .

Summary of Contents for GT-521F Series

Page 1: ...erprint identification to your project SparkFun offers a fingerprint scanner from ADH Tech designed to do just that The GT 521F32 and GT 521F52 includes an optical sensor for reading fingerprints and...

Page 2: ...ep in mind when integrating the fingerprint scanner in a project is the number of fingerprints that the device can hold The GT 521F32 costs less but it can hold only 200 fingerprints The GT 521F52 is...

Page 3: ...here is a marking next to the JST SH connector that indicates polarity The JST SH connector breaks out the pins for serial UART and power While the input voltage is between 3 3V and 6V the UART s logi...

Page 4: ...andards for colored cables For example the red wire in this circuit connects Rx to Tx Double check your connections before powering the scanner Option 2 Making a Custom Adapter If you are using the JS...

Page 5: ...he LV side to power the low side of the logic level converters After wiring the circuit it should look like this Option 2 Voltage Division w 3x 10kOhm Resistors Otherwise you could use 3x 10kOhm resis...

Page 6: ...other models To use the demo SDK on a computer 1 Download the SDK_DEMO exe from the product page under the Documents tab 2 Unzip the folder 3 Go to the directory that it was unzipped which should look...

Page 7: ...nd that the finger is placed in the same position during enrollment The template will have a number associated with the fingerprint scanner and it will be saved in its local database Identifying After...

Page 8: ...onnections are correct and the scanner is able to send receive commands The code sets up a the Arduino s hardware serial UART for debugging and tells the scanner to send serial debug messages The code...

Page 9: ...z FioV3 etc you would need to re configure the software serial pin definitions and adjust the connections Not all the pins can support change interrupts for a serial Rx pin depending on what Arduino m...

Page 10: ...perly since it did not have a lot of details I continued to test the drawing in test 1 to see when the scanner would accept the drawing Test 2 was successful in enrolling and identifying by adding a l...

Page 11: ...ner not recognizing your fingers when enrolling There can be issues trying to enroll when using the SDK_Demo exe or Arduino example code This is usually due to fingers being dry and not having good co...

Page 12: ...irectly to the USB port of your computer The image and table below shows the pinout Fingerprint Scanner USB Port Shield right most pin USB Shield not necessary if using a USB breakout board Tied to GN...

Page 13: ...management of a database on multiple fingerprint scanners from one server Node js There s an example in Node js with an API I have not tested this feature before but try looking at this GitHub reposi...

Reviews: