This project is dedicated to replicating the 10s smart coaster in [He’s Video](https://www.bilibili.com/video/BV1244y1p7kt) and adding more functions. ~~Isn’t it because the lighting solution made by Mr. He is too meaningless~~
[![main_image.png]

](https://github.com/kaidegit/DrinkAlarm) ## Solution design* The main chip uses Espressif ESP32 , can provide sufficient performance while providing a sufficient Internet connection* The photoelectric sensor is used to detect the presence of the cup, which is cheap and accurate in identification. The only drawback is that holes need to be made in the shell* The reminder solution uses [Server Sauce](https:// sct.ftqq.com/)'s WeChat push, and the on-board buzzer, you can modify the code yourself* The shell is printed with PETG, you can choose other materials to adapt to the cup holding boiling water## The program design
program is based on ESP-IDF framework, and using Arduino as a ESP-IDF component, you need to clone the [arduino-esp32 repository]( [github.com/espressif/arduino-esp32](http://github.com/espressif/arduino- esp32)
) to `esp-idf/components/arduino` (git clone after creating the arduino folder), and add the macro `IDF_COMPONENT_MANAGER=1` in the ide. It is expected that the Arduino component will be removed later as it has no use in this project.
The main functions of the program are to set alarm time, obtain network information, obtain online time and display it, time cup existence time and push it, etc.
The main process is as follows:
![flow.png]
## Reminder effect [![wechat_alarm.png]

](https://github.com/kaidegit/DrinkAlarm)
For the complete program and PCB and shell information, please visit my warehouse: [kaidegit /DrinkAlarm: A drinking reminder made by replicating He’s “Smart Coaster” (github.com)](https://github.com/kaidegit/DrinkAlarm)