Conventionally, wireless-controlled robots use RF circuits,which have the drawbacks of limited working range, limited frequency range and limited control. Use of a mobile phone for robotic control can overcome these limitations. It provides the advantages of robust control, working range as large as the coverage area of the service provider,no interference with other controllers and up to twelve controls.Although the appearance and capabilities of robots vary vastly, all robots share the features of a mechanical, movable structure under some form of control. The control of robot involves three distinct phases: reception, processing and action. Generally, the preceptors are sensors mounted on the robot, processing is done by the on-board microcontroller or processor, and the task (action) is performed using motors or with some other actuators.
PROJECT OVERVIEW
In this project, the robot is controlled by a mobile phone that makes a call to the mobile phone attached to the robot. In the course of a call, if any button is pressed,a tone corresponding to the button pressed is heard at the other end of the call. This tone is called ‘dual-tone multiple-frequency’ (DTMF) tone. The robot perceives this DTMF tone with the help of the phone stacked in the robot. The received tone is processed by the ATmega16 microcontroller with the help of DTMF decoder MT8870. The decoder decodes the DTMF tone into its equivalent binary digit and this binary number is sent to the microcontroller.The microcontroller is preprogrammed to take a decision for any given input and outputs its decision to 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 phone stacked in the robot acts as a remote. So this simple robotic project does not require the construction of receiver and transmitter units. DTMF signaling is used fr telephone signaling over the line in the voice-frequency band to the call switching centre. The version of DTMF used for telephone tone dialing is known as ‘Touch-Tone.’DTMF assigns a specific frequency (consisting of two separatetones) to each key so that it can easily be identified by the electronic circuit. The signal generated by the DTMF encoder is a direct algebraic summation, in real time, of the amplitudes of two sine (cosine)waves of different frequencies, i.e., pressing ‘5’ will send a tone made by adding 1336 Hz and 770 Hz to the other end of the line. The tones and assignments in a DTMF system are shown in Table I.
SCEMATIC OF CELLPHONE OPERATED LANDROVER
CIRCUIT DESCRIPTION
Fig. 1 shows the block diagram of the microcontroller-based mobile phoneoperated land rover. The important components of this rover are a DTMF decoder, microcontroller and motor driver. An MT8870 series DTMF decoder is used here. All types of the MT8870 series use digital counting techniques to detect and decode all the 16 DTMF tone pairs into a 4-bit code output. The built-in dial tone rejection circuit eliminates the need for pre-filtering. When the input signal given at pin 2 (IN-) in single-ended input configuration is recognised to be effective, the correct 4-bit decode signal of the DTMF tone is transferred to Q1 (pin 11) through Q4 (pin 14) outputs. Table II shows the DTMF data output table of MT8870. Q1 through Q4 outputs of the DTMF decoder (IC1) are connected to port pins PA0 through PA3 of ATmega16 microcontroller (IC2) after inversion by N1 through N4,respectively. The ATmega16 is a low-power, 8-bit, CMOS microcontroller based on the AVR enhanced RISC architecture. It provides the following features: 16 kB of in-system programmable Flash program memory with read-while-write capabilities, 512 bytes of EEPROM, 1kB SRAM, 32 general-purpose input/output (I/O) lines and 32 general-purpose working registers. All the 32 registers re directly connected to the arithmetic logic unit, allowing two independent registers to be accessed in one single instruction executed in one clock cycle. The resulting architecture is more code-efficient. Outputs from port pins PD0 through PD3 and PD7 of the microcontroller are fed to inputs IN1 through IN4 and enable pins (EN1 and EN2) of motor driver L293D, espectively, to drive two geared DC motors. Switch S1 is used for manual reset. The microcontroller output is not sufficient to drive the DC motors, so current drivers are required for motor rotation. The L293D is a quad, high-current, half-H driver designed to provide bidirectional drive currents of up to 600 mA at voltages from 4.5V to 36V. It makes it easier to drive the DC motors. The L293D consists of four drivers. Pin IN1 through IN4 and OUT1 through OUT4 are input and output pins, respectively, of driver 1 through driver 4. Drivers 1 and 2, and drivers 3 and 4 are enabled by enable pin 1 (EN1) and pin 9 (EN2), respectively. When enable input EN1 (pin 1) is high, drivers 1 and 2 are enabled and the outputs corresponding to their inputs are active. Similarly, enable input EN2 (pin 9) enables drivers 3 and 4. An actual-size, single-side PCB for cellphone-operated land rover is shown in Fig. 4 and its component layout in Fig. 5.
PCB LAYOUT FOR CELLPHONE OPERATED LANDROVER
SOFTWARE DESCRIPTION
The software is written in ‘C’ language and compiled using CodeVision AVR ‘C’ compiler. The source program is ed into hex code by the compiler. Burn this hex code into ATmega16 AVR microcontroller.The source program is well commented and easy to understand. First include the register name defined specifically for ATmega16 and also declare the variable. Set port A as the input and port D as the output. The program
will run forever by using ‘while’ loop. Under ‘while’ loop, read port A and test the received input using ‘switch’ statement. The corresponding data will output at port D after testing of the received data.
WORKING
In order to control the robot, you need to make a call to the cell phone attached to the robot (through head phone) from any phone, which sends DTMF tunes on pressing the numeric buttons. The cell phone in the robot is kept in ‘auto answer’ mode. (If the mobile does not have the auto answering facility, receive the call by ‘OK’ key on the rover-connected mobile and then made it in hands-free mode.) So after a ring, the cellphone accepts the call. Now you may press any button on your mobile to perform actions as listed in Table III. The DTMF tones thus produced are received by the cellphone in the robot. These tones are fed to the circuit by the headset of the
cellphone. The MT8870 decodes the received tone and sends the equivalent binary number to the microcontroller. According to the program in the microcontroller, the robot starts moving.When you press key ‘2’ (binary equivalent 00000010) on your mobile phone, the microcontroller outputs ‘10001001’ binary equivalent. Port pins PD0, PD3 and PD7 are high. The high output at PD7 of the microcontroller drives the motor driver (L293D). Port pins PD0 and PD3 drive motors M1 and M2 in forward direction (as per Table III). Similarly, motors M1 and M2 move for left turn, right turn, backward motion and stop condition as per Table III.
CONSTRUCTION
When constructing any robot, one major mechanical constraint is the number there a two-wheel drive or a four-wheel ive. Though four-wheel drive is more complex than two-wheel drive, it provides more torque and good control. Two-wheel drive, on the other hand, is very easy to construct. Top view of a four-wheel-driven land rover is shown in Fig. 3. The chassis used in this model is a 10×18cm2 sheet made up of parax. Motors are fixed to the bottom of this sheet and the circuit is affixed firmly on top of the sheet. A cellphone is also mounted on the sheet as shown in the picture. In the four-wheel drive system, the two motors on a side are controlled in parallel. So a single L293D driver IC can drive the rover. For this robot, beads affixed with glue act as support wheels.
PROGRAM FOR CELLPHONE OPERATED LANDROVER
Source program:
Robit.c
#include void main(void)
{
unsigned int k, h;
DDRA=0x00;
DDRD=0XFF;
while (1)
{
k =~PINA;
h=k & 0x0F;
switch (h)
{
case 0x02: //if I/P is 0x02
{
PORTD=0x89;//O/P 0x89 ie Forward
break;
}
case 0x08: //if I/P is 0x08
{
PORTD=0x86; //O/P 0x86 ie Backward
break;
}
case 0x04:
{
PORTD=0x85; // Left turn
break;
case 0x06:
{
PORTD=0x8A; // Right turn
break;
}
case 0x05:
{
PORTD=0x00; // Stop
break;
}
}
}
How this project is different from other home automation control system?
Controlling device using switches are common. From a few decades controlling devices using remote control switches like infrared remote control switch, wireless remote control switches, light activated switches are becoming popular. But these technologies have their own limitations. Laser beams are harmful to mankind.
Some technologies like IR remote control are used for short distance applications. In such case if we have system which does not require any radiations or which is not harmful, long remote control switch!! Yes here is the solution. Here I am introducing such a system which does not require any radiations, any laser beam which has no limitation of range, I mean it can be used from any distance from meters to thousands kilometers using a simple telephone line or mobile phone.
Here I am using a telephone as a media, which serves main part of this system, by using home phone as a local phone and another phone, either landline or mobile phone as a remote phone.
The “Home Automation Control System Using DTMF Telephone Line” project is a secure DTMF control system for intelligent houses.
With this implemented system, it is possible to safely control electricity operated domestic devices.
FEATURES
1. We can control up to 8 devices. It may be any electric or electronic appliances or devices with simple to heavy appliance. Each device is given a unique code. 2. It makes accurate switching, any false switching of device are not done so there is no risk for false switching. 3. Our local phone can be used for normal use by using a DPDT switch. So we need not use a separate telephone line for this device controlling. 4. To perform any operations through remote phone line, the user needs to dial to the local telephone then the respective code of the device is dialed. 5. This circuit not require any complex IC, so any one with little knowledge of electronics can construct this circuit, because it does not need any programmable IC’s or programming. 6. This system detects the ringing signal from your exchange with the help of ring detector and automatically switches ON. 7. This device saves our money. This circuit switches OFF after a time of 60 seconds. 8. Before changing the state of the device we can confirm the present status of the device. 9. This circuit gives an acknowledgement tone after switching ON the devices to confirm the status of the device. 10. We can control devices from any local telephone. It can also be controlled by PCO.
TAKING A TOUR OF PROJECT
This system uses Dual Tone Multi Frequency (DTMF) technology of our telephone set. Every telephone set will have this facility. We have two type of dialing facilities in our telephone system (1)pulse dialing mode (2) tone dialing mode. Here this system works on tone dialing mode. The DTMF mode is shortly called as tone dialing mode. This system is divided into two sections. 1: Remote section 2: Local control section.
What is DTMF?
When you press a button in the telephone set keypad, a connection is made that generates a resultant signal of two tones at the same time. This two tones are taken from a row frequency and a column frequency. The resultant frequency signal is called a “Dual Tone Multiple Frequency “. These tones are identical and unique. A DTMF signal is the algebraic sum of two different audio frequencies, and can be expressed as follows: f(t) = A0sin(2*?*fa*t)+B0sin(2*?*fb*t)+…--- > (1) Where fa and fb are two different audio frequencies with A and B as their peak amplitude and f as the resultant DTMF signal. fa belongs to the low frequency group and fb belongs to the high frequency group. Each of the low and high frequency groups comprise four frequencies from the various keys present on the telephone keypad; two different frequencies, one from the high frequency group and another from the low frequency group are used to produce a DTMF signal to represent the pressed key. The amplitudes of the two sine waves should be such that
(0.7<(A\B)<0.9)v> (2)
The frequencies are chooses such that they are not the harmonics of each other. The frequencies associated with various keys on the keypad are shown in figure(A). When you send this DTMF signals to the telephone exchange through cables, the servers in the telephone exchange identifies these signals and makes the connection to the person you are calling.
CIRCUIT DIAGRAM
RELAY DRIVER CIRCUIT
DESCRIPTION
The brain of the switcher is the Atmel AT89xxx micro controller U3. Incoming ring is detected via C10, D9, R16 and the opto- coupler U6 and connected to pin 12 of the micro controller.
The incoming call is answered by connecting the circuit based around Q1 and R4 (an electronic holding coil) to the line. One output from micro controller (pin 13) is used to output a 325Hz software generated tone into the telephone line via the Q2, This tone is used to signal the user when commands have been completed or of any command errors.
The micro controller examines incoming signals on port 1 (P1.0 - P1.4) and controls the outputs over port 0 (P0.0 - P0.7).
Connection to the telephone network is via RJ11 connector K2. Socket K3 is connected in parallel with socket K2 and allows a telephone to be connected at the same time as the circuit. A voltage-dependent resistor (visitor) is connected across these two sockets, which provides protection against voltages in excess of 130 V.
The AT89C51 is a low-power, high-performance CMOS 8-bit microcomputer with 4K bytes of Flash programmable and erasable read only memory (PEROM).
The device is manufactured using Atmel’s high-density nonvolatile memory technology and is compatible with the industry- standard MCS-51 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.
By combining a versatile 8-bit CPU with Flash on a monolithic chip, the Atmel AT89C51 is a powerful microcomputer which provides a highly-flexible and cost-effective solution to many embedded control applications.
DTMF DECODER INTERFACE
DTMF detection and decoding is provided by U5. This chip, an 8870, is a complete DTMF receiver, which is able to detect and decode all 16 DTMF tone pairs into a 4-bit code. When a valid DTMF digit is detected the 4-bit code is placed on pins 11-14 and a 'data available' output, pin 15, is set to logic high. It is connected to the telephone line via C2 and R9 and R14 a hexadecimal value corresponding to the two tones at its outputs Q1 to Q4.
These outputs are latched and so are only valid when the control output STD is high. For its operation the integrated circuit requires a base of times, generated in this case by the quartz crystal of 3.579545MHz. This crystal is very common in the market since he is the employee for the systems of color of the TV equipment