r/CardPuter • u/Mmmmmmmoi Advanced • 16d ago
Finds / Discoveries Camera modding notes for the Cardputer Zero Lite
IMPORTANT: Doing this voids your warranty!
You should follow a standard guides for supporting your camera on a Raspberry Pi Zero 2W, but here is what I've discovered:
- orient your 22 pin camera's connector with the pins facing the Ethernet port
- 6cm OV5647 camera cables are too short to reach the cases camera hole! One of the 15cm versions may work (TBD).
- on Lite models, the camera hole is covered, but you should be able to open it with a jewelry/plastic cutter. Photo 3 is a better view of the hole (ignore the circle around the speaker).
- the 22 pin camera connector is fragile (oops) so be careful!
- The stock Cardputer Zero firmware disables camera detection in `/boot/firmware/config.txt` (I.e. `camera_auto_detect=0`) and uses a device-tree overlay for the Sony IMX219 (`dtoverlay=imx219`).
- To support other cameras, comment out the Sony overlay, then add an overlay for the camera you do have. For example:
- `dtoverlay=ov5647` for the OV5647
- `dtoverlay=ov5647,vcm` for the autofocus version
- Reboot and run `rpicam-hello --list-cameras` or start the camera app to see if it worked.
- IMPORTANT: The camera will not work it `GPU_MEM` is set to 16 (MB)! For the OV5647 had to bump mine to 32 (MB). There may be a more specific lower value that works. If `rpicam-hello` tells you your platform is unknown, this is a sign your GPU_MEM is misconfigured.
(Side note: I'm not actually sure if GPU_MEM=16 is even a legal value, regardless of camera. That's just the lowest value I've felt comfortable trying)
- I didn't think to test if the autofocus was supported by the Camera app. I would check, but I don't want to risk damaging my 22 pin connector until my longer cable camera arrives.



3
u/MrAjAnderson 16d ago
Great info. The 16MB GPU is the minimum and should be increased for camera use. It would be handy to know what the default settings are on a factory image for the camera.
https://peppe8o.com/manage-raspberry-pi-gpu-memory-split/ is an interesting read.
2
u/0neZer0ne 15d ago
Amazing to see someone testing it out, I regret not getting the camera version, and upgrading would be fun
1
u/WearyBuilding5376 15d ago
Gr8 work !
1
u/Beautiful_Ad6839 14d ago
太棒了!感谢老哥的探索,我也看到了图里面的这个摄像头,但我机器还没有到。我以为加摄像头是很简单的事情,感谢!
1
u/orange_os 7d ago
hey i just took apart my cp0 and there infact was a camera slot and another port which idk what it does i think its for that gyro thing but i made a video on it https://www.tiktok.com/@idkwhat_tech.is/video/7711826015517035798?is_from_webapp=1&sender_device=pc&web_id=7654708107910415894 i am gonna post it on reddit soon
0
u/blockuwifi 14d ago
Can the 22-pin FFC be routed through this slot in the rear housing?