Joyce Lin
Published © GPL3+

How to Build a Fingerprint-Controlled Lock with Raspberry Pi

Design a geocache box using a fingerprint sensor, servo, Raspberry Pi, and Viam

BeginnerFull instructions provided1 hour675

Things used in this project

Hardware components

Raspberry Pi 4 Model B
Raspberry Pi 4 Model B
×1
Adafruit R503 fingerprint sensor
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
×1
USB-TTL UART Serial Adapter (CP2104)
M5Stack USB-TTL UART Serial Adapter (CP2104)
×1
Jumper wires (generic)
Jumper wires (generic)
×7

Software apps and online services

Viam Platform
Viam Robotics Viam Platform

Hand tools and fabrication machines

Multitool, Screwdriver
Multitool, Screwdriver

Story

Read more

Custom parts and enclosures

Servo latch

Mechanism to mount servo on the interior of a box to lock it

Schematics

R503 fingerprint sensor

Wire the R503 to a Raspberry Pi 4 using a CP2102 USB adapter

Servo wiring

Wire an SG90 servo to a Raspberry Pi 4

Code

Adafruit R503 Viam module

Viam module to add support for the Adafruit R503 fingerprint sensor, used to enroll and match fingerprints via UART

Controller Viam module

Viam controller to move a SG90 servo to an open position upon a R503 fingerprint match

Credits

Joyce Lin
5 projects • 3 followers
Head of developer relations at Viam

Comments