Coder Social home page Coder Social logo

sbcshop / sb-rfid-hat Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 7.0 6.86 MB

This is a Raspberry Pi RFID HAT Module operating in the 125Khz frequency range. It supports two communication interfaces: UART for RFID and I2C for Oled Display.

Python 100.00%
raspberry-pi sb-rfid-hat i2c-interface rfid i2c

sb-rfid-hat's Introduction

SB-RFID-HAT

This is a Raspberry Pi RFID HAT Module operating in the 125Khz frequency range. It supports two communication interfacs: UART for RFID and I2C for Oled Display.

Features

  • Standard Raspberry Pi 40PIN GPIO extension header, supports Raspberry Pi series boards
  • Two interface options: UART for RFID, I2C for Oled Display
  • User configurable buzzer (connected on GPIO 17 of Raspberry pi)

You can also use these 2 projects available in this repository with this hat:

  • Attendance_system : A GUI based attendance system using our rfid hat and rfid tags/cards.
  • Lock_Pi : You can use this project to log-ff raspberry pi using this rfid hat. To login you have to manually type password to log on again.

How To configure ?

Enable i2c and Serial interface

I2C/Serial interface is disabled by default in Raspberry Pi, To enable it type below command.

sudo raspi-config

  • Now select Interfacing options.
  • Now we need to select I2C option.
  • Now select Yes and press enter and then ok.

To enable serial,

  • select interfacing options.
  • Now we need to select serial.
  • select no to disable serial over login shell.
  • Now select yes to enable serial hardware port then ok.

After this step reboot raspberry by typing below command:

sudo reboot

Install Required Libraries

  • sudo apt-get install python-smbus
  • sudo apt-get install i2c-tools

To verify the list of connected device on I2C interface, you can run below commond :

sudo i2cdetect -y 1

How to run SB-PI-HAT examples

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

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)

Video Tutorial

sb-rfid-hat's People

Contributors

satyamthinkgenix avatar sbcshop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sb-rfid-hat's Issues

Relay GPO

Hi, where can i connect a door unlock relay?

Thank you

Doesn't work at all on Pi4

Bought two boards just getting random info and or 00000000000 from both of them. Just NOT working. I doubt its hardware would be unusual to affect both boards. I've tried with multiple pi boards too as I have a bout 10 of them. Using Debian, latest 32-bit OS from Raspberry Imager. Python3. All set 9600 baud. Reahce out for support from sb-components but nothing back yet. :(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.