Académique Documents
Professionnel Documents
Culture Documents
INTRODUCTION
1.1 PROJECT OVERVIEW
One of the main form of communication that has been in use since 19 th century is Radio
Wave communication. Radio Waves have found its place in each and every field whether
it be medical, electronics or space. In general it exists in every system in one or the other
form. The use of Radio Waves had made life much simpler and safer. A heart patient can
be monitored by a doctor remotely sitting in his chamber is because of the use of Radio
Waves. Radio Waves have made communication through telephone, internet etc easier
and cheaper. This project demonstrate one such example were Radio Wave is employed in
a way which is helpful to us. This project is designed and developed for helping the
passengers traveling in bus especially during night. The people who are not aware of the
station on which one should get down will find this very helpful. Here the station name is
displayed and announced simultaneously when the station is about to reach which can
assist both literate and illiterate. The RF technology is used in the project to communicate
between the transmitter and receiver. Each transmitter has a unique binary code which is
transmitted continuously to space in a particular range. This signal is captured by the
receiver when it reaches in its range. So in the case of a bus, the transmitter placed in the
station is detected by the receiver in the bus and the binary code is processed to give out
the station name display and audio corresponding to the binary code in the receiver. A
LCD unit is used for displaying the station name and a speaker is used for the
announcement.
1.4 PROCEDURES
i.
ii.
iii.
iv.
v.
CHAPTER 2
PROJECT DESCRIPTION
2.1 INTRODUCTION
Automatic Station Name Display with voice alert for Bus intimation is based traditionally
on RF signal. [1]RF signal at the frequency range 434 MHz is employed for
communication between transmitter unit and receiver unit in this project. Each station is
identified by a unique binary code, for example, 0001 for Kibamba, 0010 for Mbezi, 0100
for Kimara and 1000 for ubungo. This binary code is transmitted by transmitter module
continuously at a frequency range of 434 MHz within a distance of 400 foot outdoor and
200 foot indoor. This distance can be enhanced by using additional RF antenna. When the
receiver comes within the range of transmitter, it receives the data from the transmitter in
the form of RF signal which is further decoded to collect the binary code and display the
station name along with the voice alert.
2.2
TRANSMITTER MODULE
Transmitter section is the smallest section having few components which include:
1.
2.
3.
4.
RF transmitter TWS-434 A
Encoded HT-12 E
Voltage Regulator LM7805.
LM7805 assures a constant supply of +5 V for the transmitter module. This
voltage of +5 V is used to drive transmitter and encoder.
2.2.2
Working Principle
The binary values unique to each station are assigned by the encoder HT-12 E. Each
address/data input can be set to the logic state 0 or 1. Grounding the pin is taken as 0
while 1 can be achieved by giving 5V or leaving the pins open (No connection). So in
order to get a binary value of 0001 only one pin is pulled high i.e. 13 th pin (D11) is pulled
high while pins 10, 11 and 12 are grounded to represent logical zero. On receipt of
transmit enable i.e. TE-active (14th pin) is pulled low. The data which is here is the binary
3
value is fed as input to the transmitter TWS-434 A from Dout (17th pin) along with
header bits. Received data from HT-12 E encoder is amplitude modulated and transmitted
at a frequency range of 433.92 MHz.
RF Receiver RWS-434 A
Microcontroller 89C51 which is regarded as the brain of the circuit.
LCD module for display the station name
Audio playback IC APR 9600
Power supply section which contains transformer, rectifier, filter, regulator which
ensures a constant +5V.
Main function of the receiver unit is to detect the RF signal transmitted by the TWS-434A
and give the response according to the received data from the receiver. [3]Varies
components of the receiver unit has its own function.RWS-434 receives the RF signal, AT
89C51 processes the input data and produces a corresponding response, LCD module
considered as the output unit displays the processed data from the microprocessor, APR
9600 gives the output in the form of audio playback which is stored in the internal
4
2.3.1
Circuit Description
A constant voltage of +5V is applied to the 4th and 5th pin of the receiver, 2nd pin of the
LCD module, 40th pin of Microcontroller 89C51, 18th pin of the decoded IC HT-12D and
various pins of APR 9600 as shown in figure below through voltage regulator LM7805. It
derives its input voltage from bridge rectifier. The 8 bit data pins D0 - D7 are used to send
information from port 2 of the microcontroller to the LCD. RS (register select) is one of
the important registers inside the LCD. The RS pin is used for their selection as follows.
If RS=0, the instruction code register is selected, allowing the user to send a command
such as clear display, cursor at home, etc. if RS=1 the data register is selected, allowing
the user to send data to be displayed on the LCD.R/W input pin of LCD allows the user to
write information to the LCD or read information from it. R/W=1 when reading; R/W=0
when writing. E (enable) the enable pin is used by the LCD to latch information presented
on its data pins. When data is supplied to data pins, a high to low pulse must be applied to
this pin in order for the LCD to latch in the data present at the data pins. These 3 pins
(RS, RW, and E) of LCD are connected to the 89C51 through port 0. The communication
between AT 89C51 and audio IC APR 9600 is through address/data bus of port 0 of
89C51 and pin 1 and pin 2 namely M1 and M2 of APR 9600. Microcontroller receives
5
data from decoder HT-12 D through port 1 which is an 8 bit bidirectional I/O port from
the output data pins D8-D11 of HT-12 D. The receiver RWS-434 is connected to decoder
such that the received RF signal is fed as input to the data input pin Din (pin 14) of the
decoder from 2nd pin of the receiver.
2.3.2
Working Principle
When the receiver unit comes in the range of transmitter unit which continuously transmit
RF signal, the whole receiver unit gets activated. The receiver unit receives the RF signal
at a frequency range of 434 MHz which actually is a digital data which includes the
binary code assigned to the particular transmitter which denotes a station and a carrier
signal. Digital output is taken from pin 2 of RWS-434 and received by decoder HT-12 D
through data input pin (18th pin). The received serial input data are compared three times
continuously with the local address. If no error or unmatched codes are found, the input
codes are decoded and then transferred to the output pins. The VT (Valid Transmission)
pin (12th pin) gives high to indicate a valid transmission.
The decoded signal is given as data input to AT 89C51 at port 1. On receipt of the binary
code microcontroller which act as a database of station name, compares the received
binary code with its stored binary code, on no error or unmatched code the station name
corresponding to the binary code is displayed on the LCD screen along with a voice alert
from APR 9600.
The whole cycle will be repeated when the receiver receives a new set of binary code
transmitted by some other transmitter denoting a different station. The display will be
active only for pre defined duration, after which the LCD return to its ideal state. The data
to be displayed on the LCD screen is available at port 2 and control of the register of the
LCD is through port 3.
CHAPTER 3
6
HARDWARE DESCRIPTION
3.1 RF TRANSMITTER
The function of a radio frequency (RF) transmitter is to modulate, up convert, and
amplify signals for transmission into free space. [4]An RF transmitter generally includes
a modulator that modulates an input signal and a radio frequency power amplifier that is
coupled to the modulator to amplify the modulated input signal. The radio frequency
power amplifier is coupled to an antenna that transmits the amplified modulated input
signal. The RF transmitter used in our project is TWS-434A. This RF transmitter
transmits data in the frequency range of 433.92 MHz with a range of approximately 400
foot (open area) outdoors. Indoors, the range is approximately 200 foot, and will go
through most walls. TWS-434A has features which includes small in size, low power
consumption i.e. 8mW and operate from 1.5 to 12 Volts-DC, excellent for applications
requiring short-range RF signal. Data to be sent is Amplitude modulation with the carrier
RF signal.
NPUT
PIN
FOR
DATA
FROM
ENCODER
PIN2: VCC SUPPLY (+5V)
PIN3: GND GROUND (-5V)
PIN 4: ANT PIN FOR EXTERNAL RF ANTENNA
3.2 RF RECEIVER
7
3.3 ENCODER
An encoder can be a device used to change a signal (such as a bit stream) or data into
8
a code. The code serves any of a number of purposes such as compressing information
for transmission or storage, encrypting or adding redundancies to the input code, or
translating from one code to another. This is usually done by means of a programmed
algorithm, especially if any part is digital, while most analog encoding is done with
analog circuitry. [6]Encoder used here is HT 12E. The HT12E encoder is a CMOS IC
It is capable of encoding 8 bits of address (A0-A7) and 4-bits of data (AD8-AD11)
information. Each address/data input can be set to one of the two logic states, 0 or 1.
Grounding the pins is taken as a 0 while a high can be given by giving +5V or leaving
the pins open (no connection). Upon reception of transmit enable (TE-active low), the
programmed address/data are transmitted together with the header bits via an RF
medium.
Pin
I/O
Internal connection
Description
A0-
CMOS IN Pull-high
A7
NMO S TRANSMISSION
GATE PROTECTION
DIODE(HT12E)
Input pins for address/data AD8-AD11
setting
AD8NMO S TRANSMISSION
AD1
left open
GATE PROTECTION
DIODE (HT12E)
D11
CMOS IN
Pull-High
DOU
L/MB
I
I
TE
CMOS IN
Pull-high
Momentary: VSS
Transmission enable, active low (see note)
CMOS IN
Pull-high
1
OSC
OSCILLATOR1
3.4 DECODER
A decoder is a device which does the reverse of an encoder, undoing the encoding so that
10
the original information can be retrieved. [7] The same method used to encode is usually
just reversed in order to decode. In digital electronics this would mean that a decoder is a
multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs.
Enable inputs must be on for the decoder to function, otherwise its outputs assume a
single "disabled" output code word. Decoding is necessary in applications such as
data multiplexing, 7 segment display and memory address decoding. The decoder
used here is HT 12D. The HT12D is a decoder IC made especially to pair with the HT
12E encoder. It is a CMOS IC. The decoder is capable of decoding 8 bits of address (A0 A7) and 4 bits of data (AD8 - AD11) information. For proper operation, a pair of
encoder/decoder with the same number of addresses and data format should be chosen.
The decoders receive serial addresses and data from programmed encoders that are
transmitted by a carrier using an RF or an IR transmission medium. They compare the
serial input data three times continuously with their local addresses. If no error or
unmatched codes are found, the input data codes are decoded and then transferred to the
output pins. The VT pin also goes high to indicate a valid transmission. The decoders are
capable of decoding information that consists of N bits of address and 12_N bits of data.
Of this series, the HT 12D is arranged to provide 8 address bits and 4 data bits.
11
Pin Name
I/O
Internal
Description
A0-A7
Connection
NMOS
(HT12D)
Transmission Gate
D8-D11
CMOS OUT
(HT12D)
open.
Output data pins,
power on state is low
DIN
CMOS IN
VT
CMOS OUT
Valid transmission,
OSC1
Oscillator
active high
Oscillator input pin
OSC2
Oscillator
VSS
Negative power
VDD
supply
Positive power
supply
Tab. 3.4.1 Pin description of decoder
displayed. [9]When the LCD is in the off state, the two polarizers and the liquid crystal
rotate the light rays, such that they come out of the LCD without any orientation, and
hence the LCD appears transparent. When sufficient voltage is applied to the electrodes
the liquid crystal molecules would be aligned in a specific direction. The light rays
passing through the LCD would be rotated by the polarizer, which would result in
activating/highlighting the desired characters. The power supply should be of +5v, with
maximum allowable transients of 10mv. To achieve a better/suitable contrast for the
display the voltage (VL) at pin 3 should be adjusted properly. A module should not be
removed from a live circuit. The ground terminal of the power supply must be isolated
properly so that voltage is induced in it. The module should be isolated properly so that
stray voltages are not induced, which could cause a flicking display. LCD is lightweight
with only a few, millimeters thickness since the LCD consumes less power, they are
compatible with low power electronic circuits, and can be powered for long durations.
LCD does not generate light and so light is needed to read the display. By using
backlighting, reading is possible in the dark. LCDs have long life and a wide operating
temperature range. Before LCD is used for displaying proper initialization should be
done. LCDs with a small number of segments, such as those used in digital watches and
pocket calculators, have individual electrical contacts for each segment. An external
dedicated circuit supplies an electric charge to control each segment. This display
structure is unwieldy for more than a few display elements. Small monochrome displays
such as those found in personal organizers, or older laptop screens have a passive-matrix
structure employing super-twisted nematic (STN) or double-layer STN (DSTN)
technologythe latter of which addresses a color-shifting problem with the formerand
color-STN (CSTN)wherein color is added by using an internal filter. Each row or
column of the display has a single electrical circuit. The pixels are addressed one at a time
by row and column addresses. This type of display is called passive-matrix addressed
because the pixel must retain its state between refreshes without the benefit of a steady
electrical charge. As the number of pixels (and correspondingly, columns and rows)
increases, this type of display becomes less feasible. Very slow response times and poor
contrast are typical of passive matrix addressed LCDs. High-resolution color displays
such as modern LCD computer monitors and televisions use an active matrix structure. A
matrix of thin-film transistors (TFTs) is added to the polarizing and color filters. Each
pixel has its own dedicated transistor, allowing each column line to access one pixel.
When a row line is activated, all of the column lines are connected to a row of pixels and
13
the correct voltage is driven onto all of the column lines. The row line is then deactivated
and the next row line is activated. All of the row lines are activated in sequence during a
refresh operation. Active-matrix addressed displays look "brighter" and "sharper" than
passive-matrix addressed displays of the same size, and generally have quicker response
times, producing much better images. A general purpose alphanumeric LCD, with two
lines of 16 characters. So the type of LCD used in this project is16 characters * 2 lines
with 5*7 dots with cursor, built in controller, +5v power supply, 1/16 duty cycle.
14
Name
I/O
Description
Vss
Power
GND
Vdd
Power
+5v
Vo
Analog
Contrast Control
RS
Input
Register Select
R/W
Input
Read/write
E
Input
Enable (strobe)
D0
I/O
Data LSB
D1
I/O
Data
D2
I/O
Data
D3
I/O
Data
D4
I/O
Data
D5
I/O
Data
D6
I/O
Data
D7
I/O
Data MSB
Tab. 3.5.1.1 Pin Description of LCD Module
15
3.7 MICROCONTROLLER
A Micro controller consists of a powerful CPU tightly coupled with memory (RAM, ROM or
EPROM), various I / O features such as Serial ports, Parallel Ports, Timer/Counters, Interrupt
Controller, Data Acquisition interfaces-Analog to Digital Converter (ADC), Digital to Analog
Converter (ADC), [10]everything integrated onto a single Silicon Chip. It does not mean that
any micro controller should have all the above said features on chip, Depending on the need
and area of application for which it is designed, The ON-CHIP features present in it may or
may not include all the individual section said above.
3.7.1.1
On - Chip EEPROM
17
18
(0033)H
002BH
0023H
INTERRUPT LOCATIONS
001BH
8 bytes
0013H
000BH
RESET
0003H
0000H
19
3.7.5 REGISTERS
In the CPU, registers are used to store information temporarily. That information could be a
byte of data to be processed, or an address pointing to the data to be fetched. The vast
majority of 8051 registers are 8bit registers. In the 8051 there is only one data type: 8bits.
The 8bits of a register are should in the diagram from the MSB (most significant bit) D7 to the
LSB (least significant bit) D0. With an 8-bit data type, any data larger than 8bits must be
broken into 8-bit chunks before it is processed. Since there are a large number of registers in
the 8051, we will concentrate on some of the widely used general-purpose registers and cover
special registers in future chapters.
D7
3.7.5.1
D6
D5
D4
D3
D2
D1
SFRs(SpecialFunctionRegisters):
Among the registers R0-R7 are parts of the 128 bytes of RAM memory. what about registers
A,B, PSW, and DPTR? Do they also have addresses? The answer is yes. In the 8051, registers
20
A, B, PSW and DPTR are part of the group of registers commonly referred to as SFR (special
function registers).
Name
Accumulator
B register
Program status word
Stack pointer
Data pointer 2 bytes
Low byte
High byte
Port0
Port1
Port2
Port3
Interrupt priority control
Interrupt enable control
Timer/counter mode control
Timer/counter control
Timer/counter 2 control
Timer/counter mode2 control
Timer/counter 0high byte
Timer/counter 0 low byte
Timer/counter 1 high byte
Timer/counter 1 low byte
Timer/counter 2 high byte
Timer/counter 2 low byte
T/C 2 capture register high byte
T/C 2 capture register low byte
Serial control
Serial data buffer
Address
0E0H
0F0H
0D0H
81H
82H
83H
80H
90H
0A0H
0B0H
0B8H
0A8H
89H
88H
0C8H
0C9H
8CH
8AH
8DH
8BH
0CDH
0CCH
0CBH
0CAH
98H
99H
21
Port 1
Port 1 occupies a total of 8-pins (pins1-8). It can be used as input or output. In
contrast to port 0, this port does not need any pull-up resistors since it already has pullup resistors internally. Upon reset, port1 is configured as an input port.
Port 2
Port 2 occupies a total 8 pins (pins 21-28). It can be used as input or output. However,
in 8031-based systems, port2 is also designated as A8-A15, indicating its dual function.
22
Since an 8051/31 is capable of accessing 64K bytes of external memory, it needs a path
for the 16 bits of the address.
Port 3
Port 3 occupies a total of 8 pins (pins 10-17). It can be used as input or output. P3
does not need any pull-up resistors, just as P1 and P2 did not. Although Port 3 is
configured as an input port upon reset, this is not the way it is most commonly used.
Port 3 has the additional function of providing some extremely important signals such
as interrupts. The below table provides these alternate functions of P3.
This is
multiplexing from the port is performed. This port at the same time used for data and
address transmission.
PSEN
Program Store Enable is the read strobe to external program memory. When the
AT89C51 is executing code from external program memory, PSEN is activated twice
each machine cycle, except that two PSEN activations are skipped during each access
to external data memory.
EA/VPP
External Access Enable (EA) must be strapped to GND in order to enable the device to
fetch code from external program memory locations starting at 0000H up to FFFFH.
Note, however, that if lock bit 1 is programmed, EA will be internally latched on reset.
EA should be strapped to VCC for internal program executions. This pin also receives
the 12-volt programming enable voltage (VPP) during Flash programming, for parts
that require 12-volt VPP.
XTAL1 and XTAL2
The 8051 has an on-chip oscillator but requires an external clock to run it. Most often
a quartz crystal oscillator is connected to inputs XTAL1(pin19) and XTAL2(pin18).
The quartz crystal oscillator connected to XTAL1 and XTAL2 also needs two
capacitors of 30pf value. One side of each capacitor is connected to the ground as
shown in fig1.
TIMERS
On-chip timing/counting facility has proved the capabilities of the microcontroller for
implementing the real time application. These includes pulse counting, frequency
measurement, pulse width measurement, baud rate generation, etc,. Having sufficient
number of timer/counters may be a need in a certain design application. The 8051 has
two timers/counters. They can be used either as timers to generate a time delay or as
counters to count events happening outside the microcontroller. Let discuss how these
timers are used to generate time delays and we will also discuss how they are been used
as event counters.
24
The 16-bit register of Timer 0 is accessed as low byte and high byte. the low byte register is
called TL0(Timer 0 low byte)and the high byte register is referred to as TH0(Timer 0 high
byte).These register can be accessed like any other register, such as A,B,R0,R1,R2,etc.for
example, the instruction MOV TL0, #4Fmoves the value 4FH into TL0,the low byte of
Timer 0.These registers can also be read like any other register.
D15 D14 D13 D12
D11 D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
3.7.6.3
Both timers 0 and 1 use the same register, called TMOD, to set the various timer operation
modes. TMOD is an 8-bit register in which the lower 4 bits are set aside for Timer 0 and the
upper 4 bits for Timer 1.in each case; the lower 2 bits are used to set the timer mode and the
upper 2 bits to specify the operation.
3.7.6.4
TCON REGISTER
TCON controls the timer/counter operations. The lower four bits of TCON cater to interrupt
functions, but the upper four bits are for timer operations. The details of the TCON register are
shown below.
MSB
TF1
LSB
TR1
TF0
TR0
IE1
IT1
IE0
IT0
Computers can transfer data in two ways: parallel and serial. In parallel data transfers, often 8
or more lines (wire conductors) are used to transfer data to a device that is only a few feet
away. Examples of parallel transfers are printers and hard disks; each uses cables with many
wire strips. Although in such cases a lot of data can be transferred in a short amount of time
by using many wires in parallel, the distance cannot be great. To transfer to a device located
many meters away, the serial method is used. In serial communication, the data is sent one bit
at a time, in contrast to parallel communication, in which the data is sent a byte or more at a
time. Serial communication of the 8051 is the topic of this chapter. The 8051 has serial
communication capability built into it, there by making possible fast data transfer using only a
few wires.
SM1
SM2
REN
TB8
RB8
TI
RI
3.7.6.8 INTERRUPTS
A single microcontroller can serve several devices. There are two ways to do that:
INTERRUPTS or POLLING.
3.7.6.8.1 POLLING
In polling the microcontroller continuously monitors the status of a given device; when the
status condition is met, it performs the service .After that, it moves on to monitor the next
device until each one is serviced. Although polling can monitor the status of several devices
and serve each of them as certain condition are met.
3.7.6.8.2 INTERRUPTS
26
In the interrupts method, whenever any device needs its service, the device notifies the
microcontroller by sending it an interrupts signal. Upon receiving an interrupt signal, the
microcontroller interrupts whatever it is doing and serves the device. The program associated
with the interrupts is called the interrupt service routine (ISR).or interrupt handler.
3.7.6.8.2.1
In reality, only five interrupts are available to the user in the 8051, but many manufacturers
data sheets state that there are six interrupts since they include reset .the six interrupts in the
8051 are allocated as above.
1. Reset. When the reset pin is activated, the 8051 jumps to address location 0000.this is the
power-up reset.
2. Two interrupts are set aside for the timers: one for Timer 0 and one for Timer
1.Memory location 000BH and 001BH in the interrupt vector table belong to Timer 0 and
Timer 1, respectively.
3. Two interrupts are set aside for hardware external harder interrupts. Pin number 12(P3.2)
and 13(P3.3) in port 3 are for the external hardware interrupts INT0 and
INT1,respectively.These external interrupts are also referred to as EX1 and EX2.Memory
location 0003H and 0013H in the interrupt vector table are assigned to INT0 and INT1,
respectively.
4. Serial communication has a single interrupt that belongs to both receive and transmit. The
interrupt vector table location 0023H belongs to this interrupt.
3.7.6.8.3 Registers
Interrupt Enable Register
D7
D6
D5
D4
EA
ET0
--
ET2
EX0
D3
D2
ES
D1
ET1
D0
EX1
27
the table is nothing but an internal polling sequence in which the 8051 polls the interrupts in
the sequence listed in the below table and responds accordingly.
3.8 RESISTOR
Resistors are the most common passive electronic component (one that does not require
power to operate). [13] They are used to control voltages and currents. The Electronic color
code is used to indicate the values or ratings of electronic components, very commonly for
resistors. Resistor values are always coded in ohms, capacitors in Pico farads (pF), inductors
in micro Henry (H), and transformers in volts. Resistor values are normally shown using
colored bands. Each color represents a number as shown in the table.
Most resistors have four bands:
i.
ii.
iii.
iv.
For example: Resistor has red (2), violet (7), yellow (4 zeros) and gold bands.
So its value is 270000k = 270 k On circuit diagrams usually omitted and the value is written
270kFor example, a resistor with bands of yellow, violet, red, and gold will have first digit 4
(yellow in the table below), second digit 7 (violet), followed by 2 (red) zeros: 4,700 ohms.
Gold signifies that the tolerance is 5%, so the real resistance could lie anywhere between
4,465 and 4,935 ohms. Example: - From top to bottom:
Green-Blue-Brown-Black-Brown
561 1%
Red-Red-Orange-Gold
22,000 5%
Yellow-Violet-Brown-Gold
28
material which will conduct electricity easily. The dielectric material must be a poor
conductor an insulator. The symbol for a capacitor used in schematic diagrams of electronic
circuits looks very much like a parallel-plate model. Here is a sample circuit which contains
all the components normally called passive, plus a battery. [15] The battery is an active
component because it can add energy to the circuit. Passive components may store energy
momentarily, but cannot add energy on a continuous basis. The three main passive devices
are resistors, capacitors, and inductors. A favorite analogy compares the flow of electric
current with the flow of water out of a tank. A capacitor stores energy when it is charged.
CHAPTER 4
DESIGN AND SIMULATION
4.1
BLOCK DIAGRAM
The block diagram consists of the transmitter and receiver section. They can be represented
as the following block diagrams.
4.1.1 Transmitter
31
4.1.2
Receiver
The power supply section is the section which provide +5V for the transmitter section
to work. IC LM7805 is used for providing a constant power of +5V.
Decoder
A decoder is a device which does the reverse of the encoder, undoing the encoding so
that the original information can be retrieved.
Microcontroller
Unlike microprocessors, microcontrollers are generally optimized for specific
applications. As a result the peripherals can be simplified and reduced which cuts
down the production cost.
RF Receiver
The RF signal transmitted by the transmitter is detected and received by this section
of the receiver. This binary encoder data is sent to the decoder for decoding the
original data.
LCD
This is the output unit in the receiver section. [5] The station name is displayed on
this display unit when the receiver comes in the range of the transmitter.
Voice Alert
This is another output unit in the receiver. This gives the voice alert of the station
reached based on the RF transmitter signal received.
4.2 SIMULATION CIRCUIT OF TRANSMITTER
33
35
CHAPTER 5
IMPLEMENTATION
5.1 TESTING
36
Testing is one of the important stages in the development of any new product or repair of
existing ones. Because it is very difficult to trace a fault in a finished work, especially
when the work to be tested is too complex. For the purpose of this project, two stages of
testing are involved
i.
ii.
Pre-implementation testing
Post-implementation testing.
5.2 Result
The results obtained during the construction states after necessary troubleshooting were
satisfactory. The system was able to respond to its operation on the following electrical and
electronic system such as in industries and in domestic purpose. Also, the microcontroller
functions according to the program used for the software design implementation. It is
37
CHAPTER 6
SOFTWARE DESCRIPTION
6.1 EMBEDDED LANGUAGE
Embedded software is in almost every electronic device designed today. There is software
38
hidden away inside our watches, microwave, Music system, cellular phones etc .military uses
embedded software to guide smart missiles and detect enemy aircraft; communication
satellites, space probes and modern medicine could be nearly impossible without it.
Embedded softwares are developed using a different version of c called embedded c which is
a different version of c to suit the programming of microcontroller.
file or module contains no relocatable code and data reside at a fixed memory location. The
absolute ELF/DWARF file used: To program ad flash ROM or other memory devices with
Vision debugger for simulation and target debugging.
CHAPTER 7
CONCLUSION
7.1 CONCLUSION
The design and development of Automatic station name display with voice alert for bus
intimation inside bus compartment have been successfully designed, fabricated and tested.
40
With the implementation of low cost and flexibility in design, this kit can reduce our tension
in journey to unknown place. This project demonstrates how RF signal along with embedded
system can make our life simpler without causing any ill effect or affecting other devices.
There are plenty of such examples showing how embedded system makes our life simpler
and tension free. This project has plenty of rooms for expansion like the use of GPS system
instead of RF signal, interfacing with pc for different forms of output, harness of solar energy
as the unit consumes very low power etc. Its use is not limited to bus stand or railway station,
with suitable modification the system can be used to serve other purposes like providing
assistance to blind in their homes, providing security for valuable items etc.
41
42
PROGRAM
Main Coding
#include<reg51.h>
sbit rs=P3^5;
sbit rw=P3^6;
sbit e=P3^7;
sbit kibamba=P1^0; // kibamba station
sbit mbezi=P1^1; // mbezi sation
sbit kimara=P1^2; //kimara station
sbit ubungo=P1^3; //ubungo station
sbit voice1=P3^0; //
sbit voice2=P3^1;
sbit voice3=P3^2;
sbit voice4=P3^3;
void delay(int k) //delay function
{
int i,j;
for(i=0;i<k;i++)
for(j=0;j<1275;j++);
}
void write(int j)
{
rs=1; //selecting rs pin to data mode
rw=0; //selecting rw pin to write mode
P2=j; //putting value on the pins
e=1; //high pulse
delay(1);
e=0; // low pulse
return;
}
43
while(1)
{
if(kibamba==0&&mbezi==0&&kimara==0&&ubungo==0) //WHEN NO ANY STATION
DETECTED
{
cmd(0x80);
");
}
else if(kibamba==0&&mbezi==0&&kimara==1&&ubungo==0) // when kimara signal is
detected
voice3=1;
{
cmd(0x80);
puts(" KIMARA STATION ");
46
APPENDIX
RF
Radio Frequency
GPS
LCD
Mhz
Mega Hertz
GND
Ground
R/W
AD
Address Data
VT
Valid Transmission
IC
Integrated Circuit
RS
Register Select
DC
Direct Current
CMOS
Complementary metaloxidesemiconductor
NMO S
N-Channel MOSFET
AD
Address Data
IR
Infrared
VT
Valid Transmission
VDD
VCC
STN
DSTN
TFTS
ADC
CPU
RAM
ROM
EPROM
EEPROM
DAC
I/O
UART
RD
Read Data
WR
Write State
LSB
MSB
SFRS
RXD
Receiver
TXD
Transmitter
INT
Interrupt
48
REFERENCES
[1]
[2]
[3]
[4]
[5]
J. Duperre, G. Burgett, R. Garg, and S. P. Khatri, RF receiver and transmitter for insect
mounted sensor platform, in Midwest Symposium on Circuits and Systems, 2009, pp.
264267.
[6]
[7]
[8]
S. H. Chan and T. Q. Nguyen, LCD motion blur modeling and simulation, in 2010 IEEE
International Conference on Multimedia and Expo, ICME 2010, 2010, pp. 400405.
[9]
[11]
[12]
S. F. Barrett, Embedded Systems Design with the Atmel AVR Microcontroller: Part II, vol.
4, no. 1. 2009.
[13]
[14]
[15]
G. Brunello, M. Eng, P. Eng, and C. Wester, Shunt Capacitor Bank Fundamentals and
Protection, Prot. Relay Eng. 2003 Conf., pp. 117, 2003.
[16]
[17]
50