Introduction: Arduino Rfid Read and Write on Lcd

Picture of Arduino Rfid Read and Write on Lcd

i will show you how to make arduino rfid read and write on lcd

Step 1:

Hi there!

Today i will show you how to make arduino rfid read and write on lcd. Download the code and load it on arduino it does not matter witch one but i prefer uno and infiduino.

Things you will need:

*lcd (16,2) eny one i used 16 by 2

*rfid (rc522)

*rfid tag

*breadboard

*some jumpers

*pot (10k)

Step 2: Lcd Pinout

Picture of Lcd Pinout

Connect rfid scenner and lcd to arduino as showned on schematic and dont forget pu put pot on vo of the lcd if you dont you will se apsulutly nothing.

Lcd connections

vss - to gnd

vdd - to 5v

vo - to pot

rs - to arduino digital pit 7

rw - to gnd

e - to arduino digital pin 6

d4 - to arduino digital pin 5

d5 - to arduino digital pin 4

d6 - to arduino digital pin 3

d7 - to arduino digital pin 2

A - to arduino digital pin 8

K - to gnd

Step 3: Rfid Pinout

Picture of Rfid Pinout

3,3 - to arduino 3,3 volt rail

rst - to arduino digital pin 9

gnd - to arduino gnd rail

rqi - not connected

miso - to arduino digital pin 12

mosi - to arduino digital pin 11

sck - to arduino digital pin 13

sda - to arduino digital pin 10

Step 4: Trying It Out

Picture of Trying It Out

when you are all done connect arduino to power sorse and wait to arduino turn lcds back light when che lcd cleans scan rfid card then go thro the progrem when is over it will say success 16:-) the lcds back lights will turn off then reset your arduino to start program over again.

thanks enjoy

Comments

tlv electronic (author)2017-12-09

hello

where i down the code ????

tensecondsdown (author)2017-11-05

I guess I am going to have to start trying out the code before wasting my time actually building things.

Climatech (author)2017-10-19

help i get all this errors

uild options changed, rebuilding all

In file included from /Users/Henrik/Downloads/FNMUZ5RIGGTW1EG/FNMUZ5RIGGTW1EG.ino:7:0:

/Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522Extended.h: In constructor 'MFRC522Extended::MFRC522Extended(uint8_t)':

/Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522Extended.h:81:44: warning: 'MFRC522::MFRC522(byte)' is deprecated (declared at /Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522.h:335): use MFRC522(byte chipSelectPin, byte resetPowerDownPin) [-Wdeprecated-declarations]

MFRC522Extended(uint8_t rst) : MFRC522(rst) {};

^

/Users/Henrik/Downloads/FNMUZ5RIGGTW1EG/FNMUZ5RIGGTW1EG.ino: In function 'void loop()':

/Users/Henrik/Downloads/FNMUZ5RIGGTW1EG/FNMUZ5RIGGTW1EG.ino:91:44: warning: invalid conversion from 'byte {aka unsigned char}' to 'MFRC522::PICC_Type' [-fpermissive]

lcd.print(mfrc522.PICC_GetTypeName(piccType));

^

In file included from /Users/Henrik/Downloads/FNMUZ5RIGGTW1EG/FNMUZ5RIGGTW1EG.ino:6:0:

/Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522.h:400:36: note: initializing argument 1 of 'static const __FlashStringHelper* MFRC522::PICC_GetTypeName(MFRC522::PICC_Type)'

static const __FlashStringHelper *PICC_GetTypeName(PICC_Type type);

^

/Users/Henrik/Downloads/FNMUZ5RIGGTW1EG/FNMUZ5RIGGTW1EG.ino:126:43: warning: invalid conversion from 'byte {aka unsigned char}' to 'MFRC522::StatusCode' [-fpermissive]

lcd.print(mfrc522.GetStatusCodeName(status));

^

In file included from /Users/Henrik/Downloads/FNMUZ5RIGGTW1EG/FNMUZ5RIGGTW1EG.ino:6:0:

/Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522.h:396:36: note: initializing argument 1 of 'static const __FlashStringHelper* MFRC522::GetStatusCodeName(MFRC522::StatusCode)'

static const __FlashStringHelper *GetStatusCodeName(StatusCode code);

^

/Users/Henrik/Downloads/FNMUZ5RIGGTW1EG/FNMUZ5RIGGTW1EG.ino:148:43: warning: invalid conversion from 'byte {aka unsigned char}' to 'MFRC522::StatusCode' [-fpermissive]

lcd.print(mfrc522.GetStatusCodeName(status));}

^

In file included from /Users/Henrik/Downloads/FNMUZ5RIGGTW1EG/FNMUZ5RIGGTW1EG.ino:6:0:

/Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522.h:396:36: note: initializing argument 1 of 'static const __FlashStringHelper* MFRC522::GetStatusCodeName(MFRC522::StatusCode)'

static const __FlashStringHelper *GetStatusCodeName(StatusCode code);

^

/Users/Henrik/Downloads/FNMUZ5RIGGTW1EG/FNMUZ5RIGGTW1EG.ino:168:45: warning: invalid conversion from 'byte {aka unsigned char}' to 'MFRC522::StatusCode' [-fpermissive]

lcd.println(mfrc522.GetStatusCodeName(status));

^

In file included from /Users/Henrik/Downloads/FNMUZ5RIGGTW1EG/FNMUZ5RIGGTW1EG.ino:6:0:

/Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522.h:396:36: note: initializing argument 1 of 'static const __FlashStringHelper* MFRC522::GetStatusCodeName(MFRC522::StatusCode)'

static const __FlashStringHelper *GetStatusCodeName(StatusCode code);

^

/Users/Henrik/Downloads/FNMUZ5RIGGTW1EG/FNMUZ5RIGGTW1EG.ino:183:43: warning: invalid conversion from 'byte {aka unsigned char}' to 'MFRC522::StatusCode' [-fpermissive]

lcd.print(mfrc522.GetStatusCodeName(status));}

^

In file included from /Users/Henrik/Downloads/FNMUZ5RIGGTW1EG/FNMUZ5RIGGTW1EG.ino:6:0:

/Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522.h:396:36: note: initializing argument 1 of 'static const __FlashStringHelper* MFRC522::GetStatusCodeName(MFRC522::StatusCode)'

static const __FlashStringHelper *GetStatusCodeName(StatusCode code);

^

/Users/Henrik/Downloads/FNMUZ5RIGGTW1EG/FNMUZ5RIGGTW1EG.ino:197:45: warning: invalid conversion from 'byte {aka unsigned char}' to 'MFRC522::StatusCode' [-fpermissive]

lcd.println(mfrc522.GetStatusCodeName(status));}

^

In file included from /Users/Henrik/Downloads/FNMUZ5RIGGTW1EG/FNMUZ5RIGGTW1EG.ino:6:0:

/Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522.h:396:36: note: initializing argument 1 of 'static const __FlashStringHelper* MFRC522::GetStatusCodeName(MFRC522::StatusCode)'

static const __FlashStringHelper *GetStatusCodeName(StatusCode code);

^

/Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522.cpp: In member function 'bool MFRC522::MIFARE_SetUid(byte*, byte, bool)':

/Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522.cpp:1818:39: warning: 'bool MFRC522::MIFARE_OpenUidBackdoor(bool)' is deprecated (declared at /Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522.cpp:1674): will move to extra class in next version [-Wdeprecated-declarations]

if (!MIFARE_OpenUidBackdoor(logErrors)) {

^

/Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522.cpp: In member function 'bool MFRC522::MIFARE_UnbrickUidSector(bool)':

/Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522.cpp:1847:34: warning: 'bool MFRC522::MIFARE_OpenUidBackdoor(bool)' is deprecated (declared at /Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522.cpp:1674): will move to extra class in next version [-Wdeprecated-declarations]

MIFARE_OpenUidBackdoor(logErrors);

^

In file included from /Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522Extended.cpp:8:0:

/Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522Extended.h: In constructor 'MFRC522Extended::MFRC522Extended(uint8_t)':

/Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522Extended.h:81:44: warning: 'MFRC522::MFRC522(byte)' is deprecated (declared at /Users/Henrik/Documents/Arduino/libraries/MFRC522/src/MFRC522.h:335): use MFRC522(byte chipSelectPin, byte resetPowerDownPin) [-Wdeprecated-declarations]

MFRC522Extended(uint8_t rst) : MFRC522(rst) {};

^

Sketch uses 10296 bytes (31%) of program storage space. Maximum is 32256 bytes.

Global variables use 391 bytes (19%) of dynamic memory, leaving 1657 bytes for local variables. Maximum is 2048 bytes.

DIYZAN (author)2017-09-24

I got loads of error messages that I do not understand!

Arduino: 1.6.10 (Windows 10), Board: "Arduino Nano, ATmega328"

C:\Users\Žan\AppData\Local\Temp\FNMUZ5RIGGTW1EG\FNMUZ5RIGGTW1EG.ino: In function 'void setup()':

FNMUZ5RIGGTW1EG:51: error: 'dump_byte_array' was not declared in this scope

C:\Users\Žan\AppData\Local\Temp\FNMUZ5RIGGTW1EG\FNMUZ5RIGGTW1EG.ino: In function 'void loop()':

FNMUZ5RIGGTW1EG:76: error: 'dump_byte_array' was not declared in this scope

Multiple libraries were found for "MFRC522.h"
Used: C:\Users\Žan\Documents\Arduino\libraries\MFRC522
Not used: C:\Users\Žan\Documents\Arduino\libraries\rfid-master
exit status 1
'dump_byte_array' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

choclawrence (author)2017-08-18

Hello sir, My project involves the rfid,the lcd and the arduino uno without the potentiometer. I have an i2C already. I believe the code will change because of this. Can you advice me on how to carry on? I am a super newbie but interested in arduino

timtolar (author)2017-04-27

Hi. Sorry for the delay for any more information send a mail to timtolar@gmail.com
Thanks.

tydryfly (author)2017-04-21

MFRC522 mfrc522(SS_PIN, RST_PIN);

This is highlighting as error when i try to verify code? any ideas

NevzatP1 (author)tydryfly2017-04-26

if you need any help you can email me : nevzat.peker16@gmail.com

NevzatP1 (author)tydryfly2017-04-26

now it worked u should uptade your mfrc522 lib

NevzatP1 (author)tydryfly2017-04-26

code isnt work for me i tryed 10 times,rebuild 10 times but never work for me any helps

NevzatP1 (author)2017-04-17

Tim when you look at there can you help us ? there is a problem on code to where you converse it to byte

SaipulM (author)2016-11-15

i found this problem, How to solved this problem??

invalid conversion from 'byte {aka unsigned char}' to 'MFRC522::PICC_Type' [-fpermissive]

NevzatP1 (author)SaipulM2017-04-17

i got this problem too and i dont know to how to solve it

NevzatP1 (author)2017-04-17

Hello there nothing show on screen how solve it ?

0xDEADBEAF (author)2016-10-05

*A - to 5v

timtolar (author)2015-12-20

have some one have an idea for a nother project please post it n a comments

DIY Hacks and How Tos (author)2015-11-01

Great project. This arduino setup has a lot of potential applications.

thanks

About This Instructable

25,966views

52favorites

More by timtolar:arduino rfid read and write on lcd
Add instructable to: