# Flowtick Meter

用 ESP32-C6 和光电传感器读取水表转盘的无电池智能读数器。

Battery-free optical reader for water meters with a scanning disc: ESP32-C6 + TCRT5000L, MQTT / Home Assistant, 3D-printed cases

用 ESP32-C6 和光电传感器读取水表转盘的无电池智能读数器。

- id: bruestel-flowtick-meter
- author: bruestel
- repository: https://github.com/bruestel/flowtick-meter
- license: Apache-2.0
- shape: square
- scenes: home
- boards: ESP32-C6
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/bruestel-flowtick-meter/
- html_zh: https://esp32gallery.com/zh/projects/bruestel-flowtick-meter/
- json: https://esp32gallery.com/data/catalog/projects/bruestel-flowtick-meter.json

## Hardware

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

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

## English

```
Old water meters carry a little half-chrome, half-black disc that spins with the flow; the vendor's pulse module is powered by a glued-in lithium cell and thrown away when it dies. This replaces it with a 3D-printed shell holding a TCRT5000L reflective sensor and a USB-powered ESP32-C6, counting every bright-dark edge as half a litre. Detection is not a plain threshold: two thresholds give hysteresis, a dwell time rejects spikes, plus a minimum gap and a fault mode where a pulled adapter or stray light stops counting and the detector resynchronises without inventing an edge. Readings survive restarts, an edge log is appended to flash, and there is a live scope, MQTT and Home Assistant discovery.
```

## 中文

```
老式水表表盘里有个跟着水流转的小圆片，一半镀铬一半黑，厂商的脉冲模块靠一颗胶死的锂电池供电，电尽就整块扔掉。这个项目用 3D 打印的壳套住 TCRT5000L 反射式传感器和一块 ESP32-C6，USB 供电，每转过一次明暗边沿算半升水。检测不是简单比阈值：两个阈值做迟滞，加驻留时间挡毛刺，还有最小间隔和故障态，传感器被拔掉或见光就停数，回来时重新同步而不凭空加一笔。读数一分钟存一次、重启前也存，边沿日志只追加写进闪存环形区，另有实时示波器和 MQTT 接入 Home Assistant。
```
