VMA405 with Raspberry Pi 3 B?


#1

I purchased a VMA405 for arduino, intending on using it for RFID with my Raspberry Pi. I followed a tutorial here to install the necessary Python libraries for the RC522 chip, but I ran in to a problem with my code:

#!/usr/bin/env python

import RPi.GPIO as GPIO
import SimpleMFRC522

GPIO.setwarnings(False)

reader = SimpleMFRC522.SimpleMFRC522()

try:
text = raw_input(‘New data:’)
print(“Now place your tag to write”)
reader.write(text)
print(“Written”)
finally:
GPIO.cleanup()

The error trace I get is

Traceback (most recent call last):
File “Write.py”, line 8, in
reader = SimpleMFRC522.SimpleMFRC522()
File “/home/pi/MFRC522-python/SimpleMFRC522.py”, line 14, in init
self.READER = MFRC522.MFRC522()
File “/home/pi/MFRC522-python/MFRC522.py”, line 117, in init
self.MFRC522_Init()
File “/home/pi/MFRC522-python/MFRC522.py”, line 390, in MFRC522_Init
self.MFRC522_Reset();
File “/home/pi/MFRC522-python/MFRC522.py”, line 120, in MFRC522_Reset
self.Write_MFRC522(self.CommandReg, self.PCD_RESETPHASE)
File “/home/pi/MFRC522-python/MFRC522.py”, line 123, in Write_MFRC522
spi.transfer(((addr<<1)&0x7E,val))
TypeError: function takes exactly 2 arguments (1 given)

Is this a problem with the compatibility between the VMA405 and the Raspberry Pi, or am I just doing something wrong?