Mobile Operated robot(DTMF Tech.)



MOBILE OPERATED ROBOT: The robot is made for the purpose military operation, spy robot or navigator in forest.The mobile operated robot is a very small application of DTMF technology we showing you how we can use the DTMF to operate a robot  because the robot is operated by a mobile so the range of the robot communication is not limited its just depends on the network of the mobile and in present senario the mobile network is everywhere.





DTMF KEYPAD

DTMF: DTMF(Dual Tone Multi-Frequency) , better known as touch-tone is a system of signal tones in telecommunications.This technology is used in several of Applications for example voice mail, customer care,telephone banking etc.



There are twelve DTMF signals, each of which is made up of two tones from the following selection.

ROW'S- 697 Hz ,770 Hz ,852 Hz, 941 Hz.
COLUMN'S- 1209 Hz, 1336 Hz, 1447 Hz , 1633 Hz.

The tones are divided into two groups (low and high) , and each DTMF signal uses one of tone from each group. This prevents any harmonics from being misinterpreted as part of the signal.






DTMF DECODER PIN OUT


DTMF Decoder: The DTMF tone is decoded by the DTMF Decoder ic that is HT9170 which decoded a dtmf tone and gives a four bit data at the output of the decoder.Now this four bit data can be use  for  making the decision as for the key pressed on the mobile keypad the data have different for a different key.some important pin of HT9170 are listed below:-


1. Pin 15(DV data valid): The data valid pin is become high when the dtmf decoder receive a valid data or this pin hold's the 5v when the key is pressed.


2. Pin 10(OE output enable): This pin is use to enable the output when this pin is high the data pin are active and the decoded output is sent to the decoded pin.


3. Pin 11-14(D0-D3 data pins): These are the data pins which makes the 4 bit data after pressing a key on the mobile such as 0001 for pressing the key 1 and other are shown into the picture shown.

4. Pin X1 or X2: These pin's are use for providing the oscillation to the ic basically a xtal of 3.579 MHz is used here. for more details download the HT9170 datasheet .DOWNLOAD 

SOFTWARE:  For the program of this circuit click here 




CIRCUIT: The circuit is made in different modules



1.Power supply : For power supply just click here 




DTMF DATA OUTPUT





2.Input or DTMF decoder:




DTMF Application circuit

                                                                                   




3.Decision (microcontroller 8051): For 8051 microcontroller circuit just click here  

4. Motor driver circuit:  The IC-l293d  is well known as motor driver this is 12v motor driver we use the motor driver IC because our micro-controller is work on 5v and the motor have different operating voltage. So to meet with these parameter we use these driver IC there are so many other IC available for different configuration.



 


The full circuit for mobile operated robot is as follow :










back & front view of circuit




robot













final robot








mobile operated robot program



Writing a c program for mobile operated robot is not a very difficult task we just have to take the basic block diagram in our mind that a microcontroller get the input and give the decision based on our program.
Now form the DTMF decoder we will get the 4 bit data on the port2 of microcontroller 8051.We also know that the data given by decoder is equal to a number pressed by input mobile.

HARDWARE CONFIGURATION: Before writing the program we should know the hardware configuration of the circuit where the input's and output's are connected and for what task we have to make the program.
INPUT'S: The microcontroller 8051 is connected with DTMF decoder as follow -the port 1 is the input port where the DTMF data bits  D0 to D3 are connected with P1.0 to P1.3 as given in the below fig.



DTMF &  MICROCONTROLLER  CONNECTION 

**Note:-for making the port1 as an input port pass 0xff at the port1.




OUTPUT'S: The microcontroller 8051 is connected with motor driver as follow: the port 2 is the output port and the pin connection is shown in fig. for moving the motor's in forward direction we have to give 10 to the motor or (M1A =0  & M1B =1) this condition makes the motor M1 in forward direction.




MOTOR DRIVER & MICROCONTROLLER CONNECTION

**Note:-for making the port2 as an output port pass 0x00 at the port2.


CREATING LOGIC:  Now the main part of the programming  is to create a decision on the basis of some condition like when the key 2 is press then send some data to the output prot of the  microntroller now I create  a data according to my project you can create your own.I am using the key 2,4,6,8 & 5 for controlling the robot.





DECISION BASED ON CONDITION

FLOW CHART: Programming is an art which includes some step's the flow chart is also a step of programming we can make the program without a flow chart but for making an efficient and error free program then we should use this step a flow chart of the program is shown below.






C PROGRAM FOR MOBILE OPERATED ROBOT:

****---------------------------------------------------------------------------------------------------------------------****

#include<reg51.h> //header file for 8051 microcontroller
void Main()
{
P1=0xff; //initialize as an input port
P2=0x00; //initialize as an output port
while(1) //infinte loop
   {
     if(P1==0xf2) //check for key 2-decision is forward
        {
          P2=0x0a; //m1 and m2 forward as 1010 these are four lsb bits of port 2
        }
      else if(P1==0xf4) //check for key 4-decision is left
         {
           P2=0x08;
        }
       else if(P1==0xf6) //check for key 6-decision is right
        {
            P2=0x02;
      }
      else if(P1==0xf8) //check for key 8-decision is backward
       {
           P2=0x05;
       }
      else if(P1==0xf5) //check for key 5-decision is stop
      {
           P2=0x00;
     }
    else
           P2=0x00;
    }
}

****--------------------------------------------------------------------------------------------------------------------****





 
Copyright Electronics Projects And Details All Rights Reserved
ProSense theme created by Dosh Dosh and The Wrong Advices.
Blogerized by Alat Recording Studio Rekaman.