Mundarija:

RFID RC522 (Raspberry Pi): 4 qadam
RFID RC522 (Raspberry Pi): 4 qadam

Video: RFID RC522 (Raspberry Pi): 4 qadam

Video: RFID RC522 (Raspberry Pi): 4 qadam
Video: How to setup a Raspberry Pi RFID RC522 Chip 2024, Noyabr
Anonim
RFID RC522 (Raspberry Pi)
RFID RC522 (Raspberry Pi)

Raspberry Pi yordamida RFID o'quvchi/yozuvchi (RC522) ni sozlash bo'yicha asosiy qo'llanma.

1 -qadam: qismlar

Qismlar
Qismlar

RPI 3 -

4 Amp quvvat adapteri -

16 Gb micro SD -

120 dona o'tish kabeli:

RFID sensori -

2 -qadam: sozlash

Sozlash
Sozlash
Sozlash
Sozlash

SDA 24

SCK 23

MOSI 19

MISO 21

IRQ FOYDALANILMAGAN

GND 6

RST 22

3.3V 1

1. SPI interfeysini yoqish

sudo raspi-config

2. Qayta yuklash

sudo qayta yuklash

3. spi_bcm2835 yuklanganligini tekshiring

lsmod | grep spi

4. Python2.7-dev ni o'rnating

sudo apt-get install python2.7-dev

5. Git loyihasini yuklab oling, katalogni o'zgartiring va o'rnating

git klon

CD SPI-Py

sudo python setup.py ni o'rnating

6. MFRC522-python-ni o'rnating

git klon

CD MFRC522-python

7. Skriptni ishga tushirish

Python Read.py

3 -qadam: kod

Kod
Kod

github.com/mxgxw/MFRC522-python.git

RFID kartasidan o'qish:

github.com/mxgxw/MFRC522-python/blob/maste…

RFID kartasiga yozish:

github.com/mxgxw/MFRC522-python/blob/maste…

4 -qadam: Qo'shimcha ma'lumotlar

Image
Image

Rasmiy veb -sayt:

www.piddlerintheroot.com/rfid-rc522-raspbe…

Tavsiya: