Tinker Board Forum

Full Version: Python RFID Reader RC522
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All;

    I would like to use RFID Reader and Writer with Tinker board and communication via SPI interface when I am use with raspberry pi. It's working but when I use with Asus tinker board is not working. Could you please advice me?

Best regards,
Thank you.

I use this below
https://ibm.box.com/shared/static/dqzt5q...kffg0x.zip
Python code

I use this below
https://ibm.box.com/shared/static/dqzt5q...kffg0x.zip
Python code
a quick code review.
this place MFRC22.py's Line 110:
Code:
def __init__(self, dev='/dev/spidev0.0', spd=1000000):
at least need to modify spi node from 0 to 2?
like this:
Code:
def __init__(self, dev='/dev/spidev2.0', spd=1000000):

and take a try again??
hope it can work through.
Have you check whether you have spidev0 in /dev ?
Otherwise you need to configure the overlay file in /boot to enable SPI interface.
Hello i change spidev on boot from 2.0 to 0.0
Try to change in code 0.0 to 2.0

But nothing yet resolve

Can someone have an example
What about what you get on /dev ?
Hi Bzonedza,

According to the pics you attached, it seems two different python code ran on tinker & rpi.
And the error on tinker is the argument number, maybe you give one more set of parentheses?

Can you help to check this?
RFID Reader Is Good