Let us also see whether our finger is recognized.
Afterwards you have to put your finger a second time for the verification and the imprint is stored in the next number. Put your finger on the glass surface, wait for the instruction in the terminal and remove your finger as soon as it is written there. Call the following: python2 /usr/share/doc/python-fingerprint/examples/example_enroll.py Check it again.Īttached are sample files for storing a new fingerprint, reading out and deleting stored fingerprints. If the error message “Exception message: The fingerprint sensor port “/dev/ttyUSB0″ was not found!” appears, something is wrong with the cabling or the sensor. Please enter the index page ( 0, 1, 2, 3 ) you want to see : The Python library code is available on Github.
To return to the normal shell (under the Pi user), type exit.īy the way: If you prefer to use a C ++ library, you can look at this one from Adafruit (originally for Arduino).
If an error has occurred (in particular, that not all dependent packages have been installed), then execute the following: apt-get -f install
We then update the available packages and install the Python library: apt-get update Now we add the necessary package sources (the author has also a few other exciting projects): wget -O - | apt-key add. Therefore we start a terminal session and type the following, which executes all the following commands as root: sudo bash Installation of the Raspberry Pi Fingerprint Libraryįor some commands of the installation, root privileges are required. One advantage of the USB variant is that it is easier to check whether the sensor has been detected. Theoretically, you can do it also with 5V and a TTL converter, but I will not go into details in this tutorial. If you have a sensor with 3.3V required input voltage, you can also connect this without USB converter directly to the GPIOs. If the name differs (because, for example, other devices are connected), you have to adapt it accordingly in the following steps.
If no other serial devices are connected via USB, nothing should be displayed first and afterwards /dev/ttyUSB0. To check whether the cabling is correct and whether the sensor is detected, you can open your console and perform the following before and after connecting: ls /dev/ttyUSB* If your sensor needs a higher voltage than 3.3V (and the maximum value is equal to or greater than 5V), you can connect the red cable to the 5V pin.
Note in the article description, what voltage your sensor needs.
These are particularly suitable (also in connection with an Arduino). Some models can be used with both 3.3V and 5V voltage. Since there are different fingerprint sensors, which do not all work with 3.3V, a USB UART converter is recommended. The Raspberry Pi has two pins (pin 8 / GPIO14 and pin 10 / GPIO 15), but they work with 3.3V. These sensors were originally developed for the Arduino and can be read via UART. Accessories A USB TTL adapter with 3.3V and 5V voltage output can be used for many serial modules.