A
Arduinoโ€ข3mo ago
Fang

Arduino Project: RFID

Hello everyone my name is Fang and I've been trying to ask to work on this project for about 2-3 days now but still haven't figure it out. The goal for this project is have it where it can read the card ID in console so I can know which card ID is which. I'm having trouble trying to figure this out but still haven't gotten a solution to what this problem might be. I've tried resources from books and youtube videos which will be below this paragraphs but I still haven't uncover what the issue was. If there is a way I can resolve this issue or if someone helps in this situation then that'll be good to but other than that I was wondering if anyone know what I'm doing wrong in order for me to continue having failure after failure.
150 Replies
Fang
FangOPโ€ข3mo ago
Code from example:
Fang
FangOPโ€ข3mo ago
DIY Engineers
YouTube
Arduino RFID Module RC522 - How to Use
In this video we'll go over how to use the Arduino RFID Module RC522. Weโ€™ll go over basics, module pins, how to connect to Arduino, programming in Arduino IDE, and testing. The main focus will be around reading an RFID tagโ€™s UID (Unique ID). Related Blog Post: https://www.diyengineers.com/2021/04/15/learn-how-to-read-an-rfid-tag-with-rc522-...
Fang
FangOPโ€ข3mo ago
Wiring Power Input to 1.3v Reset to 7 GND: to GND MISO to -12 MOSI to -11 SCK to 13 SRA to -10
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Good that you included the video
Fang
FangOPโ€ข3mo ago
Photo proof Front
No description
Fang
FangOPโ€ข3mo ago
Side:
No description
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
@Fang can you explain what's exactly happening?
Fang
FangOPโ€ข3mo ago
So what i'm trying to do for this project is to let the card scan against RFID making it read out what the card ID is.
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Ok, what's the problem ?
Fang
FangOPโ€ข3mo ago
The problem is that the scanning is working or rather it isn't outputing even though it on
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
So the RFID scans, but you can't see anything on the serial monitor?
Fang
FangOPโ€ข3mo ago
Fang
FangOPโ€ข3mo ago
I believe so
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Sorry, I am busy with some other work as well. Try uploading the example DumpInfo @Fang
Fang
FangOPโ€ข3mo ago
No description
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
See what Warning says Do a complete re wireing
Fang
FangOPโ€ข3mo ago
oof ok
Fang
FangOPโ€ข3mo ago
Step 1;
No description
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
No, don't do like that, first always plug the Module Coz, sometimes you can get confused while wiring
Fang
FangOPโ€ข3mo ago
?
No description
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Yeahh.. now starting connecting the wires one by one
Fang
FangOPโ€ข3mo ago
No description
Fang
FangOPโ€ข3mo ago
No description
Fang
FangOPโ€ข3mo ago
I'm so confused-
No description
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Its not connected properly Because, As I checked your connections, MISO is connected to pin 11, instead it should go to pin 12 of arduino uno Lemme see all the connections of your and put a proper wire diagram for you Just a min Switch the white wire from pin 7 to pin 9 the blue wire from pin 11 to pin 12 The other blue Not the power one And the red just beside the blue to pin 11 @Fang
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
@Fang
No description
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Connect according to this
Fang
FangOPโ€ข3mo ago
No description
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Connect as per the diagram I sent
Fang
FangOPโ€ข3mo ago
Ok ima reset and follow the diagram
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
You are literally getting confused. After your connections, just drop a message. I'll be out for having my dinner.
Fang
FangOPโ€ข3mo ago
No description
No description
No description
No description
No description
No description
No description
Fang
FangOPโ€ข3mo ago
Brb in a second Ok Iโ€™m back
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Can you just show the top view? At the same time as I came @Fang
Fang
FangOPโ€ข3mo ago
No description
Fang
FangOPโ€ข3mo ago
^ @Coder_DO_As_Impossible idk why but I feel like I need a longer wire or something cause it still saying the same thing
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Can I get something like this?
Fang
FangOPโ€ข3mo ago
you want me to reset and copy the first image? if that what your asking? @Coder_DO_As_Impossible
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Nope, just the angle of pic
Fang
FangOPโ€ข3mo ago
No description
Fang
FangOPโ€ข3mo ago
Sent @Coder_DO_As_Impossible
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
In that pic both the module and arduino was clear to see
Fang
FangOPโ€ข3mo ago
Is this better? @Coder_DO_As_Impossible
No description
No description
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Yeahh You have connected both the blue wires as per the diagram right?
Fang
FangOPโ€ข3mo ago
yes i have follow the diagram
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
OK, now what's the output?
Fang
FangOPโ€ข3mo ago
No description
Fang
FangOPโ€ข3mo ago
i jsut don't get what im doing wrong
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Umm... Lets figure out whats the problem. Just a out of topic question. What's the local time in your region rn?
Fang
FangOPโ€ข3mo ago
it's 1:56 central
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
AM or PM
Fang
FangOPโ€ข3mo ago
pm
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Its past midnight for me, but lemme check your problem first, then ill sleep
Fang
FangOPโ€ข3mo ago
ok But if you want we can just do it another time so you won't feel sleepy while trying to help me ๐Ÿ˜…
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Nah, its okay I'll manage.
Fang
FangOPโ€ข3mo ago
Also hereโ€™s what my wire looks like
No description
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
You shouldn't have removed the module maybe
Fang
FangOPโ€ข3mo ago
No description
Fang
FangOPโ€ข3mo ago
does the module have to be connected at all times while doing wiring? if so then I'm confused since it on once I put it back
Fang
FangOPโ€ข3mo ago
No description
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
| RC522 Pin | Arduino UNO Pin | | --------- | --------------- | | SDA | D10 | | SCK | D13 | | MOSI | D11 | | MISO | D12 | | IRQ | Not connected | | GND | GND | | RST | D9 | | 3.3V | 3.3V (not 5V!) | So this is the connection which you've connected right now.
Fang
FangOPโ€ข3mo ago
yes I've even wrote it down myself as well on apper ye
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
try uploading this code
#include <SPI.h>

void setup() {
Serial.begin(9600);
SPI.begin();
byte response = SPI.transfer(0x00);
Serial.print("SPI Response: ");
Serial.println(response, HEX);
}

void loop() {}
#include <SPI.h>

void setup() {
Serial.begin(9600);
SPI.begin();
byte response = SPI.transfer(0x00);
Serial.print("SPI Response: ");
Serial.println(response, HEX);
}

void loop() {}
And tell me what's the response
Fang
FangOPโ€ข3mo ago
onto new file or the same one that check our wires? @Coder_DO_As_Impossible
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Its your wish, try uploading that code. After that just tell me the serial monitor output
Fang
FangOPโ€ข3mo ago
Okio Give me 1 second
Fang
FangOPโ€ข3mo ago
@Coder_DO_As_Impossible
No description
Fang
FangOPโ€ข3mo ago
are none of the wires responds to it??
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Did you ever connect the module to 5V? Ever once and power it?
Fang
FangOPโ€ข3mo ago
no?
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
This is indicating that the module isn't responding
Fang
FangOPโ€ข3mo ago
no?? I've always connected to 3.3v because that was the direction did i do something wrong was I suppose to use 5v??
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Ok, either this indicates the problem of any one of the cable or maybe the board broken or something else You should NEVER use 5V
Fang
FangOPโ€ข3mo ago
guess I'll get new cable and board just in case then
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
I am now in a lot of confusion Like this is some new error, which I ever came across RC522 . @Fang Try checking all the wires are proper or not. Do you have a spare arduino?
Fang
FangOPโ€ข3mo ago
i do but they aren't long enough to connect to certain ports
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
How come arduino should be longer?
Fang
FangOPโ€ข3mo ago
idk i gotten the starter pack
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Oh, okay
Fang
FangOPโ€ข3mo ago
does it count as broken if the metal part is slightly bend?
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Which metal part? You haven't soldered them yet?
Fang
FangOPโ€ข3mo ago
no? like i said this is a starter pack-
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
I literally noticed it now ๐Ÿคฆ
Fang
FangOPโ€ข3mo ago
No description
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
@Fang sometimes the connections aren't good enough without soldering. This may cause these errors, like the headers aren't touching the pads properly etc.
Fang
FangOPโ€ข3mo ago
so do i need a soldering kit?
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
You should do a proper soldering
Fang
FangOPโ€ข3mo ago
how do i solder something like this though- ๐Ÿ˜…
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
With a basic Soldering Iron Get one It will be useful in future purposes To solder it, just plug it in the breadboard as you have done, and solder from the backside, where the header's pin is exposed out of the pad.
Fang
FangOPโ€ข3mo ago
Iโ€™m so confused because I get bread board that doesnโ€™t need soldering
No description
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
No description
Fang
FangOPโ€ข3mo ago
so i gota solder the pins? Like those metals?
AnonEngineering
AnonEngineeringโ€ข3mo ago
ABSOLUTELY!
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Trying to use a breadboard without soldered headers is like trying to plug a charger into a socket using just loose wires and tape โ€” it might touch, but it won't really work. - Credits to chatgpt for me giving me the example to explain this properly.
AnonEngineering
AnonEngineeringโ€ข3mo ago
pins sticking through pads will never work
Fang
FangOPโ€ข3mo ago
alrighty guess for right now it on hold until i get a soldering kit ๐Ÿ˜…
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
I noticed this after making him rewire this much times ๐Ÿคฆโ€โ™‚๏ธ
Fang
FangOPโ€ข3mo ago
also one more question is it better to have rfid laying down or standing up straight?
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Its your wish. How you feel comfortable, you can solder it that way But you NEED to solder it. Well, I am gonna sleep now.
Fang
FangOPโ€ข3mo ago
okio I'll order it and learn how to solder after that I'll let you know
AnonEngineering
AnonEngineeringโ€ข3mo ago
it's easy to miss in pics, but it happens all the time ๐Ÿ˜‰
Fang
FangOPโ€ข3mo ago
Idk if this is right but is it right?
No description
Fang
FangOPโ€ข3mo ago
@AnonEngineering @SNV008! First time soldering btw
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Nice ๐Ÿ™‚ take everything slowly. Soldering first time? https://youtu.be/Qps9woUGkvI
oneTesla
YouTube
Soldering Tutorial for Beginners: Five Easy Steps
If you've ever wondered how to solder electronic components, you've come to the right place! This video breaks down soldering technique into five steps. I'll show you how to solder through-hole components as well as how to solder wire. Brought to you by oneTesla! Check out or DIY Singing Tesla Coil Kits at http://onetesla.com The oneTeslaTS ...
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
If you cover up the header pin and the pad completely then it should be good to go
Fang
FangOPโ€ข3mo ago
Also ngl I burnt myself and almost set the house on fire when I dropped it-
Fang
FangOPโ€ข3mo ago
Is this good to? @SNV008!
No description
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
First pin is good, second pin, its a like fat boy ๐Ÿ˜‰
Fang
FangOPโ€ข3mo ago
Do I need to keep soldiering the second one?
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
No, just leave it as it is. You'll proper soldering over time. Just continue with the further. If you wanna dedicate, then just remove some solder by adding flux to it, and contacting the iron with it.
Fang
FangOPโ€ข3mo ago
Alrighty again thank you will let you know how Iโ€™m doing once Iโ€™m done Here the update @SNV008!
Fang
FangOPโ€ข3mo ago
No description
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Well it's rough and patch work, but you are good for a beginner. Make sure there are no short between the pins. Well, my time to wake up for the most is done. I need to rest for sometime rn.
Fang
FangOPโ€ข3mo ago
short? @SNV008!
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Yes due to those excessive soldering present minute shorts can happen. Just so to prevent, run a blade between every gap.
AnonEngineering
AnonEngineeringโ€ข3mo ago
As you get better the finished connection should look like a cone, not a ball
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
@AnonEngineering Thank you for coming. I can sleep now peacefully.
Fang
FangOPโ€ข3mo ago
oh wait does that mean i gotta start over?
AnonEngineering
AnonEngineeringโ€ข3mo ago
On mobile, hard for me to help much ๐Ÿ˜
Fang
FangOPโ€ข3mo ago
because there all a ball-
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Oh same here, and it's morning 1.50 too here Its okay for now. Just do as what I said. Run a blade. As better into the practice, you'll start getting the perfect cone
AnonEngineering
AnonEngineeringโ€ข3mo ago
Fang, just make sure no 2 pins touch, that is what "short" means
Fang
FangOPโ€ข3mo ago
oh sorry i was just making sure also i ran a blade between and seems to be good
Coder_DO_As_Impossible
Coder_DO_As_Impossibleโ€ข3mo ago
Good night for now. @AnonEngineering Idk how much you can help, but I will sleep now. @Fang you are good to go. Do the connections now, but in someone's supervision. I hope anon will be.
Fang
FangOPโ€ข3mo ago
alrighty wish me luck
Fang
FangOPโ€ข3mo ago
No description
AnonEngineering
AnonEngineeringโ€ข3mo ago
That's a good tutorial, follow it exactly Have a good night
Fang
FangOPโ€ข3mo ago
No description
AnonEngineering
AnonEngineeringโ€ข3mo ago
Lights up, always a good sign
Fang
FangOPโ€ข3mo ago
bro wat-
Fang
FangOPโ€ข3mo ago
No description
AnonEngineering
AnonEngineeringโ€ข3mo ago
Means it's getting power at least
Fang
FangOPโ€ข3mo ago
ik but im talking about the error ;-;
AnonEngineering
AnonEngineeringโ€ข3mo ago
Double check pin connections You may need to seat the board down more Walk it side to side until it sits flush to bread board
Fang
FangOPโ€ข3mo ago
No description
Fang
FangOPโ€ข3mo ago
AnonEngineering
AnonEngineeringโ€ข3mo ago
Still isn't talking, you may need to resolder some pins It should seat better, try a different row Basically if any pin has a poor connection you'll get that error The code basically asks the module "who are you?" And gives that error if it doesn't get an answer
Fang
FangOPโ€ข3mo ago
No description
Fang
FangOPโ€ข3mo ago
Understandable
AnonEngineering
AnonEngineeringโ€ข3mo ago
Dunno why it won't seat flush, the black connector should touch the bread board Up like that one or more pins may not be connected
Fang
FangOPโ€ข3mo ago
No description
AnonEngineering
AnonEngineeringโ€ข3mo ago
That last message was better
Fang
FangOPโ€ข3mo ago
so is it finally working
AnonEngineering
AnonEngineeringโ€ข3mo ago
๐ŸŽ‰
Fang
FangOPโ€ข3mo ago
wait give me 1 sec
AnonEngineering
AnonEngineeringโ€ข3mo ago
Should give you data with a MIFARE card / tag
Fang
FangOPโ€ข3mo ago
AnonEngineering
AnonEngineeringโ€ข3mo ago
๐Ÿ‘
Fang
FangOPโ€ข3mo ago
Again thank you so much!!

Did you find this page helpful?