This project implements a wireless remote control system using ESP8266 microcontrollers and the ESP-NOW protocol. It consists of a transmitter (controller) and a receiver (robot or device being controlled).
- Features
- Hardware Requirements
- Software Requirements
- Setup
- Configuration
- Usage
- Circuit Diagrams
- Troubleshooting
- Wireless communication using ESP-NOW protocol
- Four-button control system
- 8 directional movements (forward, backward, left, right, and diagonals)
- Motor control for a two-wheeled / four-wheeled car or similar device
- 2 x ESP8266 boards (e.g., NodeMCU)
- 4 x Push buttons
- 2 x DC motors (for the receiver/car)
- Motor Driver
- Power supply for the motors
- Jumper wires
- Arduino IDE
- ESP8266 board support for Arduino IDE
- ESP8266WiFi library
- espnow library
- Install the required libraries in your Arduino IDE.
- Upload the
transmitter.ino
code to one ESP8266 board (the controller). - Upload the
receiver.ino
code to another ESP8266 board (the robot). - Connect the GND to button inputs
- Connect the buttons to the transmitter board according to the pin definitions in the code.
- Connect the motors and motor driver to the receiver board as per the pin definitions.
Before uploading the code:
- In
transmitter.ino
, replace thereceiverMAC
array with the MAC address of your receiver ESP8266. - In
receiver.ino
, adjust theMOTOR_DRIVER
variable to match your motor driver type. - Adjust the
SERIAL_PORT
boolean in both files if you want to enable/disable serial debugging.
- Power on both the transmitter and receiver.
- Press the buttons on the transmitter to control the movement of the receiver (robot).
- The receiver will interpret the button presses and control the motors accordingly.
- Ensure both devices are powered and within range of each other.
- Check that the MAC address in the transmitter code matches the receiver's MAC address.
- Verify all connections if the motors are not responding as expected.
- Make sure GND is provided to Buttons