Difference between revisions of "Pi-Finger"

From SB-Components Wiki

(Replaced content with "== PiFinger ==")
Tag: Replaced
Line 1: Line 1:
 
== PiFinger ==
 
== PiFinger ==
PiFinger, the first-ever Fingerprint HAT for Raspberry Pi Comprise of onboard Nuvoton MCU with an on-chip crypto-accelerator, Cortex-M23 TrustZone, and XOM facilities. A user can use the communication protocol to the PiFinger with commands over the UART protocol with the Baud rate 115200 bps or USB 2.0 full speed.
 
 
Communication Protocol : https://github.com/sbcshop/PiFinger/wiki/Communication-Protocol
 
 
<img src="https://cdn.shopify.com/s/files/1/1217/2104/products/FingerprintforRaspberryPi_700x.png" width="400" height="400" align="left" />
 
 
=== PINOUT ===
 
<table width="40%" border="2">
 
<tr><th>PiFinger Peripheral</th><th>Raspberry Pi Pin (BCM)</td></tr>
 
<tr><td>Fingerprint TX</td><td>GPIO15 (RXD)</td></tr>
 
<tr><td>Fingerprint RX</td><td> GPIO14 (TXD)</td></tr>
 
<tr><td>OLED SDA</td><td> GPIO2 (SDA)</td></tr>
 
<tr><td>OLED SCL</td><td> GPIO3 (SCL)</td></tr>
 
<tr><td>BUZZER</td><td> GPIO13</td></tr>
 
<table>
 
<p>'''Note:''' First registered fingerprint will act as administrator Fingerprint, You have to confirm admin fingerprint before running any command
 
once registered fingerprint. Else device will stay in compare mode. </p>
 
<p>Enable I2C and Serial Interface for Raspberry Pi (Not required in case of windows)</p>
 
<p>Open a terminal and run the following commands to enable I2C and Serial:</p>
 
<pre>
 
sudo raspi-config
 
</pre>
 
 
Choose Interfacing Options -> I2C ->yes
 
 
 
 
sudo raspi-config
 
Choose Interfacing Options -> Serial -> No -> Yes
 
 
 
 
Testing
 
Connect PiFinger on top of 40 pin stackable GPIO header of Raspberry Pi.
 
Now Clone/Download PiFinger Repository by running below command or directly download from github
 
git clone https://github.com/sbcshop/PiFinger.git
 
 
Open cloned/downloaded folder and choose your environment folder (i.e : Raspberry Pi or Windows)
 
For Raspberry Pi
 
Run PiFinger GUI by running below command:
 
python3 PiFinger_GUI.py or using any python3 supported ide.
 
 
Select COM port and Baud Rate ( default is 9600) from above GUI ("/dev/ttyS0" in case of default connection), and click on connect button to start communication with fingerprint sensor.
 
 
 
For Windows
 
Run PiFinger GUI by running "PiFinger_GUI.py" file with any python3 supported ide.
 
 
Select COM port and Baud Rate ( default is 9600) from above GUI ("COM7" (check comport from device manager) in case of default connection), and click on connect button to start communication with fingerprint sensor.
 
 
 
 
GUI Features
 
Compare Fingerprint - Option to Compare registered Fingerprint.
 
 
Add Fingerprint - Add New Fingerprint, will assign an ID for each successful registration.
 
 
Remove Fingerprint ( By ID) - Remove registered Fingerprint for a specific ID.
 
 
Remove All Fingerprint (Registered) - Remove all fingeprint in a single click.
 
 
LED display explanation
 
The LED light of the PiFinger shows the current working status.
 
 
If the LED1 and the LED2 flash in turn, it means that the PiFinger is in operation mode. If the LED1 or the LED2 is blinking alone, it means that the PiFinger is in the demo mode.
 
 
The PiFinger will be in the demo mode after powered on or reset. Send any command to it will make it leave demo mode and enter operation mode immediately, and it will process the received command. When the PiFinger is in operation mode, only power on or reset it can make it back to demo mode.
 

Revision as of 06:03, 6 May 2021

PiFinger