Arduino Projects

RFID based students attendance system with message Alert


Students attendance

RFID based students attendance system with message Alert- In this tutorial, I will show you how to make an RFID students attendance system with an SMS alert using Arduino, MFRC522 RFID module, and GSM SIM900A Module. This tutorial explains step by step how to create your graphical user interface application in Visual Basic.Net “”.  Before we discuss anything, first let me tell you in a few words how this project actually works.

First of all, a teacher swipes a card and is marked Present, then the timer is started and messages are sent to the students, that the teacher has arrived. As each student has given an RFID card, so if every student swipes his/her RFID card within the specified time, the student will be marked present. While the rest of the students will be marked absent and messages will be sent to their parents.

Amazon Links:

12v Adaptor:

Arduino Uno

Arduino Nano

Mega 2560:

MFRC522 RFID module with tags:

Sim900A GSM Module:

DC 5V 2A Adaptor

Other Tools and Components:

Top Arduino Sensors:

Super Starter kit for Beginners

Digital Oscilloscopes

Variable Supply

Digital Multimeter

Soldering iron kits

PCB small portable drill machines

*Please Note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

First, let’s start with the GSM module:

Students attendance

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. The 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. You can watch this video tutorial on my YouTube channel “Electronic Clinic”.

As you can see clearly in the picture above this module has so many pins that 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 pin 2 and RXD will be connected with the  Arduino pin 4.


MFRC522 RFID Module and its Pinout.

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 in the Arduino are the SPI pins While in Arduino Mega these pins are different. So these pins will be connected with the Arduino SPI pins, In Arduino Uno the SPI pins are as follow.

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.

RFID based Students Attendance Circuit Diagram:

The complete circuit diagram is already explained in my previous articles, you can also watch video given at the end. But as a reminder, the ideal voltage to the SIM900A module is from 4.7 volts to 5 volts.

RFID based students attendance Arduino Programming:

Tags reading Program:

This is the program written for finding the identity numbers of RFID tags. Before you can control anything using the RFID system, first you need to find out the identity number of each tag, and then you can use that identification number to identify a RFID tag to control anything you want.

RFID and GSM sim900A combined programming of the Students attendance system:

Computer application Programming of students attendance system:

This application is designed in Visual Basic 2010 express Edition.


Watch Video Tutorial:


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

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

Back to top button