With the ESP32-CAM you can easily and cheaply realize your camera projects like our camera trap. But it doesn’t always have to be just photos – a video livestream is also possible!
In this tutorial you will learn how to set up a livestream with your ESP32-CAM, which you can view in your browser. For this you need:
If you have never programmed your ESP32 CAM with the Arduino IDE, you will have to make it available there first. Since this board does not have its own USB port, you will also need an FTDI programmer to upload your sketch.
How both works you will learn in this tutorial here with us. 🙂
Once the connection from your computer to the ESP32-CAM is established, you can continue.
Upload the sketch
The configuration and uploading of the appropriate sketch is quite pleasant in this tutorial: it is already in your Arduino IDE. Select File -> Examples -> ESP32 -> Camera -> CameraWebServer from the menu. This will open the sketch you need.
But there are two little details you have to adjust: First, enter the name and password of your Wi-Fi network.
You also have to choose the right board. In our case (and in most other cases as well) this is AI Thinker. For this, delete the comment in front of the board, so that only yours is active.
Now load the sketch onto the ESP32-CAM. Do not forget to connect the pins IO0 and GND for the upload. As soon as the code is on the board, disconnect it, start your serial monitor and press the RESET button on the board.
Start the video livestream
Now after a few seconds ( temporary error messages do not matter) you should see the following on your serial monitor. The IP address may vary.
Now click on the link or copy and paste the address into your browser. You should then see a whole range of settings on the left side. At the bottom is the button Start Stream – a click on it starts the stream.
And that is already it. You can now experiment with the settings to get the best possible performance. You also have the option to enable face detection at the bottom of the screen, but we won’t discuss that here.
Two more things: You can only access the livestream from your own Wi-Fi network. This tutorial is meant for trying out – if you want to use the camera productively, think about IT security first.
Letzte Aktualisierung am 2021-02-28 / Affiliate Links / Bilder von der Amazon Product Advertising API