Thanh Le / bench notes
EDGE AI · MODELS ON THE BOARD · NO CLOUD

AI on the board,
not in the cloud.

Face detection on an NPU with no Linux, on a 2016 Cortex-A9, on the 12 QPUs of a 2012 Raspberry Pi; a voice assistant and a small LLM with the network unplugged; a duck robot that learns to walk. Each card is one story from a board or robot page, with the number I measured.

AI stories12
Fastest face detect (ROCK 3A NPU)25 fps
Oldest chip running a modelBCM2835 (2012)
Accelerators usedNPU · QPU · CPU

Stories

§1 · they also live on their board or robot page
ROCK3A

Webcam to NPU to HDMI, with no Linux on the chip

Driving the RK3568 NPU, my own xHCI/UVC host and a JPEG decoder from FreeRTOS, RetinaFace boxes on HDMI

result · 718 webcam frames in 30 s (25.09 fps), faces in 703, JPEG to screen 28.0 ms avg, 0 dropped
ROCK3A

Porting Android 14 to the ROCK 3A myself

Radxa ships Android 14 for the ROCK 3C only: a new product from its tree, 13 kinds of build failure, a DDR blob that hangs on reboot

result · Android 14 + kernel 6.1.99 + GApps booting; warm reboot back in 36 s; YOLOv5s 34.58 ms on the NPU at 1 GHz
ROCK3A

A Vietnamese voice assistant with the network unplugged

Speech to text, a 0.6B LLM and Vietnamese TTS on the RK3568's four A55 cores under Android 14, recorded 17 times

result · First spoken word 11.8 s after the question (median of 12), LLM 4.0 tok/s, about 4 in 10 answers right
NANOPI2 FIRE

Face detection on four 2016 Cortex-A9 cores, no NPU, no Linux

FastestDet and YuNet hand-lowered to C + NEON inside the FreeRTOS webcam firmware, then made fast enough to follow a face

result · Person detection 642 ms → 184 ms (4 cores); faces 85 → 42 ms, same outputs bit for bit
NANOPI2 FIRE

A hang at 186 s, and a 512 KB L2 cache nobody had switched on

A watchdog black box that pointed at one bad MJPEG frame, then the PL310 L2 that hung the board until I read the vendor's sources

result · Hang fixed (417 s clean past the 186 s mark); L2 on: YuNet 42 → 27 ms
PI1

A face detector on a 2012 Pi: 2.37 s to 43.5 ms on the 12 QPUs

YuNet from my NanoPi project on the ARM1176, then every convolution moved onto the VideoCore's shader cores

result · One picture 2374 -> 43.5 ms; live 0.3 -> 12.3 detections/s (17.5 after the webcam fix)
DB8074

Local AI on a 2013 phone chip, and an L2 cache stuck at 576 MHz

No NPU, no GPU compute: LLM, speech and vision on four Krait cores, then a new driver so the L2 follows the CPU

result · Qwen2.5-0.5B at 4.15 tok/s; L2 driver lifts 4-thread memory read from 4433 to 7084 MB/s
MICRODUCK

How the duck learns to walk: no reference motion, 16 rewards

I read the training code to see where the gait comes from, and found two of my own notes were wrong

result · gait from 16 reward terms only (largest air_time +3.0), 4096 robots on a GPU, ~1–2 h on a GPU per upstream
MICRODUCK

Running the official policies with no window

Their play script wants a viewer and a keyboard; three swapped names and a fake clock made it run headless on a CPU

result · in MuJoCo: 4 runs, 0 falls, 10 s simulated in 8.54 s on CPU; speed only 0.09–0.11 of 0.3 m/s
ROCK3A

The board that names the music it plays, now on Linux

The YAMNet genre demo moved from Android 14 to Debian 11: a PipeWire monitor tap, one C program and the same INT8 model on the RK3568 NPU

result · 1.44 ms per YAMNet window on the NPU at 900 MHz (Android: 2.05 ms), 32x faster than one CPU thread, piano, rock and s...
ROCK3A

The RK3568 NPU: what Radxa's docs say, and what it did on my boards

Radxa's RKNN guide for the ROCK 3A read side by side with my own runs: converting with rknn-toolkit2, calling librknnrt from C, NPU against CPU and GPU, and the traps the docs don't mention

result · NPU INT8 32x one CPU thread on YAMNet (1.44 vs 45.68 ms), 6.5x four threads on Real-ESRGAN (219.2 vs 1433.0 ms); abou...
ROCK3A

The RISC-V MCU keeps watch: webcam to NPU with all four A55s off

The RK3568's own RV32 core drives the USB webcam, RGA2 and the NPU by itself, keeps DRAM in self-refresh between frames and powers an A55 back on only when it finds a face

result · DRAM in self-refresh 74.0 % of a 1 s camera cycle with all four A55s powered off; bell to core 0 in 16 µs; colour ste...