Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Abstract:
The aim of this project is to design automatic robot which is capable of receiving a set
of command instructions in the form of DTMF tones and performs the necessary actions. Here
DTMF stands for “Dual tone multiple frequency”.
The project makes use of a microcontroller which acts as a central controlling unit. This
module is capable of communicating with the input and the output modules. The output module
is formed by the motors used for controlling the direction of the motor i.e. the forward and
backward movement of the robot and also the GSM mobile which is used for performing
communication with the remotely located authorities. The micro controller reads the
mobile sensor continuously to take any action
2. Introduction
In the present world of wireless technology every thing is going to be digital
and wireless, and the cell phone is the key player in wireless technology today.
And today technology made the possessing of a mobile, considered as a basic
commodity.
And the trends in wireless technology changing day-by-day and today the
working is going on how to develop remote devices with out the presence of man
and to reduce to the time factor and labor, and our project belongs to that race
and by using it we can control any electronic devices through a touch cell phone,
with one Call
DT
GSM
INTRODUCTION:
MOBILE
Conventionally Wireless-controlled Robots use RF circuits, which have limited working range,
limited frequency range and limited control. Use of a mobile phone for robotic control can
overcome these limitations. It provides the advantage of robust control, working range as large
as the area of the service provider, no interference with other controllers. Although the
appearance and capabilities of robot vary vastly, all robots share feature of a mechanical,
DTMF
movable structure under some form of control. The control of Robot involves three distinct
phases: perception, processing and action. Generally, the preceptors are sensors mounted on the
robot, processing is done by the onboard microcontroller or processor, and the task is
performed using motors or with some other actuators.
AN OVERVIEW:
In this project the robot, is controlled by a mobile phone that makes call to the phone attached
to the robot. In the course of the call, if any button is pressed control corresponding to the
button pressed is heard at the end of the call. This is called Dual Tone Multi Frequency
(DTMF). The robot receives this DTMF tone with the help of the phone stacked in the robot.
The received tone is processed by the microcontroller (PIC16F73) with the help of DTMF
decoder (HT9170), which decodes the DTMF tone in to its equivalent binary digit and this
binary numbers are then send to the microcontroller. The microcontroller is programmed to
take a decision for any given input and outputs it decisions to the motor drivers in order to drive
the motors for forward or backward motion or a turn. The mobile that makes a call to the
mobile attached to the robot acts as a remote, so this does not require any transmitter or receiver
units. DTMF signaling is used for telephone signaling over the line in the voice frequency band
to the call switching center. The version of DTMF used for telephone dialing is called touch
tone DTMF assigns a specific frequency (consisting of two separate tones) to each keys that it
can easily be identified by the electronic circuit. The signal generated by the DTMF encoder is
the direct algebraic submission, in real time of the
amplitudes of two sine or cosine waves of different frequencies, that is pressing 5 will send a
tone made by adding 1336 Hz and 770 Hz to the other end of the mobile phone. The table
below shows the corresponding frequencies of the numbered buttons.
CIRCUIT DESCRIPTION:
3.1. Power supply
Power supply is the major concern for every electronic device .Since the controller and other
devices used are low power devices there is a need to step down the voltage and as well as
rectify the output to convert the output to a constant dc
3.1.1 Battery
In electronics, a battery or voltaic cell is a combination of many electrochemical Galvanic
cells of identical type to store chemical energy and to deliver higher voltage or higher current
than with single cells.
In our project we make use of a battery or a voltaic cell instead of house hold power
supply in order to assure portability to the device so that it can be carried as per the
requirement. Here we employ a 9 volts transistor radio battery.
3.1.2 Rectifier
Usually rectifiers are employed to convert an ac input to a constant dc. But the case here is the
input itself is a DC then is there any necessity to employ a rectifier in the circuit, the answer is
quite simple even if the battery is connected in reverse polarity the rectifier takes care about so
we there will not be any damage for the device even if the polarity of the battery is connected in
reverse direction
There are many rectifiers available in the market some of them are:-
The rectification is done by using one or more diodes connected in series or parallel.
If only one diode is used then only first half cycle is rectified and it is termed as half wave
rectification and the rectifier used is termed as Half wave rectifier.
If two diodes are employed in parallel then both positive and negative half cycles are
rectified and this is full wave rectification and the rectifier is termed as Full wave rectifier.
If the diodes are arranged in the form of bridge then it is termed as Bridge rectifier, it
acts as a full wave rectifier.
These rectifiers are available in the market in the form of integrated chips (I.Cs)
The voltage regulator is used for the voltage regulation purpose. We use IC 7805 voltage
regulator.
The IC number has a specific significance. The number 78 represents the series while
05 represent the output voltage generated by the IC
LED’s are also employed in other areas for many purposes. The fallowing are the
advantages of using LED’s.
• It helps us while troubleshooting the device i.e. when the device is malfunctioning
it would be easy to detect where the actual problem araised
• LED employed with microcontroller verifies whether data entered is correct bus
number or not
• It verifies the functionality of the power supply.
3.2.PIC MICROCONTROLLER
PIC 16 SERIES-PIC16F73
PIC is a family of Harvard architecture microcontrollers made by Microchip Technology,
derived from the PIC1640 originally developed by General Instrument's Microelectronics
Division. The name PIC initially referred to "Peripheral Interface Controller".
It is available in different configurations viz 8bit,16 bit,32 bit with instructions set as given
below :
Under 8 bit comes-PIC10 xxxx, PIC12 xxxx, PIC16 xxxx, PIC18 xxxx.(12 bit instruction set)
PICs are popular with developers and hobbyists alike due to their low cost, wide availability,
large user base, extensive collection of application notes, availability of low cost or free
development tools, and serial programming (and re-programming with flash memory)
capability.
• Watchdog Timer (WDT) with its own on-chip RC oscillator for reliable operation.
Peripheral Features:
• Timer1: 16-bit timer/counter with prescaler, can be incremented during SLEEP via external
crystal/clock.
• Timer2: 8-bit timer/counter with 8-bit period register, prescaler and postscaler.
• Synchronous Serial Port (SSP) with SPI (Master mode) and I2C(Slave).
• Parallel Slave Port (PSP), 8-bits wide with external RD, WR and CS controls (40/44-pin
only).
CMOS Technology:
PIN DIAGRAM
PIN DESCRIPTION
MCLR-(pin 1)
PIC16F7X devices have a noise filter in the MCLR Reset path. The filter will detect and ignore
small pulses. It should be noted that a WDT Reset does not drive MCLR pin low. The behavior
of the ESD protection on the MCLR pin has been altered from previous devices of this family.
Voltages applied to the pin that exceed its specification can result in both MCLR Resets and
excessive current beyond the device specification during the ESD event. For this reason,
Microchip recommends that the MCLR pin no longer be tied directly to VDD.
RESET
PORTA is a 6-bit wide, bi-directional port. The corresponding data direction register is TRISA.
Setting a TRISA bit (= ‘1’) will make the corresponding PORTA pin an input (i.e., put the
corresponding output driver in a Hi-Impedance mode). Clearing a TRISA bit (= ‘0’) will make
the corresponding PORTA pin an output (i.e., put the contents of the output latch on the
selected pin).
Reading the PORTA register reads the status of the pins, whereas writing to it will write to the
port latch. All write operations are read-modify-write operations. Therefore, a write to a port
implies that the port pins are read, the value is modified and then written to the port data latch.
GND –(pin 8)
OSC1/CLKIN-(pin 9)
which has 1/4 the frequency of OSC1, and denotes the instruction
cycle rate.
OSCILLATOR TYPES
PORTC is an 8-bit wide, bi-directional port. The corresponding data direction register is
TRISC. Setting a TRISC bit (= ‘1’) will make the corresponding PORTC pin an input (i.e., put
the corresponding output driver in a Hi-Impedance mode). Clearing a TRISC bit (= ‘0’) will
make the corresponding PORTC pin an output (i.e., put the contents of the output latch on the
selected pin).
PORTC is multiplexed with several peripheral functions PORTC pins have Schmitt Trigger
input buffers. When enabling peripheral functions, care should be taken in defining TRIS bits
for each PORTC pin.
Vss(pin 19)
Vdd(pin 20)
PORTB is an 8-bit wide, bi-directional port. The corresponding data direction register is
TRISB. Setting a TRISB bit (= ‘1’) will make the corresponding PORTB pin an input (i.e., put
the corresponding output driver in a Hi-Impedance mode). Clearing a TRISB bit (= ‘0’) will
make the corresponding PORTB pin an output (i.e., put the contents of the output latch on the
selected pin).
Each of the PORTB pins has a weak internal pull-up. A single control bit can turn on all the
pull-ups. The weak pull-up is automatically turned off when the port pin is configured as an
output. The pull-ups are disabled on a Power-on Reset.
CORE ARCHITECTURE
Figure 2.1: Showing a typical microcontroller device and its different subunits
Unlike most other CPUs, there is no distinction between memory space and register space
because the RAM serves the job of both memory and registers, and the RAM is usually just
referred to as the register file or simply as the registers
ELECTRICAL CHARACTERISTICS
Voltage on any pin with respect to VSS (except VDD, MCLR. and
RA4) ......................................... -0.3V to (VDD + 0.3V)
2: Voltage spikes below VSS at the MCLR pin, inducing currents greater than 80 mA, may
cause latch-up. Thus,
a series resistor of 50-100Ω should be used when applying a “low” level to the MCLR pin,
rather than pulling
3.5 Oscillators
PIC16F877A can work with four different configurations of an oscillator. Since configurations
with crystal oscillator and resistor-capacitor (RC) are the ones that are used most frequently,
these are the only ones we will mention here. Microcontroller type with a crystal oscillator has
in its designation XT, and a microcontroller with resistor-capacitor pair has a designation RC.
This is important because you need to mention the type of oscillator when buying a
microcontroller.
XT Oscillator
Crystal oscillator is kept in metal housing with two pins where you have written down the
frequency at which crystal oscillates. One ceramic capacitor of 30pF whose other end is
connected to the ground needs to be connected with each pin.
Oscillator and capacitors can be packed in joint case with three pins. Such element is called
ceramic resonator and is represented in charts like the one below. A center pin of the element is
the ground, while end pins are connected with OSC1 and OSC2 pins on the microcontroller.
When designing a device, the rule is to place an oscillator nearer a microcontroller, so as to
avoid any interference on lines on which microcontroller is receiving a clock.RC Oscillator.
In applications where great time precision is not necessary, RC oscillator offers additional
savings during purchase. Resonant frequency of RC oscillator depends on supply voltage rate,
resistance R, capacity C and working temperature. It should be mentioned here that resonant
frequency is also influenced by normal variations in process parameters, by tolerance of
external R and C components, etc.
Above diagram shows how RC oscillator is connected with PIC16F877A. With value of
resistor R being below 2.2k, oscillator can become unstable, or it can even stop the oscillation.
With very high value of R (ex.1M) oscillator becomes very sensitive to noise and humidity. It is
recommended that value of resistor R should be between 3 and 100k. Even though oscillator
will work without an external capacitor (C=0pF), capacitor above 20pF should still be used for
noise and stability. No matter which oscillator is being used, in order to get a clock that
microcontroller works upon; a clock of the oscillator must be divided by 4. Oscillator clock
divided by 4 can also be obtained on OSC2/CLKOUT pin, and can be used for testing or
synchronizing other logical circuits.
Following a supply, oscillator starts oscillating. Oscillation at first has an unstable period and
amplitude, but after some period of time it becomes stabilized.
Figure below shows the block diagram of the circuit of this microcontroller based robot. The
important components of this robot are DTMF decoder, Microcontroller and motor driver. An
HT9170 series DTMF decoder is used in this circuit, which uses the digital counting techniques
to detect and decode all sixteen DTMF tone pairs into a four bit code output. The built-in dial
tone rejection circuit eliminates the need for pre filtering.
Phone on the transmitting side:
The person who wants to switch on/off any device kept at the controller side calls from a phone
and, once the call gets picked up, enters the password and tones for a corresponding device.
Every key has to be pressed for a minimum amount of time to get it latched at the decoder IC.
The mobile phone on the receiver side picks up the phone automatically after 5seconds, and
then makes the tones available to the DTMF tone decoder IC through the headphone jack of the
phone.
The HT9170 series are Dual Tone Multi Frequency (DTMF) receivers integrated with digital
decoder and bandsplit filter functions. The HT9170B and HT9170D types supply power-down
mode and inhibit mode operations. All types of the HT9170 series use digital counting
techniques to detect and decode all the 16 DTMF tone pairs into a 4-bit code output. Highly
accurate switched capacitor filters are employed to divide tone (DTMF) signals into low and
high group signals. A built-in dial tone rejection circuit is provided to eliminate the need for
pre-filtering.
The DTMF tone decoder IC converts the received tones to their respective binary values and
then gives them as an input to the microcontroller through D3-D0.
The DTMF tone decoder IC’s internal architecture consists of a band split filter section which
separates the low and the high tone of the received tone pair, followed by a digital
decode(counting) section which verifies both the frequency and duration of the received tones
before passing resultant 4-bit code to the output bus.
THE WORKING:
In order to control the robot, we make a call to the phone attached to the robot from any phone.
Now the phone is picked up by the phone on the robot through auto answer mode (which is in
the phone already just we have to enable it). Now after the circuit is ready and all hex codes are
fetched we are ready to control the robot.
As shown in the above table, on pressing the key from mobile phone, DTMF decoder decodes
the code and conveys to microcontroller which in turn controls the motor in code allotted
direction.
2. Password Protection:
Project can be modified in order to password protect the robot so that it can be operated only if
correct password is entered. Either cell phone should be password protected or necessary
modification should be made in the assembly language code. This introduces conditioned
access & increases security to a great extent.