ESP32 Cam

ESP32 Cam

Connection Type
Wi-Fi
Number of servos
10
Audio Support
No
Camera Support
Yes

The Esp32 Cam is a very affordable WiFi module with few I/O and streaming webcam capability. Adding this firmware to an esp32 cam, the WiFi module will become an EZB that can be connected by ARC to stream the camera and control gpio. Check below for the ports that work which don’t interfere with the camera.

*Note: On the AI Thinker edition, servos work on D2, D12, D13, D14, D15. However, you will need to try your edition/model to see if those pins work. If not, try ones that do



*Note: It’s important to note that while the esp32 cam has an ezb firmware, some models share the same gpio in the pinout as the camera uses. This allows the camera to work but prevents the esp32 from being used as an ezb io controller due to their short sighted design flaws.


Firmware & Instructions

  1. In the Arduino IDE, add this link to File->Preferences->Libraries: https://dl.espressif.com/dl/package_esp32_index.json
  2. In the Arduino IDE, load the Board Manager, search for "ESP32 by Espressif Systems" and select INSTALL.
  3. Download the firmware from this page to your computer and extract it into a folder.
  4. Edit the source code firmware in the Arduino IDE and view the WiFi mode settings. You can choose between AP or Client mode. The appropriate settings for each mode may be configured as well. Follow the instructions in the firmware code for configuring the WiFi modes.
  5. Programming the ESP32 device depends on the model version. Some have USB and others require connecting through an Arduino UNO or USB TTL UART converter. Google "how to program an ESP32 Cam" for online tutorials.
  6. View the status of the connection in the Arduino Serial Monitor set to 115,200 baud. Depending on your WiFi settings, you will see the WiFi connection status.
  7. Load ARC and connect to either the ESP32 directly via WiFi if it is in AP Mode, otherwise, connect to the same network as Client Mode. The default IP Address for AP Mode will be 192.168.50.1. In Client mode, you will have to view the Serial Debug Monitor in Arduino IDE, or check your router DHCP client list.


WiFi Modes

There are two WiFi modes that can be configured in the code. They are AP Mode, which turns the ESP32 Cam into a WiFi server that your computer connects directly to. The other mode is Client Mode, in which the ESP32 Cam connects to your network router. Get the IP Address and connection status information by viewing the Serial Monitor set to 115,200 in Arduino IDE.


Port Configuration

The pins in ARC are labeled D0 - D23. The ESP32 has GPIO labeled pins, which are not in any ordered sequence. This translation chart below shows the mapping of the ESP GPIO to ARC Dx pins. All Dx ports are mapped to GPIOx ports. So GPIO1 is D1, and GPIO2 is D2, etc.

PRO
USA
#1   — Edited
Would like to see a video of this working with Arc

I did get the camera working with a FTDI adapter and Arduino code I found

works great

thanks
PRO
USA
#3   — Edited
Thank DJ 

followed your instruction above

I got the ESP32 cam working on ARC also now

Used the FTDI adapter to upload, same setting as when I used the Arduino code instructions..


EzAng
PRO
USA
#4  
On this chart, where are the DX pins?

User-inserted image
PRO
Synthiam
#5  
D1 = gpio1
d2 = gpio2
d3 = gpio3 
etc
PRO
USA
#6   — Edited
*Note: For servo use with EZ-Cam, only pins D2, D12, D13, D14, D15 are recommended.


Tried D12 with GPIO 12 - just got the servo to work -

Camera works good
PRO
Synthiam
#7  
Find ports that work with your version. They're all different. All versions of the ESP 32 cam are different.
PRO
USA
#8   — Edited
In the esp32 Cam:

Tried D12 with GPIO 12 - D13, and D15 work also

Camera and servos work
PRO
Synthiam
#9  
What esp32cam do you use? That’ll be worth mentioning so it adds context to the list of ports you’re providing
PRO
Synthiam
#11  
that looks the same as mine. Strange 

Nink, what version is yours? Does it look the same?
PRO
USA
#12  
I found some Arduino code that makes a webserver, form serial monitor I get 192.168.1.17, put it in a browser, I get this:
User-inserted image

when I click start stream on bottom, I get the camera's video, also I can put this in my Iphone's browser - I can see the camera video on the phone

If you want the code just let me know