ESP32-CAM-MB - works with some but not all Firmware?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
modulusmath
Posts: 30
Joined: Thu Jun 30, 2022 3:21 am

ESP32-CAM-MB - works with some but not all Firmware?

Post by modulusmath » Thu Jul 07, 2022 1:49 am

Good day All

My first step goal is to simply take a picture using ESP32-CAM and micropython.

I have purchased a board from Amazon "ESP32-CAM-MB Aideepen with OV2640 2MP Camera" because the esp32 and the camera and sdcard come in a nice little package, no wires :). This one https://www.amazon.com/gp/product/B0948ZFTQZ

The stock firmware works great and I cam use the service on the device, but I am looking to use micropython.


Thus, I tried and I can use the latest Thonny 4.X from github to flash:

1 - The latest micropython firmware; flashed OK; I get a REPL OK

2 - https://github.com/remibert/pycameresp; flashed OK; it works

3 - https://github.com/shariltumin/esp32-ca ... rmware.bin; flashed OK;

But I get:

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371

I pressed RST on the board and the upper module; I remove the cable/rebooted. (I did the hokey pokey :D - -no luck)

4 - https://github.com/lemariva/micropython-camera-driver - flashed ok ; but I get:

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371

Same button pushing and dancing...

Googling suggested bad hardware or a bad / incomplete flashing, but not sure seeing I can flash other firmwares and the behaviour is consistent. Maybe there is some subtle step I need?

I've re-downloaded the files just for completeness. I see others having had success w/these firmwares, so they seem valid.

I'm trying to use https://github.com/lemariva/micropython-camera-driver but included other options for comparison.

Does it sound like a local (my) issue?

Any suggestions are welcome! Thanks!

modulusmath
Posts: 30
Joined: Thu Jun 30, 2022 3:21 am

Re: ESP32-CAM-MB - works with some but not all Firmware?

Post by modulusmath » Fri Jul 08, 2022 3:56 am

OK. Well. Here's an update.

- I took my esp32-cam-mb and flashed it with https://github.com/Lennyz1988/micropyth ... rmware.bin:

- I then followed https://rafaelaroca.wordpress.com/2021/ ... o-esptool/

specifically:

Code: Select all

import camera
camera.init()
img = camera.capture()
imgFile = open("photo.jpg", "wb")
imgFile.write(img)
imgFile.close()
import os
os.listdir()
and photo.jpg showed up on the file system. Hooray!

I then downloaded and laughed as it took the corner of my face and the ceiling. (Baby Steps)

- I am embarrassed to share this but I didn't notice the little red dot piece of plastic on the actual lens. Yeah, definitely remove that :P

Post Reply