Sorry everyone, I've been waiting for a while.
Bilibili demonstration video link (also available at the end of the article): https://www.bilibili.com/video/BV19R4y1L7yW?share_source=copy_web
V2.0 version of the previous open source project (link to the previous open source project: https://oshwhub.com/Beauty_Light/zhi-liu-wu-shua-dian-ji-qu-dong-)
Click to enter to view relevant introduction.
Brushless DC motor driver board, as of 20220315, version is V2.0. This board is for learning and communication only.
Not surprisingly, this is the final version.
1. Version comparison and parameter introduction
Comparison chart:
V1.0:
V2.0:
Version: V2.0 (verified)
Voltage: 9~24V
Limit voltage: ~40V
Current: 0~4A can still exceed 0. It is not necessary for learning, but it is not necessary;
Recommended power: Within 100W. With proper heat dissipation, it is estimated to reach 300W. I haven’t measured it carefully, but I can only draw from experience.
Main components: Both the upper and lower bridges use NMOS, do not integrate MCU main control, use ST standard motor interface, support inductive Hall, non-inductive square wave, support FOC vector control, etc.
Attached: ST motor interface definition (picture)
The complete set of information + driver board + MCU main control board + motor is available on Taobao. If you don’t want to bother, you can buy finished products on Taobao, including the main control board with ST standard interface.
Commercial use without authorization from the author is prohibited.
Taobao link:
https://item.taobao.com/item.htm?spm=a213gs.success.result.1.65d67a86CuT6Qk&id=668129776715
Note: If you purchase finished products, Taobao can provide customer service with my open source link to get a discount.
2. V2.0 version adds details and improvements, issues and discussions
Note: The current version of open source materials is V2.0. It does not mean that there are any big problems with the V1.0 version. If you have any questions, please see the introduction in this section.
1. The two network pins ICIV and IBIS at the V1.0 version of LM358 are floating. ICIV and IBIS are the bus average current and the bus instantaneous current (AD value) respectively. In the V2.0 version, ICIV and IBIS will be connected to pins 15 and 17 of the motor interface respectively. Used to monitor the operating status of the motor. Improved.
2. Add the oscilloscope clamping point (design the GND pad near the GND of 7805).
3. Add a test point to the AD pin of the potentiometer RP1 next to the LM358.
4. Add multiple test points near the LM358 pins.
The function of adding test points:
a. It is convenient to detect whether the working status of the board is normal (currently V1.0 is normal)
b. It is convenient to use an oscilloscope to observe signal waveforms in various places during learning, or to measure relevant voltage and current values.
5. Add 1nF capacitor filtering to the Hall sensor interfaces HA, HB, and HC.
Reason: During the test, it was found that the modulated Hall signal waveform output by some brushless motors had slight problems (a problem with the motor).
6. Change the order of Hall interface 5V and GND (a matter of personal habits)
7.tip, the driver chip IR2103 can be replaced by EG3013, which can be directly replaced, but according to the data sheet of EG3013, the diode of the original peripheral circuit can be omitted. EG3013 is cheaper than IR2103 in Lichuang Mall, but the SMT replacement fee is 10 yuan more.
8. The main capacitor is smaller and costs 470uF/50V. It looks better because it is basically used at 24V voltage.
9. The potentiometer is welded smaller because some people use it as a speed regulating potentiometer (that is used to set the current).
10. If you find that the current is low during use, check if it is a problem with the fuse. The schematic diagram shows a 3A fuse. I soldered a 6A fuse in version 2.0. If the circuit is stable, you can change the fuse strategy.
11. Both versions of the power supply are protected against reverse connection (I connected the power supply reversely during the test, but it was fine). In my subsequent open source projects, there will be other solutions for power input insurance, so stay tuned.
12. The peripheral components of the MOS bridge circuit are deleted, and the 10R resistor is removed from the driver chip periphery.
13. For LM358, the filter capacitor C17 (470nF) at ICIV can be replaced with 1uF (in the actual oscilloscope test, it was found that the wave was not filtered completely)
14. Where the power supply LC oscillates, the inductor 680 is a little small (not a big problem). When you look at the power supply output waveform on the oscilloscope, there is some oscillation. It will be fine if you don’t replace it.
To sum up, the improvement concept of 2.0 is the icing on the cake of version 1.0.
3. 20220217 log: open source project source code (please move to the V1.0 attachment for open source code)
The MCU main control is F103RCT6 , using the core development board with ST standard motor interface, open-loop debugging:
I originally wanted to open source this main control board, but the cost of this board is relatively expensive. I will open source a new ultra-cheap replacement within this month.
Why not put the code for closed-loop speed regulation this time? : The code is available, but the closed-loop speed regulation depends on what kind of motor is used (motor parameters such as the number of pole pairs), which will be covered later.
The driver board supports back electromotive force and FOC, but it will be more troublesome to do FOC because there is no 3-phase acquisition.
//Original author information of the code:
//u-easytech Cassy
//QQ:3119502755
//STM32F1-QC board AD
//20151204
The code was written by the company boss over the past five years . With slight modifications and adjustments, it can be used immediately.
This is for learning reference only. If you have any questions, please contact the author. If the boss is too busy, you can contact me QQ: 1808736089 (Li Gong)
The company’s external technical exchange QQ group: 709772520
My technical exchange group, Q&A group, and bragging group: 823355043 (there will be related benefits in the group in the future)
Also: The MCU main control board is not yet open source (the information has not been compiled yet). If you need relevant information, you can ask customer service through the Taobao link.
The code here is only an example and can be used on a computer. Beginners can familiarize themselves with brushless DC motor drive control implementation based on the code implementation process. You can also apply it to your favorite MCU. Please transplant it yourself.
For more learning materials or related content, please join the group or Taobao to browse.
Conclusion and update notice:
I'm a bit busy, and the open source project links will be gradually improved.
The current version of the driver board is V2.0, which should be the final version as expected.
Set a flag: A series of content related to brushless motors will be open sourced later:
1. Main control board adapted to this power board
2. High-power motor driver development board with integrated MCU (learning education kit)
3. Open source a product-level motor driver with a wide range of adaptability based on the public model (expected to open source a low-cost and low-price solution)
Welcome to update.
Welcome to learn and exchange with each other.
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