A self-discipline timer based on cw32f030c8t6 (although the drawing is a brushless motor controller, I also reserved its second function-self-discipline timer). Since the brushless motor control project has not been completed yet, let’s take advantage of its timer function now. This timer is used to set the time during your own learning process, so that you can stay away from the temptation of mobile phones. The timer mainly has two types of timing times, namely study time and rest time. Their timing times can be set separately to improve the efficiency of learning. According to my habits, the study time is scheduled to be 50 minutes and the rest time is 10 minutes. There will be a longer break-like time in the middle. This can be adjusted according to your own habits, and during the long rest time, the screen will Turn off (except for displaying the scheduled time), this is also to save power. Let’s quickly demonstrate the working process of this timer: 1. First, the learning time is set to 2 minutes, the rest time is set to 1 minute, and the long break time is set to 1 minute (the word “rest” will not be displayed during this process). 2. Turn on the power and press the reset button. A pattern will move from left to right. Once this process is completed, it will enter the learning timing state. 3. If there is an urgent matter that needs to be handled, you can press the first button in the upper left corner of the PCB board to stop the timing. After the event is processed and you want to continue studying, you can press the button again and continue the timing. 4. The buzzer will sound every time it is study time and rest time to remind me whether I should study or rest. 5. In order to demonstrate quickly in the video, I accelerated the timing time by 10 times. 6. The top line of the OLED screen is the time, with hours displayed on the left, minutes displayed in the middle, and seconds displayed on the right. You can watch the video in the attachment for the demonstration process.



