# Guide by Tim; Fingerprint Scanner with Raspberry Pi Single Board Computer - Unlock with Biometrics!

**URL:** <https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654>\
**Category:** Guides\
**Created:** [13 November 2022 23:31 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654 "2022-11-13T23:31:33Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/tim/32/3324_2.png) [@Tim](https://forum.core-electronics.com.au/u/Tim)\
**Post date:** [13 November 2022 23:31 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654/1 "2022-11-13T23:31:33Z")

</div>

I have just shared content in Guides \> Raspberry Pi: [**" Fingerprint Scanner with Raspberry Pi Single Board Computer - Unlock with Biometrics!"**](https://core-electronics.com.au/guides/raspberry-pi/fingerprint-scanner-raspberry-pi/)  
  
 ![](https://core-electronics.com.au/media/faq/500/Fingerprint-Scanner-Raspberry-Pi-Feauture-image-2.png)  
  
  
  
[**Read more**](https://core-electronics.com.au/guides/raspberry-pi/fingerprint-scanner-raspberry-pi/)

---

<div class="post-metadata">

**Author:** ![Kou234983](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@Kou234983](https://forum.core-electronics.com.au/u/Kou234983)\
**Post date:** [24 March 2023 21:36 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654/2 "2023-03-24T21:36:23Z")

</div>

Hello Tim! I am getting these errors, could you help me out?

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/e/e4845f30eb87c56f7ddaf0ee4e210b6204f1317b.jpeg)  
 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/b/bdf96e398d1776455866d001c3eec5909a633340.jpeg)

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [28 March 2023 02:29 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654/3 "2023-03-28T02:29:57Z")

</div>

Hi Kou,

We’ll have to see your whole error stream to get a proper idea of what’s going on. You can access the forum via the web browser on your Pi, so could you copy the full message in between 3 backticks (`) into a post here?

That’ll help us troubleshoot this one 🙂

---

<div class="post-metadata">

**Author:** ![Kou234983](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@Kou234983](https://forum.core-electronics.com.au/u/Kou234983)\
**Post date:** [31 March 2023 20:03 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654/4 "2023-03-31T20:03:36Z")

</div>

Hello James, here is the error

%Run fingerprint\_simpletest\_rpi.py  
Traceback (most recent call last):  
File “/home/kouma17/Adafruit\_CircuitPython\_Fingerprint/examples/fingerprint\_simpletest\_rpi.py”, line 22, in   
finger = adafruit\_fingerprint.Adafruit\_Fingerprint(uart)  
File “/usr/local/lib/python3.9/dist-packages/adafruit\_fingerprint.py”, line 120, in **init**  
if self.verify\_password() != OK:  
File “/usr/local/lib/python3.9/dist-packages/adafruit\_fingerprint.py”, line 136, in verify\_password  
return self.\_get\_packet(12)[0]  
File “/usr/local/lib/python3.9/dist-packages/adafruit\_fingerprint.py”, line 348, in \_get\_packet  
raise RuntimeError(“Failed to read data from sensor”)  
RuntimeError: Failed to read data from sensor

---

<div class="post-metadata">

**Author:** ![Blayden](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/blayden/32/7535_2.png) [@Blayden](https://forum.core-electronics.com.au/u/Blayden)\
**Post date:** [6 April 2023 05:39 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654/5 "2023-04-06T05:39:26Z")

</div>

Hey Kou,

Seems that the Pi is having trouble communicating with the Fingerprint sensor. Try running:

> ls /dev/tty\*

You should see a list of available serial ports, including the one that the fingerprint sensor is connected to. If you do not see the sensor’s serial port, there may be an issue with the sensor or the connection.

If you can see it is recognised, ensure that the baud rate setting of the fingerprint sensor matches the baud rate setting of the `uart` object in your Python code. The default baud rate for the fingerprint sensor is 57600, but it can be changed using the `set_baud_rate()` method.

Cheers,  
Blayden

---

<div class="post-metadata">

**Author:** ![joseph240366](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@joseph240366](https://forum.core-electronics.com.au/u/joseph240366)\
**Post date:** [12 April 2023 20:21 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654/6 "2023-04-12T20:21:57Z")

</div>

Hello sir,  
i have a quick question about some parts  
I’m using a capacitive fingerprint sensor and ttl usb adapter, and when i run the program, it doesn’t work.  
Can i get a hint about what to change, please ?

---

<div class="post-metadata">

**Author:** ![Pascal250282](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/pascal250282/32/8512_2.png) [@Pascal250282](https://forum.core-electronics.com.au/u/Pascal250282)\
**Post date:** [12 June 2023 04:51 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654/7 "2023-06-12T04:51:16Z")

</div>

My Error: AttributeError: module ‘adafruit\_fingerprint’ has no attribute ‘Adafruit\_Fingerprint’

---

<div class="post-metadata">

**Author:** ![Jeff105671](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jeff105671/32/3729_2.png) [@Jeff105671](https://forum.core-electronics.com.au/u/Jeff105671)\
**Post date:** [12 June 2023 04:59 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654/8 "2023-06-12T04:59:15Z")

</div>

This error can occur if you attempt to import the wrong file - Python does not distinguish between a script and a library module. What is the name of you script file?

---

<div class="post-metadata">

**Author:** ![Pascal250282](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/pascal250282/32/8512_2.png) [@Pascal250282](https://forum.core-electronics.com.au/u/Pascal250282)\
**Post date:** [12 June 2023 12:27 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654/9 "2023-06-12T12:27:08Z")

</div>

fingerprint\_simpletest\_rpi.py

---

<div class="post-metadata">

**Author:** ![Ali255702](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Ali255702](https://forum.core-electronics.com.au/u/Ali255702)\
**Post date:** [30 August 2023 07:27 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654/10 "2023-08-30T07:27:39Z")

</div>

![IMG-20230830-WA0000|690x388](upload://6yGth2EMwYMWcUkEbolKEZQL10T.jpeg

Hi Tim,

This is the error im facing.  
And ttyS0 is listen in ls /dev/tty\* command.  
I don’t know how to set baud rate but im using default 57600 only.

 ![IMG_20230830_125825](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/c/c2de36493ceb800d635bd2e9fd32e50a297bbbc0.jpeg)  
 ![IMG_20230830_125808](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/4/46effa7e02dcb9922bb5aecaeb66d482ce6b249b.jpeg)  
 ![IMG_20230830_125802](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/6/6d1ce2e23e6a76874bbe0d56f4287af588adb982.jpeg)

---

<div class="post-metadata">

**Author:** ![Christian256316](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@Christian256316](https://forum.core-electronics.com.au/u/Christian256316)\
**Post date:** [9 September 2023 17:52 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654/11 "2023-09-09T17:52:40Z")

</div>

Hello, I have the same problem as Ali255702, do you have any idea what it could be?  
I using fingerprint\_simpletest\_rpi.py and the fingerprint is ADA-751

---

<div class="post-metadata">

**Author:** ![Ali255702](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Ali255702](https://forum.core-electronics.com.au/u/Ali255702)\
**Post date:** [10 September 2023 04:41 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654/12 "2023-09-10T04:41:23Z")

</div>

It was a connection problem, use connecting pins or get the holes soldered

---

<div class="post-metadata">

**Author:** ![Moses285346](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@Moses285346](https://forum.core-electronics.com.au/u/Moses285346)\
**Post date:** [13 December 2024 13:52 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654/13 "2024-12-13T13:52:07Z")

</div>

I need information on combining face recognition and fingerprints using Raspberry Pi operating both offline and online modes

---

<div class="post-metadata">

**Author:** ![Dan](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/dan/32/10815_2.png) [@Dan](https://forum.core-electronics.com.au/u/Dan)\
**Post date:** [16 December 2024 00:01 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654/14 "2024-12-16T00:01:54Z")

</div>

Hi Moses,

Welcome to the forum!

We have a guide on [Face Recognition With Raspberry Pi and OpenCV](https://core-electronics.com.au/guides/raspberry-pi/face-recognition-with-raspberry-pi-and-opencv/) that should get you started in the right direction, you will need to adapt it to your specific use case.

---

<div class="post-metadata">

**Author:** ![Louay](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/louay/32/12014_2.png) [@Louay](https://forum.core-electronics.com.au/u/Louay)\
**Post date:** [26 April 2025 17:38 UTC](https://forum.core-electronics.com.au/t/guide-by-tim-fingerprint-scanner-with-raspberry-pi-single-board-computer-unlock-with-biometrics/15654/15 "2025-04-26T17:38:30Z")

</div>

i’m using this on a raspberry pi 5 and it says:

> %Run fingerprint\_simpletest\_rpi.py  
> Traceback (most recent call last):  
> File “/home/louay/Adafruit\_Circuit Python\_Fingerprint/examples/fingerprint\_simpletest\_rpi.py”,  
> line 17 uart serial. Serial(“/dev/ttyS0”, baudrate=57600, timeout=1)  
> IndentationError: unexpected indent

i also didn’t find **ttyS0** when i used `ls /dev/tty*` even tho it was there when i ran this on pi 3b (same issue btw)  
i also tried` ls -l /dev/serial*` and it returned:

> lrwxrwxrwx 1 root root 8 Apr 26 17:19 /dev/serial0 → ttyAMA10

i changed the code to **serial0** and **AMA10** and didn’t work.

Edit: I USED `/dev/ttyAMA0` and it **worked** , looks like raspberry pi 5 doesn’t have ttyS0
