3D diagram:
The above 3D picture is the adjusted picture
Power supply section
Due to the design problem of the 24V to 10V power supply at the beginning of the design (pure novice, copying homework), the 3-pin FB is directly connected to the ground, causing the buck circuit to have no effect. The input voltage is 24V, and the direct output to the subsequent circuit is also 24V.
The withstand voltage of the pre-electrolytic capacitor in the 10V to 5V circuit is 16V, so...
See those two feet? Those two feet that look like antennas
This is what it looks like after a capacitor explodes

Therefore, I would like to remind everyone: this project is risky, please be careful when entering the pit!
What the power part looks like after flying the wires:
It's a bit ugly, but it's still practical. The white one is silicone to prevent the flying wire from running around and breaking.
In the picture above, there is a capacitor that is not soldered. Did you notice? This is the capacitor with two remaining legs. In order to avoid secondary damage, it was removed and not installed.
Motor drive part
The motor drive part uses EG2133 as the gate driver of the three-phase bridge to avoid the explosion of the tube caused by the direct connection of the upper and lower bridges (exploding the capacitor also explodes the tube, I have taken the first step as a cyborg (^o^)/~)
The drive circuit is designed with a back electromotive force monitoring circuit, but the Hall motor I use is as follows:
Bought from Xubao for 19 yuan, 105V DC brushless motor with Hall sensor
Main control and control circuit
The control part has a potentiometer to control the motor speed, and leads to reset and start selections to facilitate the reset of the CPU and the selection to start the flash program.
In addition, three channels of buttons and two channels of LEDs are introduced for control when the program is running.
Physical verification
Physical map:
Power on state:
Motor running status: