9. MODIFY THE CODE
This step allows us to change the status of the
solenoid after a successful reading from the
fingerprint sensor. When the solenoid is given
power, it will retract.
Add int lock = 5; before void setup (){
Add pinMode(lock, OUTPUT); after void
setup (){
Where the code returns a successful attempt to
the serial monitor, add the following lines:
digitalWrite(lock, HIGH);
delay(5000);
digitalWrite(lock, LOW);
Upload the code to the Arduino and test the lock.
10. TEST THE LOCK
Give the sensor a few test runs. Don't be
discouraged if it doesn't work the first time. Every
attempt is a key part of the learning experience!
I used the Adafruit tutorials but have since found
YouTube to be a great source of ideas.
SCAN FOR ACCESS!
Your finished fingerprint lock can be used on
doors, cabinets, drawers, or other projects
Whether it's just for show or put to use, this
project can be modified as needed. If you're up
to the challenge, here are some ideas for going
further:
Add an LCD screen to display the status of the
lock
Make your own enclosure for the project
Try a solenoid with a lower operating voltage to
eliminate the need for a relay module
Figure out how to get rid of the additional
power source! Page 104 shows the lock
unplugged from the DC barrel connector, but
it’s got to be plugged in to use it.
Since so many makers have made projects
similar to this one, there are a multitude of
designs out there that may inspire your next
modification.
107
make.co
G
H
M82_104-107_FingerprintLock_F1.indd 107M82_104-107_FingerprintLock_F1.indd 107 7/12/22 11:41 AM7/12/22 11:41 AM
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset