ESP8266 wifi robot remote control using android app Reviewed by Momizat on . HI Friends, In this tutorial we will build one wifi controlled robot using esp8266 and built android app using mit app inventor 2. See this robot in action, (Be HI Friends, In this tutorial we will build one wifi controlled robot using esp8266 and built android app using mit app inventor 2. See this robot in action, (Be Rating:
You Are Here: Home » IOT » ESP8266 wifi robot remote control using android app

ESP8266 wifi robot remote control using android app





HI Friends, In this tutorial we will build one wifi controlled robot using esp8266 and built android app using mit app inventor 2.

See this robot in action, (Best View on youtube Click Here)

Components You need:

  1. Robot Chasis (I have used my old dustbin for this, You can buy some good chassis from below.robot chassis amazon india   Buy Here
  2. DC Motor                                                                                                                                                                dc motor robot amazon india Buy Here
  3. L293D motor driver Module , You can also buy only chip and solder your own.                             l293D motor driver buy online amazon india Buy Here
  4. NodeMCU esp8266 12E, WIfi Module                                                                                                          nodemcu esp8266 wifi buy online india amazon Buy Here
  5. Few Jumper wire, Male Female                                                                                                                 Jumper Wire Amazon India Buy online Buy Here
  6. For power supply , I have used a mobile power bank.  (Buy Here)

Lets Begin. First You need to wire up the ESP8266 Node MCU board to the L293D motor Driver.

SCHEMATIC:

esp8266 robot control wifi

 

After connecting esp8266 with L293D motor driver, You also need to give power supply to your motor driver, also need to connect DC motor to your L293D H bridge motor driver.

 

Lets Understand Code and Flow:

If you are new to esp8266 programming, you can see my previous tutorials here.

Getting Started With ESP8266 – Your First IOT Project

code flow of the project  is like below.

  1. Initialize wifi library
  2. Initialize GPIO as output
  3. Then Give SSID and Password of your Home wifi Router.
  4. Connect to your router.
  5. Start a local web server on port 80 of esp8266
  6. Handle request at your wifi server, and make gpio on and off basis of that.
  7. Make an android app that can send request to the wifi server running on esp8266

 

Header to include in your project.

Define SSID and Password.

Running local server on port 80

Initialize library

Handling forward moment of robot request.

 

Download Complete Source and Android App Code Here. (Like/Share To Download)

P.S: The Source of android is static of ip 192.168.1.103 , You can change the code according to your need. If you are new to App Inventor, You can see my previous tutorials and videos.

 

 

 

About The Author

I am a maker, who loves to think, hack and build new electronics stuff, I always find time to document , share my knowledge with others. I am graduate in BTech(Electronics and Communication Engineering).

Number of Entries : 39
  • Tushar Chinchalkar

    Satya, this is good stuff! I’m looking to build a simple motor controller and led controller with PWM, and these tutorials are very helpful.. waiting to see more.

  • Mahnaz Sharifi

    Hi, i compiled this sketch ,it has this error pleaze help me.:)
    robot:48: error: ‘CreateWebServer’ was not declared in this scope

    CreateWebServer();

    ^

    exit status 1
    ‘CreateWebServer’ was not declared in this scope

Scroll to top