https://github.com/mikebarkmin/rpi-rc522
Use RFID-RC522 with Raspberry Pi
https://github.com/mikebarkmin/rpi-rc522
python raspberry-pi rfid-rc522
Last synced: 2 months ago
JSON representation
Use RFID-RC522 with Raspberry Pi
- Host: GitHub
- URL: https://github.com/mikebarkmin/rpi-rc522
- Owner: mikebarkmin
- License: mit
- Created: 2019-06-12T11:17:18.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-13T07:12:17.000Z (about 7 years ago)
- Last Synced: 2025-03-31T04:12:59.920Z (over 1 year ago)
- Topics: python, raspberry-pi, rfid-rc522
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup
## Pin Connections
| RF522 Modul | Raspberry Pi |
| :---------: | :--------------------: |
| SDA | Pin 24 / GPIO8 (CE0) |
| SCK | Pin 23 / GPIO11 (SCKL) |
| MOSI | Pin 19 / GPIO10 (MOSI) |
| MISO | Pin 21 / GPIO9 (MISO) |
| IRQ | — |
| GND | Pin6 (GND) |
| RST | Pin22 / GPIO25 |
| 3.3V | Pin 1 (3V3) |
## Activate SPI Interface
1. Open raspi-config `sudo raspi-config`
1. Go to `5 Interfacing Options`
1. Enable `P4 SPI`
1. Reboot `sudo reboot now`
1. Check if working. `lsmod | grep spi` should result in something similiar to:
```
spidev 16384 0
spi_bcm2835 16384 0
```
## Install additional packages
```
sudo apt install python3-dev python3-pip git
```
## Clone repository
```
cd ~ # clone repository in home directory
git clone https://github.com/mikebarkmin/rpi-rc522.git
```
## Install python3 requirements
```
cd rpi-rc522
pip3 install -r requirements.txt
```
# Use
## Start read test
```
python3 read.py
```