Jump to content

Recommended Posts

Posted

Requirements:

https://github.com/lthiery/SPI-Py

https://github.com/mxgxw/MFRC522-python (for Raspberry Pi)

https://github.com/kwanxian/OrangePiPC/tree/master/SPI/RC522 (for Orange Pi PC)

 

sudo armbian-config System --> Hardware --> select "spi-spidev" --> Confirm --> reboot

when reboot finish:

sudo vim /boot/armbianEnv.txt under "overlays=spi-spidev",add this:

"param_spidev_spi_bus=0" save & reboot again.

then you can see spi enable in "/dev/spidev0.0".

 

cd ./SPI_Python

sudo python3 setup.py install

 

cd ../RC522

sudo python3 Read.py

 

you can test IC card like this:

Welcome to the MFRC522 data read example

Press Ctrl-C to stop.

Card detected

Card read UID: 53,101,232,169

Size: 8

Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

Card detected

Card read UID: 53,101,232,169

Size: 8

Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines