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 Mert Arduino application in which by entering the IP address, you can control by giving the directional command using the smartphone.
HARDWARE REQUIRED
- Node MCU (esp82 66-12e v1.0) Wi-fi Board -1
- L298N Motor driver Module -1
- Jumper wires (male to male) - 20 pcs
- Jumper wires (male to female) - 20 pcs
- 170 pt. Breadboard -1
- Micro USB cable-1
- 1050mah rechargeable battery Li-Po battery -1 (not included in the kit)
- 2-wheel car chassis kit -1
SOFTWARE REQUIRED
Arduino IDE 1.8.10 (programmable platform for Arduino)
Click To Download: https://www.arduino.cc/en/Main/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 NodeMCU WIFI Serial Wireless 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
LIBRARY & APPLICATION REQUIRED
Before uploading the code, must install this library:
Liquid Crystal - https://drive.google.com/open?id=14CpOZPTgmPcHedB1oDqeTVFI4eMwMcf7
RTClib - https://drive.google.com/open?id=1AxQfcdvPMK37FLtGTzzdTTGBCBBH58mX
Wire - https://drive.google.com/open?id=1Ej-R75OikJAlHrj275zYvKNzDN3cm0zi
After downloading all these libraries go to sketch -> include libraries -> add .zip libraries
APPLICATION
Mert Arduino for robot car
https://drive.google.com/open?id=1K60pbblXTMkD7c6GsYpvLepKlQ2blL0k
HOW TO INSTALL ESP BOARDS
CIRCUIT CONNECTION
- Connect the ENA pin of the L298N Motor Driver module to D5 pin of the NodeMCU board.
- Connect ENB pin of L298N Motor Driver Module to 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 VCC pin of L298n motor driver module to Vin pin of NodeMCU board.
CODE
Before uploading the code, you need to check the IP address that we will enter in the application Mert Arduino
Check IP address
https://drive.google.com/open?id=1vAT2aV5I8pp43TyAiBd5Z4ZkGsRQ4gXd
after uploading check out the serial monitor where you will get the IP address, now enter this Ip address to the application.
Now, upload the main code
https://drive.google.com/open?id=1XaUXA_IjslnF68XQNb8Xd4ab6fJFjiDB
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 we develop a remote control program. The program connected with wi-fi to communicate with the robot. Wireless control is the most important basic needs of all people. Wireless network-controlled robots use wi-fi modules.
- Arduino blue control android application will transmit command 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.
Click to watch the tutorial
For more tutorials subscribe our channel REES52 on YouTube