RC522 RFID Module not working

I am pretty sure I have done all the wiring right and I can switch it on and in the Serial Monitor its dosent say anything at all, ever. unless the RFID Module isn't Connected properly I have been following a tutorial and it says it should output the Uid of the tag or card into the serial monitor.

And I am using the Elegoo Uno R3

Here is the tutorial https://www.youtube.com/watch?v=cFK87MJ96A8&t

This is the code that I used

`

#include <SPI.h>
#include <MFRC522.h>
 
#define SS_PIN 10
#define RST_PIN 7
 
MFRC522 rfid(SS_PIN, RST_PIN); // Instance of the class
 
MFRC522::MIFARE_Key key; 
 
void setup() { 
  Serial.begin(9600);
  SPI.begin(); // Init SPI bus
  rfid.PCD_Init(); // Init RC522 
}
 
void loop() {
 
  // Reset the loop if no new card present on the sensor/reader. This saves the entire process when idle.
  if ( ! rfid.PICC_IsNewCardPresent())
    return;
 
  // Verify if the NUID has been readed
  if ( ! rfid.PICC_ReadCardSerial())
    return;
 
  MFRC522::PICC_Type piccType = rfid.PICC_GetType(rfid.uid.sak);
 
  Serial.print(F("RFID Tag UID:"));
  printHex(rfid.uid.uidByte, rfid.uid.size);
  Serial.println("");
 
  rfid.PICC_HaltA(); // Halt PICC
}
 
//Routine to dump a byte array as hex values to Serial. 
void printHex(byte *buffer, byte bufferSize) {
  for (byte i = 0; i < bufferSize; i++) {
    Serial.print(buffer[i] < 0x10 ? " 0" : " ");
    Serial.print(buffer[i], HEX);
  }
}

If the module ever started working, what would tell you that? What testing have you done that made you say it is not working? How do you have it connected to what Arduino?

Did you read the pinned post. What you will learn is that posting ALL the code in code tags, any error logs verbose in code tags and a wiring diagram, a photo of a hand drawn is fine.

You might want to look at this How to get the best out of this forum before you proceed any further.
We only know what you tell us, and without knowing what you have, we don't stand a chance.

First off please :-

  1. Post all of your code correctly in code tags. The above link will tell you how.

  2. Tell us what sort of Arduino you are using.

  3. Post a schematic of your wiring, most of the internet gets this wrong.

  4. Post some well lit photographs from a few different angles.

  5. Tell us what you are trying to achieve with the whole of this project.

I fixed it by switching it from 3.3v to 5v

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.