Search for notes by fellow students, in your own course and all over the country.
Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.
Title: RFID full report
Description: RFID Based Attendance system full report for final year project.
Description: RFID Based Attendance system full report for final year project.
Document Preview
Extracts from the notes are below, to see the PDF you'll receive please use the links above
A PROJECT REPORT
ON
RFID BASED ATTENDENCE SYSTEM USING GSM
Submitted by
RAM BHAROSH RAUT
GHANSHYAM KUMAR
LOKESH MEHLAWAT
RAHUL BISHNOI
Under the Guidance of
Mr RAVI GOEL
ASSISSTANT PROFESSOR
in partial fulfilment for the award of the degree of
BACHELOR OF TECHNOLOGY
IN
ELECTRONICS AND COMMUNICATION ENGINEERING
Faculty of Engineering & Technology
Manav Rachna International University, Faridabad
MAY, 2014
Acknowledgement
We would like to express our sincere gratitude to our project guide “Mr RAVI GOEL” for
giving us the opportunity to work on this topic
...
1
...
GHANSHYAM KUMAR
10/FET/EC(S)/2100
3
...
RAHUL BISHNOI
10/FET/EC(S)/2082
I
Declaration
I hereby declare that this project report entitled “RFID BASED ATTENSENCE SYSTEM
USING GSM” by RAM BHAROSH RAUT 10/FET/EC(S)/2102, GHANSHYAM KUMAR
10/FET/EC(S)/2100, LOKESH MEHLAWAT 10/FET/EC(S)/2095, RAHUL BISHNOI
10/FET/EC(S)/2082being submitted in partial fulfilment of the requirements for the degree of
Bachelor of Technology in ECE under Faculty of Engineering & Technology of Manav Rachna
International University Faridabad, during the academic year 2010 - 2014 is a bonafide record of
our original work carried out under guidance and supervision of Mr RAVI GOEL, , Professor ,
ECE DEPARTMENT and has not been presented elsewhere
...
RAM BHAROSH RAUT
10/FET/EC(S)/2102
2
...
LOKESH MEHLAWAT
10/FET/EC(S)/2095
4
...
Mr Ravi goel
Assistant Professor
Faculty of Engineering & Technology
Manav Rachna International University, Faridabad
Dr Dipali Bansal
HOD ECE
III
TABLE OF CONTENTS
Acknowledgement
I
Declaration
II
Certificate
III
Table of Contents
IV
List of Figures
V
List of Tables
VI
Abstract
VII
Chapter
I
...
1 Introduction
1
...
3 Overview of the technical area
1
...
5 Overview of the report
II
...
1 Introduction
2
...
3 Survey
2
...
Problem Definition and Requirement Analysis
11-14
3
...
2 Requirements
IV
...
1 Introduction
4
...
3 Different Design Options
4
...
Testing and Deployment
22
5
...
2 Validation
5
...
Conclusion and Future Enhancements
23
6
...
2 Proposal/scope of future enhancement
References
24
Appendix
25
V
LIST OF TABLES
Table
Page No
1 LCD PIN DESCRIPTIONS
21
VI
LIST OF FIGURES
Figure
Page No
1 RFID SYSTEM
1
2 BLOCK DIGRAM
2
3 PIN DIAGRAM OF MC
5
4 RFID TAG SYSTEM
7
5 RFID TRANSMISSION TECHNIQUE
8
6 CKT DIAGRAM OF PROJECT
16
7 CRYSTAL OSCILLATOR CKT
20
8 CKT DIAGRAM OF LCD
21
VII
ABSTRACT
Nowadays, due to the easy availability of almost all information on the internet these days,
students are less motivated to attend the lecture
...
RFID based Parent SMS
Alert and Attendance System is a web based application that will be developed to overcome this
problem
...
NET technology and
database support
...
The information from RFID Database handling System will be used
for attendance and for SMS Alert also
...
Therefore, the system functionality is not
only records the student attendance, but also sends alert SMS to their parents
...
Our main idea of approach is to
reduce manual work and to automate the attendance system The attendance system is basically
an embedded one
...
Here, the software
using a Microcontroller controls all the hardware components
...
The main objective of the system is to uniquely identify and to
make attendance for a person
...
This is possible by the new emerging technology RFID (Radio
Frequency Identification)
...
In this system, RFID tag and RFID reader used are operating at 125 KHz
...
The PC can be used for restoring all the details of attendance made
...
It also provides an overall view with
detailed discussion of the operation of the system
...
1 INTRODUCTION
The attendance system is basically an embedded one
...
Here, the software using a Microcontroller controls all the hardware components
...
The main objective of the system is to
uniquely identify and to make attendance for a person
...
This is possible by the new emerging
technology RFID (Radio Frequency Identification)
...
In
this system, RFID tag and RFID reader used are operating at 125KHz
...
The PC can be used
for restoring all the details of attendance made
...
In this project we use one hardware circuit with RF reader interface and RF
1
passive card for attendance system
...
We
install visual basic base GUI software in the computer with data base in access
...
Reader gets the data and transfers this data to MCU (89s52)
...
PC gets this data
and compares the data with data base in access
...
For every card we issue a special ID number
...
In the data base system we enter the in/out for entry
...
Every time when we show the card to the RF reader
then LCD connected with the microcontroller show its name
...
We register the new card entry with
software any time
...
But the frequency of the
resonators varies a lot
...
Fig -2 Block diagram
2
RFID, which is an acronym for Radio Frequency Identification, is not a new technology
...
RFID Systems consist of a transponder, also known as a tag, which is basically a
microchip connected to an antenna
...
Depending
on the type of tag that is used, the reader can receive detailed information or it can receive data
as simple as an identification number
...
1
...
We all
know that RFID is used in each and every industrial and manufacturing field
...
This form of system is called RFID based attendance system which focuses on making it
possible for the elderly and disabled to remain at school, safe and comfortable
...
1
...
We are going to show this large scale automation on small scale via
PCB (Printed Circuit Board) manufacturing respectively
...
These components soldered onto PCB
will function in such a way to illustrate RFID system
...
1
...
Based on the Intel 8051 core, the AT89 series remains very popular as
general purpose microcontrollers, due to their industry standard instruction set, and low unit cost
...
While considerably less powerful than the newer AT90 series of AVR RISC microcontrollers,
new product development has continued with the AT89 series for the aforementioned
advantages
...
Corresponding to Timer2, there are extra SFRs (Special Function
Registers) T2CON & T2MOD
...
Features
Compatible with MCS-51™ Products
4K Bytes of In-System Reprogrammable Flash Memory
Endurance: 1,000 Write/Erase Cycles
Fully Static Operation: 0 Hz to 24 MHz
Three-Level Program Memory Lock
128 x 8-Bit Internal RAM
32 Programmable I/O Lines
Two 16-Bit Timer/Counters
Six Interrupt Sources
Programmable Serial Channel
Low Power Idle and Power Down Modes
4
Low-power, high-performance CMOS 8-bit microcontroller with 8KB of ISP flash memory
...
On-chip flash allows the program memory
to be reprogrammed in-system or by a conventional nonvolatile memory programmer
...
8051 is the name of a big family of microcontrollers
...
The block
diagram provided by Atmel in their datasheet that showed the architecture of 89S52 device
seemed a bit complicated
...
Fig -3 Pin diagram of microcontroller
5
1
...
Throughout this report will cover the complete package towards the introduction to RFID
system, example to display RFID based attendance system on PCB(s), components required to
build the same system, components declaration, definition and explanation
...
We hope that
after reading this project report readers will be benefited and will build smart home system for
better future
...
This project report
will be beneficial to not only the technical pupil but also to nontechnical friends
...
After that
introduction section is present in which we have laid our best efforts to make you understand
what RFID based attendance system using GSM is
...
Then literature review is available in which elaboration of RFID based attendance system using
GSM is written
...
After design
implementation testing & deployment, conclusion and future enhancements will be covered
...
Special
section of appendix is also there in the report in order to gain extra and trivial knowledge
regarding the project
...
At last of
the overview we hope that after these coverage readers who knew earlier regarding the same will
be more technical and unaware will become aware of the RFID based attendance system using
GSM
...
After all PCB implementation will motivate you to
control your home, office, and living environment very easily and accordingly
...
6
CHAPTER 2
2
...
It is unlikely to ever be as cost-effective
as barcoding, but it will become dominant in areas where barcoding and other optically read
technologies are not effective
...
The data stored on read/write tags can be edited, added to,
or completely rewritten, but only if the tag is within the range of the reader
...
Read/write tags are much more
expensive than read only tags, so they are not used for tracking most commodity items
...
Semi-active (or semi-passive) tags, which contain
a battery to run the circuitry of the chip, but must draw power from the magnetic field created by
the reader in order to communicate with the reader
...
RFID Construction RF-ID Technology Overview
A RF-ID reader sends out a radio frequency wave to the 'Tag' and the 'Tag' broadcasts back its
stored data to the reader
...
Fig -4 RF-ID tag system
7
The data collected from the 'Tag' can either be sent directly to a host computer through standard
interfaces, or it can be stored in a portable reader and later uploaded to the computer for data
processing
...
How the Low Frequency Tag system works
When the transponder, which is battery free, is to be read, the reader sends out a 134
...
The magnetic field generated is
'collected' by the antenna in the transponder that is tuned to the same frequency
...
When the power
pulse has finished the transponder immediately transmits back its data, using the energy stored
within its capacitor as its power source
...
This data is picked up by the receiving antenna and decoded by the reader unit
...
The period between transmission pulses is known as the 'sync time'
and lasts between 20ms and 50ms depending on the system setup
...
2kHz and 124
...
This approach has
comparatively good resistance to noise while also being very cost effective to implement
...
2 System Performances
Reading Distance - one of the key benefits of the TIRIS system is its superior reading range with
low power consumption
...
In general a standard 32mm glass capsule can be read with a stationary
reader and a gate antenna from a distance of up to 1 meter Larger transponders can achieve
ranges up to 2 meters with handheld readers offering lower ranges up to 250mm
...
To
date there have been no cases of an incorrect identification number being read from a
transponder
...
Although in some environments an overall better
performance
can
be
achieved
with
smaller
antennas
...
e
...
The shape and size of this pattern depends on the specific
readout antenna selected and a country's government regulations that define the amount of
electromagnetic field strength that can be generated
...
Transponder Orientation The orientation of the transponder with respect to the antenna also
impacts the reading range
...
2
...
The
9
project we are building is the miniature from of automation used nowadays
...
This same smart home project that we have built by our own knowledge and experience on
purchasing from a manufacturing shop or Engineering project selling shop will cost you Rs 7000
to 8000 /- INR excluding their additional charges
...
We
searched on Internet, roamed into the markets in our quest to have an acknowledgment of the
required components and PCB(s)
...
2
...
It is much easier, friendly and fun to implement
...
RFID based attendance system using GSM aims at making our lives automatic
rather than manual
...
The first step is to purchase all the required components from a
component selling shop and then solder it to burn a program into the microcontroller
...
The output will be displayed by yellow colored LEDs
...
User can plug in any electrical appliance
like mobile phone charger, table fan, or any other circuit like Digital Visitor Counter also
...
These operations
can simultaneously take place through transferring SMS to the 89S52 Microcontroller
respectively
...
1 Problem Definition
As starts the real problem is now what we have to build on our PCB
...
e
...
First of all the need is to memorize
the definition of RFID based attendance system using GSM back again one more time i
...
to
build one room having appliances controlled automatically rather than manually
...
3
...
Down under are the
components specified:-
1) AT command supporting GSM mobile phone
2) 89S52 microcontroller
3) Max 232 IC
4) Voltage regulator 7805
5) GSM Modem
6) Electrolytic capacitors
7) Resistors
8) Crystal Oscillator
9) Pull Up resistor
10) Transistors
11) Power strip
12) LCD and LEDs
13) Connecting Wires
Software required to burn program into the 89S52 microcontroller is Keil u-Vision 3
...
System specifications include the elaboration of hardware and software components used in the
11
project
...
AT is the abbreviation for Attention
...
The Hayes commands started with AT to indicate the attention from the
MODEM
...
These include the
Hayes Command set as a subset, along with other extended AT commands
...
AT89C52 has
8KB of Flash programmable and erasable read only memory (PEROM) and 256 bytes of
RAM
...
Though very slight difference
between the features of AT89C51 and AT89C52, they are very similar in their pin
configurations* and operations
...
4) Voltage regulator 7805
7805 is a voltage regulator integrated circuit
...
The voltage source in a circuit may have fluctuations and
would not give the fixed voltage output
...
The xx in 78xx indicates the fixed output voltage it is
designed to provide
...
Capacitors of suitable
values can be connected at input and output pins depending upon the respective voltage
levels
...
Advantage of using this modem will
be that you can use its RS232 port to communicate and develop embedded applications
...
6) Resistors
A resistor is a passive two terminal electrical component that implements electrical
resistance as a circuit element
...
Resistors are common elements
of electrical networks and electronic circuits and are ubiquitous in electronic equipment
...
8) Pull Up Resistor
Pull up Resistor are used in electronic logic gates to ensure that inputs to logic systems
settle at expected logic levels if external devices are disconnected or high impendence is
introduced
...
9) Transistors
A transistor is a semiconductor device used to amplify and switch electronic signals and
electric power
...
If base is of N-type and emitter and collector are of P-type
13
then transistor is called P-N-P transistor and vice versa transistor is called N-P-N
transistor
...
11) LCD & LEDs
LCD is the most common device attached to a microcontroller
...
This means 16 characters per line
by 2 lines and 20 characters per line by 2 lines
...
The LEDs are available in red, green and
yellow colors
...
Specification of Software used in this project
Keil Micro vision software is used developing and compiling program in this project
...
14
CHAPTER 4
4
...
A Solder, soldering wire and solder holder will
be required to assemble these components according to the circuit diagram listed below
...
Many times we wonder if all the devices can be
automatically switched on or off at a particular time
...
2 Functional Decompositions
In our major project on RFID based attendance system using GSM we divided the
workload into 3 major categories
...
Lolesh mehlawat was
implementing microcontroller applications
...
4
...
It can be developed using Bluetooth technology, GSM technology, RTC
model which also can be used, Home automation protocol (HAP) etc
...
However we are using ASHS
towards old people we selected RTC method as it is convenient to them
...
4 Circuit design
The AT89S52 is a low-power, high-performance CMOS 8-bit microcontroller with 8K
bytes of in-system programmable Flash memory
...
The on-chip Flash allows the program memory
to be reprogrammed in-system or by a conventional non-volatile memory pro-grammar
...
The AT89S52 provides the
following standard features: 8K bytes of Flash, 256 bytes of RAM, 32 I/O lines, Watchdog
timer, two data pointers, three 16-bit timer/counters, a six-vector two-level interrupt
architecture, a full duplex serial port, on-chip oscillator, and clock circuitry
...
The Idle Mode stops the CPU while allowing
the RAM, timer/counters, serial port, and interrupt system to continue functioning
...
Figure-6 Circuit diagram of RFID based attendance system using GSM
In this particular project we use 89s52controller to interface all input and output devices
...
We use 5 volt regulated supply for the LCD display and max 232 IC
...
We use MAX232 driver IC to provide an interface between GSM modem and
controller
...
Output of the max 232 is directly
connected to the RX pin of the controller
...
Power Supply
In this project we use one 5 volt regulated power supply to convert the 220 volt ac in to 5 volt
dc with the help of the 5 volt regulator circuit
...
Step down transformer step down the voltage
from 220 volt ac to 9 volt ac
...
Output of the diode is pulsating dc
...
Electrolytic capacitor converts the pulsating dc into
smooth dc
...
IC 7805 regulator provide a
regulated 5 volt dc to the microcontroller circuit and LCD circuit
...
Pin no 20 is connected to the ground
...
Reset Circuit
Pin no 9 of the controller is connected to the reset circuit
...
As soon as you give the power
supply the 8051 doesn’t start
...
Restarting the
microcontroller is nothing but giving a Logic 1 to the reset pin at least for the 2 clock pulses
...
This is not a big circuit we are just using a capacitor to charge the
microcontroller and again discharging via resistor
...
It is followed by a diode circuit called Rectifier
...
The rectifier circuit is
the heart of a power supply
...
The component used for rectification is called ‘Rectifier’
...
Thus pulsating DC is obtained
...
A diode can be used as rectifier
...
But, semiconductor diodes are very popularly used as rectifiers
...
Since electrons in a semiconductor
diode can flow in one direction only-from emitter to collector- the diode provides the unilateral
conduction necessary for rectification
...
Bridge Rectifier
A more widely used full-wave rectifier circuit is the bridge rectifier
...
During the positive halfcycle of the secondary voltage, diodes D2 and D4 are conducting and diodes D1 and D3 are nonconducting
...
During negative half-cycles of the secondary voltage, diodes D1 and D3 conduct,
and the diodes D2 and D4 do not conduct
...
In both cases, the current passes through the
load resistor in the same direction
...
Filter Circuit
The rectifier circuits we have discussed above deliver an output voltage that always has the same
polarity: but however, this output is not suitable as DC power supply for solid-state circuits
...
This should be removed out before the
output voltage can be supplied to any circuit
...
The filter network consists of inductors and capacitors
...
The inductors oppose any
18
change in the magnitude of a current flowing through them by storing up energy in a magnetic
field
...
Thus, a series connected choke coil in a rectifier circuit helps to reduce the pulsations or
ripples to a great extent in the output voltage
...
As AC current passes through a capacitor but DC cannot, the ripples are thus limited and the
output becomes smoothed
...
Thus, the fluctuations in the output voltage are reduced
considerable
...
If a choke coil or an
inductor is used as the ‘first- components’ in the filter network, the filter is called ‘choke input
filter’
...
C
...
It opposes the AC pulsations but allows the DC to pass through it freely
...
The further ripples are by passed through the parallel capacitor C
...
This little
ripple may be reduced by incorporating a series a choke input filters
...
The
D
...
along with AC ripples from the rectifier circuit starts charging the capacitor C
...
The AC ripples are then diminished slightly
...
The second capacitor C
by passes the further AC ripples
...
Crystals Oscillator circuit
Pin no 18 and 19 is connected to external crystal oscillator to provide a clock to the circuit
...
Whenever
ever we are using crystals we need to put the capacitor behind it to make it free from noises
...
19
Figure 7 – Crystal Oscillator Circuit
We can also resonators instead of costly crystal which are low cost and external capacitor can be
avoided
...
And it is strictly not advised when used
for communications projects
...
A crystal is a component connected externally to the microcontroller
...
059 MHz
etc
...
The time is calculated using the formula -No of cycles per second = Crystal frequency in HZ /
12
...
33333 cycles
...
33333 cycles
...
Pin no 18 and 19 of the IC is connected to
the external crystal to provide an external clock to run the internal CPU of controller
...
Pin no 21 to 28 is PORT 2 pins
...
We use
these pin when we require a extra memory for the project
...
Interfacing LCD
Frequently, an 89s52 program must interact with the outside world using input and output
devices that communicate directly with a human being
...
Some of the most common LCDs connected to the 8051
are 16x2 and 20x2 displays
...
20
Figure 8 – Circuit Diagram of 16*2 LCD
The main application of LCD in this project is to display the status of MODEM, status of sensor
etc
...
TABLE-1 LCD PIN DESCRIPTIONS
21
CHAPTER 5
5
...
The program burned into the 8952
microcontroller when plugged into the PCB is interactive with the other components already
placed in the circuit
...
2 Validation
What we wanted in the project is to have control over the extension board
...
Further we will be able to connect whatever appliance we want to control by simply cabling it to
extension board
...
5
...
We showed how simple automation
can be introduced from a small scale to large industries, manufacturing sectors, technical areas
etc
...
e
...
Our project has the mixture of electronics & communication and this blend is useful to achieve
automation in a developmental manner
...
The SMS
send through smart phone is trans received by GSM modem containing a SIM card
...
LCDs and LEDs are working
properly for indication purposes
...
In this project in future we can add a multimedia camera to see what is going inside
the home by sitting in office or somewhere
...
Security cameras can
be controlled, allowing the user to observe activity around a house or business right from a
Monitor or touch panel
...
This
category also includes control and distribution of security cameras (see surveillance)
...
1 Summary of the work done
The summary and moral of the story is that we bought a PCB
...
e
...
GSM modem, Relays, Relay driver circuit, smart phone,
SIM card, Transformer, LCD, Max232 etc
...
We
fabricated in such a way to achieve automation on the small scale
...
2 Proposal and scope of Future enhancement
Our proposal was to achieve automation in an example form
...
We are able to transmit messages via smart phone to GSM modem and SIM Card
...
Scope of RFID based attendance system using GSM is that it
can be used at homes to regulate electricity, home appliances, to monitor and provide security of
the office, industry etc
...
We tried to enhance the extension board by simply adding a digital visitor counter to our
extension board
...
As we said the possibilities are endless
...
Like ways we used GSM modem because it is related to communication and is used
throughout the country
...
Automation is a household term nowadays and can be used in
homes, hospitals, office environments, industries, high security zones, malls, restaurants, hotels,
universities, campuses, schools, workshops, manufacturing sectors, roadway regulation etc
...
We have built a prototype
...
Great
interest will be seen when mechanical, civil, IT, computers, electronics etc will merge towards
building HAP i
...
Home Automation Protocol
...
The
evolution of HAP is near and brighter than ever
...
[2] Shefali Chopra & Chitra Gaba, Microprocessor and Interfacing, Manav Rachna Publishing
House Private Limited
...
h>
#include
h>
#define lcd P0
sbit rs=P2^7;
sbit en=P2^6;
sbit sda=P2^0;
sbit scl=P2^1;
sbit store_button=P1^0;
sbit button1=P1^1;
sbit button2=P1^2;
sbit blue = P2^3;
25
sbit green = P2^4;
sbit red = P2^2;
sbit change = P3^7;
bit ack;
unsigned char read_id[12],store_id[10];
unsigned char reead;
unsigned int data_out,temp;
unsigned int flag[4]={0,0,0,0};
void delay(unsigned long int count)
//Function to provide delay
{
while(count--);
26
}
void lcd_cmd(unsigned char comm) //Lcd command funtion
{
rs=0;
lcd=comm;
en=1;
delay(40);
en=0;
delay(100);
}
void lcd_data(unsigned char disp) //Lcd data function
{
rs=1;
lcd=disp;
en=1;
delay(40);
en=0;
27
delay(100);
}
void lcd_string(unsigned char *disp) reentrant //Function to send string
{
int x;
for(x=0;disp[x]!=0;x++)
{
lcd_data(disp[x]);
}
}
void lcd_ini()
//Function to initialize the LCD
{
lcd_cmd(0x38);
lcd_cmd(0x01);
lcd_cmd(0x0E);
lcd_cmd(0x80);
}
28
void recieve()
//Function to recieve data serialy from RS232
{
unsigned char k;
for(k=0;k<6;k++)
{
while(RI==0);
read_id[k]=SBUF;
RI=0;
}
read_id[k]='\0';
}
void aknowledge()
//acknowledge condition
29
{
scl=1;
_nop_();
_nop_();
scl=0;
}
void start()
//start condition
{
sda=1;
scl=1;
_nop_();
//No operation
_nop_();
sda=0;
scl=0;
}
void stop()
//stop condition
{
sda=0;
scl=1;
_nop_();
30
_nop_();
sda=1;
scl=0;
}
void send_byte(unsigned char value)
//send byte serially
{
unsigned int i;
unsigned char send;
send=value;
for(i=0;i<8;i++)
{
sda=send/128;
//extracting MSB
send=send<<1;
//shiftng left
scl=1;
_nop_();
_nop_();
scl=0;
}
ack=sda;
//reading acknowledge
sda=0;
31
}
unsigned char read_byte()
//reading from EEPROM serially
{
unsigned int i;
sda=1;
reead=0;
for(i=0;i<8;i++)
{
reead=reead<<1;
scl=1;
_nop_();
_nop_();
if(sda==1)
reead++;
scl=0;
}
sda=0;
return reead;
//Returns 8 bit data here
}
32
void save(unsigned char address)
//save in EEPROM
{
start();
send_byte(0xA0);
//device address
aknowledge();
send_byte(address);
//word address
aknowledge();
send_byte(store_id[0]);
//send data
aknowledge();
send_byte(store_id[1]);
aknowledge();
send_byte(store_id[2]);
//send data
aknowledge();
send_byte(store_id[3]);
aknowledge();
send_byte(store_id[4]);
//send data
aknowledge();
send_byte(store_id[5]);
aknowledge();
33
stop();
delay(100);
aknowledge();
}
void read(unsigned char address)
{
start();
send_byte(0xA0);
aknowledge();
send_byte(address);
aknowledge();
start();
send_byte(0xA1);
//device address
aknowledge();
store_id[0]=read_byte();
aknowledge();
store_id[1]=read_byte();
aknowledge();
store_id[2]=read_byte();
aknowledge();
34
store_id[3]=read_byte();
aknowledge();
store_id[4]=read_byte();
aknowledge();
store_id[5]=read_byte();
aknowledge();
stop();
delay(100);
aknowledge();
}
void clear_data()
{
store_id[0]=0;store_id[1]=0;store_id[2]=0;store_id[3]=0;store_id[4]=0;store_id[5]=0;
save(0x10);
delay(1000);
save(0x20);
delay(1000);
save(0x30);
35
delay(1000);
save(0x40);
delay(1000);
save(0x50);
delay(1000);
save(0x60);
delay(1000);
save(0x70);
delay(1000);
save(0x80);
delay(1000);
save(0x90);
delay(1000);
save(0xA0);
delay(1000);
}
void transmit_char(char txmt) // Funtion to transmit serial data
36
{
SBUF=txmt;
while(TI==0);
TI=0;
}
void transmit_string(unsigned char *txs)
{
unsigned char itx=0;
while(txs[itx]!='\0')
{
transmit_char(txs[itx]);
delay(1000);
itx++;
}
}
37
void sms(unsigned char idno);
void main()
{
unsigned char k,id;
TMOD=0x20;
//Enable Timer 1
TH1=0XFD;
//timer 1 in 8 bit autoreload mode
SCON=0x50;
TR1=1;
// start baud rate generation
red=0;
green=0;
blue=0;
lcd_ini();
if(button1==0&&button2==0)
{
clear_data();
38
red=1;
green=1;
blue=1;
lcd_cmd(0x80);
lcd_string(" DATA BASED ");
lcd_cmd(0xc0);
lcd_string(" CLEARED
//Place cursor to first position of second line
");
delay(40000);
delay(40000);
red=0;
green=0;
blue=0;
}
lcd_string(" RFID BASED ");
lcd_cmd(0xc0);
//Place cursor to first position of second line
lcd_string("ATTENDENCE SYSTEM");
39
delay(40000);
delay(40000);
lcd_cmd(0x01);
//Place cursor to first position of first line
lcd_string("PLEASE SCAN CARD");
while(1)
{
RI=0;
recieve();
lcd_cmd(0x01);
for(k=0;k<6;k++)
{
store_id[k]=read_id[k];
/*
if((read_id[k]/16)<10)
{
lcd_data((read_id[k]/16)+0x30);
}
40
else
{
lcd_data(((read_id[k]/16)-10)+0x41);
}
if((read_id[k]%16)<10)
{
lcd_data((read_id[k]%16)+0x30);
}
else
{
lcd_data(((read_id[k]%16)-10)+0x41);
}
*/
}
id=0x00;
read(0x10);
if(store_id[0]==read_id[0] && store_id[1]==read_id[1] && store_id[2]==read_id[2] &&
store_id[3]==read_id[3] && store_id[4]==read_id[4] && store_id[5]==read_id[5])
41
{
id=0x10;
}
if(id==0x00)
{
read(0x20);
if(store_id[0]==read_id[0]
store_id[2]==read_id[2]
&&
&&
store_id[3]==read_id[3]
store_id[1]==read_id[1]
&&
store_id[4]==read_id[4]
&&
&&
store_id[5]==read_id[5])
{
id=0x20;
}
}
if(id==0x00)
{
read(0x30);
if(store_id[0]==read_id[0]
store_id[2]==read_id[2]
&&
&&
store_id[3]==read_id[3]
store_id[5]==read_id[5])
{
id=0x30;
42
store_id[1]==read_id[1]
&&
store_id[4]==read_id[4]
&&
&&
}
}
if(id==0x00)
{
read(0x40);
if(store_id[0]==read_id[0]
store_id[2]==read_id[2]
&&
&&
store_id[3]==read_id[3]
store_id[1]==read_id[1]
&&
store_id[4]==read_id[4]
&&
&&
store_id[5]==read_id[5])
{
id=0x40;
}
}
if(id==0x00)
{
read(0x50);
if(store_id[0]==read_id[0]
store_id[2]==read_id[2]
&&
&&
store_id[3]==read_id[3]
store_id[5]==read_id[5])
{
id=0x50;
}
43
store_id[1]==read_id[1]
&&
store_id[4]==read_id[4]
&&
&&
}
if(id==0x00)
{
read(0x60);
if(store_id[0]==read_id[0]
store_id[2]==read_id[2]
&&
&&
store_id[3]==read_id[3]
store_id[1]==read_id[1]
&&
store_id[4]==read_id[4]
&&
&&
store_id[5]==read_id[5])
{
id=0x60;
}
}
if(id==0x00)
{
read(0x70);
if(store_id[0]==read_id[0]
store_id[2]==read_id[2]
&&
&&
store_id[3]==read_id[3]
store_id[5]==read_id[5])
{
id=0x70;
}
}
44
store_id[1]==read_id[1]
&&
store_id[4]==read_id[4]
&&
&&
if(id==0x00)
{
read(0x80);
if(store_id[0]==read_id[0]
store_id[2]==read_id[2]
&&
&&
store_id[3]==read_id[3]
store_id[1]==read_id[1]
&&
store_id[4]==read_id[4]
&&
&&
store_id[5]==read_id[5])
{
id=0x80;
}
}
if(id==0x00)
{
read(0x90);
if(store_id[0]==read_id[0]
store_id[2]==read_id[2]
&&
&&
store_id[3]==read_id[3]
store_id[5]==read_id[5])
{
id=0x90;
}
}
45
store_id[1]==read_id[1]
&&
store_id[4]==read_id[4]
&&
&&
if(store_button==0)
{
delay(2000);
while(store_button==0);
if(id==0x00)
{
lcd_cmd(0x01);
//Place cursor to first position of first line
lcd_string(" ENTER ID NO
...
ALREADY");
lcd_cmd(0xC0);
//Place cursor to first position of first line
lcd_string(" REGISTERD ");
red=1;
}
}
else
{
lcd_cmd(0x01);
//Place cursor to first position of first line
48
lcd_string(" ID ALREADY ");
lcd_cmd(0xC0);
//Place cursor to first position of first line
lcd_string(" REGISTERD ");
red=1;
}
delay(40000);
delay(40000);
lcd_cmd(0x01);
//Place cursor to first position of first line
lcd_string("PLEASE SCAN CARD");
green=0;
red=0;
}
else if (id!=0x00)
{
lcd_cmd(0x01);
//Place cursor to first position of first line
lcd_string(" ATTENDANCE ");
lcd_cmd(0xC0);
//Place cursor to first position of first line
49
lcd_string(" REGISTERD ");
green=1;
lcd_cmd(0xcd);
lcd_data(id%16+0x30);
lcd_data(id/16+0x30);
transmit_char(id%16+0x30);
transmit_char(id/16+0x30);
transmit_char('\r');
transmit_char('\n');
delay(40000);
delay(40000);
change=0;
delay(10000);
lcd_cmd(0x01);
//Place cursor to first position of first line
lcd_string(" SENDING MSG ");
lcd_cmd(0xC0);
//Place cursor to first position of first line
lcd_string("
Title: RFID full report
Description: RFID Based Attendance system full report for final year project.
Description: RFID Based Attendance system full report for final year project.