This is my first post here and I am new to the esp32 board. I have bought a esp32+cam board. It is an ai thinker marked with esp32-s. The camera that comes with this board is an ov2640. I have installed arduino ide 1.8.9. Both the linux 32bit and windows 32 bit versions. Windows version is on XP (only version I have). I also have the raspbian stretch version on a rasp pi3b+ but cannot use this as the extra stuff required for the esp32 does not exist in arm format. I have downloaded the extra stuff needed for the esp32 using https://dl.espressif.com/dl/package_esp32_index.json
for both the linux and windows 32 bit versions. I also have an ftdi232 board. However, I have had no success in uploading anything to the esp32 board. The win driver for ftdi232 on XP is dated 2012. I have tried updating via windows but told no later driver but have seen later drivers for windows on web so this might be an issue. However, for most of my attempts I've used linux. I have tried using the instruction on the following sites But always get compiling errors.
1) https://randomnerdtutorials.com/install ... tructions/
2)https://robotzero.one/esp32-cam-arduino-ide/
I have tried to upload both "wifi scan" and "camera web server". The error outputs are shown bellow.
1. WiFi Scan
Arduino: 1.8.9 (Linux), Board: "AI Thinker ESP32-CAM"
Code: Select all
Traceback (most recent call last):
File "/root/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 37, in <module>
import serial
ImportError: No module named serial
Multiple libraries were found for "WiFi.h"
Used: /root/.arduino15/packages/esp32/hardware/esp32/1.0.2/libraries/WiFi
Not used: /root/Applications/arduino-1.8.9/libraries/WiFi
exit status 1
Error compiling for board AI Thinker ESP32-CAM.
Arduino: 1.8.9 (Linux), Board: "AI Thinker ESP32-CAM"
Code: Select all
Build options changed, rebuilding all
Traceback (most recent call last):
File "/root/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 37, in <module>
import serial
ImportError: No module named serial
Multiple libraries were found for "WiFi.h"
Used: /root/.arduino15/packages/esp32/hardware/esp32/1.0.2/libraries/WiFi
Not used: /root/Applications/arduino-1.8.9/libraries/WiFi
exit status 1
Error compiling for board AI Thinker ESP32-CAM.
I have also tried the method outlined in this video using an arduino uno (this board I know to be working) to upload to the esp32. This also failed.
https://www.youtube.com/watch?v=a_PxAT8M-58
The error output is shown bellow.
3) (error third method) Camera Web Server
Arduino: 1.8.9 (Linux), Board: "ESP32 Wrover Module, Huge APP (3MB No OTA), QIO, 40MHz, 921600, None"
Code: Select all
Traceback (most recent call last):
File "/root/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py", line 37, in <module>
import serial
ImportError: No module named serial
exit status 1
Error compiling for board ESP32 Wrover Module.
Below is the code at the beginning of camera web server for method 3) after changes suggested.
Code: Select all
#include "esp_camera.h"
#include <WiFi.h>
#include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"
//
// WARNING!!! Make sure that you have either selected ESP32 Wrover Module,
// or another board which has PSRAM enabled
//
// 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
#include "camera_pins.h"
Below is the code around line 37 in /root/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py
Code: Select all
import serial
except ImportError:
print("Pyserial is not installed for %s. Check the README for installation instructions." % (sys.executable))
raise
# check 'serial' is 'pyserial' and not 'serial' https://github.com/espressif/esptool/issues/269
try:
if "serialization" in serial.__doc__ and "deserialization" in serial.__doc__:
raise ImportError("""
I hope I have given enough information to allow somebody more expert than me to get an idea of what I am doing wrong and help me to get "Camera Web Server" uploaded to the board and working.
Regards,
Ken.