Warning Sopare.recorder Stream Read Error Errno -9988

This commodity is a quick getting started guide for the ESP32-CAM board. We'll testify you how to setup a video streaming web server with face up recognition and detection in less than five minutes with Arduino IDE.

Note: in this tutorial we use the example from the arduino-esp32 library. This tutorial doesn't encompass how to modify the example.

Related project: ESP32-CAM Video Streaming Web Server (works with Home Assistant and Node-Red)

Watch the Video Tutorial

You can watch the video tutorial or go along reading this folio for the written instructions.

Parts Required

To follow this tutorial yous need the following components:

  • ESP32-CAM with OV2640 – read All-time ESP32-CAM Dev Boards
  • FTDI programmer
  • Female-to-female jumper wires

You can use the preceding links or get straight to MakerAdvisor.com/tools to find all the parts for your projects at the all-time price!

Introducing the ESP32-CAM

The ESP32-CAM is a very pocket-size camera module with the ESP32-S flake that costs approximately $10. Besides the OV2640 camera, and several GPIOs to connect peripherals, it also features a microSD card slot that can be useful to store images taken with the camera or to store files to serve to clients.

The ESP32-CAM doesn't come up with a USB connector, so you need an FTDI programmer to upload lawmaking through the U0R and U0T pins (serial pins).

Features

Here is a list with the ESP32-CAM features:

  • The smallest 802.11b/chiliad/n Wi-Fi BT SoC module
  • Low power 32-bit CPU,tin besides serve the application processor
  • Up to 160MHz clock speed, summary computing power up to 600 DMIPS
  • Built-in 520 KB SRAM, external 4MPSRAM
  • Supports UART/SPI/I2C/PWM/ADC/DAC
  • Support OV2640 and OV7670 cameras, congenital-in flash lamp
  • Support image WiFI upload
  • Support TF bill of fare
  • Supports multiple slumber modes
  • Embedded Lwip and FreeRTOS
  • Supports STA/AP/STA+AP operation mode
  • Support Smart Config/AirKiss technology
  • Support for series port local and remote firmware upgrades (FOTA)

ESP32-CAM Pinout

The following figure shows the ESP32-CAM pinout (AI-Thinker module).

There are iii GND pins and two pins for power: either 3.3V or 5V.

GPIO 1 and GPIO three are the serial pins. You need these pins to upload code to your board. Additionally, GPIO 0 as well plays an important office, since it determines whether the ESP32 is in flashing style or not. When GPIO 0 is connected to GND, the ESP32 is in flashing mode.

The following pins are internally connected to the microSD card reader:

  • GPIO 14: CLK
  • GPIO 15: CMD
  • GPIO 2: Data 0
  • GPIO 4: Data 1 (too connected to the on-board LED)
  • GPIO 12: Information ii
  • GPIO 13: Data 3

Video Streaming Server

Follow the next steps to build a video streaming web server with the ESP32-CAM that you can access on your local network.

Of import: Make sure yous take your Arduino IDE updated every bit well as the latest version of the ESP32 add-on.

1. Install the ESP32 add-on

In this example, we use Arduino IDE to plan the ESP32-CAM lath. And so, you need to have Arduino IDE installed as well as the ESP32 add-on. Follow one of the next tutorials to install the ESP32 add-on, if you lot haven't already:

  • Installing the ESP32 Lath in Arduino IDE (Windows instructions)
  • Installing the ESP32 Board in Arduino IDE (Mac and Linux instructions)

2. CameraWebServer Instance Lawmaking

In your Arduino IDE, go to File > Examples > ESP32 > Camera and open up the CameraWebServer example.

The following code should load.

ESP32 CameraWebServer Example

Before uploading the lawmaking, you need to insert your network credentials in the following variables:

          const char* ssid = "REPLACE_WITH_YOUR_SSID"; const char* password = "REPLACE_WITH_YOUR_PASSWORD";        

Then, make sure you select the correct camera module. In this case, we're using the AI-THINKER Model.

So, annotate all the other models and uncomment this i:

          // Select camera model //#define CAMERA_MODEL_WROVER_KIT //#define CAMERA_MODEL_ESP_EYE //#define CAMERA_MODEL_M5STACK_PSRAM //#define CAMERA_MODEL_M5STACK_WIDE #define CAMERA_MODEL_AI_THINKER        

If none of these correspond to the camera yous're using, you need to add the pin assignment for your specific board in the camera_pins.h tab.

Now, the code is ready to be uploaded to your ESP32.

three. ESP32-CAM Upload Code

Connect the ESP32-CAM board to your figurer using an FTDI programmer. Follow the next schematic diagram:

Many FTDI programmers have a jumper that allows you to select 3.3V or 5V. Make sure the jumper is in the right place to select 5V.

Important: GPIO 0 needs to be connected to GND and so that you lot're able to upload lawmaking.

ESP32-CAM FTDI Programmer
GND GND
5V VCC (5V)
U0R TX
U0T RX
GPIO 0 GND

To upload the lawmaking, follow the next steps:

1) Go to Tools > Lath and select AI-Thinker ESP32-CAM.

2) Get to Tools > Port and select the COM port the ESP32 is continued to.

three) Then, click the upload push button to upload the code.

iv) When you outset to see these dots on the debugging window as shown below, press the ESP32-CAM on-board RST button.

Later on a few seconds, the code should be successfully uploaded to your board.

Getting the IP address

Subsequently uploading the code, disconnect GPIO 0 from GND.

Open up the Serial Monitor at a baud rate of 115200. Press the ESP32-CAM on-board Reset button.

The ESP32 IP address should be printed in the Serial Monitor.

Accessing the Video Streaming Server

Now, you can access your camera streaming server on your local network. Open a browser and type the ESP32-CAM IP accost. Press the Start Streaming button to commencement video streaming.

You also have the selection to take photos by clicking the Get All the same button. Unfortunately, this example doesn't save the photos, but you lot can modify it to use the on board microSD Carte du jour to store the captured photos.

There are too several camera settings that you can play with to accommodate the image settings.

Finally, you lot tin exercise face recognition and detection.

Commencement, you need to enroll a new face. It will brand several attempts to save the face. After enrolling a new user, it should find the face later (subject field 0).

And that's information technology. Now you lot have your video streaming web server upwards and running with face detection and recognition with the example from the library.

Troubleshooting

If you're getting any of the post-obit errors, read ourESP32-CAM Troubleshooting Guide: Most Common Problems Fixed

  • Failed to connect to ESP32: Timed out waiting for bundle header
  • Camera init failed with error 0x20001 or like
  • Brownout detector or Guru meditation error
  • Sketch too big fault – Wrong partition scheme selected
  • Lath at COMX is not available – COM Port Not Selected
  • Psram error: GPIO isr service is not installed
  • Weak Wi-Fi Betoken
  • No IP Address in Arduino IDE Serial Monitor
  • Tin't open web server
  • The image lags/shows lots of latency

Wrapping Up

The ESP32-CAM provides an inexpensive manner to build more advanced home automation projects that feature video, taking photos, and confront recognition.

In this tutorial we've tested the CameraWebServer example to test the camera functionalities. Now, the idea is to modify the instance or write a completely new code to build other projects. For example, take photos and save them to the microSD card when motion is detected, integrate video streaming in your domicile automation platform (like Node-RED or Domicile Assistant), and much more.

We promise y'all've observe this tutorial useful. If you don't accept an ESP32-CAM nonetheless, you lot can grab it here.

If you similar this project, you may also like other projects with the ESP32-CAM:

  • ESP32-CAM Video Streaming Spider web Server (works with Home Assistant and Node-Cherry)
  • ESP32-CAM Take Photo and Salvage to MicroSD Card
  • ESP32-CAM PIR Motility Detector with Photo Capture (saves to microSD card)
  • ESP32-CAM Take Photograph and Display in Web Server
  • Build ESP32-CAM Projects (eBook)
  • Read all our ESP32-CAM Projects, Tutorials and Guides

byfordcomprignate.blogspot.com

Source: https://randomnerdtutorials.com/esp32-cam-video-streaming-face-recognition-arduino-ide/

Belum ada Komentar untuk "Warning Sopare.recorder Stream Read Error Errno -9988"

Posting Komentar

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel