How To Interface Rfid Module With Arduino || Tomson Electronics
ฝัง
- เผยแพร่เมื่อ 4 ส.ค. 2020
- Hey Guys In This Video I Will Show You How To Interface RFID Module With Arduino
This Video Is Sponsored By TOMSON ELECTRONICS
Link :- www.tomsonelectronics.com
Contact :-- H.O TAARA MANSION, 39/4287-A & B,
Manikkiri Cross Road, Pallimukku,
Cochin - 682 016, Kerala, India.
Location :-- g.page/TomsonElectronics?share
-----------------------------------------------------------------------------
PARTS
ARDUINO UNO :-- bit.ly/2PpG1Ld
RFID MODULE :-- bit.ly/3i3gOCC
LED :-- bit.ly/3gydW08
BREADBOARD :-- bit.ly/2PseoRG
JUMPER CABLES :-- bit.ly/2PoA01g
USE COUPON CODE :-- ZENOOFF2020 TO GET OFF
-----------------------------------------------------------------------------
This Is A Channel Featuring Arduino Projects & All Arduino Diy Stuff ......
How To Make Gesture Controlled Computer :--
• How To Control Your Co...
Nodemcu Home Automation :--
• Home Automation Using ...
Weather Station :--
• Iot Weather Station ||...
Led Matrix :--
• How To Make Led Matrix...
Bluetooth Car :--
• How To Make A Diy Ardu...
TH-cam Subscriber Counter :--
• The Best 3D Printer Un...
How To Control Led Matrix Using Arduino :--
• How To Control Led Mat...
Arduino Flappy Bird Game :--
• Arduino Flappy Bird Game
Creality Cr 100 3D Printer :--
• The Best 3D Printer Un...
Pixy 2 Unboxing & Review :--
• Pixy 2 Cam Unboxing A...
Arduino Radar :--
• How To Make a Radar At...
Arduino Playing Pickcrafter Game :--
• Arduino Playing Pickcr...
Arduino Stop Watch :--
• How To Make A Stopwatc...
How To Make A Circuit Using Fritzing :--
• How To Make A Circuit ...
Check My Channel For More Stuff Also Do Subscribe :--
bit.ly/2NlWKxx
--------------------------------------------------------------------------------------------------
Arduino RFID Library :-- bit.ly/31nV2CL
--------------------------------------------------------------------------------------------------
Feel Free To Contact
sreeramzeno@gmail.com
Thank You For Watching My Video Keep Supporting
Music Credits:
Feel Good - MusicbyAden [Vlog No Copyright Music]
Feel Good by MusicbyAden / musicbyaden
Free Download / Stream: bit.ly/_feel-good
Music promoted by Audio Library • Feel Good - MusicbyAde...
InfiNoise - Bring me back to life (Feat. DNAKM) [NCS Release]
Track: InfiNoise - Bring me back to life (Feat. DNAKM)[NCS Release]
Music provided by NoCopyrightSounds.
Watch: • InfiNoise - Bring me b...
Free Download / Stream: ncs.io/BMBTL
------------------------------
#rfidmodule #rfidarduino #rfidprojects
#diyarduinoprojects - วิทยาศาสตร์และเทคโนโลยี
It's really awesome 😊
#include
#include
#include
#include
LiquidCrystal_I2C lcd(0x27, 16, 2);
#define SS_PIN 10
#define RST_PIN 9
#define LED_G 5
#define LED_R 4
#define RELAY1 6
MFRC522 mfrc522(SS_PIN, RST_PIN);
void setup()
{
lcd.begin();
lcd.backlight();
lcd.print("ZENO MODIFF");
lcd.setCursor(0, 1);
lcd.print("RFID LOCK");
delay(1000);
lcd.clear();
SPI.begin();
mfrc522.PCD_Init();
pinMode(LED_G, OUTPUT);
pinMode(LED_R, OUTPUT);
pinMode(RELAY1, OUTPUT);
}
void loop()
{
lcd.clear();
lcd.print("PLACE YOUR");
lcd.setCursor(0, 1);
lcd.print("RFID TAG");
delay(1000);
lcd.clear();
// Look for new cards
if ( ! mfrc522.PICC_IsNewCardPresent())
{
return;
}
// Select one of the cards
if ( ! mfrc522.PICC_ReadCardSerial())
{
return;
}
String content= "";
byte letter;
for (byte i = 0; i < mfrc522.uid.size; i++)
{
content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
content.concat(String(mfrc522.uid.uidByte[i], HEX));
}
content.toUpperCase();
if (content.substring(1) == "2A 17 6E 3C")
{
lcd.clear();
lcd.print("AUTHORIZED ACCESS");
lcd.setCursor(0, 0);
delay(2000);
lcd.clear();
digitalWrite(RELAY1, HIGH);
digitalWrite(LED_G, HIGH);
delay(6000);
digitalWrite(RELAY1, LOW);
digitalWrite(LED_G, LOW);
delay(1000);
}
else {
lcd.print("UN AUTHORISED");
lcd.setCursor(0, 0);
digitalWrite(LED_R, HIGH);
delay(2000);
digitalWrite(LED_R, LOW);
lcd.clear();
delay(2000);
}
}
I'm a student who learn how to program the RFID reader and get the meaning of the coding and I don't understand what you have been written here "if (! mfrc522_PICC_IsNewCardPresent())
And I don't understand why you bring the exclamation mark before the mfrc522
Where can I find the code?
Really useful video! Ty bro, you helped with project
Nice bro 😊😊😊😊😊
Any rfid program the connection will be same ah?
thank you may god bless you sir
It's usefull tip
Thanks Bro.
It works thank you
Thank you sir
Kiduve
Code Arduino
👍
✌✌
pls share circuit diagram sir
👍👍👌
😘
Easy to understand bro pinsoke begineersn polum follow cheyyam😘
Thanks for you Comment bro ❤️
can you make better building instruction it doesn't work because of "WARNING: Communication failure, is the MFRC522 properly connected?"
connect Vcc to 3.3v and GND to ground If you are using the Dump info code connect RST pin to 9 and ss pin to 10 for arduino mega2560
Pls do it more specific
How did you light up leds without a resistor wouldnt it burn with arduino?
Nope it won't burn
Solution for the warning "Communication failure, is the MFRC522 properly connected?" to anyone who has the board Arduino MEGA: if you have a different board from the video (for example, i have a "Arduino MEGA"), be sure to connect to the correct pins, because they're different from board to board. For the Arduino MEGA they're: SPI SS - pin 53, RST - pin 5, SPI MOSI - pin 51, SPI MISO - pin 50, SPI SCK - pin 52. Also, change the lines "define RST_PIN 9" and "#define SS_PIN 10" to "#define RST_PIN 5" and "#define SS_PIN 53".
I don't see the code in your description. Can you give me a code link? your video is great and detailed.
#include
#include
#include
#include
LiquidCrystal_I2C lcd(0x27, 16, 2);
#define SS_PIN 10
#define RST_PIN 9
#define LED_G 5
#define LED_R 4
#define RELAY1 6
MFRC522 mfrc522(SS_PIN, RST_PIN);
void setup()
{
lcd.begin();
lcd.backlight();
lcd.print("ZENO MODIFF");
lcd.setCursor(0, 1);
lcd.print("RFID LOCK");
delay(1000);
lcd.clear();
SPI.begin();
mfrc522.PCD_Init();
pinMode(LED_G, OUTPUT);
pinMode(LED_R, OUTPUT);
pinMode(RELAY1, OUTPUT);
}
void loop()
{
lcd.clear();
lcd.print("PLACE YOUR");
lcd.setCursor(0, 1);
lcd.print("RFID TAG");
delay(1000);
lcd.clear();
// Look for new cards
if ( ! mfrc522.PICC_IsNewCardPresent())
{
return;
}
// Select one of the cards
if ( ! mfrc522.PICC_ReadCardSerial())
{
return;
}
String content= "";
byte letter;
for (byte i = 0; i < mfrc522.uid.size; i++)
{
content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
content.concat(String(mfrc522.uid.uidByte[i], HEX));
}
content.toUpperCase();
if (content.substring(1) == "2A 17 6E 3C")
{
lcd.clear();
lcd.print("AUTHORIZED ACCESS");
lcd.setCursor(0, 0);
delay(2000);
lcd.clear();
digitalWrite(RELAY1, HIGH);
digitalWrite(LED_G, HIGH);
delay(6000);
digitalWrite(RELAY1, LOW);
digitalWrite(LED_G, LOW);
delay(1000);
}
else {
lcd.print("UN AUTHORISED");
lcd.setCursor(0, 0);
digitalWrite(LED_R, HIGH);
delay(2000);
digitalWrite(LED_R, LOW);
lcd.clear();
delay(2000);
}
}
CAN I GET THIS CODE
2:41
can i use 5v motor gfor output any changes in code
No change in code but insted of relay use PNP type transistor and connect to the digital pine where we have wire the relay that's all no change in code
can you give the copy of your code in rfid basic example ?
#include
#include
#include
#include
LiquidCrystal_I2C lcd(0x27, 16, 2);
#define SS_PIN 10
#define RST_PIN 9
#define LED_G 5
#define LED_R 4
#define RELAY1 6
MFRC522 mfrc522(SS_PIN, RST_PIN);
void setup()
{
lcd.begin();
lcd.backlight();
lcd.print("ZENO MODIFF");
lcd.setCursor(0, 1);
lcd.print("RFID LOCK");
delay(1000);
lcd.clear();
SPI.begin();
mfrc522.PCD_Init();
pinMode(LED_G, OUTPUT);
pinMode(LED_R, OUTPUT);
pinMode(RELAY1, OUTPUT);
}
void loop()
{
lcd.clear();
lcd.print("PLACE YOUR");
lcd.setCursor(0, 1);
lcd.print("RFID TAG");
delay(1000);
lcd.clear();
// Look for new cards
if ( ! mfrc522.PICC_IsNewCardPresent())
{
return;
}
// Select one of the cards
if ( ! mfrc522.PICC_ReadCardSerial())
{
return;
}
String content= "";
byte letter;
for (byte i = 0; i < mfrc522.uid.size; i++)
{
content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
content.concat(String(mfrc522.uid.uidByte[i], HEX));
}
content.toUpperCase();
if (content.substring(1) == "2A 17 6E 3C")
{
lcd.clear();
lcd.print("AUTHORIZED ACCESS");
lcd.setCursor(0, 0);
delay(2000);
lcd.clear();
digitalWrite(RELAY1, HIGH);
digitalWrite(LED_G, HIGH);
delay(6000);
digitalWrite(RELAY1, LOW);
digitalWrite(LED_G, LOW);
delay(1000);
}
else {
lcd.print("UN AUTHORISED");
lcd.setCursor(0, 0);
digitalWrite(LED_R, HIGH);
delay(2000);
digitalWrite(LED_R, LOW);
lcd.clear();
delay(2000);
}
}
Can RFID reader scan a NFC tag ? Please reply 🙏🙏🙏🙏🙏🙏
YE
SIR CODE AND ALL UPLOADED GREEN LIGHT WORKING BUT RED LIGHT IT'S NOT BLINKING CHECK EVERYTHING WIRE, LED, WHAT TO NEXT?? WHAT CAN BE THE PROBLEM
Did u use jumper cables to connect the circuit if yes please check the continuity of the wires that will solve the issue
@@ZenoModiff i will check once again and let you know thank you
sir did everything possible changed jumper wires changed led but the access denied one is not working if code attached the light is blinking but random rfid card no light is blinking i.e red
bro can u give me the code
#include
#include
#include
#include
LiquidCrystal_I2C lcd(0x27, 16, 2);
#define SS_PIN 10
#define RST_PIN 9
#define LED_G 5
#define LED_R 4
#define RELAY1 6
MFRC522 mfrc522(SS_PIN, RST_PIN);
void setup()
{
lcd.begin();
lcd.backlight();
lcd.print("ZENO MODIFF");
lcd.setCursor(0, 1);
lcd.print("RFID LOCK");
delay(1000);
lcd.clear();
SPI.begin();
mfrc522.PCD_Init();
pinMode(LED_G, OUTPUT);
pinMode(LED_R, OUTPUT);
pinMode(RELAY1, OUTPUT);
}
void loop()
{
lcd.clear();
lcd.print("PLACE YOUR");
lcd.setCursor(0, 1);
lcd.print("RFID TAG");
delay(1000);
lcd.clear();
// Look for new cards
if ( ! mfrc522.PICC_IsNewCardPresent())
{
return;
}
// Select one of the cards
if ( ! mfrc522.PICC_ReadCardSerial())
{
return;
}
String content= "";
byte letter;
for (byte i = 0; i < mfrc522.uid.size; i++)
{
content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
content.concat(String(mfrc522.uid.uidByte[i], HEX));
}
content.toUpperCase();
if (content.substring(1) == "2A 17 6E 3C")
{
lcd.clear();
lcd.print("AUTHORIZED ACCESS");
lcd.setCursor(0, 0);
delay(2000);
lcd.clear();
digitalWrite(RELAY1, HIGH);
digitalWrite(LED_G, HIGH);
delay(6000);
digitalWrite(RELAY1, LOW);
digitalWrite(LED_G, LOW);
delay(1000);
}
else {
lcd.print("UN AUTHORISED");
lcd.setCursor(0, 0);
digitalWrite(LED_R, HIGH);
delay(2000);
digitalWrite(LED_R, LOW);
lcd.clear();
delay(2000);
}
}
where is the code
Can I use RFID sensor without Arduino
Ok
Thanks Bro
please give me source code
can we use arduino r3
Yes you can use just change the board name while uploading
code pls
hi.. I will great-full if u share the code please
#include
#include
#include
#include
LiquidCrystal_I2C lcd(0x27, 16, 2);
#define SS_PIN 10
#define RST_PIN 9
#define LED_G 5
#define LED_R 4
#define RELAY1 6
MFRC522 mfrc522(SS_PIN, RST_PIN);
void setup()
{
lcd.begin();
lcd.backlight();
lcd.print("ZENO MODIFF");
lcd.setCursor(0, 1);
lcd.print("RFID LOCK");
delay(1000);
lcd.clear();
SPI.begin();
mfrc522.PCD_Init();
pinMode(LED_G, OUTPUT);
pinMode(LED_R, OUTPUT);
pinMode(RELAY1, OUTPUT);
}
void loop()
{
lcd.clear();
lcd.print("PLACE YOUR");
lcd.setCursor(0, 1);
lcd.print("RFID TAG");
delay(1000);
lcd.clear();
// Look for new cards
if ( ! mfrc522.PICC_IsNewCardPresent())
{
return;
}
// Select one of the cards
if ( ! mfrc522.PICC_ReadCardSerial())
{
return;
}
String content= "";
byte letter;
for (byte i = 0; i < mfrc522.uid.size; i++)
{
content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
content.concat(String(mfrc522.uid.uidByte[i], HEX));
}
content.toUpperCase();
if (content.substring(1) == "2A 17 6E 3C")
{
lcd.clear();
lcd.print("AUTHORIZED ACCESS");
lcd.setCursor(0, 0);
delay(2000);
lcd.clear();
digitalWrite(RELAY1, HIGH);
digitalWrite(LED_G, HIGH);
delay(6000);
digitalWrite(RELAY1, LOW);
digitalWrite(LED_G, LOW);
delay(1000);
}
else {
lcd.print("UN AUTHORISED");
lcd.setCursor(0, 0);
digitalWrite(LED_R, HIGH);
delay(2000);
digitalWrite(LED_R, LOW);
lcd.clear();
delay(2000);
}
}
Do not connect to 5v it will burn RFID Module, its supposed to be 3.3
LiquidCrystal_I2C.h: No such file or directory
Even after uploading the library which was given in the link, i'm getting an error.
Can you please help me out with this?
I haven't given i2c Library brother it's the RFID library
#include
#include
#include
#include
LiquidCrystal_I2C lcd(0x27, 16, 2);
#define SS_PIN 10
#define RST_PIN 9
#define LED_G 5
#define LED_R 4
#define RELAY1 6
MFRC522 mfrc522(SS_PIN, RST_PIN);
void setup()
{
lcd.begin();
lcd.backlight();
lcd.print("ZENO MODIFF");
lcd.setCursor(0, 1);
lcd.print("RFID LOCK");
delay(1000);
lcd.clear();
SPI.begin();
mfrc522.PCD_Init();
pinMode(LED_G, OUTPUT);
pinMode(LED_R, OUTPUT);
pinMode(RELAY1, OUTPUT);
}
void loop()
{
lcd.clear();
lcd.print("PLACE YOUR");
lcd.setCursor(0, 1);
lcd.print("RFID TAG");
delay(1000);
lcd.clear();
// Look for new cards
if ( ! mfrc522.PICC_IsNewCardPresent())
{
return;
}
// Select one of the cards
if ( ! mfrc522.PICC_ReadCardSerial())
{
return;
}
String content= "";
byte letter;
for (byte i = 0; i < mfrc522.uid.size; i++)
{
content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
content.concat(String(mfrc522.uid.uidByte[i], HEX));
}
content.toUpperCase();
if (content.substring(1) == "2A 17 6E 3C")
{
lcd.clear();
lcd.print("AUTHORIZED ACCESS");
lcd.setCursor(0, 0);
delay(2000);
lcd.clear();
digitalWrite(RELAY1, HIGH);
digitalWrite(LED_G, HIGH);
delay(6000);
digitalWrite(RELAY1, LOW);
digitalWrite(LED_G, LOW);
delay(1000);
}
else {
lcd.print("UN AUTHORISED");
lcd.setCursor(0, 0);
digitalWrite(LED_R, HIGH);
delay(2000);
digitalWrite(LED_R, LOW);
lcd.clear();
delay(2000);
}
}
If you have any questions ping me on sreeramaj53@gmail.com
did you find a solution, i have the same problem
The code he has typed uses LCD screen for display. But in the video there is no lcd connected so no need to include liquid crystal library. I edited the code to remove the lcd code. Use this instead:
#include
#include
#define SS_PIN 10
#define RST_PIN 9
#define LED_G 5
#define LED_R 4
MFRC522 mfrc522(SS_PIN, RST_PIN);
void setup()
{
SPI.begin();
mfrc522.PCD_Init();
pinMode(LED_G, OUTPUT);
pinMode(LED_R, OUTPUT);
}
void loop()
{
// Look for new cards
if ( ! mfrc522.PICC_IsNewCardPresent())
{
return;
}
// Select one of the cards
if ( ! mfrc522.PICC_ReadCardSerial())
{
return;
}
String content= "";
byte letter;
for (byte i = 0; i < mfrc522.uid.size; i++)
{
content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
content.concat(String(mfrc522.uid.uidByte[i], HEX));
}
content.toUpperCase();
if (content.substring(1) == "46 44 54 73")
{
digitalWrite(LED_G, HIGH);
delay(2000);
digitalWrite(LED_G, LOW);
delay(2000);
}
else {
digitalWrite(LED_R, HIGH);
delay(2000);
digitalWrite(LED_R, LOW);
delay(2000);
}
}