Introduction: Time is up, remind you to drink water!
1. Product introduction:
A drinking water reminder coaster designed and produced based on the STM32F030F4P6 chip. It has screen display, menu logic, voice reminder and other functions.
2. Application scenarios:
It is suitable for office workers, programmers, and students. It is used to solve the pain point of forgetting to drink water. Place this product on the desktop to remind users to drink water on time.
3. Product overview:
A product that regularly reminds you to drink water is developed based on STM32F030F4P6. It has functions such as time customization, lighting customization, 12832 screen display, menu logic, voice reminder and other functions.
4. Product parameters:
The appearance of the whole machine is about 10cm*10cm, small and exquisite.
Power supply: Power supply through TYPE-C interface, voltage 5v.
The default reminder period can be set in the menu. The default reminder is every 60 minutes. It can be changed between 20 minutes and 180 minutes by pressing the button (this range can be further modified through the source code).
The voice volume can be set in the menu and can be adjusted in three levels through the menu (the range can be further modified through the source code, ranging from 0-30).
The lighting effect (two WS2812 full-color LEDs) can be set in the menu, and the light flashing mode can be further modified through the source code. The LED supports 256 levels of brightness control for each of the three primary colors of RGB.
See the reference design download for the structure diagram. Note: The three indicators are RUN: running indicator, MCU: microcontroller power supply indicator, and SPEAK: voice module sound indicator.
5. Instructions for use:
Powered through the type-c interface, the screen lights up and the LED flashes.
Put the water cup on, and the voice will remind you that the water cup has been put down, and the countdown will start at the same time.
You can enter settings by long pressing the left button, and then press and hold to enter the next level submenu.
Short press to switch functions. After setting, press the up key to exit.
6. Note:
This module requires downloading the code (hardware + software). The source code is written by keil5MDK. You can download it in the attachment.
Code download method: Open the complete code of keil5mdk in the attachment, decompress it, open the keil5 project, compile and download.
The total cost of the module is about 60 yuan (excluding 3D printing fees and downloader fees such as ST-LINK).
Components other than the BOM list are in the attachment production tutorial and other documents, which can be seen after opening them.
Problems you may encounter during the first production:
If you buy a domestic replacement chip, there is a high probability that the error Error: Not a genuine ST Device! will be prompted when downloading. Please go to CSDN to search: Error: Not a genuine ST Device! and change it according to the tutorial. Just use the code in the chip package (disable the error code).
If you cannot download it for the first time, and the chip model cannot be found if the wiring is correct, please keep shorting the BOOT0 pin and press the RESET button, and then you can download!
7. Test video:
The following video contains all displays of the product, including appearance display, reminder to put down the water cup, menu settings, reminder to drink water, etc.
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet