# Espressolog

为咖啡机增加 ESP32-S3、蓝牙秤和本地网页记录的浓缩咖啡日志。

Espresso shot logger for an Ascaso Dream PID + Eureka Mignon. ESP32-S3, BLE scales, Go/SQLite, PWA. Includes a decode of the Ascaso's display bus.

为咖啡机增加 ESP32-S3、蓝牙秤和本地网页记录的浓缩咖啡日志。

- id: weatherhog-espressolog
- author: weatherhog
- repository: https://github.com/weatherhog/espressolog
- license: MIT
- shape: wide
- scenes: home, art
- boards: ESP32-S3
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/weatherhog-espressolog/
- html_zh: https://esp32gallery.com/zh/projects/weatherhog-espressolog/
- json: https://esp32gallery.com/data/catalog/projects/weatherhog-espressolog.json

## Hardware

ESP32-S3. Verify the exact board revision, wiring and power requirements in the upstream build guide.

ESP32-S3；请在上游构建文档中核对具体板型、供电与接线。

## English

```
An espresso machine becomes a logged instrument: an ESP32-S3 reads two Bluetooth scales, decides from the weight curve alone where a shot starts and ends, spools it to flash and uploads to a Go service that keeps shots in SQLite and serves a PWA. It is deliberately read-only: every sense tap on the Ascaso Dream PID is high-impedance, nothing actuates the pump, and the Phase 1 parts sit behind open jumpers. The front display bus turned out to be a plain synchronous serial link, not I²C, at about 9.9 kHz with 133-bit frames every ~41 ms, carrying boiler temperature at idle, then the shot timer; a Python decoder is included. A noise floor of σ = 0.21 g/s on mean flow over 46 shots is the go/no-go for closed-loop control. PlatformIO builds the firmware, and the J5 display tap is 5 V on a chip that is not.
```

## 中文

```
把咖啡机变成一台会留记录的仪器：ESP32-S3 同时读两台蓝牙秤，只凭重量曲线自己判断一次萃取从哪儿开始、到哪儿结束，把数据先写进 Flash，再上传给一个 Go 服务，由它存进 SQLite 并对外提供 PWA 页面。整套是只读的：Ascaso Dream PID 上每一个取样点都是高阻，没有任何东西去驱动泵，板子上未来执行机构的元件也隔着断开的跳线。机器前面板的总线也拆明白了——不是 sigrok 猜的 I²C，而是约 9.9 kHz 的同步串行，每 41 ms 左右一帧 133 位，空闲时传锅炉温度，萃取时传机器自带的秒表；附带 Python 解码器。46 杯同一配方测出平均流量噪声 σ = 0.21 g/s，这个数是闭环控制能不能做的判据。固件用 PlatformIO；J5 显示取样点是 5 V，而芯片不耐 5 V，接线前必须看警告。
```
