Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Sensor Series
      • 3D Printing
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • 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
  • 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 Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

Submit a Guest Post

submit a guest post

EE TECH TOOLBOX

“ee
Tech Toolbox: Power Efficiency
Discover proven strategies for power conversion, wide bandgap devices, and motor control — balancing performance, cost, and sustainability across industrial, automotive, and IoT systems.

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.

  • Lighting bus needed: 2kW at 40Vdc
  • Current sense transformer with Phase Shift Full Bridge
  • Interfacing Flash chip to FPGA
  • Regarding the element values for the cascode current mirror used in the DAC.
  • What to study as a Mechanical Engineer getting into RF?

RSS Electro-Tech-Online.com Discussions

  • strange laptop problem
  • JLCPBC are using a different shipping company = less $$$$$$$$
  • Manually actuate fuel tank selector solenoid
  • Help please! BLDC driver circuit using the IR2136s and the STP80NF06 MOSFETS
  • need two ICs

Featured – Real Time Hardware Filter Design

  • Practical implementation of bandpass and band reject filters
  • Practical application of hardware filters with real-life examples
  • A filter design example
  • Types of filter responses
  • What are the two types of hardware filters?
  • What are hardware filters and their types?

Recent Articles

  • GigaDevices introduces 32-bit MCUs with integrated DSP and FPU support
  • Grinn introduces 8-core SBC supporting AI-ready embedded development
  • EPC’s 100 kHz BLDC inverter supports high-efficiency motion control
  • Melexis announces 5 W smart driver to supports sensorless FOC operation
  • STMicroelectronics’ motion sensor simplifies industrial IoT system design

EE ENGINEERING TRAINING DAYS

engineering
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • 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
      • Sensor Series
      • 3D Printing
      • AI
      • ARDUINO Compatible Coding
      • Audio Electronics
      • Battery Management
      • Beginners Electronics Series
      • Brainwave
      • Digital electronics (DE)
      • Electric Vehicles
      • EMI/EMC/RFI
      • EVs
      • Hardware Filters
      • IoT tutorials
      • LoRa/LoRaWAN
      • Power Tutorials
      • Protocol
      • Python
      • RPI Python Programming
      • Sensors
      • USB
      • Thermal management
      • Verilog
      • 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
  • Guest Post Guidelines
  • Advertise
  • Subscribe