# Anchor Alarm

带 GPS、电子墨水屏和旋转编码器的 ESP32 船只锚位报警器。

Anchor Alarm with LolinLite ESP32, GPS Module, ePaper Display and setting via rotary encoder

带 GPS、电子墨水屏和旋转编码器的 ESP32 船只锚位报警器。

- id: 88markus88-esp32-anchor-alarm
- author: 88markus88
- repository: https://github.com/88markus88/ESP32_Anchor_Alarm
- license: MIT
- shape: epaper
- scenes: art
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/88markus88-esp32-anchor-alarm/
- html_zh: https://esp32gallery.com/zh/projects/88markus88-esp32-anchor-alarm/
- json: https://esp32gallery.com/data/catalog/projects/88markus88-esp32-anchor-alarm.json

## Hardware

ESP32-class board. Verify the exact board revision, display, power source and wiring in the upstream build guide.

ESP32 类开发板；请在上游构建文档中核对具体板型、屏幕、供电与接线。

## English

```
For boats at anchor: a Lolin Lite ESP32 with a GPS module, a 1.54-inch 200x200 e-paper screen and a rotary encoder, built as a replacement for a phone anchor app that drains its battery and gets killed by Android. The screen draws the anchor as a cross, a safe circle and the boat as a target, with satellite count, HDOP and battery voltage around it. Rather than alarm on a single excursion, it accumulates a score: 10% outside the circle adds 1, 30% adds 3, and the alarm fires when the sum passes a threshold; drifting back inside resets it. It also alarms after 10 seconds without a fix, or below 3.6V or 10% battery. An 1800 mAh LiPo gives about 30 hours at a measured 60 mA average. Measured runtimes with a NEO-M8N run from 33.9 to 49.6 hours depending on mode and interval; STL files are included.
```

## 中文

```
给抛锚的船用：Lolin Lite ESP32 配 GPS 模块、1.54 英寸 200x200 墨水屏和一个带按键的旋转编码器，用来替代手机上那个费电、又会被 Android 莫名其妙杀掉的锚泊报警 App。屏幕上锚点是十字，外面一圈安全区，船画成靶标，旁边是卫星数、HDOP 和电池电压。报警不是越界一次就响，而是累计分值：出圈 10% 加 1，出圈 30% 加 3，累计超过阈值才触发，回到圈内分值清零。另外连续 10 秒没有有效定位、电压低于 3.6V 或电量低于 10% 也会报警。1800 mAh 锂电按实测平均 60 mA 算，能撑约 30 小时；配 NEO-M8N 时按模式和间隔不同，实测续航在 33.9 到 49.6 小时之间。外壳 STL 一并提供。
```
