A web-based servo motor controller for ESP32 using WebSockets.
This project enables remote control of two servo motors through a web interface. The ESP32 board hosts a WebSocket server that receives commands from a browser and controls the servos in real-time.
- Web server with WebSocket support
- Real-time control of 2 servo motors
- Browser-based user interface
- Low-latency communication via WebSockets
- ESP32 development board
- 2x Servo motors
- Power supply (appropriate for your servos)
- Connecting wires
Connect your servo motors to the ESP32 GPIO pins as defined in the code. Typical connections:
- Servo 1: Signal wire to GPIO pin (check code for pin number)
- Servo 2: Signal wire to GPIO pin (check code for pin number)
- Power and ground for both servos. Do not forget to link servos and esp32 grounds.
- Install the Arduino IDE or Platformio on VSCode with ESP32 board support
- Install required libraries
- Upload the code to your ESP32 board
- Connect to the ESP32's WiFi. Check/configure credentials in the code
- Open the web interface in your browser
- Power on the ESP32
- Connect to the network
- Navigate to the ESP32's IP address in your browser
- Use the web interface to control the servo positions