abhaysbharadwaj / RFID-RC522

This is the arduino code to read RFID card using RC-522 RFID module. The code used Software SPI pins. i.e. your SPI pins are not fixed, any pin of the arduino can be configured to act as any SPI pin. The DigitalIO library can be found at: https://github.com/greiman/DigitalIO
Other
9 stars 3 forks source link

Support for Arduino DUE #2

Open andriy-zababurin opened 5 years ago

andriy-zababurin commented 5 years ago

How can we run your code on Arduino DUE (ARM architecture, SAM3X8E chip)?

The code compiles for Arduino Due only after a minor change in the SPI library (which itself is strange) and does not read any RFID tags. We also checked on UNO - all works fine - compiles without any changes and reads tags well.

abhaysbharadwaj commented 5 years ago

Hi, I had worked on this long back for a project I was doing where my PCB design was flawed and had hooked the RC522 some other pins other than hardware SPI. I am no longer working on it. I'm sorry if I am not of any help.

Best Regards, ABHAY S BHARADWAJ

On Sun, Jan 27, 2019, 3:41 PM andriy-zababurin <notifications@github.com wrote:

How can we run your code on Arduino DUE (ARM architecture, SAM3X8E chip)?

The code compiles for Arduino Due only after a minor change in the SPI library (which itself is strange) and does not read any RFID tags. We also checked on UNO - all works fine - compiles without any changes and reads tags well.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/abhaysbharadwaj/RFID-RC522/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AOO5H2DfXr0w84lTTmEOlDgO2R4VZ8lYks5vHXtRgaJpZM4aUpAk .

nkernytskyy commented 5 years ago

Hello Abhay, maybe you have some wild guess, what makes DUE so much different from Teensey in terms of SPI handling that your library (btw, a great one!) doesn't work?

abhaysbharadwaj commented 5 years ago

Hello, My library was based on modification of Miguel Balboa's library (this library has undergone many drastic changes since then): https://github.com/miguelbalboa/rfid Along with Digital IO library. It's for AVR controllers and I only worked on Uno and Nano for this at the time. Have not tested it on any other board or platform and it's been over two years since I have worked on it. I'm sorry that I can't be of more help.

Best Regards, ABHAY S BHARADWAJ

On Sun, Jan 27, 2019, 8:19 PM nkernytskyy <notifications@github.com wrote:

Hello Abhay, maybe you have some wild guess, what makes DUE so much different from Teensey in terms of SPI handling that your library (btw, a great one!) doesn't work?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/abhaysbharadwaj/RFID-RC522/issues/2#issuecomment-457924072, or mute the thread https://github.com/notifications/unsubscribe-auth/AOO5HzMUf_5lYvrDPn5GTfE1wqowbTBAks5vHbxjgaJpZM4aUpAk .

nkernytskyy commented 5 years ago

Anyway, thank you for your library and quick response ;)