Difference between revisions of "RFID-HAT"

From SB-Components Wiki

 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<div class="row">
 
<div class="row">
 
   <div class="large-8 column">
 
   <div class="large-8 column">
== RFID HAT ==
+
== RFID HAT ==
 
RFID HAT for Raspberry Pi is the latest technology in the range of SB Component products boasting with an updated UART interface running at the frequency of 125KHz with a compact design that has a programmable 0.91” OLED Display that compatibles with all the variants of Raspberry Pi.
 
RFID HAT for Raspberry Pi is the latest technology in the range of SB Component products boasting with an updated UART interface running at the frequency of 125KHz with a compact design that has a programmable 0.91” OLED Display that compatibles with all the variants of Raspberry Pi.
  
Line 19: Line 19:
 
</div>
 
</div>
 
   <div class="large-4 column">
 
   <div class="large-4 column">
[[File:RFID-HAT.png|thumb|left|alt=RFID HAT| Buy it From : ''[https://shop.sb-components.co.uk/products/rfid-hat-for-raspberry-pi Click Here]'']]
+
[[File:RFID_HAT.png|thumb|left|alt=RFID HAT| Buy it From : ''[https://shop.sb-components.co.uk/products/rfid-hat-for-raspberry-pi Click Here]'']]
 
   </div>
 
   </div>
 
</div>
 
</div>
Line 36: Line 36:
  
 
== Installation ==
 
== Installation ==
=== Python ===
+
=== <span style="color:#009999"> Python </span> ===
  
 
==== Library Installation ====
 
==== Library Installation ====
Line 42: Line 42:
 
* For Python3, install these two libraries by running the below command on the terminal.
 
* For Python3, install these two libraries by running the below command on the terminal.
  
<pre> sudo apt-get install python-smbus </pre>
+
<source lang="shell">  
 +
sudo apt-get install python-smbus
 +
sudo apt-get install i2c-tools
 +
</source>
 +
</br>
  
<pre> sudo apt-get install i2c-tools </pre>
 
</br>
 
 
==== <b> Board TEST </b> ====
 
==== <b> Board TEST </b> ====
 
===== Required Hardware =====
 
===== Required Hardware =====
 
* Raspberry Pi x 1
 
* Raspberry Pi x 1
 
* RFID HAT x 1
 
* RFID HAT x 1
 +
 
===== Enable I2C and Serial Interface =====
 
===== Enable I2C and Serial Interface =====
 
* Open a terminal and run the following commands to enable I2C:
 
* Open a terminal and run the following commands to enable I2C:
<pre> sudo raspi-config </pre>
+
<source lang="shell"> sudo raspi-config </source>
  
 
Choose Interfacing Options -> I2C ->yes
 
Choose Interfacing Options -> I2C ->yes
  
 
* Again run below command to enable Serial
 
* Again run below command to enable Serial
<pre> sudo raspi-config </pre>
+
<source lang="shell"> sudo raspi-config </source>
 
Choose Interfacing Options -> Serial -> No -> Yes
 
Choose Interfacing Options -> Serial -> No -> Yes
  
===== Testing =====
+
* You can also enable Serial and I2C using Graphical method, Open Menu by clicking on <b> Raspberry Pi icon >> Preferences >> Raspberry Pi Configurations >> Interfaces </b>, and select below option.
*  
+
 
 +
[[File:Serial_i2c_en_graphical.PNG]]
 +
 
 +
* Now reboot your pi by running the below command :
 +
<source lang="shell"> sudo reboot </source>
 +
</br>
 +
===== <b> Testing </b> =====
 +
* Stack RFID-HAT on GPIO Header of Raspberry Pi.
 +
 
 +
* To run examples of SB-PI-HAT, clone this repository by executing below command
 +
<source lang="shell">
 +
git clone https://github.com/sbcshop/SB-RFID-HAT.git
 +
cd SB-RFID-HAT
 +
</source>
 +
 
 +
* Now run example code by running the below commands.
 +
<source lang="shell">
 +
python3 rfid.py (Without Oled display, output on terminal/shell)
 +
</source>
 +
 
 +
OR
 +
 
 +
<source lang="shell">
 +
python3 rfid_with_oled.py ( To show detected tag id on Oled as well as on terminal/shell) </source>
  
 
== Resources ==
 
== Resources ==

Latest revision as of 05:33, 14 June 2021

RFID HAT

RFID HAT for Raspberry Pi is the latest technology in the range of SB Component products boasting with an updated UART interface running at the frequency of 125KHz with a compact design that has a programmable 0.91” OLED Display that compatibles with all the variants of Raspberry Pi.

Features

  • Standard Raspberry Pi 40 pin GPIO Extension header.
  • UART communication interface
  • On-board programmable 0.91" oled display.
  • Programmable buzzer
  • Support 125 KHz cards/tags/key fobs .

Specifications

  • Operating voltage: 5V DC
  • Operating Frequency: 125 KHz
  • Communication Interface
  • Default Baudrate: 9600
RFID HAT
Buy it From : Click Here

Pinout

Board PIN Raspberry Pi GPIO (BCM)
VCC5V
GNDGND
RFID TXGPIO 15
OLED SDAGPIO 2
OLED SCLGPIO 3
BuzzerGPIO 17

Installation

Python

Library Installation

Before running this board you have to install the required libraries for RFID HAT.

  • For Python3, install these two libraries by running the below command on the terminal.
sudo apt-get install python-smbus
sudo apt-get install i2c-tools


Board TEST

Required Hardware
  • Raspberry Pi x 1
  • RFID HAT x 1
Enable I2C and Serial Interface
  • Open a terminal and run the following commands to enable I2C:
sudo raspi-config

Choose Interfacing Options -> I2C ->yes

  • Again run below command to enable Serial
sudo raspi-config

Choose Interfacing Options -> Serial -> No -> Yes

  • You can also enable Serial and I2C using Graphical method, Open Menu by clicking on Raspberry Pi icon >> Preferences >> Raspberry Pi Configurations >> Interfaces , and select below option.

Serial i2c en graphical.PNG

  • Now reboot your pi by running the below command :
sudo reboot


Testing
  • Stack RFID-HAT on GPIO Header of Raspberry Pi.
  • To run examples of SB-PI-HAT, clone this repository by executing below command
git clone https://github.com/sbcshop/SB-RFID-HAT.git
cd SB-RFID-HAT
  • Now run example code by running the below commands.
python3 rfid.py (Without Oled display, output on terminal/shell)

OR

python3 rfid_with_oled.py ( To show detected tag id on Oled as well as on terminal/shell)

Resources