ABSTRACT
To find easily an unoccupied parking space is a problem. During the last four-decade, there are many parking models developed. But still there is need for proper and secure solution. Secondly, security of vehicle is essential. Radio Frequency Identification (RFID) technology is very useful technology in automation of vehicle parking system in mall/building. One of the challenging problems for many vehicle owners in big cities is where to park their vehicles. If the parking slot is known in advance one can save precious time and fuel wastage. In our proposed system the user is informed about the parking slot availability at a parking location .The slot availability details are collected using an RFID system and are updated periodically into the database. This project is especially designing for private parking space. So, the user must have a unique card before they can enter the parking space. Some examples of application for this system are at exclusive club, buildings and any private place. This parking problem can be solving using RFID technology. Presented here is an automatic vehicle parking system using AT89S52 microcontroller.
CHAPTER 1
1. INTRODUCTION
1.1 DETAILED DESCRIPTION OF PROBLEM
Radio-frequency identification (RFID) is an automatic identification method where in the data stored on RFID tags or transponder is remotely retrieved. The RFID tag is a device that can be attached to or incorporated into a product, animal or person for identification and tracking using radio waves. Some tags can be read from several meters away, beyond the line of sight of the reader. RFID technology is used in vehicle parking systems of malls and buildings. The system normally consists of a vehicle counter, sensors, display board, gate controller, RFID tags and RFID reader. Presented here is an automatic vehicle parking system using AT89S52 microcontroller. It work like this when some vehicle come to the gate, sensor detect it and LCD display the message you can display RFID tag to the RFID reader, when it is a valid card it will open the gate for pass you car and close after some time, LCD detected 100 Rs and balance is display on the LCD, if you have no balance it will force you to charge your card. After paying card is charged. It also display total numbers of vehicles are stand less if car is goes out.
1.2 INTRODUCTION TO RFID
Radio-frequency identification (RFID) is an automatic identification method, relying on storing and remotely retrieving data using devices called RFID tags or transponders. The technology requires some extent of cooperation of an RFID reader and an RFID tag.
An RFID tag is an object that can be applied to or incorporated into a product, animal, or person for the purpose of identification and tracking using radio waves. Some tags can be read from several meters away and beyond the line of sight of the reader.
1.2.1What is RFID
A basic RFID system consists of three components:
‘ An antenna or coil
‘ A transceiver (with decoder)
‘ A transponder (RF tag)
Electronically programmed with unique information. There are many different types of RFID systems out in the market. They are categorized according to there frequency ranges. Some of the most commonly used RFID kits are as follows:
1)Low-frequency (30 KHz to 500 KHz)
2) Mid-Frequency (900KHz to 1500MHz)
3) High Frequency (2.4GHz to 2.5GHz)
These frequency ranges mostly tell the RF ranges of the tags from low frequency tag ranging from 3m to 5m, mid-frequency ranging from 5m to 17m and high frequency ranging from 5ft to 90ft. The cost of the system is based according to there ranges with low-frequency system ranging from a few hundred dollars to a high-frequency system ranging somewhere near 5000 dollars.
1.2.2 COMPONENTS OF RFID
A basic RFID system consist of three components:
‘ An antenna or coil
‘ A transceiver (with decoder)
‘ A transponder (RF tag) electronically programmed with unique information
Figure1.1: Rfid structure
Component description:
Antenna:
The antenna emits radio signals to activate the tag and read and write data to it. Antennas
are the conduits between the tag and the transceiver, which controls the system’s data acquisition and communication. Antennas are available in a variety of shapes and sizes; they can be built into a door frame to receive tag data from persons or things passing through the door, or mounted on an interstate tollbooth to monitor traffic passing by on afreeway. The electromagnetic field produced by an antenna can be constantly presentwhen multiple tags are expected continually. If constant interrogation is not required, asensor device can activate the field.Often the antenna is packaged with the transceiver and decoder to become a reader (a.k.a.interrogator), which can be configured either as a handheld or a fixed-mount device. The reader emits radio waves in ranges of anywhere from one inch to 100 feet or more, depending upon its power output and the radio frequency used. When an RFID tag passes through the electromagnetic zone, it detects the reader’s activation signal. The reader decodes the data encoded in the tag’s integrated circuit (silicon chip) and the data is passed to the host computer for processing.
TAGS (Transponders):
Figur1.2: Rfid tag
An RFID tag is comprised of a microchip containing identifying information and an antenna that transmits this data wirelessly to a reader. At its most basic, the chip will containserialized identifier, or license plate number, that uniquely identifies that item, similar to the way many bar codes are used today. A key difference, however is that RFID tags have a higher data capacity than their bar code counterparts. This increases the options for the type of information that can be encoded on the tag, including the manufacturer, batch or lot number, weight, ownership, destination and history (such as the temperature range to which an item has been exposed). In fact, an unlimited list of other types of information can be stored on RFID tags, depending on application needs. An RFID tag can be placed on individual items, cases or pallets for identification purposes, as well as on fixed assets such as trailers, containers, totes, etc.Tags come in a variety of types, with a variety of capabilities. Key variables include:"Read-only" versus "read-write"
There are three options in terms of how data can be encoded on tags. (1) Read-only tags contain data such as a serialized tracking number, which is pre-written onto them by the tag manufacturer or distributor. These are generally the least expensive tags because they cannot have any additional information included as they move throughout the supply chain. Any updates to that information would have to be maintained in the application software that tracks SKU movement and activity. (2) "Write once" tags enable a user to write data to the tag one time in production or distribution processes. Again, this may include a serial number, but perhaps other data such as a lot or batch number. (3) Full"read-write" tags allow new data to be written to the tag as need and even written over the original data. Examples for the latter capability might include the time and date of ownership transfer or updating the repair history of a fixed asset. While these are the most costly of the three tag types and are not practical for tracking inexpensive items, future standards for electronic product codes (EPC) appear to be headed in this direction
Data capacity:
The amount of data storage on a tag can vary, ranging from 16 bits on the low end to as much as several thousand bits on the high end. obviously, the greater the storage capacity, the higher the price per tag.
Frequencies:
Like all wireless communications, there are a variety of frequencies or spectra through which RFID tags can communicate with readers. Again, there are trade-offs among cost, performance and application requirements. For instance, low- penetrate non-metallic substances. They are ideal for scanning objects with high water content, such as fruit, at close range. UHF frequencies typically offer better range and can transfer data faster. But they use more power and are less likely to pass through some materials. UHF tags are typically best suited for use with or near wood, paper, cardboard or clothing products. Compared to low-frequency tags, UHF tags might be better for scanning boxes of goods as they pass through a bay door into a warehouse. While the tag requirements for compliance mandates may be narrowly defined, it is likely that a variety of tag types will be required to solve specific operational issues. You will want to work with a F company that is very knowledgeable in tag and reader technology to appropriately identify the right mix o RFID technology for your environment and applications.
RF Transceiver:
The RF transceiver is the source of the RF energy used to activate and power the passive RFID tags.The RF transceiver may be enclosed in the same cabinet as the reader or it may be a separate piece of equipment.When provided as a separate piece of equipment, the transceiver is commonly referred to as an RF module. The RF transceiver controls and modulates the radio frequencies that the antenna transmits and receives. The transceiver filters and amplifies the backscatter signal from a passive RFID tag.
Figure1.3: Rfid communication
Typical Applications for RFID
‘ Automatic Vehicle identification
‘ Inventory Management
‘ Work-in-Process
‘ Container/ Yard Management
‘ Document/ Jewellery tracking
‘ Patient Monitoring
The Advantages of RFID Over Bar Coding
No "line of sight" requirements: Bar code reads can sometimes be limited or problematic due to the need to have a direct "line of sight" between a scanner and a bar code. RFID tags can be read through materials without line of sight.
More automated reading: RFID tags can be read automatically when a tagged product comes past or near a reader, reducing the labor required to scan product and allowing more proactive, real-time tracking.
Improved read rates: RFID tags ultimately offer the promise of higher read rates than barcodes, especially in high-speed operations such as carton sortation.
Greater data capacity: RFID tags can be easily encoded with item details such as lot and batch, weight, etc.
"Write" capabilities: Because RFID tags can be rewritten with new data as supply chain activities are completed, tagged products carry updated information as they move throughout the supply chain.
Conclusion:
In this chapter we understand the problems of parking system in cities and we decided RFID based parking system which can solve the parking problem. then we study about all information of RFID module.
CHAPTER-2
PROJECT DESIGN
2.1 BLOCK DIAGRAM
Figure2.1: Block diagram
Figure 2.1 shows the block diagram of the RFID-based automatic vehicle parking system. To get started with RFID-based automatic vehicle parking system, the vehicle owner has to first register the vehicle with the parking owner and get the RFID tag.When the car has to be parked, the RFID tag is placed near the RFID reader, which is installed near the entry gate of the parking lot. As soon as the RFID tag is read by the reader, the system automatically deducts the specified amount from the RFID tag and the entry gate boomer opens to allow the. Car inside the parking area. At the same time, the parking counters increments by one. Similarly, the door is opened at the exit gate and the parking counter decremented. The system also offers the facility to recharge the amount for each RFID tag. No manual processing is involved. In addition, the system provides security.
1. Writing into the tag:
By making use of the write capability of the RFID reader, RFID tag is embedded with unique identification code and is assigned to a car. The tag contains distinct information about the car, like employee ID number or name or any other distinct data. This step accomplishes the data feed to the tag. This is similar to embedding information on a magnetic strip and the process is called writing.
2. Reading from the tag:
The information from the tag needs to be read during the car parking. In this step, the data is read from the tag with the help of an RFID reader.
3. Data feed to the microcontroller:
The data from the RFID reader has to be transferred to the microcontroller for the actual comparison of data and further processes. During this phase the data from the RfID reader is fed to the microcontroller using RS232 or UART media.
4. Tracking the count:
To properly utilize the parking lot, the number of the cars presented in the parking lot needs to be tracked. This is done using the microcontroller where the number of cars in the parking lot is incremented for every car entering the lot and is decremented for every car leaving the lot.
2.2 Flow Chart
Figure2.2: flow chart
2.3 CIRCUIT DIAGRAM
Figure2.3: Circuit diagram
2.4 WORKING
Figure 2.3 shows the circuit of the RFID based automatic vehicle parking system.The circuit can be divided into different sections:
Power supply
Connector CON1, diodes D1 through D4,capacitor C1, and voltage regulator ICs 7805 (IC1) and 7812 (IC2) form the power supply section of the automatic vehicle parking system. CON1 is a two-pin connector that provides 15V AC or DC power supply to the circuit. In case of 15V AC, diodes D1 through D4 form a bridge rectifier to rectify the AC supply. Capacitor C1 filters out the ripples from the rectified output.Ics 7805 and 7812 provide regulated +5V and +12V, respectively, to the circuit. +5V is used to operate the microcontroller, LCD, RFID and IR sensor circuit and +12V operates the motor.
AT89S52 microcontroller
AT89S52 is a low-power, high-performance CMOS 8-bit microcontroller with 8kB Flash memory. It is compatible with the industry-standard 80C51 instruction set and pin-out.
The on-chip Flash allows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory programmer. Other features include 256 bytes of RAM, 32 input/output lines, watchdog timer, two data pointers, three 16-bit timers/ counters, a six-vector two-level interrupt architecture, a full-duplex serial port, on-chip oscillator and clock circuitry.
Connectors CON2 through CON4
CON2 and CON3 are two-pin connectors to the circuit for controlling the entry and exit gate boomers. CON4 is a four pin connector that connect the 12V DC motors.single pin connector connects the RFID reader module to the circuit.
L293D motor driver
H-bridge DC motor driver L293D (IC5) operates the DC motors to open the door or barrier
for entry into and exit from the parking lot. Two high-current motor drivers can be used in place of L293D and 12V DC motors to control the entry and exit gates, respectively.
LM358 opamp
Dual-operational amplifier LM358 (IC4) is used as a voltage comparator to compare the output of the IR sensors with a fixed threshold voltage in order to know whether the IR beam is interrupted or not.
IR transmitter and receiver
Two IR transmitter-receiver pairs are used. The IR LEDs are connected in forward-biased condition to the +5V power supply through 220-ohm resistors. These emit IR light, which is interrupted when an object comes into its way to the IR receiver. The IR receiving photodiodes are connected in reverse-biased condition to +5V power supply through 1-mega-ohm resistors. When the IR light falls on the photodiodes, their resistance changes and so does their output.
This output is compared with a fixed voltage to give a digital output to the microcontroller in order to judge the entry and exit of the vehicles.
LCD display
LCD1 is a two-line,16-character, alpha-numeric liquid crystal display. Data lines D0 through
D7 of the LCD are connected to port 2 of AT89S52 (IC3). Reset (RS) and enable(E) control lines are connected to port pins P3.6 and P3.7, respectively. Control lines control data flow from
the microcontroller to LCD1. When power is switched on, LED1 glows to indicate the presence
of power in the circuit and LED2 glows to indicate the presence of RID reader. Simultaneously, the ‘ADVANCE VEHICLE PARKING SYSTEM’ message is displayed on LCD1 along with a short beep from piezobuzzer PZ1.Transistor BC547 drives the buzzer. Pin details of 7805, 7812 and BC547 are shown in Fig2.3 When a car crosses the IR LED1-D1 pair installed at the entry gate, the gate boomer does not open until an RID tag is placed near the rid reader. After the tag is placed near the reader, the gate boomer opens for three seconds and closes automatically. If the initial recharge amount was Rs 900, the LCD display shows ‘Vehicle1 Amount’ in the first line and ‘Deducted 100’ in the second line, followed by ‘Balance Amount’ in the first line and ‘800’ in the second line. It is then followed by display of ‘Number of Cars’ in the first line and ‘001’ in the second line. If the parking lot is full, the message ‘Parking is Full, Sorry for Inconvenience’ is displayed on LCD1. When a car leaves the parking area and crosses the IR beam between IR LED2 and D2 at the exit gate, the vehicle count decreases by one. The LCD shows the number of cars in the parking lot along with ‘Thanks for Visiting’ message.
2.5 Proteus Simulation:
Proteus:
The Proteus Design Suite combines schematic capture, SPICE circuit simulation,and PCB design to make a complete electronics design system. Add to that the ability to simulate popular micro-controllers running your actual firmware, and you have a package that can dramatically reduce your development time when compared with a traditional embedded design process.
System Components:
ISIS Schematic Capture an easy to use yet extremely powerful tool for entering your designs.PROSPICE Mixed mode SPICE simulation industry standard SPICE3F5 simulator combined with high speed digital simulator. ARES PCB Layout ‘ high performance PCB designsystem with automatic component placer, rip-up and retry auto-router and interactive design rule checking.VSM – Virtual SystemModelling lets you cosimulate embedded softwarefor popular micro-controllers alongside your hardware design.
System benefits:
Integrated package with common user interface and fully context sensitive help make for a quick and easylearning process.
Figure2.4: proteus simulation
The simulation is done in proteus software.
In idle condition it will display the messag ‘ ADVANCE VEHICLE PARKING SYSTEM ‘.
When vehicle is park in parking place it deduct the amount and display the number of car in parking place.
Figure2.5: proteus simulation
Figure2.6: proteus simulation
If the parking is full it will display the message ‘parking is full sorry for inconv’ and it can’t open the entry gate until the counter is not decrement.
2.6 PCB layout:
Express PCB:
ExpressPCB is a very easy to use Windows application for laying out printed circuit boards.
Expess pcb contain Express pcb and Express schematic for drawing the schematic of circuit.
Figure2.7: Pcb layout
Pcb layout of the parking system is create in express pcb . this is the actual size of pcb layout.
CONCLUSION:
In this chapter we design the hardware and done the simulation in proteus and getting the desired output in proteus and we design the pcb layout of our project in express pcb.
CHAPTER 3
Softwear description and expected outcome
3.1. KEIL 3 SOFTWARE
Keil Software to provide you with software development tools for 8051 based microcontrollers. With the Keil tools, you can generate embedded applications for virtually every 8051 derivative. The supported microcontrollers are listed in the ??Vision Device Database’. The Keil Software 8051 development tools are designed for the professional software developer, but any level of programmer can use them to get the most out of the 8051 microcontroller architecture.
Keil software converts the C-codes into the Intel Hex code.
Figure3.1:(Keil output window)
PRO51 BURNER SOFTWARE
PRO51 BURNER provides you with software burning tools for 8051 based Microcontrollers in their Flash memory. The 51 BURNER tools, you can burn AT89C/SXXXX series of ATMEL microcontrollers.
PROGRAM:
#include<reg52.h>
#include<string.h>
sbit START_POINT=P1^3;
sbit TERMINATE_POINT=P1^4;
sbit START_POINT1=P1^5;
sbit TERMINATE_POINT1=P1^6;
sbit S1=P3^2;
sbit S2=P3^3;
sbit rc1=P1^1;
sbit rc2=P1^2;
sbit BUZZPORT=P1^7;
sbit RS=P3^7;
sbit EN=P3^6;
void lcdinit();
void lcdData(unsigned char l);
void lcdcmd(unsigned char k);
void buzzer(unsigned int time);
void DelayMs(unsigned int count);
void display(unsigned char s,t,u);
void Welcome(unsigned char c[],unsigned char d[]);
void ConvertAndDisplay(unsigned int value1,unsigned char c[]);
void dcMotor();
void dcMotor1();
void main()
{
unsigned char i=0,j=0,result=0;
unsigned int count;
unsigned char c[15];
unsigned char d[12]="343840805201";
signed int amount2=900;
TMOD=0x20;
TH1=0xFD;
SCON=0X50;
TR1=1;
S1=1;
S2=1;
BUZZPORT=0;
START_POINT=0;
TERMINATE_POINT=0;
lcdinit();
Welcome("ADVANCE VEHICLE","PARKING SYSTEM");
buzzer(1000);
DelayMs(1000);
while(1)
{
known:
while(S1==1 && S2==1);
if(S2==0)
{
while(S2==0);
if(count>0)
{
count–;
ConvertAndDisplay(count,"Thanks for Visit");
dcMotor1();
DelayMs(1000);
goto known;
}
else
{
count=0;
ConvertAndDisplay(count,"Thanks for Visit");
DelayMs(1000);
goto known;
}
}
if(S1==0)
{
while(S1==0);
for(i=0;i<12;i++)
{
c[i]=0xFF;
}
while(RI==0);
for(i=0;i<12;i++)
{
j=0;
while(RI==0)
{
if(j>=1000)
goto timeout;
DelayMs(1);
j++;
}
c[i]=SBUF;
RI=0;
}
timeout:
i=strncmp(c,d,10);
if(i==0 && count<10)
{
lcdinit();
Welcome("VEHICAL1 Amount ","Detected:100");
DelayMs(1000);
amount2-=100;
if(amount2>0)
{
ConvertAndDisplay(amount2,"Balance Amount");
dcMotor();
}
else
{
amount2=0;
Welcome("VEHICAL1 Amount ","BALANCE NIL");
buzzer(1000);
Welcome("Recharge Your","Card Please");
while(rc1==1&&rc2==1);
{ if(rc1==0)
{
while(rc1==0);
amount2=900;
Welcome("Cardis recharged","with amount 900");
}
if(rc2==0)
{
while(rc2==0);
amount2=500;
Welcome("Card is recharged","with amount 500");
}
}
}
if(amount2==400)
{
Welcome("VEHICAL1 Amount ","BALANCE LOW");
buzzer(200);
}
DelayMs(1000);
count++;
lcdcmd(0x01);
DelayMs(10);
ConvertAndDisplay(count,"Number of Cars");
goto known;
}
else
{
if(i==0)
{
Welcome("Parking is Full","Sorry for Inconvenience");
buzzer(1000);
DelayMs(1000);
goto known;
}
else
{
Welcome("unregistered","please register");
buzzer(1000);
DelayMs(1000);
goto known;
}
}
}
}
}
void Welcome(unsigned char c[],unsigned char d[])
{
unsigned int i=0;
lcdcmd(0x01);
DelayMs(10);
lcdcmd(0x80);
DelayMs(10);
i=0;
while(c[i]!=’