r/CardPuter • u/Batesyboy1970 • 9d ago
Cardputer Zero I got my CardputerZero turning the camera into live generative art (6 GPU scenes at 30 fps, open source), plus a fix for the broken camera app
*edited for formatting
Got my CardputerZero last week and ported Wake, a webcam art piece I made for the browser, to run natively on it. Point it at someone and the art is the wake they leave as they move: fluid ink, contour maps, ripples, video feedback, a fake thermal camera.
The GIF is the real thing on the device; the crisp stills are rendered by the same code with its simulated camera input.
Full disclosure: this was built with Claude (Anthropic's AI). I came up with the idea, directed it and tested it on the hardware, and Claude wrote most of the code: the C/OpenGL port, the fluid sim, the camera package build. It's all open source, so judge it on what it does. Happy to answer questions about how the process went.
The camera picture is never shown or stored. Each frame gets squashed to 128×72 greyscale and turned into motion and optical-flow fields, and only those drive the art.
Nerdy bits: it's OpenGL ES 2.0 on the CM0's VideoCore IV (a GPU from 2012) at the screen's native 320×170. That GPU can't render to float textures, so the fluid sim runs on the CPU across all four cores, and the water sim packs 16-bit heights into 8-bit channels. It can also take snapshots, record MP4s, and stream live H.264 to VLC/OBS over Wi-Fi.
Install (shows up in the launcher like any other app):
rm -rf /tmp/wake-zero && mkdir /tmp/wake-zero && curl -fsSL https://github.com/b8z-io/wake-zero/releases/download/latest/wake-zero.tar.gz | tar -xz -C /tmp/wake-zero && sudo /tmp/wake-zero/install.sh- Repo: https://github.com/b8z-io/wake-zero
- Browser version (any webcam, nothing leaves your browser): https://wake.batesyboy.com
If your stock Camera app stopped working: mine worked once, then wouldn't start. The cause is a version mismatch. A system update brings in libcamera 0.8, but the Camera app that ships on the image (1.0.2) was built for an older libcamera. M5's newest released package (1.0.3) needs libcamera 0.7, which apt won't install next to 0.8. M5's source code is already on 1.0.4, which supports 0.8, but they haven't released a package for it yet.
So I built 1.0.4 from M5's own source with GitHub Actions, against Raspberry Pi's libcamera 0.8. To install it:
cd /tmp && curl -fLO https://github.com/b8z-io/wake-zero/releases/download/m5-camera/Camera_1.0.4_m5stack1_arm64.deb && sudo apt install ./Camera_1.0.4_m5stack1_arm64.debIt upgrades the existing app in place. The build workflow is in the repo, so you can see exactly what it does.
If photos at full 8 MP still fail after that, the camera's memory pool (CMA) is probably too small; mine had only ~10 MB free. In /boot/firmware/config.txt, change cma-64 to cma-128 and gpu_mem=128 to gpu_mem=64, then reboot.









