Giter VIP home page Giter VIP logo

multiple-rc522-asyncio's Introduction

Python multiple RC522 modules with simple relay

Introduction

Allows multiple RFID-RC522 modules to be connected with each triggering their own relays. Based on pi-rc522 who has nailed the IRQ await that allows for lower cpu usage while waiting for a tag. I only modified the code to allow for multiple reads and not for writing or anything else

Connecting

Connecting RC522 module to SPI is pretty easy. You can use this neat website for reference.

Board pin name RPi pin name Extra info
SDA GPIO8, CE0 MUST BE A SPI PORT (CE0/CE1)
SCK GPIO11, SCKL All RC522 share this pin
MOSI GPIO10, MOSI All RC522 share this pin
MISO GPIO9, MISO All RC522 share this pin
IRQ GPIO24
GND Ground
RST GPIO25
3.3V 3V3

Connecting more RC522

Board pin name RPi pin name Extra info
SDA GPIO7, CE1 MUST BE A SPI PORT (CE0/CE1) or create more SPI ports
SCK GPIO11, SCKL All RC522 share this pin
MOSI GPIO10, MOSI All RC522 share this pin
MISO GPIO9, MISO All RC522 share this pin
IRQ GPIO?? Anything, just update rfid_utils.py line 19 +
GND Ground
RST GPIO?? Anything, just update rfid_utils.py line 19 +
3.3V 3V3

pip3 install -r requirements.txt to install packages python3 main.py to start example

Raspberry pi setup

insert sd card to pc config.txt -> add to bottom -> dtoverlay=dwc2 cmdline.txt -> add after rootwait -> modules-load=dwc2,g_ether create empty file called (no extension) -> ssh create a file called -> wpa_supplicant.conf add this to file: country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1

network={ scan_ssid=1 ssid="Plan Ahead Wifi" psk="a1b2c3d4e5" }

multiple-rc522-asyncio's People

Contributors

eduard-f avatar

Watchers

 avatar

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.