INTRODUCTION
In this project, we will make an Iot-based wireless Wi-fi robot car using the Nodemcu ESP8266-12e Wi-Fi board with the L298n Motor driver module. We will interface this Wi-fi Car with the Mert Arduino application, in which you can control it by entering the IP address, and you can control it by giving the directional command using the smartphone.
HARDWARE REQUIRED
- Node MCU (esp82 66-12e v1.0) Wi-fi Board -1pc
- L298N Motor Driver Module -1pc
- Jumper Wires (male to male) - 20pcs
- Jumper Wires (male to female) - 20pcs
- 170 pt. Breadboard -1pc
- Micro USB Cable-1pc
- 1050mAh rechargeable battery Li-Po battery -1 (not included in the kit)
- 2-wheel Car Chassis Kit -1pc
SOFTWARE REQUIRED
Arduino IDE 1.8.10 (programmable platform for Arduino)
Click here to download the software

SPECIFICATIONS
L298N Motor Driver Module:
The L298N is a dual-channel H-Bridge motor driver capable of driving a pair of DC motors. That means it can individually drive up to two motors, making it ideal for building two-wheel robot platforms.

NodeMCU ESP8266 CP2102 Module:
- ESP8266 CP2102 NodeMCU LUA ESP-12E WIFI Serial Wireless Module
- Built-in Micro-USB, with flash and reset switches, easy to program
- Full I/O port and Wireless 802.11 supported, direct download, no need to reset
- Arduino compatible works great with the latest Arduino IDE/Mongoose IoT/Micro Python
REQUIRED LIBRARY
Before uploading the code, you must install this library:
- Liquid Crystal - Click to open 👈
- RTClib - Click to open 👈
- Wire - Click to open 👈
After downloading all these libraries, go to Sketch -> Include Libraries -> Add .zip libraries
REQUIRED APPLICATION
Mert Arduino for robot car- Click to open 👈
HOW TO INSTALL ESP BOARDS
CIRCUIT CONNECTION
- Connect the ENA pin of the L298N Motor Driver module to the D5 pin of the NodeMCU board.
- Connect the ENB pin of the L298N Motor Driver Module to the D6 pin of NodeMCU board.
- Connect the IN1 pin of the L298n motor driver module to the D8 pin of the NodeMCU board.
- Connect the IN2 pin of the L298n motor driver module to the D7 pin of the NodeMCU board.
- Connect the IN3 pin of the L298n motor driver module to the D4 pin of the NodeMCU board.
- Connect the IN4 pin of the L298n motor driver module to the D3 pin of the NodeMCU board.
- Connect the GND pin of the L298n motor driver module to the GND pin of the NodeMCU board.
- Connect the VCC pin of the L298N motor driver module to the Vin pin of NodeMCU board.

CODE
Before uploading the code, you need to check the IP address that we will enter in the Arduino application, Mert Arduino.
Check the IP address.
After uploading, check out the serial monitor where you will get the IP address, now enter this IP address into the application.

Now, upload the main code-
WORKING AND OUTPUT
- After uploading the code, open the application.
- The wi-fi address for the phone and board should be the same.
- The operating system of the smart mobile phone in Android, and we develop a remote control program. The program connected with wi-fi to communicate with the robot. Wireless control is the most important basic need of all people. Wireless network-controlled robots use wi-fi modules.
- Arduino blue control android application will transmit commands using wi-fi to the car so that it can move in the required direction, like moving forward, reverse, turning left, turning right and stop.