RFID related error. What am i doing wrong here?

I believe that my RFID sensor is at fault. But please give your insights.

Example Code from GIT HUB**

#include <deprecated.h>
#include <MFRC522.h>
#include <MFRC522Extended.h>
#include <require_cpp11.h>
#include <SPI.h>
#include <MFRC522.h>

#define RST_PIN         5         
#define SS_PIN          53         

MFRC522 mfrc522(SS_PIN, RST_PIN);  // Create MFRC522 instance

void setup() {
	Serial.begin(9600);		
	while (!Serial);		 
	SPI.begin();			
	mfrc522.PCD_Init();	
	delay(4);				
	mfrc522.PCD_DumpVersionToSerial();
	Serial.println(F("Scan PICC to see UID, SAK, type, and data blocks..."));
}

void loop() {
	
	if ( ! mfrc522.PICC_IsNewCardPresent()) {
		return;
	}

	
	if ( ! mfrc522.PICC_ReadCardSerial()) {
		return;
	}

	
	mfrc522.PICC_DumpToSerial(&(mfrc522.uid));
}

The Following are my connections and output at the serial monitor

and the output shows the following

@akhilranga, your topic has been moved to a more suitable location on the forum. Introductory Tutorials is for tutorials that e.g. you write, not for questions. Feel free to write a tutorial once you have solved your problem :wink:

Please edit your opening post, select all code and click the </> button to apply code tags and next save your post. It makes it easier to read, easier to copy and prevents the forum software from incorrect interpretation of the code.

Don't put your board on the antistatic bag.

1 Like

It looks like something is connected to the barrel jack, Vin. Also USB is connected.
Please post the schematics. A link to the specific RF reader might tell things.

1 Like

Generally a bad start! :roll_eyes:

1 Like

@sterretje . Sorry about that . I am new on this forum. so just trying to find my way around . thank for your insight. But can you be more specific as of where can i post this kind of content.
Thank You

It's a bit tricky (even for me) with all the different categories on this forum. Sometimes it's also an overlap (e.g. a problem where you can't get a display working can be a display problem or a programming problem). Each category has a little description. If you hover over a section title like Installation and Troubleshooting, it will tell you what it is for.

I think that in general most people don't care too much but there are people that only look at certain categories when answering questions. Posting it in the (not necessarily) wrong category and you might miss out on their knowledge.

I can't go through all of them; these are some guides

  1. Installation and Troubleshooting is for problems with the IDE (installation, use) and if your board is not recognised; not for problems with your project
  2. Introductory Tutorials is for tutorials that e.g. you write, not for questions.
  3. Programming questions is for compiler errors / warnings or when your code does not do what you expect it to do or if you don't know which how to approach a certain requirement or ...

Since Arduino started expanding outside the Atmel AVR processors, a number of boards have their own category. If it's specifically hardware related, I would place it in the correct category; software related is a bit trickier as that might fit in Programming questions or in the specific category for the board.

And further it's a bit of a feel; I suggest that you do a quick browsing through the different categories (specifically the sub-categories in Using Arduino - Arduino Forum) to see what kind of questions are posted in there; it should give you the idea and you should be covered for most of your questions.

Thank You. The information is very helpful. :pray:

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