View: 3447|Reply: 6

Error when trying to use RFID in my kit

[Copy link]

1

Threads

2

Posts

17

Credits

Newbie

Rank: 1

Credits
17
Post time 2019-6-4 23:07:39 | Show all posts |Read mode
I have the Adeept RFID Starter Kit for Raspberry Pi 3 2 Model B/B+ Python with Printed Guidebook, 40-Pin GPIO Boardand a rasberri pi 3 B and I am following the instructions for lesson 19 for python on using the RFID tag. and i have no problems up to the point of running the Read.py when i try this error comes up.

  1. pi@alec:/media/pi/CARL/Adeept_RFID_Kit_for_RPi_V2.0/code/Adeept_RFID_Learning_Kit_Python_Code_for_RPi/19_RFID/MFRC522-python $ sudo python Read.py
  2. /media/pi/CARL/Adeept_RFID_Kit_for_RPi_V2.0/code/Adeept_RFID_Learning_Kit_Python_Code_for_RPi/19_RFID/MFRC522-python/MFRC522.py:113: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  3.   GPIO.setup(22, GPIO.OUT)
  4. Traceback (most recent call last):
  5.   File "Read.py", line 21, in <module>
  6.     MIFAREReader = MFRC522.MFRC522()
  7.   File "/media/pi/CARL/Adeept_RFID_Kit_for_RPi_V2.0/code/Adeept_RFID_Learning_Kit_Python_Code_for_RPi/19_RFID/MFRC522-python/MFRC522.py", line 115, in __init__
  8.     self.MFRC522_Init()
  9.   File "/media/pi/CARL/Adeept_RFID_Kit_for_RPi_V2.0/code/Adeept_RFID_Learning_Kit_Python_Code_for_RPi/19_RFID/MFRC522-python/MFRC522.py", line 386, in MFRC522_Init
  10.     self.MFRC522_Reset();
  11.   File "/media/pi/CARL/Adeept_RFID_Kit_for_RPi_V2.0/code/Adeept_RFID_Learning_Kit_Python_Code_for_RPi/19_RFID/MFRC522-python/MFRC522.py", line 118, in MFRC522_Reset
  12.     self.Write_MFRC522(self.CommandReg, self.PCD_RESETPHASE)
  13.   File "/media/pi/CARL/Adeept_RFID_Kit_for_RPi_V2.0/code/Adeept_RFID_Learning_Kit_Python_Code_for_RPi/19_RFID/MFRC522-python/MFRC522.py", line 121, in Write_MFRC522
  14.     spi.transfer(((addr<<1)&0x7E,val))
  15. TypeError: function takes exactly 2 arguments (1 given)
Copy the Code
I do not know what to do or how to fix it please help me

Reply

Use magic Report

23

Threads

223

Posts

814

Credits

Senior member

Rank: 4

Credits
814
Post time 2019-6-10 18:28:31 | Show all posts
Hello,

Please clone the latest code from our github:

https://github.com/adeept/Adeept ... Python_Code_for_RPi

If the problem persists, please contact us again.



Reply

Use magic Report

1

Threads

2

Posts

17

Credits

Newbie

Rank: 1

Credits
17
 Author| Post time 2019-6-11 23:20:50 | Show all posts
Adeept replied at 2019-6-10 06:28 PM
Hello,

Please clone the latest code from our github:

thank you it works now is there a resource i can use to be able to get the output from the rfid tag and do something with it.  By this i mean where is the data being displayed at in the code and is there a way to make the code just give that data to another script?

Reply

Use magic Report

0

Threads

1

Posts

12

Credits

Newbie

Rank: 1

Credits
12
Post time 2019-7-15 17:18:36 | Show all posts
i need also help i tried all of this and the download again but it doesnt work it appears the error
Reply

Use magic Report

0

Threads

3

Posts

10

Credits

Newbie

Rank: 1

Credits
10
Post time 2020-10-25 06:23:52 | Show all posts
The Problem still occurs, is there any update?
Reply

Use magic Report

23

Threads

223

Posts

814

Credits

Senior member

Rank: 4

Credits
814
Post time 2021-2-4 17:11:22 | Show all posts
1563182005 replied at 2019-7-15 05:18 PM
i need also help i tried all of this and the download again but it doesnt work it appears the error

We have updated the manual and code, please download again (V3.0 version):
https://www.adeept.com/learn/detail-23.html

Reply

Use magic Report

23

Threads

223

Posts

814

Credits

Senior member

Rank: 4

Credits
814
Post time 2021-2-4 17:11:36 | Show all posts
1603578179 replied at 2020-10-25 06:23 AM
The Problem still occurs, is there any update?

We have updated the manual and code, please download again (V3.0 version):
https://www.adeept.com/learn/detail-23.html

Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules