An on-device AI tutor for a remote lab
It watches a real experiment — the vanishing rod, a glass rod that disappears in an oil of matching refractive index — through a camera, works out what the student already understands, and teaches by asking the next question. The language model runs entirely on one Qualcomm handheld; no video and no question leaves the device.
View the code on GitHub →The tutor looks at the lab's own camera before every answer. No facts about the apparatus are typed into the model.
Which question to ask is decided by a program, from a file of 72 checked fact cards — not by the model. The model only looks and writes.
Gemma 4 E4B (4-bit) runs on the handheld's GPU. A standalone Android app, no cloud, no terminal.
The lab and the handheld each connect out to the relay on this server over a secure SSH tunnel, so they can be on different networks and neither needs a public address. Only camera frames and three motor commands cross the network — the question, the model and the page stay on the handheld.