* 1. Introduction to project functions
This is a desktop electronic clock, based on Renesas RA2E1 chip, using digital tube display, you can manually set the time by pressing buttons, and it also has the function of monitoring ambient temperature and humidity
*2. Project attributes
open source, original
* 3. Open source protocol
open source
*4. Hardware The
hardware is designed by Jiali Chuang EDA, the main control uses Renesas R7FA2E1A72DFL, and the charging management chip is TP4056.
This project is designed with battery charging/power supply function, which is switched through AO3401 field effect MOS tube. When the VBAT end is powered by battery, the gate of AO3401 is pulled down to a low level through R9, MOS is turned on, and the circuit is powered by battery. When the external power supply is plugged in, the MOS tube is turned off, and the external power supply powers the circuit.

The battery charging management chip of this project uses TP4056. The charging current is determined by the pull-down resistor at the PROG end. Since this project plans to use a resin shell, the heat generated during charging should not be too large, and the battery capacity of the desktop clock itself is small. At the same time, there is a temperature sensor inside the clock. In this project, a 10K pull-down resistor is used. According to the manual, the corresponding charging current is 130mA at this time. The charging current is small, and there is no need to add a heat dissipation resistor in the circuit.

Since it is inconvenient to keep pressing the BOOT button when downloading using the serial port in the official case, BOOT is changed to a jumper cap.

This project uses a 6p typec female socket to reduce the difficulty of welding while supporting cc line power supply.

This project has a touch pin and a touch control function
. This project leads to the SWD/serial port for easy download and debugging of the program.
All resistors and capacitors in this project are packaged in 0805, which is convenient for novices to weld.
The space reserved for the shell can be larger to avoid installation difficulties.
The accuracy of DHT11 is not enough, and the space occupied is relatively large. You can replace it with a more accurate sensor.
If you consider enhancing the accuracy of travel time, it is recommended to use an external crystal oscillator.
The current power consumption is measured to be 377mW when the digital tube is always on, which is too high for a desktop clock.

The next step is to consider adding a digital tube sleep function to reduce power consumption.
*5. Software part
This project uses Keil and RASC for development. The touch pin configuration part is copied to the Keil project after being configured by e2studio.
*6. BOM list

This is the BOM list automatically generated by Jiali Chuang EDA, for reference only.
*7. Competition LOGO verification
*8. Demonstrate your project and record it as a video and upload it.
See the attachment.
Since the touch spring and key cap have not arrived yet, they are not installed in the shell for demonstration. More details will be improved later
: https://diy.szlcsc.com/posts/15a52db9fd7d40c492eb505280278e45