miguelbalboa/rfid

RF 522 not working with Arduino Yun

programmin1 opened this issue · 13 comments

The Arduino Yun has wiring a bit different than others, and though I followed the instructions here for wiring it to it, it isn't working:
http://arduino.stackexchange.com/questions/6697/arduino-yun-rfid-rc522-module-not-working

It compiles fine, but doesn't even pick up the RFID tag that came with the kit.

I assume there are some constants that I need to change somewhere to tell it that the pins are 5 pins on ICSP connector?

Same problem here, did you solve it @programmin1 ?

Nope. I thought of trying it with a Raspberry Pi.

So, really, no solution to use it with yun, but the connections are correct for sure! This image confirms it http://www.14core.com/wp-content/uploads/2015/06/Arduino-Yun-PinOut.png that's really too stupid to be true, please somebody with some expertise solve this issue!

@programmin1 @cryptid11 Can I close this? Did you found a solution?

1 - You decide
2 - No

@cryptid11 thanks for feedback. I added it to the readme. Maybe someone will fix this in future...

Hi! I just hooked up a Joy-It RFID-RC522 with my Yun and it worked instantly without changes to the code. You just have to get the wiring right. On the Yun (and on the leonardo) the SPI is available only on the ICSP header:

This works for me:

  • MISO on ICSP1
  • VCC on ICSP2
  • SCK on ICSP3
  • MOSI on ICSP4
  • (ICSP5 is free)
  • GND on ICSP6
  • RST on Pin9 (default)
  • NSS on Pin10 (default)

Thanks for the library and the examples! Worked in no time. :-)

@cmddegi Thanks for your positive feedback 👍

I've got this working on the Yun in the past as well, going to remove this from the readme

@PaulBeaudet Was your wiring like #111 (comment) or did you use a different wiring?

Sorry I saw another pr #500 and left the readme alone. It been a while since I touched it but I was considering using the yun for our access control system at the Manchester Makerspace and had a test unit up that members could play with. Everything was working with the reader and this library. Pretty sure I had to hook it up to the ICSP header like in the comment above. Not sure how well the yun is supported in general now and days but the rfid reader library should work fine

@Rotzbua Thanks for maintaining this library btw. Having set up our system with it I'm grateful it continues to be supported

unfortunately @programmin1 @cryptid11 may have got bad boards. Did either of you test with other hardware?

tell me the pins for connecting the Esp32 Devkit V1 board