This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python RFID Reader RC522
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
Python code

I use this below
Python code

Attached Files Thumbnail(s)
a quick code review.
this place's Line 110:
def __init__(self, dev='/dev/spidev0.0', spd=1000000):
at least need to modify spi node from 0 to 2?
like this:
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.
Light blue words might be a link. Have you try to click on them? Big Grin
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 ?
Light blue words might be a link. Have you try to click on them? Big Grin
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

Forum Jump:

Users browsing this thread: 1 Guest(s)