A Mini Project On, Ivrs Based Automation System With Voice Acknowledgement
A Mini Project On, Ivrs Based Automation System With Voice Acknowledgement
A Mini Project On, Ivrs Based Automation System With Voice Acknowledgement
Presented by,
V.Bhargav(……..)
…………...(…..)
………………….(…..)
……………….(……)
INDEX
1. ABSTRACT
2. INTRODUCTION
BLOCK DIAGRAM
SCHEMATIC
SCHEMATIC EXPLANATION
4. HARDWARE DESCRIPTION
DTMF DECODER
MICROCONTROLLER
POWER SUPPLY
MOBILE PHONE
DRIVERS
5. SOFTWARE DESCRIPTION
FLOW CHART
6. FUTURE ENHANCEMENTS
7. CONCLUSION
8. BIBLIOGRAPHY
1. ABSTRACT:-
Most of the services provided in today’s world are voice interactive, you call up bank and
computerized voice will speak to you, and guide you to enter particular number from your phone
to get the desired service .this service is only available through the fast speed computers and
having huge amount of memory. We implemented interactive service for industrial application.
This project is designed around a micro controller, which forms the control unit of the
project. According to this project, the system being designed is to be placed in industries being
connected to devices to be controlled. The person who wants to control the devices in industries
needs to call to a mobile being connected to designed embedded system. After connection
establishment, the user is asked to press any key of mobile phone to make a particular device
ON/OFF with voice announcement. Now the user can press the key according to the device to be
controlled.
The devices such as mobile phone, DTMF decoder an interface between mobile phone
and micro controller, Voice processing unit, devices to be controlled are interfaced to micro
controller. The micro controller switches the device according to the key being pressed by
giving voice announcement.
ABBREVIATIONS
Symbol Name
ACC Accumulator
B B register
PSW Program status word
SP Stack pointer
DPTR Data pointer 2 bytes
DPL Low byte
DPH High byte
P0 Port0
P1 Port1
P2 Port2
P3 Port3
IP Interrupt priority control
IE Interrupt enable control
TMOD Timer/counter mode control
TCON Timer/counter control
T2CON Timer/counter 2 control
T2MOD Timer/counter mode2 control
TH0 Timer/counter 0high byte
TL0 Timer/counter 0 low byte
TH1 Timer/counter 1 high byte
TL1 Timer/counter 1 low byte
TH2 Timer/counter 2 high byte
TL2 Timer/counter 2 low byte
SCON Serial control
SBUF Serial data buffer
PCON Power control
2. INTRODUCTION:-
BLOCK DIAGRAM:
Power Supply
Drivers
DEVICES
MICRO
CONTROLLER
Voice
Mobile DT processing
phone MF unit
3.DESCRIPTION OF THE PROJECT
Micro controller:-
Power supply:-
In this system we are using both the supplies 12 volts and 5 volts. 5 volts is
used for Microcontroller where as DC motor & Relays will be operated on 12 volts.
Relays:-
In this project Relays are used to the Trip the parameters. A relay is an electrical
switch that opens and closes under control of another electrical circuit. In the original form, the
switch is operated by an electromagnet to open or close one or many sets of contacts.
DTMF Decoder:-
DTMF decoder decodes the entered keys frequency values to control the devices.
HARDWARE COMPONENTS:
• Micro Controller
• DTMF
• Mobile phone
• Voice processing unit
• DRIVERS
• Devices
• Power supply
4.HARDWARE DESCRIPTION
Power supply:-
VS X IS=VP X IP
TYPES OF RECTIFIERS:
Type of Rectifier
Number of diodes
1 2 3
PIV of diodes
Vm 2Vm Vm
no-load
Ripple
Frequency f 2f 2f
Rectification
Transformer
Factor(TUF)
Full-wave Rectifier:
From the above comparison we came to know that full wave bridge rectifier as more Advantages
than the other two rectifiers. So, in our project we are using full wave bridge rectifier circuit.
Bridge Rectifier: A bridge rectifier makes use of four diodes in a bridge arrangement to achieve
full-wave rectification. This is a widely used configuration, both with individual diodes
wired as shown and with single component bridges where the diode bridge is wired
internally.
A bridge rectifier makes use of four diodes in a bridge arrangement as shown in fig (a) to
achieve full-wave rectification. This is a widely used configuration, both with individual diodes
wired as shown and with single component bridges where the diode bridge is wired internally.
Operation:
During positive half cycle of secondary, the diodes D2 and D3 are in forward biased while D1
and D4 are in reverse biased as shown in the fig(b). The current flow direction is shown in the
fig (b) with dotted arrows.
FIG 5.1
During negative half cycle of secondary voltage, the diodes D1 and D4 are in forward biased
while D2 and D3 are in reverse biased as shown in the fig(c). The current flow direction is shown
in the fig (c) with dotted arrows.
FIG 5.2
Filter:
A Filter is a device which removes the a.c component of rectifier output but
allows the d.c component to reach the load
Capacitor Filter:
We have seen that the ripple content in the rectified output of half wave
rectifier is 121% or that of full-wave or bridge rectifier or bridge rectifier is 48% such high
percentages of ripples is not acceptable for most of the applications. Ripples can be removed by
one of the following methods of filtering:
(a) A capacitor, in parallel to the load, provides an easier by –pass for the ripples
voltage though it due to low impedance. At ripple frequency and leave the d.c to appear the load.
(b) An inductor, in series with the load, prevents the passage of the ripple current
(due to high impedance at ripple frequency) while allowing the d.c (due to low resistance to d.c)
r = ripple factor,
Rl = load resistance
Regulator:
Voltage regulator ICs is available with fixed (typically 5, 12 and 15V) or variable output
voltages. The maximum current they can pass also rates them. Negative voltage regulators are
available, mainly for use in dual supplies. Most regulators include some automatic protection
from excessive current ('overload protection') and overheating ('thermal protection'). Many of
the fixed voltage regulator ICs has 3 leads and look like power transistors, such as the 7805 +5V
1A regulator shown on the right. The LM7805 is simple to use. You simply connect the positive
lead of your unregulated DC power supply (anything from 9VDC to 24VDC) to the Input pin,
connect the negative lead to the Common pin and then when you turn on the power, you get a 5
volt supply from the output pin.
78XX:
The Bay Linear LM78XX is integrated linear positive regulator with three
terminals. The LM78XX offer several fixed output voltages making them useful in wide range of
applications. When used as a zener diode/resistor combination replacement, the LM78XX
usually results in an effective output impedance improvement of two orders of magnitude, lower
quiescent current. The LM78XX is available in the TO-252, TO-220 & TO-263packages,
Features:
• No External Component
• Output Voltage 5.0V, 6V, 8V, 9V, 10V, 12V, 15V, 18V, 24V
MICROCONTROLLER
INTRODUCTION
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 (DAC), 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.
FIG 7: Microcontroller
NECESSITY OF MICROCONTROLLERS:
Microprocessors brought the concept of programmable devices and made many
applications of intelligent equipment. Most applications, which do not need large amount of data
and program memory is the microcontroller.
Costly:
The microprocessor system had to satisfy the data and program requirements so,
sufficient RAM and ROM are used to satisfy most applications .The peripheral control
equipment also had to be satisfied. Therefore, almost all-peripheral chips were used in the
design. Because of these additional peripherals cost will be comparatively high.
An example:
8085 chip needs:
An Address latch for separating address from multiplexed address and data.32-KB
RAM and 32-KB ROM to be able to satisfy most applications. As also Timer / Counter, Parallel
programmable port, Serial port, and Interrupt controller are needed for its efficient applications.
In comparison a typical Micro controller 8051 chip has all that the 8051 board has except
a reduced memory as follows.
Bulky:
On comparing a board full of chips (Microprocessors) with one chip with all components
in it (Micro controller).
Debugging:
• 8/16/32 CPU
• Instruction set rich in I/O & bit operations. o
• One or more I/O ports.
• One or more timer/counters.
• One or more interrupt inputs and an interrupt controller
• One or more serial communication ports.
• Analog to Digital /Digital to Analog converter
• One or more PWM output
• Network controlled interface
ADVANTAGES:
The 8051 is an 8-bit processor, meaning that the CPU can work on only 8-bits of data
at a time. Data larger than 8-bits has to be broken into 8-bit pieces to be processed by the
CPU.The 8051 can have a maximum of 64K bytes of ROM, many manufacturers have put only
4Kbytes on chip.
INTERRUPTS
TIMER COUNTER
1
INPUTS
ON-CHIP ON-CHIP
FLASH
INTERRUP
T
CPU
PO P2 P1 P3 TXD RXD
For more information on the individual devices and features, refer to the Hardware Descriptions
and Data Sheets of the specific device.
Why AT 89C51? :
The system requirements and control specifications clearly rule out the use of 16, 32 or
64 bit micro controllers or microprocessors. Systems using these may be earlier to implement
due to large number of internal features. They are also faster and more reliable but, the above
application is satisfactorily served by 8-bit micro controller. Using an inexpensive 8-bit
Microcontroller will doom the 32-bit product failure in any competitive market place.
Coming to the question of why to use AT89C51 of all the 8-bit Microcontroller available
in the market the main answer would be because it has 4 Kb on chip flash memory which is just
sufficient for our application. The on-chip Flash ROM allows the program memory to be
reprogrammed in system or by conventional non-volatile memory Programmer. Moreover
ATMEL is the leader in
Flash technology in today’s market place and hence using AT 89C51 is the optimal solution.
PIN CONFIGURATION:
Pin Description
VCC
Pin 40 provides supply voltage to the chip. The voltage source is +5v.
Ports 0, 1, 2 and 3
As shown in pin diagram, the four ports P0, P1, P2, and P3 each use of 8 pins,
making the 8-bit ports. All the ports upon Reset are configured as input, since P0-P3
have FFH on them.
Port 0
Port 0 occupies a total of 8 pins (pins 32-33). It can be used for input or output. Port0 is
also designated as AD0-AD7, allowing it to be used for both address and data. When connecting
an 8051/31 to an external memory, port 0 provides both address and data. The 8051 multiplexes
address and data through port 0 to save pins. ALE=0, it provides data D0-D7, but when ALE=1,
it has address A0-A7. Therefore, ALE is used for demultiplexing address address and data with
the help of a 74LS373 latch. In the 8051-based systems where there is no external memory
connection, the pins of P0 must be connected externally to a 10k –ohm pull-up resistor. This is
due to the fact that P0 is an Open drain, Unlike P1, P2, P3. Open drain is a term used for MOS
chips in the same way that open collector is used for TTL chips. In many systems using the
8751, 89C51, or DS89C4x0 chips, we normally connect P0 to pull-up resistors. With external
pull-up resistors connected to P0, it can be used as a simple I/O port, just like P1 and P2. In
contrast to Port 0, ports p1, p2, and p3 do not need any pull-up resistors since they already have
pull-up resistors internally. Upon reset, ports p1, p2, ad p3 are configured as input ports.
Port 1
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. Since an
8051/31 is capable of accessing 64K bytes of external memory, it needs a path for the 16 bits of
the address. While P0 provides the lower 8 bits via A0-A7, it is the job of p2 is used for the
upper 8 bits of the 16-bit address, and it cannot be used for I/O. Just like P1, port 2 does not
need any pull-up resistors since it already has pull-up resistors internally. Upon reset, port2 is
configured as an input port.
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 information applies to both 8051 and 8031 chips.
Port 3 also receives some control signals for Flash programming and verification.
RST
Reset input. A high on this pin for two machine cycles while the oscillator is running
resets the device.
ALE/PROG
Prior to each reading from external memory, the microcontroller will set the
lower address byte (A0-A7) on P0 and immediately after that activates the output
ALE. Upon receiving signal from the ALE pin, the external register (74HCT373 or
74HCT375 circuit is usually embedded) memorizes the state of P0 and uses it as an
address for memory chip. In the second part of the microcontroller’s machine cycle,
a signal on this pin stops being emitted and P0 is used now for data transmission
(Data Bus). In this way, by means of only one additional (and cheap) integrated
circuit, data 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.
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.
It must be noted that there are various speeds of the 8051 family. Speed
refers to the maximum oscillator frequency connected to XTAL. For example, a 12-
MHz chip must be connected to a crystal with 12 MHz frequency of no more than 20
MHz. When the 8051 is connected to a crystal oscillator and is powered up, we can
observe the frequency on the XTAL2 pin using the oscilloscope.
If you decide to use a frequency source other than a crystal oscillator, such as
a TTL oscillator, it will be connected to XTAL1; XTAL2 is left unconnected. As shown
in fig2.
FIG 10 XTAL connection to 8051 FIG 10.1. XTAL for an External clock source
The P89C51 provides the following standard features: 4K bytes of Flash, 128 bytes
of RAM, 32 I/O lines, two 16-bit timer/counters, five vector two-level interrupt
architecture, a full duplex serial port, on-chip oscillator and clock circuitry. In
addition, the P89C51 is designed with static logic for operation down to zero
frequency and supports two software selectable power saving modes. The Idle Mode
stops the CPU while allowing the RAM, timer/counters, serial port and interrupt
system to continue functioning. The Power-down Mode saves the RAM contents but
freezes the oscillator disabling all other chip functions until the next hardware reset.
NC XTAL2
EXTERIOR
OSCILLATOR
XTAL1
SIGNAL
GND
I/O ports:
One major feature of a microcontroller is the versatility built into the input/output (I/O)
circuits that connect the 8051 to the outside world. The main constraint that limits numerous
functions is the number of pins available in the 8051 circuit. The DIP had 40 pins and the success
of the design depends on the flexibility incorporated into use of these pins. For this reason, 24 of
the pins may each used for one of the two entirely different functions which depend, first, on
what is physically connected to it and, then, on what software programs are used to “program”
the pins.
PORT 0
Port 0 pins may serve as inputs, outputs, or, when used together, as a bi directional low-
order address and data bus for external memory. To configure a pin as input, 1 must be written
into the corresponding port 0 latch by the program. When used for interfacing with the external
memory, the lower byte of address is first sent via PORT0, latched using Address latch enable
(ALE) pulse and then the bus is turned around to become the data bus for external memory.
PORT 1
Port 1 is exclusively used for input/output operations. PORT 1 pins have no dual
function. When a pin is to be configured as input, 1 is to be written into the corresponding Port 1
latch.
PORT 2
Port 2 maybe used as an input/output port. It may also be used to supply a high –order
address byte in conjunction with Port 0 low-order byte to address external memory. Port 2 pins
are momentarily changed by the address control signals when supplying the high byte a 16-bit
address. Port 2 latches remain stable when external memory is addressed, as they do not have to
be turned around (set to 1) for data input as in the case for Port 0.
PORT 3
Port 3 may be used to input /output port. The input and output functions can be
programmed under the control of the P3 latches or under the control of various special function
registers. Unlike Port 0 and Port 2, which can have external addressing functions and change all
eight-port b se, each pin of port 3 maybe individually programmed to be used as I/O or as one of
the alternate functions. The Port 3 alternate uses are:
INTERRUPTS:
Interrupts are hardware signals that are used to determine conditions that exist in external
and internal circuits. Any interrupt can cause the 8051 to perform a hardware call to an interrupt
–handling subroutine that is located at a predetermined absolute address in the program memory.
Five interrupts are provided in the 8051. Three of these are generated automatically by the
internal operations: Timer flag 0, Timer Flag 1, and the serial port interrupt (RI or TI) Two
interrupts are triggered by external signals provided by the circuitry that is connected to the pins
INTO 0 and INTO1. The interrupts maybe enable or disabled, given priority or otherwise
controlled by altering the bits in the Interrupt Enabled (IE) register, Interrupt Priority (IP)
register, and the Timer Control (TCON) register. . These interrupts are mask able i.e. they can be
disabled. Reset is a non mask able interrupt which has the highest priority. It is generated when a
high is applied to the reset pin. Upon reset, the registers are loaded with the default values.
Each interrupt source causes the program to do store the address in PC onto the stack and
causes a hardware call to one of the dedicated addresses in the program memory. The appropriate
memory locations for each for each interrupt are as follows:
Interrupt Address
RESET 0000
IE0 (External interrupt 0) 0003
TF0 (Timer 0 interrupt) 000B
IE1 (External interrupt 1) 0013
TF1 (Timer 1 interrupt) 001B
SERIAL 0023
2. Collects the output of ADC for every 10 sec and stores in buffer,
5. After data gets received then the controller sends the control action in order to
operate the devices.
DTMF-8870
The following session gives the total description about the DTMF M8870 – 01 and it’s
interfacing to the controller.
1. General description:
DTMF stands for Dual Tone Multiple Frequency. . It is numbers 0-9 and the
* and the # you press on your push-button telephone. This allows us to use mobile
phones and house push-button phones to act as “remote controls” The idea of
turning your air-conditioner on at home, whilst on the way home from work is only
possible with DTMF phone.
Every push-button phone and mobile telephone in the world has a DTMF
keypad. These telephone DTMF keypads are also fitted to many radios which allow
these radios to dial each other up, or into the phone network as they have a DTMF
keypad. An interesting fact for scanner users is that a DTMF decoder is available.
One Frequency from each the ‘high’ and ‘low’ group is assigned to each of
the 12 push buttons on your telephone. The four buttons “A, B, C & D” are not used
in telephones, and are found mostly in radios and other devices with DTMF keypads
(fig 1).
The DTMF Matrix, ignoring the last column (A, B, C, and D) bits is a
telephone keypad. Every time you press a button on any kind of phone these ‘dual
tones’ (1=697Hz+1209Hz) are both heard by you and sent down the line. A DTMF
decoder, of sorts, is in fact part of every telephones circuitry-it needs it, like a
decoder, to recognize the tones.
The M-8870 is a full DTMF Receiver that integrates both band split filter and decoder
functions into a single 18-pin DIP or SOIC package. Manufactured using CMOS
process technology, the M-8870 offers low power consumption (35 mW max) and
precise data handling. Its filter section uses switched capacitor technology for both
the high and low group filters and for dial tone rejection. Its decoder uses digital
counting techniques to detect and decode all 16 DTMF tone pairs into a 4-bit code.
Minimal external components required include a low-cost 3.579545 MHz color burst
crystal, a timing resistor, and a timing capacitor.
3. Functional description:
M-8870 operating functions include a band split filter that separates
the high and low tones of the received pair, and a digital decoder that verifies both
the frequency and duration of the received tones before passing the resulting 4-bit
code to the output bus.
3.1. Filter:
The low and high group tones are separated by applying the dual-tone
signal to the inputs of two 6th order switched capacitor band pass filters with
bandwidths that correspond to the bands enclosing the low and high group tones.
The filter also incorporates notches at 350 and 440 Hz, providing excellent dial tone
rejection. Each filter output is followed by a single-order switched capacitor section
that smoothes the signals prior to limiting. Signal limiting is performed by high gain
comparators provided with hysteresis to prevent detection of unwanted low-level
signals and noise. The comparator outputs provide full-rail logic swings at the
frequencies of the incoming tones.
3.2. Decoder:
VDD
The steering circuit works in reverse to validate the inter digit pause between
signals. Thus, as well as rejecting signals too short to be considered valid, the receiver will
tolerate signal interruptions (dropouts) too short to be considered a valid pause. This
capability, together with the ability to select the steering time constants externally, allows
the designer to tailor performance to meet a wide variety of system requirements.
4. Design considerations:
The input to the DTMF is given to the pin 2 (IN-) from any telephone
line as shown in the application diagram figure 4. The DTMF receiver receives the dual tone
coming from the telephone line and decodes the signal. The decoded 4 bit word is given to
the outputs Q1, Q2, Q3, and Q4 as shown in the fig 4. The StD pin goes high indicating that
the value on the out put pins is updated. The control logic checks continuously for the high
pulse on StD pin or develops an interrupt process when there is logic high on the StD pin.
The figure 5 shows output logics for the dual frequencies for the corresponding keys.
FIG 34: M8870 output truth table.
diagram for this system is as shown in the figure 6. Remote ON/OFF control may
be
given to electric appliances such as a slow cooker, exterior lighting and garage
heater
Product Description
Features
CM8870C
Input Configuration
Clock Circuit
Applications
• PABX
• Central office
• Mobile radio
• Remote control
• Remote data entry
• Call limiting
• Telephone answering systems