Skip to content
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 #6

Closed
c1p81 opened this issue Sep 5, 2013 · 6 comments
Closed

RC522 #6

c1p81 opened this issue Sep 5, 2013 · 6 comments

Comments

@c1p81
Copy link

c1p81 commented Sep 5, 2013

i would like to use the rfid reader rc522 with the Ethernet Shield on Arduino but they share the digital pin 11,12 and 13. It's possible to change the rfid reader pins in your library (maybe changing PCD_TRANSCEIVE and others)????
thank you

Luca Innocenti from Italy

@iedame
Copy link

iedame commented Sep 5, 2013

MISO (12), MOSI (11) and SCK (13) pins may be shared. SS must be exclusive (pin 10), so in your sketch:

#define SS_PIN 10 // change here if sketch is using #define
#define RST_PIN 9

RFID rfid(SS_PIN, RST_PIN); // or here otherwise

Change SS_PIN from 10 (pin used by the ethernet shield SS as you may see here: http://shieldlist.org/arduino/ethernet-v5) to any other digital pin. It should work.

More reference regarding SPI may be found here: http://arduino.cc/en/Reference/SPI

@c1p81
Copy link
Author

c1p81 commented Sep 5, 2013

thank you
works fine with SS_PIN=6 and RST_PIN= 7

@WA4OSH
Copy link
Contributor

WA4OSH commented Apr 14, 2014

c1p81,
It looks like your issue has been answered. Can you close this?

Konrad

@c1p81 c1p81 closed this as completed Apr 15, 2014
@WA4OSH
Copy link
Contributor

WA4OSH commented Apr 15, 2014

Thank you

@c1p81
Copy link
Author

c1p81 commented Apr 15, 2014

sorry for delay

L

2014-04-15 9:54 GMT+02:00 Konrad Roeder notifications@github.com:

Thank you


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-40454659
.

@sandeepthakur10
Copy link

I am having the same problem.
I am using ARDUINO UNO + ETHERNET SHIELD + RFID R522
I am not able to change the reset and ss pin of RFID.
Can you please help me. I am using rfid example code from arduino example and cannt find where to the ss and rest pin in code.
Kindly suggest me a way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants