RFID & GSM based student Attendance Alert message to parents

(Last Updated On: July 26, 2019)

student Attendance Alert message

Description:

Arduino Project: RFID & GSM based student Attendance Alert message to parents “MFRC522 +SIM900A”

Recently, crime against children is increasing at higher rate and it is high time to offer safety system for the children going to school. When a child does not come to school it is very important to inform the parents. Time can be critical, as small children may get in trouble and help should come quickly.



It is the responsibility of the school management to inform the parents in time whether their child   is present or absent. However, this is not easy to do this manually by typing and sending alert messages to parents. So, the suitable solution for this problem is to design an automatic messaging system. Each student is given an RFID card, when the student swipes a card a message is sent to their parents. This way the parents can know whether their child is present or absent. So in this episode you will learn how to make an automatic parents alert messaging system using Arduino, MFRC522 RFID module, 16×2 LCD and a GSM SIM900A module.

For the complete project Designing and Programming Watch Video Tutorial Click Here


The components and tools used in this project can be purchased from Amazon, the components Purchase links are given below:

Arduino Project: RFID & GSM based student Attendance Alert message to parents “MFRC522 +SIM900A”

Arduino Uno: https://amzn.to/2tVz1vu

Mega 2560: https://amzn.to/2ze1kdu

MFRC522 RFID module and tags: best deal: https://amzn.to/2PD9Ref

GSM sim900A: https://amzn.to/2Nv70TI

Super Starter kit for Beginners: https://amzn.to/2KJvmKG

Jumper Wires: https://amzn.to/2KMoVXs

Bread Board: https://amzn.to/2MS4q8X

12v Adaptor: https://amzn.to/2Ntr6h1

PCB plate: https://amzn.to/2IUwpCt

Variable Supply: https://amzn.to/2MT4Qfj

Digital Multimeter: https://amzn.to/2Nvft9i

Vero Board / strip board: https://amzn.to/2MTf9jD

Soldering iron kit:  “best”  You guys should definitely purchase this: https://amzn.to/2zfoNuJ

Solder wire: https://amzn.to/2ufUMWf

Wire Stripper: https://amzn.to/2KOqxfU

wire cutter: https://amzn.to/2ucIq14

PCB small portable drill machine: https://amzn.to/2Nu62XF

First, let’s start with the GSM module:

Arduino Project: RFID & GSM based student Attendance Alert message to parents “MFRC522 +SIM900A”

student Attendance Alert message

This is the GSM module, in the market, we have different types of GSM modules, the one I will be using today is sim900A if you want you can also use any other gsm module, like for example sim900D. I have also tested the same programming using sim900D but with a different baud rate, the rest of the program remains the same.


If you are from Pakistan, Bangladesh or India make sure you double check the GSM module and purchase the unlocked version of the sim900A. This GSM sim900A module as you can see on the screen has no Onboard voltage regulator, so be careful while applying the voltage. Ideal voltage for this GSM module is 4.7v but you can also connect it with a 5v adaptor. If you don’t have a 5v adaptor then you can make your power supply using an lm317t adjustable variable voltage regulator, I have a very detailed tutorial on lm317t explaining everything. Watch video Click Here


As you can see clearly in the picture above this module has so many pins which are clearly labeled, but we will be using only 5 of these pins, the power supply pins, GND, Rxd 5v, and TXD 5v. The GND will be connected with the Arduino GND, TXD will be connected with the Arduino pin2 and RXD will be connected with the  Arduino pin4.

MFRC522 RFID Module and its Pinout.

Arduino Project: RFID & GSM based student Attendance Alert message to parents “MFRC522 +SIM900A”

student Attendance Alert message

The first pin of the RFID module is the VCC and this will be connected with 3.3v of the Arduino.

Pin number 2 is the RST or reset, pin number 3 is the ground, while the MISO pin, MOSI PIN, SCK pin and NSS pin, these four pins are the SPI pins and will be connected with the Arduino SPI pins, In Arduino the SPI pins are



student Attendance Alert message

pin number 13 is the SCK

pin number 12 is the MISO

pin number 11 is the mosi and

pin number 10 is the ss.


What is SPI :

SPI stands for “Serial Peripheral Interface”. It is a Synchronous serial data bus, which means that the data can travel in both the directions at the same time, as opposed to (for example) the I2c bus that cannot do so. To use Synchronous data transmission, the SPI bus makes use of the four wires, and they are called.

MISO: The MISO stands for Mater in, Slave Out. The purpose of this line is to carry data from the SPI support devices back to Arduino.

SCK: The SCK stands for the Serial Clock.

The IRQ pin is not used

MOSI: The MOSI stands for Master Out, Slave In. the purpose of this line is to carry data from the Arduino to the SPI supported devices.

SS: The SS stands for Slave Select. Each SPI supported device needs a unique SS line back to Arduino.


Circuit Diagram:

student Attendance Alert message

As you know my friends GSM sim900A module communicates with the Arduino using Serial communication so that’s why we have to define pins for the Tx and Rx pins of the GSM sim900A module.  As you  know that the  Arduino has only one serial port which is on pin number0 and pin number1.

As I always say  use the Arduino’s default Serial port only for the debugging purposes. Now the question is if we are using the Arduino’s default serial port for the debugging purposes,  then how we will connect the GSM module?

Well no worries at all, we can define multiple serial ports using the SoftwareSerial library which i will explain in the programming. As you can see in the circuit diagram Tx of the GSM sim900A module  is connected with pin number 7 of the Arduino and  Rx of the GSM sim900A module is connected with pin number 8 of the Arduino and GND is connected with the Arduino’s ground.  a power supply is connected with sim900A ideal voltage is 4.7volts to 5volts.



The MFRC522 RFID module vcc pin is connected with the Arduino’s 3.3volts and the ground is connected with the Arduino’s ground.  the RST, SS,MOSI,MISO and sck pins of the MFRC522 RFID module are connected with pins 9, 10, 11, 12 and 13.

Pin number1 and pin number 16 of the LCD are connected with the Arduino’s Ground while pin number2 and pin number 15 are connected with the Arduino’s 5 volts. Pin number 3 of the 16×2 LCD is the contrast pin and is connected with the middle leg of the variable resistor, this variable resistor is used to control the LCD brightness, the remaining two legs of the variable resistor are connected with the Arduino’s 5volts and Ground.

The Rs pin of the LCD is connected with the Arduino’s analog pin A1, the en pin is connected with the analog pin A2, while d4 to d7 pins of the LCD are connected with pins 6, 5, 4 and 3 of the Arduino.


Programming:

Arduino Project: RFID & GSM based student Attendance Alert message to parents “MFRC522 +SIM900A”

To find the RFID cards identity numbers Watch video tutorial Click Here


Watch Video Tutorial:

Arduino Project: RFID & GSM based student Attendance Alert message to parents “MFRC522 +SIM900A”

 

Recommended For You

About the Author: Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

Leave a Reply