Arduino Rfid Read and Write on Lcd

33,611

58

19

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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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

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

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

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

Be the First to Share

    Recommendations

    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest

    19 Discussions

    0
    None
    eremdegerli

    8 months ago

    I can't see anything on the LCD when I boot the Arduino up and nothing comes up on the LCD when I scan my card

    0
    None
    tensecondsdown

    1 year ago

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

    0
    None
    Climatech

    1 year ago

    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.

    0
    None
    DIYZAN

    1 year ago

    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.

    0
    None
    choclawrence

    2 years ago

    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

    0
    None
    timtolar

    2 years ago

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

    0
    None
    tydryfly

    2 years ago

    MFRC522 mfrc522(SS_PIN, RST_PIN);

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

    3 replies
    0
    None
    NevzatP1tydryfly

    Reply 2 years ago

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

    0
    None
    NevzatP1tydryfly

    Reply 2 years ago

    now it worked u should uptade your mfrc522 lib

    0
    None
    NevzatP1tydryfly

    Reply 2 years ago

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

    0
    None
    NevzatP1

    2 years ago

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

    0
    None
    SaipulM

    2 years ago

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

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

    1 reply
    0
    None
    NevzatP1SaipulM

    Reply 2 years ago

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

    0
    None
    NevzatP1

    2 years ago

    Hello there nothing show on screen how solve it ?

    0
    None
    timtolar

    3 years ago

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