//------------------------------------------------ -------------------------------------------------- --------------------------------------------------
// 2022-06-10
The current version starts smoothly and runs stably. Source code file ''source_cwesc_22-06-10-1.rar''.
Supplement and summary of the features of this open source project are as follows:
1. Two-way brushless ESC.
2. PWM signal input, high pulse width range 1000~2000us, greater than 1500 for forward rotation, less than reverse rotation.
3. Complementary PWM output, synchronous freewheeling, and the lower arm generates almost no heat.
4. 75% of the time is when the PWM high level is used to collect back electromotive force, and the data is more accurate at lower levels.
5. With serial port output, two-way data transmission, interrupt sending and receiving. Easy to debug and takes up very little CPU time.
6. Start-up is divided into two stages, and it can start normally even with large load, large torque or reverse rotation.
7. With over-temperature and over-current protection.
8. With phase loss protection.
Upload several back electromotive force waveform diagrams. The picture is drawn using the serial port software vofa+, and the ESC sends the data to the host computer.
* pwm_in is the pwm input duty cycle, 430 means 43%.
* Red is the virtual median, and the other three lines are UVW three opposite electromotive forces.
//------------------------------------------------ -------------------------------------------------- --------------------------------------------------
// 2022-06-09
Re-adjust the program structure to solve the following problems:
1. If there is too much code in the interrupt program, interrupt deadlock may occur;
2. That is, the current interrupt has not been executed yet, and the next interrupt occurs again;
3. If a pair of half-bridges continues to conduct, there is a risk of burning out the drive tube and motor.
//------------------------------------------------ -------------------------------------------------- --------------------------------------------------
// 2022-06-08
1. Correct the PWM frequency to 32k. Reserve enough time for ADC sampling.
2. The ADC sampling time is changed from two to three to increase low-speed accuracy. The lowest speed can be stabilized at 500rpm, 4-pole motor, which is 12kepm.
3. When starting and dragging, the starting torque is significantly increased.
//------------------------------------------------ -------------------------------------------------- --------------------------------------------------
// first version
cwesc, brushless and inductive ESC.
1. The main control is cw32f030
2. Power supply in 2~4s
3. Enter pwm
4. With serial port debugging
5. Over-temperature and phase loss protection
6. Synchronous continuous flow
Continuing debugging...
//------------------------------------------------ -------------------------------------------------- --------------------------------------------------
** Video 1 is the first version.
** Video 2 is firmware 220608, with counterweight motor for forward and reverse rotation, high current and high torque.
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