Hi, I’m trying to use an SPI camera with my Raspberry Pi Pico. The problem is there’s no driver for the camera to take images and store them in jpeg format. So I basically can’t capture or save anything. Has anyone managed to get this working? Any pointers would be great.
Hi, Arducam support here. To point you at the right driver we first need to know exactly which camera you’re using. There are quite a few SPI cameras out there and the driver plus the JPEG handling differs a lot between them. Can you tell us the exact model? For example is it an OV2640, OV5642, one of the OV5647 SPI variants, or a dedicated Pico camera board? A photo of the board or the marking on the module would help a lot too.
Hmm, I think it’s just the normal SPI camera for the Pico. It plugs straight into the Pico pins with the little cable. I’m not sure about the exact model, the board is pretty small and I don’t remember what’s printed on it.
That’s the tricky part — ‘SPI camera for the Pico’ could be a few different products, and they don’t all behave the same. Whether you get JPEG out depends on the sensor: some sensors give you raw/RGB and you have to compress to JPEG yourself in software, while others can do JPEG onboard. The driver is also sensor specific. Could you check the sensor marking on the module? Also, which Pico are you on — the regular Pico or Pico W — and are you working in the C SDK or MicroPython?
I’m using the regular Pico. And for the code… I’ve honestly just started with this, so whatever is simplest, I haven’t picked a real setup yet. I don’t have the camera with me right now, I’ll have to check the numbers written on it later. I just want to end up with photos saved as jpeg.
No worries, take your time. The main thing we need is the exact camera model, because that decides both the driver and whether JPEG capture is done in hardware or has to be handled in software. Once you have it in front of you, please share: the exact model/part number or the sensor marking (something like OV2640 / OV5642), whether you’re on Pico or Pico W, and your environment (C SDK or MicroPython).
Just to wrap up where this stands: without knowing the exact camera model we can’t safely recommend a driver, since flashing the wrong one usually just fails to initialize the sensor. So the next step on your side is to note the exact model of the SPI camera you have. Once you post that plus your Pico variant and whether you’re using the C SDK or MicroPython, we can point you to the correct driver and the matching JPEG capture example. Until then there isn’t a driver we can confirm will work for your specific camera.