fbpx

Interface RFID With 8051

  • Radio-frequency identification (RFID) uses electromagnetic fields to transfer data through wireless.
  • RFID Devices consist of two part
    1.Tag
    2.Reader
  • Tag contain electronically stored information.
  • Information read by the reader.

Rfid Tag

  • A RFID system uses tag, attached to the objects for identification.
  • Readers send a signal to the tag and read its response.
  • Tag is read-only the tag uses the radio energy transmitted by the reader.
  • Each tag have unique serial number,by using this tag number it is easy to identify product details.

Rfid Reader

  • There are different type of reader available in market.
    1. Passive Reader Active Tag.
    2. Active Reader Passive Tag.
    3. Active Reader Active Tag.

Passive Reader Active Tag

System has a passive reader which only receives radio signals from active tags (battery operated, transmit only).

Active Reader Passive Tag

System has an active reader, which transmits interrogator signals and also receives authentication replies from passive tags.

Active Reader Active Tag

System uses active tags awoken with an interrogator signal from the active reader.

Application

  • Transportation payments.
  • Transportation and logistics.
  • Public transport.
  • Libraries.
  • Hospitals and healthcare.

Hardware Required

  • Rfid Reader.
  • Rfid Tag.
  • 8051 MicroController.

Rfid Pinout

  • Vin= +5V.
  • Tx= Rx of Microcontroller.
  • Gnd= Ground.

Circuit

virtual Circuit

Code

#include<reg51.h>
unsigned int data_out,temp;
unsigned char Rf_id[12];

void delay()
{
int i,j;
for(i=0;i<1000;i++)
{
for(j=0;j<100;j++);
}
}

void recieve()
{
unsigned char r;
for(r=0;r<12;r++)
{
while(RI==0);
Rf_id[r]=SBUF;
RI=0;
}
}

void transmit1(unsigned char b)
{
SBUF=b;
while(TI==0);
}

void main()
{
int l;
TMOD=0x20;
TH1=0XFD;
SCON=0x50;
TR1=1;
delay();
while(1)
{
recieve();
for(l=0;l<12;l++)
{
transmit1(Rf_id[l]);
}
}
}

1 comment on “Interface RFID With 8051

Leave a Reply

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