太白金星

Water spray alarm clock based on GD32f1

 
Overview

Introduction: When the time is up, the alarm clock will wake you up with water.
1: Product introduction,

a water spray alarm clock based on GD32F103CBT6. It has basic peripherals such as a buzzer, 12864 screen, water pump, etc. It has a charging function and the RTC clock has a backup power supply. The power outage time is not lost.
2: Application scenario,

suitable for students, office workers, and other people who have difficulty getting out of bed. Place this product on the bedside. When the time is up, it will gently wake you up by "spraying water"!
3: Product overview,

a water spray alarm clock based on GD32F103CBT6. It has basic peripherals such as a buzzer, 12864 screen, water pump, etc. It has a charging function. The RTC clock has a backup power supply and the power outage time is not lost. It has a supporting C# host computer. , you can quickly make relevant settings.
4: Product parameters,

finished product size 46*51*118mm, 2-layer board design, overall appearance is rectangular, simple and beautiful.
Powered by TYPE-C interface, voltage DC5V.
It has a charging function and the battery can be used for about 48 hours (the lithium polymer battery is only used as a backup power supply, and it is recommended to plug it in for long-term use).
The alarm clock has 3 levels of sub-menus, and the menu settings will not be lost when the power is turned off.
Pure Chinese graphical interface, very easy to get started.
It is equipped with a C# host computer and is connected to the computer through a TYPE-C cable. It can automatically synchronize the computer time and date with one click, and can quickly read various parameters in the alarm clock submenu and set them.
The RTC clock is driven by an independent external crystal oscillator, and the time error is small (the error in one month is within 30 seconds in personal testing).

5: Instructions for use,
basic operations:

Power on: Short press the left button once.
Shut down: Short press the left button twice. (It is recommended to connect to the power supply!)
Charging: Plug in the TYPE-C cable and connect to the power supply. The red light on the top of the alarm clock flashes to indicate that it is charging. When the battery is fully charged, the red light stays on.


Setting operation:

The following is the setting through the alarm clock:

short press the central set button to enter the setting menu, use
the up and down buttons to control the cursor to point to the option you want to set, and then press the set button again to enter the submenu.
In the submenu, press the left or right button to switch the cursor position, and press the up or down button to add or subtract values.
After setting is completed, press set to save and return to the main setting menu.



The host computer interface diagram (see reference design download) is shown in the figure. The usage method is as follows:

connect the computer and alarm clock through the type-c interface at the bottom of the alarm clock. Please make sure that the CH340 chip driver is installed on the computer!
Click the Click Me Search Alarm Clock button (No. 1 in the picture), and then you can see the device port number in the drop-down list at position 2, and select the correct port number.
Click to connect the alarm clock (No. 3 in the picture), and then click to read the alarm clock data (No. 4 in the picture). You can see that the alarm clock data has been synchronized to the right side, and data is being transmitted back in the data receiving area.
Change the required parameters in the input box on the right, and then click the xx setting button on the right to save the data to RAM
. After the settings are completed, please click Write to flash (No. 5 in the picture) to save the data when the power is turned off.
You can also click buttons No. 6 and No. 7. At this time, the computer will automatically read the computer time and send it to the alarm clock for calibration, which is very convenient!


6: Note:

This production 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 200 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.


7: Test video,

the following video contains all displays of the product, including appearance display, menu function display, host computer display, etc.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-09 10:57:25

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号