Skip to the stories
Electronics & Semiconductors

Hildegard Uses Raspberry Pi AI HAT+ 2 to Spot Approaching Tea Mugs

  • Joseph Brown
  • 919 reads

A Raspberry Pi 5 and AI HAT+ 2 run local object detection to identify people carrying mugs and trigger desk-side alerts.

Hildegard Uses Raspberry Pi AI HAT+ 2 to Spot Approaching Tea Mugs

Hildegard turns a familiar office signal—a colleague approaching with a mug—into a local computer vision project. Built by VEEB’s Vanessa Bradley and Martin Spendiff, it uses a Raspberry Pi 5 and Raspberry Pi AI HAT+ 2 to detect people and mugs, then alerts the person at the desk. The result is part comic prop, part demonstration of how an edge AI system can connect object detection to a physical response.

Raspberry Pi Official Magazine Issue 172
Hildegard

The project follows Peeper Pam, an earlier build that watched for approaching people. Hildegard narrows the trigger to a person carrying a mug, a cue the creators associate with an incoming “quick chat.” When the camera detects that combination, the system can warn the user and launch a video meeting as a diversion. The playful premise gives the build a clear technical job: recognize a scene, classify its relevance, and produce an immediate response.

From camera feed to desk alert

A camera connected to the Raspberry Pi 5 supplies the image stream. The system analyses frames for people and mugs using a YOLO model, while the AI HAT+ 2 handles inference. Vanessa Bradley says the project processes images at around 30 frames per second, with few false positives; those that do occur are usually related to lighting conditions.

Rosie Hattersley photo
The Raspberry Pi AI HAT+ 2 runs the object detection used to identify mugs.

Detection results are sent from the Raspberry Pi 5 to a Raspberry Pi Pico W over a WebSocket connection. The Pico W sorts the detected objects into response levels, then drives the indicators. A person holding a mug receives the strongest alert. A person without a mug produces a moderate response, while a mug by itself gets a lower-level warning.

That ranking makes the setup more selective than a simple motion sensor. Movement alone can be an unreliable cue in a shared workspace; Hildegard combines two detected objects to decide when to react. The creators’ chosen categories also leave room for intermediate cases: a person nearby without a mug, or a mug with no person, still registers but prompts a less urgent response.

ChessCoreXY

Warnings come through an analogue gauge, LEDs, and sound. Together, those outputs turn model detections into feedback a person can notice without studying a screen. The enclosure is 3D printed and based on a design by Georg Mierau, Creepy Clock. Compared with Peeper Pam, Hildegard adds a clearer needle display and a more expressive light system.

Local processing and project trade-offs

All image analysis runs on the Raspberry Pi 5 and AI HAT+ 2, with no cloud service required. That keeps the processing on the device and, according to Bradley, helps reduce latency. For a warning system that reacts to someone approaching, a prompt response matters: a delayed detection could arrive after the moment the build is designed to flag.

Cardputer Zero review
The system can distinguish among different detected people and mug combinations.

The split between the two boards gives each part of the system a defined role. The Raspberry Pi 5 and AI HAT+ 2 handle the more demanding visual analysis, while the Pico W receives detections, applies the response ranking, and controls the alerts. That arrangement links a compute-intensive task to a compact controller responsible for the physical interface.

The software has also changed since the earlier build. Shell scripts have been replaced by Python on the Raspberry Pi 5 and MicroPython on the Pico W. The creators say the more capable hardware lets Hildegard run faster and detect objects in real time. They put the project’s cost at around £250; the source does not give a component-by-component breakdown, so that figure describes the build as a whole.

Ask an Engineer in Raspberry Pi Official Magazine issue 172

A small system with a practical design lesson

Hildegard is deliberately an “antisocial desk guardian,” but its structure reflects a wider pattern in embedded vision projects: a camera and inference hardware identify objects, software turns detections into a decision, and a controller operates the output devices. Here, the decision logic is easy to understand because it maps directly to visible categories and alert levels.

Lighting remains the main limitation mentioned by the creators. Changes in illumination can affect how reliably objects are detected, so the reported low rate of false positives comes with that qualification. The project does not give test conditions, a measured accuracy figure, or details of how the model was trained. Its stated frame rate and error observations should therefore be read as the team’s account of this build, rather than as a general performance guarantee for other installations.

For makers considering a similar setup, the useful takeaway is the division of work: run vision locally on hardware suited to inference, pass compact detection results to a controller, and keep the response logic simple enough to inspect. Hildegard wraps that architecture in a joke about office interruptions, but its practical demonstration is the path from camera frame to ranked event to physical alert.

Source: Joseph Brown · magazine.raspberrypi.com

From the same set