I am a newbie for using Arduino. I bought a RFID reader (RFID-RC522) and connected it with Mega 2560. I have installed the library and after connecting it, i can't see anything in the serial monitor after putting RFID tags on the reader.It is supposed to read the serial number of each tags and show it on the serial monitor. just don't know why and hope someone can provide me some solutions. Here is my pin connection and my code:
RC522-->MEGA 2560:
SA(1) -> SS(digital Pin 53)
SCK(2) -> SCK(digital Pin 52)
MOSI(3) -> MOSI(digital Pin 51)
MISO(4) -> MISO(digital Pin 50)
(5) not connected
GND(6) -> GND
RST -> (digital Pin 34)
+3.3V-> +3.3V
I can't insert my code in here because it exceeds the maximum allowed length. Therefore I 've upload the code.
ED RFID RC522 module arduino code.pde (20.1 KB)