Professional Documents
Culture Documents
System
Abstract
Literature Survey:
Literature 1:
The paper “The mobile robot GPS position based on neural network adaptive
Kalman filter” by Wei Wu in the year 2009 presented a GPS positioning method based on
neural network adaptive Kalman filter. Using the innovation vector which reflects the
degree how the model fits the data, and real-timely accessing to the innovation vector’s
ratio of the theoretical variance to the actual of variance, we can get the working
conditions of Kalman filter. Then track the change of system parameters through neural
network, where the adaptive regulatory factors are generated which can correct the
Kalman filter, improve the performance of the Kalman Filter, and prevent the filter
divergence. Because neural network has a strong learning and adaptive ability, the system
noise covariance matrix can be corrected real-timely, and can be adjusted online.
Literature 2:
Block Diagram
Bus Block
IR Sensor Pair
GPS
Microcontroller
Power Supply
Explanation:
Explanation:
Depo block will consist of PC, Controller section and GSM modem. Data
received by the PC(Server) via GPRS module can be transmitted to the users via other
GSM module connected to it. Controller section will be used for interfacing PC and GSM
via RS232 communication.
User Module
Mobile
Module Description:
Bus Module:
Bus module will be the base module for the entire process
which has the three sensors connected to the ARM processor and Output will be via
GPRS. Two pair of IR sensors is connected to the processor, one to count the entry value
and other to count exit value. GPS will provide the latitude and longitude location. RTC
is interfaced a timer.
Depo Module
User Module:
ARM
INTRODUCTION
FEATURES
APPLICATIONS
• Industrial control
• Medical systems
• Access control
• Point-of-sale
• Communication gateway
• Embedded soft modem
• General purpose applications
ARCHITECTURAL OVERVIEW
LPC2148:
This is nothing but the ARM controller. ARM means advanced RISC machine. It
is a 32 bit controller. Compared to pic microcontroller ARM has a wide range of
application. Speed of this controller is also very high compared to all others. It has an
inbuilt memory of 512kb for the program as well as data. But in pic microcontroller it has
an inbuilt memory of 368 bytes, which is very less compared to ARM. The pin diagram
of LPC2148 is shown below
PIN DESCRIPTION
EXTERNAL INTERRUPT INPUTS
The external interrupt function has four registers associated with it. The EXTINT
register contains the interrupt flags, and the EXTWAKEUP register contains bits that
enable individual external interrupts to wake up the microcontroller from Power-down
mode. The EXTMODE and EXTPOLAR registers specify the level and edge sensitivity
parameters.
PROTOCOL SUPPORTED:
• Internet protocol (IP). In practice, mobile built-in browsers use IPv4 since IPv6 is
not yet popular.
• Point-to-point protocol (PPP). In this mode PPP is often not supported by the
mobile phone operator but if the mobile is used as a modem to the connected
computer, PPP is used to tunnel IP to the phone. This allows an IP address to be
assigned dynamically to the mobile equipment.
• X.25 connections. This is typically used for applications like wireless payment
terminals, although it has been removed from the standard. X.25 can still be
supported over PPP, or even over IP, but doing this requires either a network
based router to perform encapsulation or intelligence built in to the end-
device/terminal; e.g., user equipment (UE).
When TCP/IP is used, each phone can have one or more IP addresses allocated. GPRS
will store and forward the IP packets to the phone even during handover. The TCP
handles any packet loss (e.g. due to a radio noise induced pause).
HARDWARE:
A true Class A device may be required to transmit on two different frequencies at the
same time, and thus will need two radios. To get around this expensive requirement, a
GPRS mobile may implement the dual transfer mode (DTM) feature. A DTM-capable
mobile may use simultaneous voice and packet data, with the network coordinating to
ensure that it is not required to transmit on two different frequencies at the same time.
Such mobiles are considered pseudo-Class A, sometimes referred to as "simple class A".
Some networks are expected to support DTM in 2007.
Huawei E220 3G/GPRS Modem USB 3G/GPRS modems use a terminal-like interface
over USB 1.1, 2.0 and later, data formats V.42bis, and RFC 1144 and some models have
connector for external antenna. Modems can be added as cards (for laptops) or external
USB devices which are similar in shape and size to a computer mouse, or nowadays more
like a pen drive.
Data bits are sent with a predefined frequency, the baud rate. Both the transmitter and
receiver must be programmed to use the same bit frequency. After the first bit is received,
the receiver calculates at which moments the other data bits will be received. It will check
the line voltage levels at those moments.
With RS232, the line voltage level can have two states. The on state is also known as
mark, the off state as space. No other line states are possible. When the line is idle, it is
kept in the mark state.
START BIT
DATA BITS
Directly following the start bit, the data bits are sent. A bit value 1 causes the line to go in
mark state, the bit value 0 is represented by a space. The least significant bit is always the
first bit sent.
PARITY BIT
For error detecting purposes, it is possible to add an extra bit to the data word
automatically. The transmitter calculates the value of the bit depending on the
information sent. The receiver performs the same calculation and checks if the actual
parity bit value corresponds to the calculated value. This is further discussed in another
paragraph.
STOP BITS
Suppose that the receiver has missed the start bit because of noise on the transmission
line. It started on the first following data bit with a space value. This causes garbled date
to reach the receiver. A mechanism must be present to resynchronize the communication.
To do this, framing is introduced. Framing means, that all the data bits and parity bit are
contained in a frame of start and stop bits. The period of time lying between the start and
stop bits is a constant defined by the baud rate and number of data and parity bits. The
start bit has always space value, the stop bit always mark value. If the receiver detects a
value other than mark when the stop bit should be present on the line, it knows that there
is a synchronization failure. This causes a framing error condition in the receiving
UART. The device then tries to resynchronize on new incomming bits.
For resynchronizing, the receiver scans the incomming data for valid start and stop bit
pairs. This works, as long as there is enough variation in the bit patterns of the data
words. If data value zero is sent repeatedly, resynchronization is not possible for
example.
The stop bit identifying the end of a data frame can have different lengths. Actually, it is
not a real bit but a minimum period of time the line must be idle (mark state) at the end of
each word. On PC's this period can have three lengths: the time equal to 1, 1.5 or 2 bits.
1.5 bits is only used with data words of 5 bits length and 2 only for longer words. A stop
bit length of 1 bit is possible for all data word sizes.
VOLTAGES
The signal level of the RS232 pins can have two states. A high bit, or mark state
is identified by a negative voltage and a low bit or space state uses a positive value. This
might be a bit confusing, because in normal circumstances, high logical values are
defined by high voltages also. The voltage limits are shown below.
Undefined - -3 ... +3
More information about the voltage levels of RS232 and other serial interfaces
can be found in the interface comparison table.
The maximum voltage swing the computer can generate on its port can have
influence on the maximum cable length and communication speed that is allowed. Also,
if the voltage difference is small, data distortion will occur sooner. For example, my
Toshiba laptop mark's voltage is -9.3 V, compared to -11.5 V on my desktop computer.
The laptop has difficulties to communicate with Mitsubishi PLC's in industrial
environments with high noise levels where the desktop computer has no data errors at all
using the same cable. Thus, even far beyond the minimum voltage levels, 2 volts extra
can make a huge difference in communication quality.
Despite the high voltages present, it is not possible to destroy the serial port by
short circuiting. Only applying external voltages with high currents may eventually burn
out the driver chips. Still then, the UART won't be damaged in most cases.
19200 50
9600 500
4800 1000
2400 3000
GPS:
The Global Positioning System (GPS) is a space-based global navigation satellite
system that provides reliable location and time information in all weather and at all times
and anywhere on or near the Earth when and where there is an unobstructed line of sight
to four or more GPS satellites.
The receiver utilizes the messages it receives to determine the transit time of each
message and computes the distance to each satellite. These distances along with the
satellites' locations are used with the possible aid of trilateration, depending on which
algorithm is used, to compute the position of the receiver. This position is then displayed,
perhaps with a moving map display or latitude and longitude; elevation information may
be included. Many GPS units show derived information such as direction and speed,
calculated from position changes.
Three satellites might seem enough to solve for position, since space has three
dimensions and a position near the Earth's surface can be assumed. However, even a very
small clock error multiplied by the very large speed of light — the speed at which
satellite signals propagate — results in a large positional error. Therefore receivers use
four or more satellites to solve for the receiver's location and time. The very accurately
computed time is effectively hidden by most GPS applications, which use only the
location. A few specialized GPS applications do however use the time; these include time
transfer, traffic signal timing, and synchronization of cell phone base stations.
Although four satellites are required for normal operation, fewer apply in special cases. If
one variable is already known, a receiver can determine its position using only three
satellites. For example, a ship or aircraft may have known elevation. Some GPS receivers
may use additional clues or assumptions (such as reusing the last known altitude, dead
reckoning, inertial navigation, or including information from the vehicle computer) to
give a less accurate (degraded) position when fewer than four satellites are visible.
POSITION CALCULATION:
To provide an introductory description of how a GPS receiver works, error effects are
deferred to a later section. Using messages received from a minimum of four visible
satellites, a GPS receiver is able to determine the times sent and then the satellite
positions corresponding to these times sent. The x, y, and z components of position, and
the time sent, are designated as where the subscript i is the satellite number and has the
value 1, 2, 3, or 4. Knowing the indicated time the message was received , the GPS
receiver can compute the transit time of the message as . Assuming the message traveled
at the speed of light, c, the distance traveled or pseudorange, can be computed as .
A satellite's position and pseudorange define a sphere, centered on the satellite with
radius equal to the pseudorange. The position of the receiver is somewhere on the surface
of this sphere. Thus with four satellites, the indicated position of the GPS receiver is at or
near the intersection of the surfaces of four spheres. In the ideal case of no errors, the
GPS receiver would be at a precise intersection of the four surfaces.
If the surfaces of two spheres intersect at more than one point, they intersect in a circle.
The article trilateration shows this mathematically. A figure, Two Sphere Surfaces
Intersecting in a Circle, is shown below.
The intersection of a third spherical surface with the first two will be its
intersection with that circle; in most cases of practical interest, this means they intersect
at two points.[40] Another figure, Surface of Sphere Intersecting a Circle (not a solid
disk) at Two Points, illustrates the intersection. The two intersections are marked with
dots. Again the article trilateration clearly shows this mathematically.
Surface of sphere Intersecting a circle (not a solid disk) at two points
For automobiles and other near-earth vehicles, the correct position of the GPS receiver is
the intersection closest to the Earth's surface. For space vehicles, the intersection farthest
from Earth may be the correct one.
The correct position for the GPS receiver is also the intersection closest to the surface of
the sphere corresponding to the fourth satellite.
If the almanac information has previously been acquired, the receiver picks which
satellites to listen for by their PRNs, unique numbers in the range 1 through 32. If the
almanac information is not in memory, the receiver enters a search mode until a lock is
obtained on one of the satellites. To obtain a lock, it is necessary that there be an
unobstructed line of sight from the receiver to the satellite. The receiver can then acquire
the almanac and determine the satellites it should listen for. As it detects each satellite's
signal, it identifies it by its distinct C/A code pattern. There can be a delay of up to 30
seconds before the first estimate of position because of the need to read the ephemeris
data.
MAX 232:
The MAX232 is an integrated circuit that converts signals from an RS-232 serial port to
signals suitable for use in TTL compatible digital logic circuits. The MAX232 is a dual
driver/receiver and typically converts the RX, TX, CTS and RTS signals.
The drivers provide RS-232 voltage level outputs (approx. ± 7.5 V) from a single + 5 V
supply via on-chip charge pumps and external capacitors. This makes it useful for
implementing RS-232 in devices that otherwise do not need any voltages outside the 0 V
to + 5 V range, as power supply design does not need to be made more complicated just
for driving the RS-232 in this case.
The receivers reduce RS-232 inputs (which may be as high as ± 25 V), to standard 5 V
TTL levels. These receivers have a typical threshold of 1.3 V, and a typical hysteresis of
0.5 V.
The later MAX232A is backwards compatible with the original MAX232 but may
operate at higher baud rates and can use smaller external capacitors – 0.1 μF in place of
the 1.0 μF capacitors used with the original device.[1]
The newer MAX3232 is also backwards compatible, but operates at a broader voltage
range, from 3 to 5.5V. [2]
[edit]
Voltage levels
The IR sensor is a very simple device that works by reflecting infrared light off of
an object and detecting the reflecting with a photo-transistor that is tuned to the same
frequency of light. The LED is mounted next to the photo-transistor, however, the
emitted light from the LED does not directly shine into the photo-transistor. Appropriate
values for resistance are in series with both the LED to limit current and the photo-
transistor in order to show a voltage drop based on distance to the object in front of the
sensor. The effective range of the sensor is a few centimeters. Object detection can be
enhanced by placing a reflective surface between the object and the sensor. When the
object passes between the sensor and reflective surface, a large drop will be observed in
the output signal.
Applications:
CCD Camera
Night Vision
Infrared Applied System
Coding:
#include<lpc214x.h>
unsigned char at[46]={'A','T','+','C','M','G','F','=','1','A','T','+','C','N','M','I',
'=','2',',','2',',','0',',','0',',','0','A','T','+','C','M','G',
'S','=','"','9','7','8','9','6','7','0','6','2','7','"'};
unsigned char d[7]={'R','A','I','L','W','A','Y'},j,k;
void delay(int k)
{
unsigned int m,n;
for(m=0;m<k;m++)
{
for(n=0;n<0xfffff;n++);
}
}
main()
{
PINSEL0=0x00000005;
U0LCR=0x83;
U0DLL=93;
while(1)
{
for(k=0;k<=1;k++)
{
while(!(U0LSR & 0x20));
U0THR=at[k];
}
while(!(U0LSR & 0x20));
U0THR=13;
delay(7);
for(k=2;k<=8;k++)
{
while(!(U0LSR & 0x20));
U0THR=at[k];
}
while(!(U0LSR & 0x20));
U0THR=13;
delay(7);
for(k=9;k<=25;k++)
{
while(!(U0LSR & 0x20));
U0THR=at[k];
}
while(!(U0LSR & 0x20));
U0THR=13;
delay(7);
for(k=26;k<=45;k++)
{
while(!(U0LSR & 0x20));
U0THR=at[k];
}
while(!(U0LSR & 0x20));
U0THR=13;
delay(7);
for(j=0;j<=6;j++)
{
while(!(U0LSR & 0x20));
U0THR=d[j];
}
while(!(U0LSR & 0x20));
U0THR=26;