# Esp Mosaico Fit Coach

esp-mosaico fit-coach ，fit-coach · 姿态健身教练 一个跑在 ESP-Mosaico（ESP32-S31 + 480×480 触摸屏 + 摄像头模块）上的 仰卧起坐自动计数器：把设备往地上一支，它就能看着你训练、帮你数个数、 播报节奏、记录历史——不需要穿戴任何设备，也不需要一直开着电脑。

esp-mosaico fit-coach ，fit-coach · 姿态健身教练 一个跑在 ESP-Mosaico（ESP32-S31 + 480×480 触摸屏 + 摄像头模块）上的 仰卧起坐自动计数器：把设备往地上一支，它就能看着你训练、帮你数个数、…

- id: liangdabiao-esp-mosaico-fit-coach
- author: liangdabiao
- repository: https://github.com/liangdabiao/esp-mosaico-fit-coach
- license: Apache-2.0
- shape: square
- scenes: art, tools
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/liangdabiao-esp-mosaico-fit-coach/
- html_zh: https://esp32gallery.com/zh/projects/liangdabiao-esp-mosaico-fit-coach/
- json: https://esp32gallery.com/data/catalog/projects/liangdabiao-esp-mosaico-fit-coach.json

## Hardware

Supported hardware: ESP32. Confirm the exact board revision and pin map in the upstream repository.

支持硬件：ESP32。烧录前请在上游仓库核对板卡版本与引脚定义。

## English

```
A camera board propped on the floor counts sit-ups: frames are compressed and sent out to measure the shoulder-hip-knee angle, with lying above 110° and sitting below 55°, so one down-and-up is one repetition and the band between the thresholds absorbs jitter. Recognition stays off the device because a pose model needs over seven seconds per frame while a sit-up lasts two to four, but counting runs locally so a dropped link loses nothing. It can call a Python server on a home machine, an OpenAI-compatible vision API, or run in a demo mode. The firmware builds inside the ESP-Mosaico workspace with ESP-IDF and produces a 1.9MB image.
```

## 中文

```
把一台带摄像头的小屏设备架在地上当引体向上……准确说是仰卧起坐的计数员：摄像头拍 JPEG 传出去算肩-髋-膝三点的夹角，躺平超过 110°、坐起低于 55°，一躺一起算一次，中间那段角度当作迟滞带防重复计数。识别不放在设备上，是因为实测 YOLO11n-Pose 单帧要七秒以上，而一个仰卧起坐才两三秒；计数反而留在本地，断网重连也不丢。识别可以接自家跑 Python 的机器、OpenAI 兼容的视觉模型 API，或者干脆用演示模式。固件在 ESP-Mosaico 工作区里用 ESP-IDF 构建，镜像约 1.9MB。
```
