This project demonstrates how to control motors connected to an Arduino using a NodeMCU (ESP8266) module and a Motor Driver Shield L293D. The NodeMCU creates a WiFi hotspot and hosts a simple web server. When you send HTTP requests to the server, the NodeMCU sends corresponding commands to the Arduino via serial communication to control the motors.
- NodeMCU (ESP8266)
- Arduino (any model with serial communication support)
- Motor Driver Shield L293D
- Motors
- Jumper wires
- WiFi Hotspot: NodeMCU creates a WiFi hotspot.
- Web Server: NodeMCU hosts a web server to receive HTTP requests.
- Serial Communication: NodeMCU sends commands to the Arduino via serial communication.
- Motor Control: Arduino controls the motors based on the commands received.
- Stack the Motor Driver Shield L293D on the Arduino.
- Connect the motors to the motor driver shield.
- Connect the TX pin of NodeMCU to the RX pin of Arduino.
- Connect the RX pin of NodeMCU to the TX pin of Arduino.
- Connect the GND of NodeMCU to the GND of Arduino.
- Clone the repository.
- Open the
arduino_wifi_controller
folder in PlatformIO. - Install the required libraries specified in
platformio.ini
. - Upload the code to the NodeMCU and Arduino.
- Connect to the WiFi hotspot created by the NodeMCU.
- Open a web browser and navigate to the NodeMCU's IP address (default:
192.168.4.22
). - Use the web interface to control the motors or use the arrow keys on your keyboard.
This project is licensed under the MIT License.