Author Topic: Make this RFID Circuit using Arduino  (Read 732 times)

Offline vivitern

  • High Voltage Enthusiast
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Make this RFID Circuit using Arduino
« on: November 22, 2017, 08:36:13 AM »
I am sure every one of you has used RFID to get security access at least once at office, school, college, library etc.

The tag/card which you carry around has electronic chip embedded in it, the chip stores your identity electronically. Unlike barcodes, where card should be line of sight of the reader, RFIDs can be placed just near to reader to read the information.

Most of our smart cards use passive RFID technology, which means no power is required to read the information from the card. The reader powers the RFID chip and extracts information at the same time.

These kinds of tags can read information from millimetres to few feet, depending on the tag and application.

An active RFID tags are powered externally, these kinds of tags transmit the information up to 100 feet. The battery power consumption is optimized to last few years.

In this project we are going to look at passive RFID technology. We are using RC522 reader module along with arduino for extracting and displaying information. RC522(http://www.kynix.com/Detail/105270/RC522.html) module is commonly available at e-commerce websites and local electronics kits shop.

Illustration of RC522 reader/writer module:




Card and keychain type tags:



As we can see that, a part of the PCB is surrounded by conducting path in square shape on the reader; this will generate electromagnetic field for the tag at 13.56MHz frequency.

The generated EMF is picked by the tag and converts to sufficient voltage for the tag to operate, the tag will sends out the necessary information in pulse form back to the reader. The on-board microcontroller decodes the information.

How the Circuit Works


Make this RFID Circuit using Arduino
 

The schematic is very easy and self-explanatory, few jumper wires is enough to accomplish this project. We are going to power the arduino and RFID via USB port of the computer. The operating voltage of RC522 is 3.3V, do not connect 5V supply to the module and will damage the on-board components.

Author’s Arduino RFID circuit prototype :



That’s all the hardware connections, now let’s jump into coding.

Before uploading the program, download the library file from the following link and move to library folder of arduino IDE.

https://github.com/miguelbalboa/rfid.git

Program Code:
 

//-------------------------Program developed by R.Girish------------------//
#include <SPI.h>
#include <MFRC522.h>
#define SS_PIN 10
#define RST_PIN 9
MFRC522 rfid(SS_PIN, RST_PIN);
MFRC522::MIFARE_Key key;
void setup()
{
Serial.begin(9600);
SPI.begin();
rfid.PCD_Init();
}
void loop() {
if ( ! rfid.PICC_IsNewCardPresent())
return;
if ( ! rfid.PICC_ReadCardSerial())
return;
MFRC522::PICC_Type piccType = rfid.PICC_GetType(rfid.uid.sak);
if(piccType != MFRC522::PICC_TYPE_MIFARE_MINI &&
piccType != MFRC522::PICC_TYPE_MIFARE_1K &&
piccType != MFRC522::PICC_TYPE_MIFARE_4K)
{
Serial.println(F("Your tag is not of type MIFARE Classic, your card/tag can't be read :("));
return;
}
String StrID = "" ;
for (byte i = 0; i <4; i ++)
{
StrID +=
(rfid.uid.uidByte<0x10? "0" : "")+
String(rfid.uid.uidByte,HEX)+
(i!=3?":" : "" );
}
StrID.toUpperCase();
Serial.print("Your card's UID:");
Serial.println(StrID);
rfid.PICC_HaltA ();
rfid.PCD_StopCrypto1 ();
}

//-------------------------Program developed by R.Girish------------------//

 

Ok! What does the above program designed to function?

The above program will display the UID of the tag in serial monitor of IDE, when you scan on the reader. UID is unique identification number of the tag, it can’t be changed and it is set by the manufacturer.

OUTPUT:

Your card's UID:  FA:4E:B2   // this is an example.

Note 1: The each two values are separated by colon, which is done by the program; real values may not be separated by colon but, rather by space.

Note 2: Only NXP manufactured RFID tags are readable/writeable with the proposed setup, these are commonly and commercially used.

The UID is used to recognize the tag; the tag that comes along with the kit can store up to 1KB of information. There are other cards which can store up to 4KB of information or even more.

The process of storing and extracting the information from the tag is subject of another article.
If you have question, regarding this project, feel free ask in the comment section.

Offline Mads Barnkob

  • Administrator
  • High Voltage Senior
  • *****
  • Posts: 926
  • Karma: +11/-0
  • Denmark
    • View Profile
    • Kaizer Power Electronics
Re: Make this RFID Circuit using Arduino
« Reply #1 on: November 25, 2017, 10:38:42 PM »
Hi Vivitern and welcome to the forum

You seem to have left out any links to your kit or the original article where all this was posted?

However it is still a interesting project and about the RFID chips being widely used/interact-able across "brands" of appliances is quite true. At work we got regular RFID cards for identification and entering restricted areas, at home a collegue got a alarm/security system with these small RFID keyring bricks, just for fun one day he scanned his work card at the alarm and it beeped for unknown key, so he went in administration part to add a new key and sure enough he could add he work ID card to the home alarm system, so it properly just work out from the UID.

Now a interesting part I would like to see is the possibility to read out the UID, build a new device that can broadcast it, so that I do not have to wipe my card at a scanner, but simply walk near the door I want to open :)
http://www.kaizerpowerelectronics.dk - Tesla coils, high voltage, pulse power, audio and general electronics

High Voltage Forum

Re: Make this RFID Circuit using Arduino
« Reply #1 on: November 25, 2017, 10:38:42 PM »

 


* Recent Topics and Posts

post Re: WTS [EU]: UD2.7 thru hole pcb
[Sell / Buy / Trade]
FilipŠebík
Today at 08:39:46 AM
post Re: UD 2.7C Build
[Dual Resonant Solid State Tesla coils]
Thunderstruck
Today at 08:35:33 AM
post Re: Chinese MOSFETS/IGBTS
[Solid state Tesla coils]
flyrod
Today at 04:07:24 AM
post Re: Chinese MOSFETS/IGBTS
[Solid state Tesla coils]
Thunderstruck
March 23, 2019, 10:07:54 PM
post Re: WTS [EU]: UD2.7 thru hole pcb
[Sell / Buy / Trade]
Mads Barnkob
March 23, 2019, 04:07:55 PM
post WTS [EU]: UD2.7 thru hole pcb
[Sell / Buy / Trade]
Fumeaux
March 23, 2019, 02:12:48 PM
post Re: UD 2.7C Build
[Dual Resonant Solid State Tesla coils]
Thunderstruck
March 23, 2019, 08:03:58 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
March 23, 2019, 01:50:47 AM
post Re: Chinese MOSFETS/IGBTS
[Solid state Tesla coils]
Hydron
March 23, 2019, 12:11:10 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
badpeter
March 22, 2019, 08:19:21 PM
post Re: Chinese MOSFETS/IGBTS
[Solid state Tesla coils]
profdc9
March 22, 2019, 06:39:37 PM
post Chinese MOSFETS/IGBTS
[Solid state Tesla coils]
Fumeaux
March 22, 2019, 05:51:55 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
March 22, 2019, 03:46:16 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
kamelryttarn
March 22, 2019, 11:25:19 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
Mads Barnkob
March 22, 2019, 10:56:16 AM
post Re: looking for PCB creating software
[Printed Circuit Board]
Teravolt
March 22, 2019, 06:02:15 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
badpeter
March 21, 2019, 11:04:48 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
Hydron
March 21, 2019, 07:51:23 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
badpeter
March 21, 2019, 07:09:05 PM
post Re: looking for PCB creating software
[Printed Circuit Board]
kamelryttarn
March 21, 2019, 02:26:09 PM
post Re: GDT Experiments
[Solid state Tesla coils]
Uspring
March 21, 2019, 11:57:53 AM
post Re: GDT Experiments
[Solid state Tesla coils]
Teravolt
March 20, 2019, 11:15:50 PM
post Re: GDT Experiments
[Solid state Tesla coils]
Thunderstruck
March 20, 2019, 09:07:04 PM
post Re: Keep or throw away ?
[Beginners]
Teravolt
March 20, 2019, 05:18:07 PM
post Re: New small SSTC
[Solid state Tesla coils]
Bambinz
March 20, 2019, 03:52:15 PM
post Re: New small SSTC
[Solid state Tesla coils]
Mads Barnkob
March 20, 2019, 01:23:52 PM
post Re: GDT Experiments
[Solid state Tesla coils]
T3sl4co1l
March 20, 2019, 01:18:29 PM
post Re: GDT Experiments
[Solid state Tesla coils]
Mads Barnkob
March 20, 2019, 01:06:24 PM
post Re: cute-qcw Tesla Coil
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
March 20, 2019, 01:00:46 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
Mads Barnkob
March 20, 2019, 12:41:22 PM
post Re: Keep or throw away ?
[Beginners]
Thunderstruck
March 19, 2019, 10:02:41 PM
post Re: Keep or throw away ?
[Beginners]
Hydron
March 19, 2019, 08:14:33 PM
post Re: Keep or throw away ?
[Beginners]
Teravolt
March 19, 2019, 05:12:03 PM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General chatting]
Experimentonomen
March 19, 2019, 01:32:32 PM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General chatting]
Mads Barnkob
March 19, 2019, 12:20:34 PM
post Re: Strange gdt waveforms
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
March 19, 2019, 12:15:22 PM
post Re: Which varnish to use to coat the Secondary?
[Solid state Tesla coils]
Mads Barnkob
March 19, 2019, 10:46:50 AM
post Re: Keep or throw away ?
[Beginners]
Thunderstruck
March 19, 2019, 09:11:09 AM
post Re: Keep or throw away ?
[Beginners]
Mads Barnkob
March 19, 2019, 08:24:31 AM
post Re: Keep or throw away ?
[Beginners]
Teravolt
March 19, 2019, 01:51:51 AM
post Re: Keep or throw away ?
[Beginners]
Thunderstruck
March 18, 2019, 09:56:42 PM
post Re: cute-qcw Tesla Coil
[Dual Resonant Solid State Tesla coils]
Weston
March 18, 2019, 07:55:52 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
March 18, 2019, 06:11:07 PM
post Re: Strange gdt waveforms
[Dual Resonant Solid State Tesla coils]
Hydron
March 18, 2019, 02:27:35 PM
post Re: cute-qcw Tesla Coil
[Dual Resonant Solid State Tesla coils]
Uspring
March 18, 2019, 12:52:35 PM
post Re: Strange gdt waveforms
[Dual Resonant Solid State Tesla coils]
FilipŠebík
March 18, 2019, 12:22:58 PM
post New small SSTC
[Solid state Tesla coils]
Bambinz
March 18, 2019, 11:46:18 AM
post Re: Welcome new members, come say hello and tell a little about yourself :)
[General chatting]
Bambinz
March 18, 2019, 11:29:02 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
Mads Barnkob
March 18, 2019, 10:35:04 AM
post Re: Strange gdt waveforms
[Dual Resonant Solid State Tesla coils]
Marty
March 18, 2019, 05:32:43 AM

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30