Arduino IOT Project: Nodemcu ESP8266 wifi Robot Car “L298N motor driver + Blynk + Joystick”

(Last Updated On: December 10, 2019)

Nodemcu ESP8266

Description:

Wifi Robot Car- In today’s tutorial, you will learn how to control a robot car using Arduino,  Nodemcu esp8266 wifi module and Blynk application. The joystick widget will be used to control the Forward…Reverse….right …and left movement..while the slider widget will be used to control the speed of the dc motors in real-time…As this project is based on WIFI, it means this robot car can be controlled from anywhere around the world. For remote controlling, an IP camera can be used for live video streaming. I will make a separate video on how to use the IP cameras.

This is the 5th  version of the Robot Car.while in the 4th version I used an ultrasonic sensor to make a safe distance maintaining robot car “Click here “. in this project, the speed of the robot car is automatically adjusted depending on the distance between the cars.


While in the 3rd version “Click Here ” I used the flex sensor and the joystick together to control the same robot car, in this project the flex sensor was used as the accelerator and the joystick was used to control the car’s forward, left, right and reverse movement, I named this project a wireless hand gesture + joystick robot car… While in the 2nd version “Click Here” I used only the joystick to control the speed and movement of the robot Car. The program used in this project was a little bit complex, so that’s why I decided to make another version of this robot and use a separate sensor for the speed controlling. So that’s why I created version 3.

 While in the first version”click here” I used an Android cell phone to control the Robot Car using the HC-05 Bluetooth module.

Today’s tutorial is based on my previous tutorial, in this tutorial, I explained, how to assemble the robot parts and how to use the L298N motor driver to control the forward, left, right and reverse movement. In this tutorial, I also explained how to control the speed of a dc motor using the pulse width modulation. If you are a beginner and you have never used the L298N motor driver then I highly recommend you should first watch this tutorial and then you can resume from here.


The components and tools used in this project can be purchased from Amazon, the components Purchase links are given below:

Arduino Uno: https://amzn.to/2YxCle6

Mega 2560: https://amzn.to/2ze1kdu

Robot Car chassis kit: https://amzn.to/2tTpkgo

L298N Dual H-Bridge motor driver: https://amzn.to/2XF4sam

Nodemcu esp8266 wifi module: Best price https://amzn.to/2NAvmiB

lm7805 Voltage Regulator: https://amzn.to/2IZEl5x

330-ohm resistors pack: https://amzn.to/2NtlAeh

5v 2A adaptor: https://amzn.to/2GsNfcw

2n2222 NPN transistors: https://amzn.to/2EmXsIb

10k Resistor: https://amzn.to/2KTd6OW

lm7805 Voltage Regulator: https://amzn.to/2IZEl5x

330-ohm resistors pack:  https://amzn.to/2NtlAeh

female DC power jack socket: https://amzn.to/2KEo1gt

470 UF capacitors: https://amzn.to/2xDCOzf

5×7 cm Vero board: https://amzn.to/2OHGbvn

female headers: https://amzn.to/2zqmtiJ

connection wires: https://amzn.to/2DpBuW7

Super Starter kit for Beginners: https://amzn.to/2KJvmKG

Jumper Wires: https://amzn.to/2KMoVXs

Bread Board: https://amzn.to/2MS4q8X

12v Adaptor:  https://amzn.to/2Ntr6h1

PCB plate: https://amzn.to/2IUwpCt

Variable Supply: https://amzn.to/2MT4Qfj

Digital Multimeter: https://amzn.to/2Nvft9i

Vero Board / stripboard: https://amzn.to/2MTf9jD

Soldering iron kit:  “best”  You guys should definitely purchase this: https://amzn.to/2zfoNuJ

Solder wire: https://amzn.to/2ufUMWf

Wire Stripper: https://amzn.to/2KOqxfU

wirecutter: https://amzn.to/2ucIq14

PCB small portable drill machine: https://amzn.to/2Nu62XF

*Please Note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

Circuit Diagram:

Nodemcu ESP8266

All the connections are exactly the same as explained in the L298N motor driver getting started Tutorial. “Click Here”.The only modification is the addition of the Nodemcu esp8266 wifi module. The Nodemcu tx pin is connected with the Arduino’s pin number 2 and the Nodemcu Rx pin is connected with the Arduino’s pin number 3 while the Nodemcu ground pin is connected with the Arduino ground. For the demonstration purchases, I will power the Nodemcu module using my laptop.


Blynk Application:

For the Blynk Application designing watch video tutorial.

Programming:

This project is based on two programs, this program is written for the Arduino while this program is written for the Nodemcu ESP8266 wifi module. First, let’s start with the Arduino programming.

Arduino programming

 


Nodemcu esp8266 wifi module programming

 

Watch Video Tutorial:

 

Some other Projects based on the Nodemcu and Blynk Application:

IOT 3 Phase Transformer Load monitoring using Arduino and Nodemcu

 

IOT Water Quality monitoring using Arduino,pH Sensor,Nodemcu ESP8266

 

Nodemcu ESP8266 DS18b20 Waterproof Temperature Sensor Monitoring

 

Wireless vibration sensor, iot vibration sensor, Industrial vibration sensor “nodemcu esp8266”

 

Esp8266 Iot battery monitor, battery voltage monitoring using nodemcu esp8266 wifi module

 

Recommended For You

About the Author: Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

Leave a Reply

Close