Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Enable spi0 on Orange Pi PC with Armbian 5.75

Featured Replies

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.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.