Component guide · Intermediate · 3 min read
Fingerprint Sensors (R307, R503, AS608)
Wiring and Enrolling
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
A fingerprint module such as the R307, R503 or AS608 has its own processor that captures, stores and matches fingerprints. Your microcontroller just sends commands over UART at 57600 baud and gets back a match ID. Enrol each finger by scanning it twice, then search the stored templates. It is handy for door locks and attendance systems, but treat it as convenience security, not bank-grade protection.
Key specs at a glance
- Interface
- UART, usually 57600 baud, 3.3 V logic on most
- Supply
- About 3.3 V (R503, R307S) or 3.3 to 6 V (R307, AS608) depending on version
- Storage
- Roughly 150 to 1000 templates depending on model
- Sensor type
- Optical (R307, AS608) or capacitive (R503, often with LED ring)
- Match time
- Under about 1 second
- Library
- Adafruit Fingerprint Sensor library
Wiring
Check your module's wire colours against its datasheet, because colours vary between batches. Typically: VCC, GND, TX, RX, and on the R503 a touch output and a separate 3.3 V touch supply.
- Module TX to board RX, module RX to board TX (UART crossover).
- On an Uno, use SoftwareSerial on pins 2 and 3; on an ESP32 or Mega use a hardware serial port.
- Power from 3.3 V if the module requires it. A wrong supply is the most common cause of a dead sensor.
Enrolling and matching
Install the Adafruit Fingerprint library and open its examples:
- 1enroll: choose an ID, place the finger, lift, place again. The module combines the two scans into a template and stores it.
- 2fingerprint: place a finger; the module searches its library and returns the matching ID and a confidence score.
- 3Use the ID in your sketch to open a lock, log attendance or unlock a menu.
Enrol the same finger in two IDs at slightly different angles for better recognition. Keep a separate way in, such as a keypad code, in case a finger is not recognised.
Building a fingerprint lock
Drive a solenoid lock through a MOSFET or relay with a flyback diode, and power it from a separate supply sized for its current. Mount the sensor where it stays dry and out of direct sun, which can upset optical sensors. Fingerprint templates are personal data, so do not upload them anywhere and tell users how their data is stored.
Common mistakes to avoid
- Powering a 3.3 V-only module from 5 V.
- Wiring TX to TX and RX to RX.
- Enrolling with a single quick scan and getting poor matches.
- Driving a solenoid lock straight from a GPIO pin.
- Having no backup way to open the lock.
Frequently asked questions
What baud rate does the R307 use?
57600 baud by default; some modules can be changed.
Where are fingerprints stored?
In the module's own flash memory as templates, not as images, on most of these modules.
Does it work with ESP32?
Yes. Use a hardware serial port and a 3.3 V supply if the module requires it.
Optical or capacitive, which is better?
Capacitive types such as the R503 are smaller and handle dry or bright conditions better; optical ones are cheaper.
Why does my sensor not respond?
Check the supply voltage, swap TX and RX, and confirm the baud rate.
Parts for this guide
Search the store for the parts named above, or ask Geeko AI which one fits your project.
Terms in this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
- Hangzhou Grow R307 and R503 user manuals
- Synochip AS608 datasheet
- Adafruit Fingerprint Sensor library documentation
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.
