This project provides a complete web-based camera monitoring and control solution using the ESP32-CAM module. It enables remote control of two servos (for pan and tilt) and an LED light using a clean and responsive web interface.
- ๐ธ Live streaming from the ESP32-CAM using WebSockets
- ๐ฎ Pan and Tilt control with sliders
- ๐ก Brightness control of onboard light (via PWM)
- ๐ Camera flipping (horizontal, vertical) and rotation
- ๐ฑ Mobile-friendly responsive interface
- โก Fast performance using
ESPAsyncWebServerandESPAsyncTCP - ๐ง Servo control using
ESP32Servolibrary
- ESP32-CAM module
- 2x Servo motors (pan and tilt)
- Optional: Additional dummy servos (for simulation or extension)
- LED (connected to GPIO 4, controlled via PWM)
- Power supply (ensure stable 5V for servos and ESP32-CAM)
| Component | GPIO Pin |
|---|---|
| Pan Servo | 14 |
| Tilt Servo | 15 |
| Dummy Servo 1 | 12 |
| Dummy Servo 2 | 13 |
| Light LED | 4 (PWM) |
| Camera Pins | Default ESP32-CAM configuration |
-
Install Arduino IDE and ESP32 board support.
-
Install Required Libraries:
ESPAsyncWebServerESPAsyncTCPESP32Servo
-
Update WiFi Credentials: Replace the
ssidandpasswordin the code with your own WiFi network. -
Upload the Code to the ESP32-CAM using an FTDI programmer.
-
Access the Interface:
- Open serial monitor to see the IP address assigned.
- Open the IP in your browser.
- Use sliders and buttons to control pan, tilt, and light.
- Live camera stream
- Sliders to control Pan, Tilt, and Light
- Buttons for horizontal/vertical flip and rotation
- Servo angles range from 0ยฐ to 180ยฐ.
- Light PWM ranges from 0 (off) to 255 (max brightness).
- Be cautious about servo power consumption โ consider external power for stability.
Created by [MADAN R]
See LICENSE file for licensing information.