Micah Andelman

BrimCam

When
Fall 2026
Role
Solo, hardware and software
Status
In progress: bringing up the camera board
Built with
Seeed XIAO ESP32S3 Sense, Herald, Gemini API

Skip the 3D tour

A camera in the brim of a baseball cap that estimates the calories and macros in my dining-hall meals. It photographs the tray, a Telegram bot names each item and estimates the portion, and the numbers come from UMD Dining's published nutrition facts.

It started as camera glasses, but the battery was too big to hide in a frame, so I moved it to a cap and took on the software too. The hardware only has to take a good photo of the tray, and everything else, from naming the food to adding up the macros, happens on the Telegram side.

The cap, exploded in 3D

Exploded view, not to scale: the small parts are drawn larger as they come out. Placement follows the build; sizes are approximate.

  1. 01 / 04

    The cap

    Everything rides in a baseball cap: the battery, the controls, the camera and its antenna.

  2. 02 / 04

    Apart

    The 500 mAh LiPo is a protected cell, tucked under the crown where it cannot get crushed. The touch pad is on the side of the crown and the slide switch is on the band.

  3. 03 / 04

    Under the brim

    The XIAO ESP32S3 Sense sits under the front of the brim, camera angled down at the tray. The Wi-Fi antenna faces away from my head and the recording LED is under the brim tip. The mic stays off, because Maryland requires everyone on an audio recording to consent.

  4. 04 / 04

    The shot

    It photographs the tray. A Telegram bot names each item and estimates the portion, and the numbers come from UMD Dining's published nutrition facts.

Exploded side view of the cap. The crown lifts off to show the 500 mAh LiPo underneath, and the touch pad, slide switch, brim, XIAO ESP32S3 Sense camera board, Wi-Fi antenna and recording LED separate out, joined by their wires. Then it goes back together and the camera looks down at a tray. LiPo 3.7 V500 mAh 500 mAh LiPoprotected, under the crown2 XIAO ESP32S3 Sensecamera and Wi-Fi, mic off6 Wi-Fi antennafaces away from my head7 Recording LED8 Crown1 Touch pad3 Slide switch4 Brim5
Exploded view, not to scale: the small parts are drawn larger as they come out. Placement follows the build; sizes are approximate.
  1. Crown. The battery hides underneath it.
  2. 500 mAh LiPo. A protected cell, tucked under the crown where it cannot get crushed.
  3. Touch pad. On the side of the crown.
  4. Slide switch. On the band.
  5. Brim. The camera board sits under its front edge.
  6. XIAO ESP32S3 Sense. Camera and Wi-Fi, angled down at the tray. The onboard mic stays off, because Maryland requires everyone on an audio recording to consent.
  7. Wi-Fi antenna. Along the brim, facing away from my head.
  8. Recording LED. Under the brim tip.
Brim cameraXIAO ESP32S3 Sense HeraldTelegram bot Gemini APIItems and portions MacrosUMD Dining facts

Select a step.

Questions about this project, or looking for an intern? [email protected]