Team 6 · M26EC3.202 · Embedded Systems Workshop

Tetragrammatron

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 →

How it works

It watches

The tutor looks at the lab's own camera before every answer. No facts about the apparatus are typed into the model.

It teaches by asking

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.

It runs on the phone

Gemma 4 E4B (4-bit) runs on the handheld's GPU. A standalone Android app, no cloud, no terminal.

Architecture — three machines

The remote labRaspberry Pi · USB camera · stepper motor, at IIIT Hyderabad
→
This serverA relay that passes camera frames and motor commands between the two sides
→
The handheldRuns the model, the tutor and the page; the student reads and types here

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.

Results

26%hallucination rate — best of 8 vision models
33→100%answers correct, without vs with the fact card
0.70retrieval accuracy on unseen student phrasing
on-devicemodel, vision and tutor, no internet