Professional Documents
Culture Documents
There are number of individuals who deserve my sincere gratitude for helping me
to complete this work. First and foremost, I would like to express my gratitude and
appreciation to my guide towards Prof. S.S.Vaidya for most valuable guidance and help.
I express my deepest gratitude to Prof. S.S.Vaidya Head of the Department, Sanghavi
College Of Engineering, Nashik has given me ample freedom while doing this work and
also provided the moral support at difficult situations. It was my honor to work under her.
Also I am very thankful to Dr. J. T. Pattiwar, Principal, Sanghavi College Of
Engineering, Nashik for his suggestions, encouragement and constant support. Last but
not the least. I would like to thank my family for their support, guidance, words of
encouragement and unselfish love and all those people who helped us in making this
project a success.
1.1Introduction
The PDS is recognized by the Government of India, with a network of 5.05 Lakh Fair
Price Shops (FPS) is perhaps the largest retail system in the world [1]. This scheme was
launched in India on June 1997. Public distribution system provides a ration card issued
by the State Government for the purchase of essential consumer materials like rice,
wheat, kerosene and oil. The fair price shops are mainly used to distribute the goods at a
subsidized price to the poor.
Public Distribution System is one of the widely controversial issues that involve
inefficiency in the targeting of beneficiaries and the resulting leakage of subsidies. The
Indian ration card is the authority of the Indian people. It is an important livelihood tool
for providing proof of personal identity [2]. Public Distribution System is one of the
widely controversial issues that involve malpractice. The manual interference in
weighing of the materials leads to inaccurate measurement and it may happen, the ration
shop owner illegally uses consumer materials without prior knowledge of ration card
holders [1]. In this paper, the proposed automated ration distributed system aids to
control Malpractices by replacing manual work with automatic system based on
RFID/UID number & Internet Databases.
This automated ration system replaces the conventional ration card system by RFID tag,
the government Authority provides the customer’s database stored in Internet through
ThingSpeak Database. The main objective of the designed system is the automation of
ration shop to provide transparency by using, RFID &IOT technology.The RFID systems
basically consist of three elements: a tag or transponder, a reader and a middleware
deployed at a host computer.
The RFID tag is a data carrier part of the RFID system which is placed on the objects to
be uniquely identified. The RFID reader is a device that transmits and receives data
through radio waves using the connected antennas. Its functions include powering the tag,
and reading or writing data to the tag. Consumers are provided with RFID card which
acts as ration card.
The PDS system today supports over 40 crore Indians below the poverty line with
monthly supply of subsidized food grains [2]. This large crowd can be handled by using
UID (Unique Identification) number system called AADHAR number through which
government databases could be accessed providing necessary Details. ThingSpeak™ is
an open source IoT(Internet of Things) platform that lets one collect sensor data in the
cloud and develop IoT applications. The ThingSpeak™ IoT platform provides apps that
let one analyse and visualize data in MATLAB®, and then act on the data. Sensor data
can be sent to ThingSpeak from Arduino®, Raspberry Pi™, BeagleBone Black, and other
hardware. In this system we have designed and implemented an automated ration
distribution system using RFID and IOT.
In this system every consumer is provided with a RFID card which acts as ration card.
The RFID card has unique identification number; the consumer scans the card on RFID
reader which is interfaced with microcontroller. Consumer can also enter her/his
AADHAR Card number instead of RFID Scan.
After successful authorization, customer needs to enter type of material as well as
quantity of material using keypad [3]. After delivering proper material to consumer,
proposed ration shop system is connected to the government database via INTERNET
which updates the database and thereby provide information to customer as well as PDS
authorities. By implementing the automated ration distribution system each user is
assured to get a correct amount of ration at the Correct Price. The project can be
implemented in large scale by using UID (Unique Identification) number system called
AADHAR number which can be linked with government databases [4].
The main part of the ration distribution is based on the RFID technology. RFID stands for
Radio-Frequency Identifications. The RFID is small electronic device that consist of a
small chip and an antenna. The chip typically can carry 2,000 bytes of data or less. The
RFID card is password protected. When the card is showed to the RFID tag, enter the
password through the keypad. If the password is not correct, then that RFID card doesn’t
work. After entering the correct password, the database of that customer will be
monitored on the LCD display. Which includes name of customer, type of card, balance
of ration material and we can select the material & its quantity. The controller will
recognize the data coming from RFID by comparing it with the database. Once the user is
identified, the microcontroller will check whether the user had already bought the ration
item of to that month. If the user selects the ration item for purchasing purpose, then the
controller will calculate the price of the items & check with the available cash balance in
the card. If the person has enough balance, then microcontroller will start the solenoid &
motor mechanism to dispense the items. The solid items are measured by load cell and
the liquid items are measured by solenoid valve mechanism. After the dispensation of the
materials the message will be send to the mobile number of higher authority and the
customer’s mobile number through the GSM.
The smart ration distribution based on RFID technology. Instead of ration card
everyone will be provided with an RFID card. If the customer has to buy any ration
material, he has to show the ration RFID tag card to the RFID reader kit. The user will be
having a unique number & the reader will recognize it. The recognized RFID number
will be given to the microcontroller, which compares the input number with the database.
Name, address details, date of expire of card etc. are programmed in the controller will
recognize the data coming from RFID by comparing it with the database. Once the user is
identified, the microcontroller will check whether the user had already bought the ration
item of to that month. If not, then the ration item to be dispensed will be displayed on the
LCD screen. The user has to enter the details of the item he wants to purchase. If the user
selects the ration item for purchasing purpose, then the controller will calculate the price
of the items & check with the available cash balance in the card. If the person has enough
balance, then microcontroller will start the solenoid & motor mechanism to dispense the
items. The solid items are measured by load cell and the liquid items are measured by
solenoid valve mechanism.
Chapter 4
System hardware
4.1 Arduino Uno
The UNO is the best board to get started with electronics and coding. If this is your first
experience
tinkering with the platform, the UNO is the most robust board you can start playing with.
The UNO is the most used and documented board of the whole Arduino family.
Microcontroller : ATmega328P
• Operating Voltage : 5V
• Input Voltage (recommended) : 7-12V
• Input Voltage (limit) : 6-20V
• Digital I/O Pins : 14 (of which 6 provide PWM output)
• PWM Digital I/O Pins : 6
• Analog Input Pins : 6
• DC Current per I/O Pin : 20 mA
• DC Current for 3.3V Pin : 50 mA
• Flash Memory : 32 KB (ATmega328P) of which 0.5 KB used by
bootloader
• SRAM : 2 KB (ATmega328P)
• EEPROM : 1 KB (ATmega328P)
• Clock Speed : 16 MHz
• LED_BUILTIN : 13
• Length : 68.6 mm
• Width : 53.4 mm
• Weight : 25 g
4.2 MFRC522
Fig. MFRC522
There are cheap RFID modules that can read and write Mifare's tags and being sold at
several web stores, like eBay and included with many "starter kits" nowadays. Simply
search RFID RC522 (MF-RC522). The microcontroller and card reader uses SPI for
communication (chip supports I2C and UART protocols but not implemented on library)
(Maybe someone implements?).
The card reader and the tags communicate using a 13.56MHz electromagnetic field. (ISO
14443A standers tags) RFID means radio-frequency identification. RFID uses
electromagnetic fields to transfer data over short distances. RFID is useful to identify
people, to make transactions, etc.
Specifications
• Input voltage: 3.3V
• Price: approximately 3$ (check best price on Maker Advisor)
• Frequency: 13.56MHz
4.3 DC Geared Motor
Fig. DC Geared Motor
Three DC motor system is used to open and close the valves for automatic distribution of
rice, sugar and oil. The initial valve arrangement is made to prevent fall of grains and oil.
The three DC motors, each having specifications 12 V, 60 RPM and 0.37 A are used for
this purpose.
Gear motors use either AC (Alternating Current) or DC (Direct Current) power.
Gears transform shaft speed into torque at specific ratios, with minimum efficiency
losses, making it possible to create the ideal torque output and speed by adding the
appropriately sized and configured gear box. Simply put, a gear motor is any electric
motor coupled with a gear train. Gear motors use either AC (Alternating Current) or DC
(Direct Current) power. In most cases, the addition of a gear box is intended to limit the
speed of the motor’s shaft and increase the motor’s ability to output torque. Gears
transform shaft speed into torque at specific ratios, with minimum efficiency losses,
making it possible to create the ideal torque output and speed by adding the appropriately
sized and configured gear box.
4.4 Solenoid Valve
Transformers (not the 2007 film) are used to isolate the power supply from the AC
voltage source, and are also used to step up or step down voltages depending on how they
are required and how they are made.
Once the AC voltage passes through the transformer and is at the desired level, it then
goes into a rectifier, the heart of the power supply, and is converted to a DC voltage
through a process called rectification, by the use of diodes connected in a bridge
configuration.
The rectified voltage still contains an AC signal though, a pulsating DC voltage, which is
referred to as a ripple frequency. That is why a filter follows the rectifier to convert the
pulsating DC voltage to a smooth DC voltage. This job is mostly done by capacitors
connected across the output of the rectifier.
Lastly, comes the voltage regulator, to ensure that the output voltage remains at a
constant level. They (the internet) say that the simplest form of a voltage regulator is a
combination of a zener diode and a transistor.
Fig. Power Supply Snapshots
Chapter 5
System Software
Fig. Flowchart
The system software is the interface between hardware and user applications. A computer
program that is designed to run a computer’s hardware and application programs. Initially
the user is asked to scan RFID card. The system compares the unique ID with the data
base. If the ID matches, the
user can view their profile which will have details of their transactions. Then user is
asked to scan the finger or RFID card. Once the user is authenticated, the commodity and
quantity can be selected their itself using buttons given. If the commodity and quantity
are valid, the system dispenses the valid commodity. However, if the authentication fails
the system waits for valid authentication.
5.2 Simulation Coding
#define SS_PIN 10
#define RST_PIN 9
#define LED_G 5 //define green LED pin
#define LED_R 4 //define red LED
#define RELAY 3 //relay pin
#define BUZZER 2 //buzzer pin
#define ACCESS_DELAY 2000
#define DENIED_DELAY 1000
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance.
void setup()
{
Serial.begin(9600); // Initiate a serial communication
SPI.begin(); // Initiate SPI bus
mfrc522.PCD_Init(); // Initiate MFRC522
pinMode(LED_G, OUTPUT);
pinMode(LED_R, OUTPUT);
pinMode(RELAY, OUTPUT);
pinMode(BUZZER, OUTPUT);
noTone(BUZZER);
digitalWrite(RELAY, LOW);
Serial.println("Put your card to the reader...");
Serial.println();
}
void loop()
{
// Look for new cards
if ( ! mfrc522.PICC_IsNewCardPresent())
{
return;
}
// Select one of the cards
if ( ! mfrc522.PICC_ReadCardSerial())
{
return;
}
//Show UID on serial monitor
Serial.print("UID tag :");
String content= "";
byte letter;
for (byte i = 0; i < mfrc522.uid.size; i++)
{
Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " ");
Serial.print(mfrc522.uid.uidByte[i], HEX);
content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
content.concat(String(mfrc522.uid.uidByte[i], HEX));
}
Serial.println();
Serial.print("Message : ");
content.toUpperCase();
if (content.substring(1) == "83 23 38 BB") //change here the UID of the card/cards that
you want to give access
{
Serial.println("Authorized access");
Serial.println();
delay(500);
digitalWrite(RELAY, HIGH);
digitalWrite(LED_G, HIGH);
delay(ACCESS_DELAY);
digitalWrite(RELAY, LOW);
digitalWrite(LED_G, LOW);
}
else {
Serial.println(" Access denied");
digitalWrite(LED_R, HIGH);
tone(BUZZER, 300);
delay(DENIED_DELAY);
digitalWrite(LED_R, LOW);
noTone(BUZZER);
}
}
Chapter 6
Result
Fig. Model
The snapshots of the result are shown below. RFID ID module is interfaced to the
Arduino board through serial port. The user enters unique ID and password into the Web
application which is then verified using stored database. It is followed RFID
identification to verify the identity of user. After validating ID and password user is
asked to scan the card which acts as a level 2 authentication to stop any fraudulent
activity in case if the ID and password are hacked. Figure shows the dispensing
containers for three commodities rice, sugar and any fluid which are connected by DC
motors (for rice and sugar) and hydraulic valve arrangement (for fluid)via H-bridge.
Fig. Power Supply
Chapter 7
Conclusion and Future work
[1] https://www.energy.gov/eere/electricvehicles/electric-vehicle-benefits
[2] IOT Based PV assisted EV Charging Station for Confronting- Duck Curve Badrinath Kulkarni
Devaji Patil ; Rahul. G. Suryavanshi 2018 International Conference on Computational Techniques,
Electronics and Mechanical Systems (CTEMS) Year: 2018 | Conference Paper | Publisher: IEEE
[3] https://www.cbsnews.com/news/england-will-test-electric-car-charging-lanes/
[4] https://theray.org/tech/ev-charging-lanes/
[5]www.theguardian.com/environment/2018/apr/12/worlds-first-electrified-road-for-chargingvehicles-
opens-in-sw
[6] Owners of electric vehicles could soon be able to charge their cars while driving - New technology
could do away with the need for roadside chargers (News The Essential Daily Briefing)
[7] Australia's fastest electric vehicle charging station opens on Great Ocean Road - Source: Xinhua|
2019-09-04 09:58:58|Editor: Shi Yinglun – Asia and Pacific.
[8] Suhas K, Suhas N, Sumukh B, Sunil S, A project report on Public distribution system guided by Mrs.
S Mala, Department of Electronics and Communication, SIT Tumakuru 2015-16.
[9] Sana A, Qader P, Dube R , Smart Card based e-Public Distribution System , Inter national Journal of
Advanced Research in Computer and Communication Engineering Vol. 5, Issue 5, May 2016.
[10] Bhalekar D, Kulkarni R, Lawande K, Patil V, Online Ration Card System by using RFID and
Biometrics , International Journal of Advanced Research Computer Science and Software Engineering
5(10), pp. 849-851, October- 2015.
[11] Ashok Kumar D, Ummal Sariba B, A Comparative Study on Fingerprint Matching Algorithms for
EVM, Journal of Computer Sciences and Applications, Vol. 1, No. 4, 21 pp:55 60,2013.
[12] Sharath P, Prabhakar S, Jain A, On the individuality of fingerprints, IEEE Transactions on Pattern
Analysis and Machine Intelligence, VOL. 24, NO. 8, pp: 1010-1025, 2002.
[13] Xuejun T, Bir B, Fingerprint matching by genetic, algorithms, Pattern Recognition Society,
Published by Elsevier Ltd, 39 pp: 465-477, 2006.
[14] Deepika S, Rashmi S, Minutiae Based FingerprintMatching for Identification and Verifi cation,
International Journal of Science and Research (IJSR), Vol. 17 Issue 6, November 2014.
Annexure
Microcontroller ATmega328
Operating Voltage 5V
Input Voltage
7-12V
(recommended)
Input Voltage (limits) 6-20V
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
The Arduino Uno R3 is the latest version after the Duemilanove with an improved USB
interface chip. Like the Duemilanove, it not only has an expanded shield header with a
3.3V reference and a RESET pin (which solves the problem of how to get to the RESET
pin in a shield) AND a 500mA fuse to protect your computer's USB port, but ALSO an
automatic circuit to select USB or DC power without a jumper! The Uno is pin and code-
compatible with the Duemilanove, Diecimilla and older Arduinos so all your shields,
libraries, code will still work. The R3 (3rd revision) of the UNO has a few minor updates,
with an upgrade to the USB interface chip and additional breakouts for the i2c pins and
an IORef pin.
Each Arduino ordered from Adafruit still comes with 4 rubber bumpers that will help
protect the board when you want to place it on a table. (Also keeps the Arduino from
sliding around.)
Arduino can sense the environment by receiving input from a variety of sensors and can
affect its surroundings by controlling lights, motors, and other actuators. The
microcontroller on the board is programmed using the Arduino programming language
(based on Wiring) and the Arduino development environment (based on Processing).
Arduino projects can be stand-alone or they can communicate with software running
on a computer (e.g. Flash, Processing, Max/MSP).
NB this is just our opinion and interpretation of some of the
decisions made by Arduino. We aren't associated with Arduino,
and don't speak for them! If you have to get an Official Response
to your Arduino question please contact them directly. Thx!
Arduino Timeline
But first…some history! First there was the serial Arduino (what's the name of it?) with
RS232 which was not used outside of the Arduino team & friends.
The first popularly manufactured Arduino was called the NG (New Generation, like Star
Trek, yknow?) The NG used the Atmega8 chip running at 16 MHz and an FT232 chip for
the USB interface. The bootloader takes up 2KB of space and runs at 19200 baud.
The next version was the Diecimila. The Diecimila updated the chip from the Atmega8
to the Atmega168. The great thing here is double the space and memory (16K instead
of 8K). It still ran at 16MHz. The Diecimila also added two extra header pins for 3.3V
(from the FTDI chip) and the reset pin which can be handy when a shield is covering up
the Reset button. The bootloader takes up 2KB of space and runs at 19200 baud. Auto-
resetting was also added which makes life awesomer for everyone.
In 2009, the Duemilanove was released. This one also upgraded the chip again, to the
Atmega328. Yet another doubling of space and memory! Another upgrade is now the
power is automagically switched between USB and DC-jack which removed the
previous jumper. This makes it easier and faster to move from programming to
standalone and got rid of some confusion. The bootloader takes up 2KB of space and
runs at 57600 baud.
In 2010, we have the Uno! The Uno still uses the 328P chip and the power switcher. It
has a smaller bootloader called OptiBoot (more space for users' projects) that runs at
115K. So even though the chip is the same, you get another 1.5K of extra flash space
that was previously used by the bootloader. The FTDI chip has also been replaced with
a atmega8u2 which allows for different kinds of USB interfaces. Finally, there's an extra
3.3V regulator (LP2985) for a better 3.3V supply. whew!
The good news about the FT232RL has royalty-free drivers and pretty much just works.
The bad news is that it can -only- act as a USB/Serial port. It can't act like a keyboard,
mouse, disk drive, MIDI device, etc.
The Uno has changed that by exchanging the FT232RL chip with an atmega8u2 chip.
There are a few things that are possible with this new chip but before we discuss that
lets make it clear that by default, this chip acts identically to the FTDI chip that it
replaces. It's just a USB-serial port!
One improvement in updating the chip is that, previously, Mac users needed to install
FTDI drivers. The 8u2 imitates a 'generic' CDC serial device. So now, Mac users do not
have to install a driver. Windows users still need to install the .INF file but luckily there
are no drivers. This means there will be fewer problems with new versions of windows.
There is no way to have a serial USB device that doesn't require an INF file in windows,
sadly :(
The big thing that is nice about the 8u2 is that advanced users can turn it into a different
kind of USB device. For example it can act like a keyboard or mouse. Or a disk driver. Or
a MIDI interface, etc. Right now there are no examples of how to do this, but we hope to
post some shortly.
And, finally, going with the 8u2 reduced the price of the board which made up for some
of the other extras.
2877 | Arduino Uno R3
The code for the 8u2 is based on LUFA, Dean Cameran's totally awesome USB-AVR library that
has great examples and documentation. It’s also completely open source.
Does the Uno use a resonator or a crystal for the processor clock?
The FT232RL had an internal oscillator whereas the 8u2 does not. That means there is a 16mhz
crystal next to the 8u2 to allow it to keep up with precise USB timing.
On the other hand, the Atmega328p chip that is the core processor in the Arduino now has a
16mhz ceramic resonator. Ceramic resonators are slightly less precise than crystals but we have
been assured that this one was specified and works quite well.
New Bootloader?
There's a new bootloader. It works just like the old one - being an STK500-protocol compatible
but its a quarter of the size! Down from 2K, the new bootloader is a tiny 512b. This gives you
more space for your project code! Yay! It's also faster - 115K instead of 57.6k so you'll be
uploading code in 3 seconds.
The Bad News is that you must make sure to select Uno in the Boards menu!!! If you don't
things will be confusing because the bootloader speed is wrong, and you won't get that extra
1.5K!
Overall, its a good direction, and the chips can be used in older Arduinos just fine (so you can
upgrade your Diecimila or Duemilanove to the Uno by simply replacing the chip).
For more detailed information about the bootloader, such as source code, please visit
the Optiboot project page.
If you want to make your own Arduino-compatible board, you have a few choices:
1. Don't use an 8u2, go with an FTDI chip instead that comes with a VID.
2. If you're planning to make more than one board for your personal use, you will have to
purchase a VID from USB IF for a one time $2000 fee.
3. If you're making a single board for your own experimentation, you can pick a VID/PID that
doesn't interfere with any devices on your computer and substitute those in.
4. You can purchase licenses for single VID/PID pairs from companies that develop USB
devices (we don't have any specific links at the moment).
However, you can't use the Arduino VID when distributing your own Arduino-compatibles! If the
cost of a VID is too much for you, simply go with an FTDI chip, K?
I tried to find a place to buy some '8u2s and couldn’t locate any!
Yep, there is a worldwide shortage of Atmel parts right now. Even the chip used in the Arduino
core (Atmega328P) is really hard to get. This happens after recessions. We hope that these and
other Atmel chips will show up again in places like Arrow soon.
So does this mean there may be an Arduino shortage?
Probably not. The Arduino team buys chips in the 10's of thousands, directly from Atmel. They
probably get priority over distributors because of this. We're assuming the team bought enough
to last for a while.
Did the Arduino team move from the FTDI chip to the '8u2 to screw over
derivative-makers?
While the appearance of a hard-to-get chip coupled with the VID/PID mishegas may seem to be
a little annoying, we don't think that means that the Arduino team is being malicious or
attempting to make life difficult for people who make derivatives. The move to an '8u2 makes
the Arduino more powerful, and easy to use as there are fewer drivers to install. While there is a
shortage now, there will eventually be plenty of chips on the market.
Some people in the Arduino forum have thought of forming a group that would purchase a VID
for Arduinites to use in personal projects. This is a pretty good idea and its probably the best
way to avoid VID/PID conflicts. Between 65,536 projects, that comes to under a nickel per PID.
And of course, because they didn't get rid of the bootloader system, you can always just use an
FTDI chip.
Why is the Arduino chip running at 16MHz when it can run at 20MHz?
This is a common question. The reason is that the first Arduino used the Atmega8 which could
not run faster than 16Mhz. As the chip has been upgraded they wanted to make the boards
speed compatible. Arduino is also not really intended for fast-processing (its only 8-bit anyways)
so the chips are running at 16MHz.
More 3.3V Power!
2877 | Arduino Uno R3
One sad thing about older boards is that they had a 3.3v power supply but it was really just
whatever the FTDI chip's internal 3.3v regulator could give. You -could- get 50mA out of it,
maybe. But high power stuff like XBees, SD cards, some fast ADC or DACs could easily drag down
the FTDI chip and reset the USB connection. The Uno solves this problem by adding a new 3.3V
regulator the LP2985 which can easily provide 150mA.
The LP2985 is a very high quality regulator, and will work great for powering stuff and as a nice
solid 1% analog reference.
There are a few changes in the UNO, here is what they are:
1.
The USB controller chip has moved from an atmega8u2 (8K flash) to an
atmega16u2 (16K flash). This does not mean that you have more flash or
RAM for your sketches this upgrade is for the USB interface chip only. In
theory this will mean that it will be easier to have low level USB interfaces
such as MIDI/Joystick/Keyboard available. However these are only theoretical
at this time, there is no example code or firmware which will actually do this.
2. There are three more breakout pins on the PCB, next to the AREF pin there is
are two I2C pins (SDA/SCL) - this is a duplication of the Analog 4 and 5 pins.
There is not an extra I2C interface or anything, its just that they made a copy
of those pins there for future shields since the I2C pins are in a different place
on Mega. There is also an IOREF pin which is next to the Reset pin - this is to
let shields know what the running I/O pin voltage is on the board (for the
UNO, its 5V). Again, this is a duplication of the power pin, it does not add
voltage level shifting to the UNO.
3. The RESET button has moved to be next to the USB connector, this makes it
easier to press when a shield is on top.
MFRC522
Standard performance MIFARE and NTAG frontend Rev. 3.9 — 27
April 2016 Product data sheet
112139 COMPANY PUBLIC
1. Introduction
This document describes the functionality and electrical specifications of the contactless
reader/writer MFRC522.
Remark: The MFRC522 supports all variants of the MIFARE Mini, MIFARE 1K,
MIFARE 4K, MIFARE Ultralight, MIFARE DESFire EV1 and MIFARE Plus RF
identification protocols. To aid readability throughout this data sheet, the MIFARE Mini,
MIFARE 1K, MIFARE 4K, MIFARE Ultralight, MIFARE DESFire EV1 and MIFARE Plus
products and protocols have the generic name MIFARE.
2. General description
[1] Supply voltages below 3 V reduce the performance in, for example, the achievable operating distance.
[2] VDDA, VDDD and VDD(TVDD) must always be the same voltage.
[3] VDD(PVDD) must always be the same or lower voltage than VDDD.
[6] IDD(TVDD) depends on VDD(TVDD) and the external circuit connected to pins TX1 and TX2.
[7] During typical circuit operation, the overall current is below 100 mA.
[8] Typical value using a complementary driver configuration and an antenna matched to 40 between pins TX1 and TX2 at 13.56
MHz.
5. Ordering information
The contactless UART manages the protocol requirements for the communication
protocols in cooperation with the host. The FIFO buffer ensures fast and
convenient data transfer to and from the host and the contactless UART and vice
versa.
REGISTER BANK
ANALOG CONTACTLESS
ANTENNA FIFO
INTERFACE UART SERIAL UART
BUFFER
SPI HOST
I2C-BUS
001aaj627
29 D5/ADR_1/SCK/DTRQ
30 D6/ADR_0/MOSI/MX
31 D7/SCL/MISO/TX
28 D4/ADR_2
27 D3/ADR_3
26 D2/ADR_4
25 D1/ADR_5
32 EA
I2C 1 24 SDA/NSS/RX
PVDD 2 23 IRQ
DVDD 3 22 OSCOUT
DVSS 4 21 OSCIN
MFRC522
PVSS 5 20 AUX2
NRSTPD 6 19 AUX1
MFIN 7 18 AVSS
MFOUT 8 17 RX
TX1 11
TVSS 10
TVDD 12
TX2 13
TVSS 14
AVDD 15
VMID 16
9
SVDD
001aaj819
[2] The pin functionality of these pins is explained in Section 8.1 “Digital interfaces”.
[3] Connection of heatsink pad on package bottom side is not necessary. Optional connection to pin DVSS is possible.
8. Functional description
The MFRC522 transmission module supports the Read/Write mode for
ISO/IEC 14443 A/MIFARE using various transfer speeds and modulation protocols.
BATTERY
MFRC522 ISO/IEC 14443 A CARD
MICROCONTROLLER
contactless card
reader/writer 001aak583
(1)
ISO/IEC 14443 A
READER ISO/IEC 14443 A CARD
(2)
MFRC522
001aak584
(1) Reader to card 100 % ASK, Miller encoded, transfer speed 106 kBd to 848 kBd.
(2) Card to reader subcarrier load modulation, Manchester encoded or BPSK, transfer speed 106 kBd
to 848 kBd.
Fig 5. ISO/IEC 14443 A/MIFARE Read/Write mode communication diagram
ISO/IEC 14443 A framing at 212 kBd, 424 kBd and 848 kBd even
start parity
The internal CRC coprocessor calculates the CRC value based on ISO/IEC 14443
A part 3 and handles parity generation internally according to the transfer speed.
Automatic parity generation can be switched off using the MfRxReg register’s
ParityDisable bit.