Comments on: Upload Code to ESP32-CAM AI-Thinker using ESP32-CAM-MB USB Programmer (easiest way) https://randomnerdtutorials.com/upload-code-esp32-cam-mb-usb/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Thu, 13 Nov 2025 06:47:15 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: priyanshu https://randomnerdtutorials.com/upload-code-esp32-cam-mb-usb/#comment-1123280 Thu, 13 Nov 2025 06:47:15 +0000 https://randomnerdtutorials.com/?p=101572#comment-1123280 In reply to Donald Garber.

WARNING: Category ‘Sound’ in library ESP_SR is not valid. Setting to ‘Uncategorized’
WARNING: Category ‘Security’ in library Hash is not valid. Setting to ‘Uncategorized’
WARNING: Category ” in library ESP Insights is not valid. Setting to ‘Uncategorized’
WARNING: Category ” in library ESP RainMaker is not valid. Setting to ‘Uncategorized’
WARNING: Category ” in library TFLite Micro is not valid. Setting to ‘Uncategorized’
WARNING: Category ” in library WiFiProv is not valid. Setting to ‘Uncategorized’
Sketch uses 281151 bytes (8%) of program storage space. Maximum is 3145728 bytes.
Global variables use 20852 bytes (6%) of dynamic memory, leaving 306828 bytes for local variables. Maximum is 327680 bytes.
esptool v5.1.0
Serial port /dev/ttyUSB0:
Connecting……………………………….
A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
the selected serial port For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
does not exist or your board is not connected
.
i face this issue when i upload the code

]]>
By: Sara Santos https://randomnerdtutorials.com/upload-code-esp32-cam-mb-usb/#comment-1103638 Tue, 30 Sep 2025 10:23:49 +0000 https://randomnerdtutorials.com/?p=101572#comment-1103638 In reply to Douglas Paz.

Hi.
You can get one board with an MB programmer, and then, after uploading the code, connect the ultrasonic sensor, and another power source.
But, in your case, it will be easier to use an FTDI programmer.
See your options here: https://randomnerdtutorials.com/program-upload-code-esp32-cam/

Regards,
Sara

]]>
By: Douglas Paz https://randomnerdtutorials.com/upload-code-esp32-cam-mb-usb/#comment-1103360 Mon, 29 Sep 2025 15:06:59 +0000 https://randomnerdtutorials.com/?p=101572#comment-1103360 I have a question: what would be the best option to buy, the ESP32-CAM AI-Thinker or the ESP32-CAM-MB?

Here’s my use case: I need to upload code to the ESP32 and also connect an ultrasonic sensor to it. The issue is that the ESP32-CAM AI-Thinker uses almost all the pins when connected to the MB shield, which might limit the use of the sensor. Since I’m a beginner in this area, I’m not sure which option would be the best choice.

]]>
By: Sara Santos https://randomnerdtutorials.com/upload-code-esp32-cam-mb-usb/#comment-1082753 Sun, 17 Aug 2025 10:55:48 +0000 https://randomnerdtutorials.com/?p=101572#comment-1082753 In reply to Jibun no Kage.

Hi.
What code are you trying to run?
Which ESP32 core version do you have installed in your Arduino IDE? Go to Tools > Boards > Boards Manager > ESP32 and check the version.
Regards,
Sara

]]>
By: Jibun no Kage https://randomnerdtutorials.com/upload-code-esp32-cam-mb-usb/#comment-1082004 Fri, 15 Aug 2025 03:23:31 +0000 https://randomnerdtutorials.com/?p=101572#comment-1082004 OK, I think my camera interface is bad. I can load other sketches, but nothing using a camera works, i.e. same camera error as above. I tried swapping cameras different OV2640s that I know whttps://randomnerdtutorials.com/upload-code-esp32-cam-mb-usb/#respondork fine, no joy.

]]>
By: Jibun no Kage https://randomnerdtutorials.com/upload-code-esp32-cam-mb-usb/#comment-1082000 Fri, 15 Aug 2025 02:51:50 +0000 https://randomnerdtutorials.com/?p=101572#comment-1082000 This may help some, in my case my ESP32-CAM with the USB-C MB daughter board, would only work when I selected the ‘AI Thinker ESP32-CAM’ board in the Arduino IDE (2.3.6).

If I had any other board selected, say ‘ESP32 Dev Module’, selected, the sketch would compile and upload fine, but after RTS pin reset, nothing happens. Even pressing the RST button on the MB daughter board did not work unless the ‘AI Thinker ESP32-CAM’ board was selected at sketch upload to the board I have.

You also have to make sure the board_config.h file is updated for correct camera that you may have, for example ‘CAMERA_MODEL_ESP32_CAM_BOARD’.

However, I still am getting errors…
E (72) i2c.master: I2C hardware timeout detected
E (72) i2c.master: probe device timeout. Please check if xfer_timeout_ms and pull-ups are correctly set up

No clue why this is happening, not sure that is trying to use the i2c bus.

I contacted the seller, asking for code example that works… nothing but crickets.

]]>
By: Projecte Urani https://randomnerdtutorials.com/upload-code-esp32-cam-mb-usb/#comment-1081526 Wed, 13 Aug 2025 17:20:34 +0000 https://randomnerdtutorials.com/?p=101572#comment-1081526 Estoy probando de programar una ESP32-CAM con adaptador MB. Cuando ejecuto el código para encender el LED me funciona, pero al intentar usar el CameraWebServer, me da errores: no detecta la camera que es una RHYX M21-45.
He estado buscando en distintos sitios y me sale que no es compatible con el código, en otros, hay gente que lo ha solucionado peo en ninguno he encontrado ningún código que funcione. ¿Alguien me puede ayudar a programarla, o tengo que cambiar la camara?
Muchas gracias.

]]>
By: Vladimir https://randomnerdtutorials.com/upload-code-esp32-cam-mb-usb/#comment-1039926 Sat, 10 May 2025 12:32:02 +0000 https://randomnerdtutorials.com/?p=101572#comment-1039926 In reply to steph.

Your advice is very useful. Thanks a lot!

]]>
By: Sara Santos https://randomnerdtutorials.com/upload-code-esp32-cam-mb-usb/#comment-1024361 Mon, 07 Apr 2025 09:31:59 +0000 https://randomnerdtutorials.com/?p=101572#comment-1024361 In reply to Ralph.

Hi
Thanks for providing that information.
It will definitely be useful for our readers.
Regards,
Sara

]]>
By: Ralph https://randomnerdtutorials.com/upload-code-esp32-cam-mb-usb/#comment-1024152 Sun, 06 Apr 2025 13:48:33 +0000 https://randomnerdtutorials.com/?p=101572#comment-1024152 Thank you very much for this tutorial!
Since so many people have trouble uploading the sketch, it might be a good idea to update the article with a remark that (on some boards?) you have to perform an additional step to put the esp in flash mode.

I found the following on tinytronics.nl/en/development-boards/accessories/adapter-boards/esp32-cam-mb-programmer-shield

Note: The RST button on this shield does not work. To put the ESP32-CAM in boot mode for programming, the following two options are therefore possible:
1. While connecting the shield to the PC (with the ESP32-CAM already installed), press and hold the IO0 button. After connecting the IO0 button can be released and the code can be uploaded.
2. While the shield (with the ESP32-CAM installed) is connected to the PC, press and hold the IO0 button and then briefly press the RST button on the ESP32-CAM. Then the IO0 button can be released and the code can be uploaded.

]]>