# Star pupil voice dumpling
## Zero, function description
Based on the ordinary button voice dumpling, add the following functions:
+ Timed reminder to drink water
+ Double-click to tell time
+ Play the corresponding voice when the magnet approaches or moves away
If you want to change the time period for reminding to drink water, just modify the macro definition at the beginning of the program:
```c
//Time period for reminding to drink water
//The default here is to remind you to drink water at the 01st minute from 8 am to 10 pm every day
#define beginTime 8
#define endTime 22
#define Nmin 01
```
## 1. Software download
> The required program voices are all in the attachment
### 1. ESP8266 program download
①. Solder the R47 on the front after the program is downloaded
! [front.png]

②. Short-circuit the pads accordingly according to the text requirements on the back
! [back.png]

③. Enter the program download mode after connecting the data cable
> How to enter:
First press and hold the red box button, then click the yellow box button, and then release the red box button
! [boot.png]

④、Use the corresponding download tool to download the program.
You can search "esp8266 program download method" in major search engines. The detailed download method is not repeated here
### 2. Voice chip voice download
①、Change the short-circuit pad mode to switch to voice download mode
![back.png]

②、Use a specific voice download tool to download voice
> You can replace it with your favorite voice, just pay attention to the file name sequence
### 3. After downloading
①、Short-circuit the required pad on the back, otherwise the voice cannot be played
②、Weld R47, otherwise it cannot be charged
## 2. When connecting to the Internet,
use your mobile phone to create a hotspot:
> WiFi name: Xingtong
> WiFi password: 25682568
Press the button shown in the figure below before turning on the machine
![button.png]

After turning on the machine, you can let go when you hear the "Connecting to the Internet" voice.
At this time, it will automatically connect to WiFi and obtain the time.
After waiting for a few seconds, you can turn off the hotspot and double-click the black button to test whether it is successfully obtained
## 3. Hardware Description
### 1. Hall sensor installation instructions
①. Do not solder the Hall sensor directly on the circuit board, use wires to lead it out
②. After leading it out, stick it on the side of a coin, as shown in the figure
! [coin.jpg]

③. Paste the coin inside the dumpling, where you want the external magnet to attract it
④. The external magnet must attract the coin through the S pole, otherwise the Hall sensor will not respond
## 4. Special hardware purchase
①. Lithium battery (pay attention to the positive and negative poles when installing): 103450 [2000 mAh] 2.54 plug
②. Speaker: 20mm