ESP32-CAM Live Stream with Arduino CameraWebServer
Open a live camera feed in a browser on your local network.
Parts and sourceBefore you start
Espressif’s example provides an AI Thinker camera pin configuration.
Getting started
- Select the AI Thinker camera model in board_config.h and set the Wi-Fi credentials in CameraWebServer.
- Use the AI Thinker board definition and follow the board’s flashing instructions.
- Open Serial Monitor, then open the reported local IP address in a browser on the same network.
Configure the AI Thinker board
Open the CameraWebServer example that ships with your Arduino ESP32 core. In versions with board_config.h, leave one camera model enabled and select CAMERA_MODEL_AI_THINKER. Enter your Wi-Fi credentials in the main sketch. Older releases may put the camera model in the sketch itself.
With a bare board and manual USB-to-UART adapter, cross TX and RX, connect ground and use 3.3 V serial logic. Reset with GPIO0 connected to ground to upload. Disconnect GPIO0 from ground and reset again to run.
Verify the picture first
Read the IP address in Serial Monitor at 115200 baud. Open http://CAMERA_IP/ from a device on the same network. Try Get Still before Start Stream. The example’s /capture endpoint returns a JPEG. A microSD card is unnecessary for this test.
If the page or image is missing
- No IP address
- Check normal boot mode, the network credentials and access to a 2.4 GHz Wi-Fi network.
- IP address appears, but the page times out
- Check that both devices are on a network that allows peer traffic. Guest network isolation can block access to a local camera.
- Web page loads, but the image fails
- Check the active camera model and reseat the ribbon with power off. Test at a lower frame size before raising resolution.