Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Mobile-controlled robot

By Gurmeet Singh December 24, 2020

 

Requirements:

  1. DTMF decoder
  2. 3.5mm audio cable (for connecting mobile to DTMF module)
  3. AT89S52
  4. 7805
  5. Geared dc motors
  6. Battery (10-12 v)
  7. 11.0592MHz crystal
  8. L293D IC (motor driver)
  9. Wheel for motors

Image showing back side of 8051 Microcontroller based Mobile operated Robot

Fig. 1: Image showing back side of 8051 Microcontroller based Mobile operated Robot

Image showing top view of 8051 Microcontroller based Mobile operated Robot

Fig. 2: Image showing top view of 8051 Microcontroller based Mobile operated Robot

 

Image showing front side of 8051 Microcontroller based Mobile operated Robot

Fig. 3: Image showing front side of 8051 Microcontroller based Mobile operated Robot

 

Image showing side view of 8051 Microcontroller based Mobile operated Robot

Fig. 4: Image showing side view of 8051 Microcontroller based Mobile operated Robot

Description:

Mobile controlling is done mainly with DTMF decoder. DTMF stands for Dual Tone Multi Frequency. This module can take up-to 4 bits of data at a time (i.e. 0-15 decimal values).

DTMF needs two mobile platforms, one for sending instructions while another for receiving them.

This module contains a IC which decodes the signals received and convert it into 4 bit data.

When you press the buttons on the keypad, a connection is made that generates two tones at the same time.

Image showing key mapping of DTMF frequencies for a numeric keypad

Fig. 5: Image showing key mapping of DTMF frequencies for a numeric keypad

 generate the tones 1336 Hz and 697 Hz. Sure, the tone 697 is the same for both digits, but it take two tones toWhen you press the digit 1 on the keypad, you generate the tones 1209 Hz and 697 Hz. Pressing the digit 2 will

make a digit and the decoding equipment  knows the difference between the 1209 Hz that would complete the digit

1, and a 1336 Hz that completes a digit 2.

This table shows the 4bit data output(bit by bit) from the DTMF decoder module according to the button pressed:

Table listing frequencies and respective digital output used in DTMF

Fig. 6: Table listing frequencies and respective digital output used in DTMF

 

In this project I have used only 5 keys; they are:

2 (for forward movement)

4 (for moving left)            5 (for stopping the bot)                                  6 (for moving right)

8 (for backward movement)

 

A particular DTMF module consists of signal pins (input signals from mobile via 3.5 mm jack), 4 pins (D0, D1, D2, D3,) for transmitting 4 bit data and one DV pin which becomes high on every successful data decoding.

In this project my DTMF 4bit pins are connected to PORT2 of MC (1.e. pin P2^0, 1, 2, 3).

The L293D inputs are connected to pin P1^1,2,3,4 respectively.

L293D will help us to drive DC geared motors perfectly.

In the coding part I have used a user defined header file L293D.h for controlling L293D acoording to the DTMF inputs.

You may also like:


  • What are the top development boards for AI and ML?

  • What are different types of industrial robots?

  • What are LoRa gateways and what types are available?

  • What battery chemistries are used in electric vehicles?

  • What are the different types of EV charging connectors?

  • What are the components of robotic arms and industrial robots?

Project Source Code

###



Coding (MAIN):

#include
#include
void main()
{
  P2=0xff;
  stop();
  while(1)
 {                            

               if(P2==0xf2)
               {
               forward();
               while(P2==0xf2);
               }
               if(P2==0xf4)
               {
               left();
               while(P2==0xf4);
               }
                if(P2==0xf5)
                {
                stop();
                while(P2==0xf5);
                 }
                if(P2==0xf6)
                {
               right();
               while(P2==0xf6);
                 }
                if(P2==0xf8)
               {
               backward();
               while(P2==0xf8);
                }
}
}





Coding (L293D):

sbit MRp=P1^4;
sbit MRn=P1^3;
sbit MLp=P1^2;
sbit MLn=P1^1;
void forward()
{
   MRp=1; MRn=0;
   MLp=1; MLn=0;
}
void backward()
{
    MRp=0; MRn=1;
    MLp=0; MLn=1;
}
void left()
{
  MRp=1; MRn=0;
  MLp=0; MLn=1;
}
void right()
{
   MRp=0; MRn=1;
   MLp=1; MLn=0;
}
void stop()
{
    MRp=0; MRn=0;
    MLp=0; MLn=0;
}

###

 


Circuit Diagrams

Circuit-Diagram-8051-Microcontroller-Based-Mobile-Operated-Robot

Project Video


Filed Under: Electronic Projects
Tagged With: 8051 microcontroller, at89s52, cell phone, mobile, robot
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Voltage mode pushpull is a nonsense SMPS?
  • Input impedance matching network
  • High Side current sensing
  • The comparison of different Tcl script checkers
  • Reducing "shoot-through" in offline Full Bridge SMPS?

RSS Electro-Tech-Online.com Discussions

  • Is AI making embedded software developers more productive?
  • Back to the old BASIC days
  • Parts required for a personal project
  • PIC KIT 3 not able to program dsPIC
  • Failure of polypropylene motor-run capacitors

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • What is AWS IoT Core and when should you use it?
  • AC-DC power supply extends voltage range to 800 V DC
  • Infineon’s inductive sensor integrates coil system driver, signal conditioning circuits and DSP
  • Arm Cortex-M23 MCU delivers 87.5 µA/MHz active mode
  • STMicroelectronics releases automotive amplifiers with in-play open-load detection

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe