-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RC522 module #11
Comments
(I leave this issue open, because I get similar questions quite often) This code base only works with USB RFID readers and I can not give any advice how to use this code with other models (like using pins). If anybody else has ideas and pointers, feel free to post them in this issue thread. USB RFID readers usually are set up in a way that they act "like a keyboard". The Chip ID is pushed to the RPi as if you were typing it in a keyboard and pressed "enter". This input is what the python daemon is waiting for and then it pipes the result into the bash script. |
I have adjust the code to work with the RC522 module over GPIOs. Have a look at https://github.com/keinkurt/RPi-Jukebox-RFID/tree/MFRC255 BTW @MiczFlor Great project, thank you very much. I'm now beginning to build my own Jukebox. |
@keinkurt thanks for the scripts. Would it be ok, if I copy them over in a subfolder to this project? |
@MiczFlor yes, no problem for me. Don't forget to copy the MFRC522.py, too. |
both of you, great project! |
@keinkurt @jackwidu If either of you or both of you would write a quick "howto" for the troubleshooting section on "how to (try to) add any RFID reader" - that would be awesome. I don't plan to buy a couple to play with them, but it seems I don't need to, because there is great talent here in the (small) community to fix this issue. Thanks! |
Ok, finally I got it working. There were bugs that of course weren't your fault.
|
Works like a charm on my RPi3 with the RFIO-RC522 module. Thanks for all your effort! Additional steps I took:
|
Hi @keinkurt @ottk3 @jackwidu @B5GeK8A2YqH9 thanks for your input. Personally, I haven't yet gotten my hands dirty with anything beyond the USB plugin. Thanks for your input and I will link to this thread from the manual. (until I will get my hands dirty, build one with the RC522, verify your great work, include it and finally close the issue ;) |
Strange i cannot find the SPI module (fixed)
I fixed it by running
|
Is it possible to add a buzzer to the RC522 / Pi to get the beep when reading a TAG. I have found a working example but i don`t no how to translate this to the current project https://github.com/eoghan-c/team_track/blob/master/team_track.py |
@raymonvdm it's a good idea. I will try it and after that I can tell you what to do. |
Hi @MiczFlor, |
Has anyone tried to implement the "Stop on removal" - Function for the RC522 Module? But I'm not so deep in this project, that I know where to add code and if it is really that simple like described in the link above. @keinkurt Are you able to give an advice for this issue? Do you have an idea? This is the last feature to get the jukebox project running properly for my little kid. My idea is to get some of those self tapping RFID chips and attach them to a toy figure according to an audiobook or kids music. As long as the figure stands on the box it plays the linked audio. |
@MalteHST Please try this adjustment on the rfid daemon and RC522 Reader: keinkurt@0b48c4d |
Hi @keinkurt |
Many thanks @keinkurt. Stop on removal - Feature works perfectly with this adjustment. Also has a good reaction time. Update: Really nice and proper work. Thanks |
I can't get the reader running under version 1.1.3 anymore does anyone else have the problem? //EDIT |
Hey @keinkurt, is there a way to use the reader normally or is it just possible to use the stop on removal method? Thank you |
@Ardios I'm working on a solution to integrate the RC522 to main repository and installation process. Please wait for this. |
@MiczFlor First of all, thanks for this amazing project ! I'm trying to set up my MFRC522 reader, but I fail.
Can you please give details about the current state of usage of non-USB readers, or point me to current docs how to set it up ? Thx ! |
In the Using
|
The only problem with the |
This is working for me :-) thanks a lot |
But first after i've connected the IRQ pin, which were not connected in the other tutorials! |
@alexanderbrun90 Please check First your cables with fritzing Image from the wiki: If it still doesn't work then please have a look at my tutorial from above: Ardios |
@Ardios thank you for your help! So here's what happened: first I checked the cables and added the IRQ connection. Then I followed the instructions you gave to @alexanderbrun90 and got the result as follows when approaching the card: Detected: 10 Authorizing Reading Deauthorizing What is this error on S1B0? What should I expect to see running this Read.py script? Thank you. |
Looks fine… Did you follow my tutorial? You must Register the Reader etc. If you already installed phoniebox check Point 8 to 11 Ardios |
Hi everyone, |
i found a way to make "pause/stop on tag removal" possible on pi-rc522 basis ==> lower cpu/battery usage if anybody is interested ... but i found out as well i am un able to commit a fix here 8) still trying ... this is a GREAT PROJECT thanks for sharing |
can you tell us your way for stop on removal? Thanks a lot |
I had some trouble getting this to work, because I just followed the wiring figure in the wiki. However, my RC522 module seems to have another pin-assignment. This is how it worked for me (the colors are the one from my flat cable):
And this is the model I'm working with: https://www.reichelt.de/entwicklerboards-rfid-modul-nxp-mfrc-522-debo-rfid-rc522-p192147.html?&trstct=pos_0 |
@Ardios Is there any other reader that allows this feature? |
Hi I am trying to register a rc522 and I have run through all the install steps. I have added the scripts etc but just coming up with this. I can run a python test and the reader works. any ideas ??
|
Did you run Then you don't need to run |
Hi @s-martin
And it all seems to work fine? |
IIRC there was an issue with import of py packages for RC522 and PN532, which are not installed by default anymore on a blank system. |
Thanks I am on my way to office I have not tried that fingers crossed thanks |
I have run the components/rfid-reader/RC522/setup_rc522.sh? it all installs fine but them open phoniebox and when I switch the rfid reader on its just turns it back off when i leave the screen, and goes back to disabled. I have checked the wiring again and all fine. No card reconized red light on the reader. Bit lost cheers. |
Could you post the output of Thanks |
Oh sorry, you need to run the setup script with |
|
Ok, sorry that's not fixed on master yet. Maybe you need to restart again. @MiczFlor, I think we should release 2.1 soon, so some major issues are fixed. Open issues could be moved to a later release. |
You are a star thank you that fixed it no worries. Many thanks for your help. |
That was the game changer, no one connected IRQ and it is simply not working without it. Only our tutorial in here features that, once again the link for ref: |
That issue is pretty old, so much info may be outdated. |
Hi, I am also trying to get it working. With a sample script I can read the IDs but from the webui is not working. Any idea? `#!/usr/bin/env python import RPi.GPIO as GPIO reader = SimpleMFRC522() try: |
What's the output of |
Implemented since a long time for 2.x and future3 |
First of all thank you for this awesome tutorial. Even as bloody beginner I was able to get most of my own project - a jukebox for my little son - running. The only thing which suddenly stopped me was, that you are using an USB RFID reader instead of the RC522 module, which I am using.
If somebody can give me a hint how to integrate this one instead of an USB reader, this would be great!
The text was updated successfully, but these errors were encountered: