Hi everyone, I’m trying to get an OV5642 (B0068) camera module working with a Raspberry Pi Pico using Thonny and MicroPython. I’ve been following the Arducam instruction page here: SPI Camera for Raspberry Pi Pico - Arducam Wiki, but I realized the whole thing is CircuitPython based. My project needs TensorFlow, and from what I can tell TensorFlow does not work with CircuitPython. Is there any way to get this working with MicroPython on the Pico? Does anyone have MicroPython code for this module?
Thanks for posting. Before I dig in, can you share a bit more about your setup? Which exact guide page you were following, what board/firmware you’re on, and any code or errors you’ve got so far would help.
Sure. I’m on a Raspberry Pi Pico with Thonny, and the page I was following is the one I linked: SPI Camera for Raspberry Pi Pico - Arducam Wiki. The problem is I can’t even get started because the entire guide is CircuitPython and I need MicroPython. I haven’t been able to find MicroPython examples for the OV5642, so I don’t have any code or logs yet — I’m basically stuck before the first step. Since TensorFlow doesn’t work with CircuitPython, that route is a dead end for me.
Thanks for the extra detail. I checked into this and unfortunately the OV5642 (B0068) module does not support MicroPython. The Python support we provide for this module is CircuitPython only, so there isn’t a MicroPython driver or firmware I can point you to for that particular board.
Ah, that’s a bit frustrating. So there’s really no way to use the OV5642 with MicroPython on the Pico at all? Is there an alternative module that does support MicroPython so I can stick with Thonny and the Pico?
Correct, MicroPython isn’t supported on the OV5642 (B0068). If you need MicroPython, I’d suggest looking at the Mega camera line instead — those do have MicroPython support. You can find them in the Amazon store here: Amazon.com: Arducam, and there’s a dedicated GitHub repo with the MicroPython implementation: GitHub - dennis-ard/mega_on_micropython: Micropython arducam mega camera driver · GitHub.
Okay, good to know. Just to confirm — if I want to keep the Pico + Thonny + MicroPython workflow, I should switch to a Mega camera and use that GitHub repo? And the OV5642 is basically a no-go for MicroPython?
Yes, that’s exactly right. Sorry, we don’t support MicroPython on the camera module you have. If you’re interested in MicroPython, the Mega cameras are the way to go. The MicroPython support is limited to the Mega camera line, and the GitHub repository (dennis-ard/mega_on_micropython) provides the MicroPython implementation for those cameras.