ID System with SMS Notification using RFID MFC2522 RFID and SIM800L GSM Module

May 1st, 2019 by

In this tutorial, we will learn how to connect Arduino with FRID and GSM Module. This is a cool project that can be used in different scenarios (e.g. School ID system with SMS notification which notifies parents if their child arrived at school; Doorlock system with SMS notification) and many more.

Demonstration

 

Requirements

MFRC522 RFID Module

MFRC522 Library

SIM800L GSM Module

Arduino

Jumper Wires

 

Pin wiring

MFRC522 RFID Module

PinWiring to Arduino Uno
SDADigital 10
SCKDigital 13
MOSIDigital 11
MISODigital 12
IRQunconnected
GNDGND
RSTDigital 9
3.3V3.3V

Sim800L GSL Module

PinWiring to Arduino Uno
RXDigital 2
TXDigital 3
GNDGND
VCC5V

If you have trouble connecting your GSM module, I have a separate tutorial on how to connect your GSM module and send SMS.

 

Installing the MFRC522 Library

After you have connected your Arduino and downloaded the MFRC522 Library Go to “Sketch -> Include Library -> Add .ZIP Library” and browse your downloaded ZIP file.



 

Uploading the Source Code

Upload the following Codes to your Arduino

Replace the ZZ with your country code, followed by your phone number. For example, in the Philippines, ZZ would be 63, followed by the next 10 digits.

 

Screenshot

 

That’s it! Hope it helps 🙂  Please share this tutorial by clicking the social media buttons below.

 

 

Spread the love


Comments

1 Comment

  1. Ali ATEÅž

    December 8, 2019 at 4:41 am

    #include
    #include
    #include
    SoftwareSerial mySerial(3, 2);
    constexpr uint8_t RST_PIN = 9;
    constexpr uint8_t SS_PIN = 10;
    MFRC522 mfrc522(SS_PIN, RST_PIN);
    void setup() {
    mySerial.begin(9600);
    SPI.begin();

    }
    void loop() {
    if ( ! mfrc522.PICC_IsNewCardPresent()) {
    return;
    }
    if ( ! mfrc522.PICC_ReadCardSerial()) {
    return;
    }
    long code=0;
    for (byte i = 0; i < mfrc522.uid.size; i++)
    {
    code=((code+mfrc522.uid.uidByte[i])*10);
    }
    if(code != 0) {
    String message = "Card Scanned: " + String(code);
    sendSms(message);
    }
    delay (2000);
    }
    void sendSms(String message) {
    delay(1000);
    mySerial.println("AT");
    delay(500);
    mySerial.println("AT+CMGF=1");
    delay(500);
    mySerial.println("AT+CMGS=\"+ZZXXXXXXXXXX\"\r");
    delay(500);
    mySerial.print(message);
    delay(500);
    mySerial.write(26);
    }

    Codes don't work like this

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *