How to Make Arduino Wifi Control Car Using Mobile
6726 Views, 6 Favorites, 0 Comments
How to Make Arduino Wifi Control Car Using Mobile
In this article, we're creating the esp8266-powered smart vehicle. This car with a WiFi remote operates with the ESP8266 Module, also called NodeMCU. This module is much more powerful than the traditional Arduino UNO Board. The module has significantly more RAM, and additionally, greater processing power. Most important is that it comes with a built-in WiFi Module. The small NodeMCU has a MicroUSB port and is capable of operating using 7-12V. You are able to program it using the Arduino IDE.
Supplies
What Is WiFi Car?
This is a basic automobile made from simple parts. The WiFi-controlled robot operates on the WiFi signal. Let me explain in detail.
When we first connect the entire circuit using the Power Supply, then the NodeMCU creates a server using the provided SSID and Password. Then, we need to connect to the Hotspot and then connect to that same address. (i.e. 192.168.4.1) (i.e. 192.168.4.1) an indication to the browser address bar, but it's not professional looking.
The ESP8266 is a Smart Car:Let's say you want to allow the Robot an ESP the to follow the Forward command. Then, you must enter the URL of the browser bar and enter 192.168.4.1/F (We need to declare F to forward within the program.) to connect your car to WiFi using NodeMCU. Similar to the manner, we must declare all preferred directions within the esp8266 WiFi control code. Then, one by one writing all the IP addresses is not an ideal solution in my opinion.
Therefore, instead of typing each time into the address field, here we'll use an Android app and, using the app, we'll send the signal for the microcontroller. By following the instructions the microcontroller sends information to the motor driver via the connection to the RC connection. connection.
ESP8266 Remote Control Car Schematics:
Here are the schematics and circuit diagram of this ESP8266 Wireless Remote Control Car. To drive the motor, I chose L298N. It is a powerful motor driver, which can operate a between 5V and 35V DC Motor with a up to 25W.
We will use 3S 12V Li-Po Battery so the maximum output per channel will be approximately 2A. This is enough to power the TT Motors.
Assembling
assemble car chassis and mount the ESP8266 module and L298n as shown in the photo.
You can use any chassis for this project.
ESP8266 to L298n connection.
Code Upload
copy this URL:
http://arduino.esp8266.com/stable/package_esp8266com_index.json
and paste it in Files -> Preferance
- Then go there: Tools > Board > Boards Manager
- Look up ' ESP8266' and then install the most recent version.
- After installation, you can go into the Tools > board and select that ESP-12E Module . That's it, the Board is now selected.
- Next, choose the appropriate Com Port.
- Compile your Programme First and then Upload to NodeMCU. After a short time the program is compiled, and later uploaded to the NodeMCU Car.
Code and App
download app from here:
https://drive.google.com/file/d/1pvtWsTeXhcJdpHMfGlFmbGDuH7eoLfoP/view
and download the code from here.
Downloads
Troubleshoot
- Imagine that you're pressing the forward button and the car is moving to the rear or is turning in the counterclockwise or clockwise directions. You must then take an easy step.
- Make sure you face your car in the forward direction and then press the forward button.
- Next, you should check which wheel is spinning which way.
- If it's rotating incorrectly,, replace the motor wires. Your issue will be resolved.