Hey everyone. I’m trying to get the M5Stack UnitCAMS3-5MP module working with the ESP32-CAM_MJPEG2SD project. It uses the MEGA_CCM 5MP camera sensor. I can get an image, but only at very low resolution — anything higher just fails or produces garbage. Has anyone managed to get this sensor working at full 5MP on an ESP32?
The MEGA_CCM sensor is pretty new and there’s very little out there on it. Which ESP32 board are you using, and what resolution are you topping out at? Also, are you using the stock esp32camera.h driver or have you made any modifications?
I’m using a standard ESP32-S3 dev board. The camera works at QQVGA and QVGA but anything above that — VGA, SVGA, XGA — just won’t initialize properly. There was some initial work done to add basic MEGA_CCM support in the esp32camera.h file within the project, but it’s basically a skeleton. The project owner s60sc also took a crack at it and hit the same wall. An issue was opened for tracking: Success with M5Stack UnitCAMS3 5MB (sort of success) · Issue #635 · s60sc/ESP32-CAM_MJPEG2SD · GitHub
Yeah, I’ve been following that issue. The root problem is straightforward: there’s no programmer’s datasheet available for the MEGA_CCM sensor. The camera library needs register-level documentation to implement proper resolution configuration, clocking, PLL settings, output format selection — all of that. Without those register maps, you’re basically poking in the dark. The skeleton code in esp32camera.h only covers the bare minimum to get any image at all, which is why low-res works but nothing else.
That makes sense. So what we really need is the full register-level programming datasheet for the MEGA_CCM 5MP sensor — not just a product brief, but the actual technical reference with register addresses, bit definitions, timing configurations, the whole thing. Does anyone know if M5Stack or the sensor manufacturer has released one?
I’ve managed to get hold of the Mega_CCM datasheet. I’ve sent it to you via private message — check your inbox. It should have the register maps and programming details needed to properly drive the sensor at higher resolutions.
Received it, thank you! I’ve passed the datasheet on to the developer who’s been working on the ESP32-CAM_MJPEG2SD camera driver. They’ll need to go through the register-level programming details to implement proper 5MP support on the ESP32 platform — things like the PLL configuration, clock tree setup, windowing registers, and output format control. Fingers crossed this has enough detail.
Good to hear. The key sections to look at in that datasheet will be the sensor initialization sequence, the PLL and clock divider registers, and the output window/scaling configuration. Without those, the sensor defaults to whatever low-res mode it powers up in. Let us know how the driver implementation goes — once there’s proper register-level support in esp32camera.h, the whole community benefits from having 5MP working on ESP32.
Will do. The developer is reviewing the datasheet now and working through the register map. If we hit any gaps or need more information I’ll follow up here. Thanks for the help so far.