当前位置:网站首页>Xinyuan & Lichuang EDA training camp - brushless motor drive
Xinyuan & Lichuang EDA training camp - brushless motor drive
2022-07-05 23:20:00 【Xiao Xiang is a der】
Motor drive hardware
Preface
Recently, I always watch the push of various brushless motors , It seems that this year's smart cars also have individual groups that can use brushless motors , So it aroused the curiosity of the author , Zhengqiaolichuang EDA A training camp on brushless motor was held with Xinyuan semiconductor , So I have the following study notes .
Motor drive board work unit planning
The author intends to use 12V/3A The power adapter of provides power for the whole circuit , because CW32 Master control needs 3.3V Working voltage of , And the operational amplifier circuit of current detection 、 Power supply of Hall sensor, etc 5V Working voltage of , So we need to design 5V as well as 3.3V The voltage output of ; Because the voltage and current of the motor drive part will be relatively large , In order to prevent reverse breakdown from burning the main control IO mouth , It is also planned to add an isolation circuit and some additional protection circuits , Finally, the protagonist is the three-phase bridge responsible for generating voltage conversion .
Device selection and schematic drawing
After determining the working unit required by the drive board, you can start to select the type , Find the devices you need according to the above requirements , The previously verified scheme that can be used here , You can also refer to the finished circuits of others on the Internet , If there is no relevant accumulation , I don't know how to search for information , You can open it directly Li Chuang mall Screening , You can also go to other chip collection websites for adaptation , The author chooses Li Chuang mall .
Power part
First, according to the plan , Need one 12V turn 5V,5V turn 3.3V Circuit , There are two options , One is high selection efficiency , Switching power supply with low heating (DCDC) programme , The other is that the circuit is relatively simple , But it's not efficient , Linear voltage stabilization scheme with large heating . Here the author in order to simplify the circuit , I chose LDO, Because the circuit layout of switching power supply is a very particular thing , The author thinks that his skill is not enough , Try to verify later and then modify .
Open Lichuang Mall , Select power management , Then choose linear regulator (LDO).
Then in the screening box, select the appropriate devices according to your own needs , Here is the fixed output selected by the author , Positive voltage , An output channel ,5V Voltage reference , Input 12V, Then click filter to find the recommended model .
Here I choose L7805, When choosing, pay attention to the price and whether there is stock .
After selection , We also need to look at the reference circuit design of the data manual , similar DCDC There will also be layout suggestions , This must not be ignored .
The reference circuit of this chip is shown in the figure above , Need to increase capacitance to achieve , In power supply design , Basically, a large capacitor will be added to all input and output power sources to filter out low-frequency noise , At the same time, it plays the role of energy storage , Prevent the voltage from being pulled down , There is also a small capacitor , It's usually 100nf Used to filter out high-frequency noise .
According to the above screening scheme , You need to choose one more 5V turn 3.3V Linear regulator , Here the author uses Youshun UZ1084G-3.3V. It is also a fixed voltage single channel output .
After determining these models , It also needs to be based on your own needs , Add input interface 、 switch 、 insurance 、 Anti reverse diode and other auxiliary devices .
Finally, the schematic diagram is drawn according to the chip manual and empirical values .
Current detection
In motor control , Current is a very important parameter , Excessive current will burn the drive circuit or even the motor .; So we need an electric detection circuit .
Obviously, the single-chip microcomputer cannot directly collect the current signal ; The most commonly used external semaphore is ADC To collect , Various semaphores are transformed by corresponding sensors , Convert into voltage signal , For SCM to collect , For current collection , It's the same thing , The most direct device that connects current and voltage is resistance , Just connect a small enough precision resistor into the circuit , The current can be converted into a voltage signal , This voltage signal is processed by the operational amplifier , Use ADC collection , Then the current value can be obtained according to the magnification and resistance value .
There are many schemes of current acquisition , Including high side current acquisition 、 Low side current acquisition , Two phase and three-phase diversion schemes .
Here, the author chooses to collect the low side current of the two bridge arms and the total low side current .
After determining the collection method , It is necessary to start the model selection . About current detection , One scheme can be built directly with ordinary operational amplifiers , Another scheme is to use the special current amplifier . Both options are OK , The circuit of the former is a little complicated ., But it's cheap , The latter is slightly more expensive , But the circuit is simple .
Or in Lichuang mall , Select power management in the category , Then select the current sensing amplifier ,
You can see a series of current detection chips , For the most part TI Of INA series , Here I choose INA199B1DCKR.
There are circuit design references in its chip manual , It is recommended to use this kind of input with Kelvin connection .
Another plan is the official reference plan of Xinyuan , Use LM358 To set up , This circuit is used in Brushless DC motor control —— be based on STM8S A series of single chip computers are introduced .
Grid drive and power circuit
Brushless DC motor needs to use three-phase bridge to drive , For specific driving principle, please refer to this article Understand the working principle and difference between brush motor and brushless motor The power circuit of the three-phase bridge is actually the same as that with only brush motor H The bridge is similar , Only a bridge arm is added on this basis . For the introduction and circuit design of this aspect, you can see Mr. Tang's explanation .
DC brushless motor BLDC,FOC,2022 The national college student intelligent car competition
Model selection , The author PMOS Selected KNY3404C, The grid drive is EG( Yijingwei ) Of 2133, The reference circuit of its chip manual is as follows :
In the red box FR107 as well as C3 It forms a bootstrap circuit , For the introduction of bootstrap circuit, please refer to this article —— Principle analysis of bootstrap circuit . Then there are the resistors and diodes in the orange box , Their role is to eliminate MOS Ringing phenomenon when conducting , You can check this video about this phenomenon ——【 Give Way MOS It's worth burning Ring the bell , Explanation of stray inductance - Bili, Bili 】
About mos Study on the effect of the series connection resistance of the tube grid
On the basis of this reference circuit , The author also added a 10K One of the functions of this resistor is to give a certain level to the grid when the circuit is powered on , Prevent misleading communication when powered on , The second function is to Cgs Parasitic capacitance provides a discharge path , Consume the electric energy stored in the parasitic capacitor , For detailed introduction, please refer to this video ——【MOS The function of pull-down resistor on tube switch circuit - Bili, Bili 】.
The following is the circuit of the whole power part of the author's training camp :
Isolate the circuit
Last , The author also adds an isolation circuit , Used to protect SCM IO mouth , There are many schemes for the isolation circuit here , Buffer chips can be used, such as 74HC245; You can also use an optocoupler , Here I use 74HC245 To achieve , The circuit diagram is as follows :
Examples of optocoupler isolation :
So far, the schematic part of the whole hardware circuit is roughly completed .
PCB Drawing considerations
There are many contents in this part , stay TI Special documents on the official website of , The link is left for you to learn by yourself :
1. Best practices for motor driver board layout ;
2. System design considerations for high-power motor driver applications ;
3. For the use of BLDC Precautions for hardware design of electric bicycle with electric motor .
In addition, you can also check the video of teacher Tang's video game above , Yes PCB The drawing of is also introduced .
Results the preview
Lichuang & Xinyuan brushless motor training camp
summary
Can successfully reproduce the function of the training camp , The author himself is still very happy , Also mastered a motor control mode , The author will update the relevant software from time to time , If there is any deficiency in the above content , Welcome criticism , Those who want to learn brushless motor can go B Stand and find Lichuang eda Playback with core source .
边栏推荐
- grafana工具界面显示报错influxDB Error
- Leetcode sword finger offer brush questions - day 21
- JVM的简介
- openresty ngx_lua正则表达式
- 数据库基础知识(面试)
- Un article traite de la microstructure et des instructions de la classe
- Week 17 homework
- (4)UART应用设计及仿真验证2 —— TX模块设计(无状态机)
- Detailed explanation of pointer and array written test of C language
- UART Application Design and Simulation Verification 2 - TX Module Design (Stateless machine)
猜你喜欢
Using LNMP to build WordPress sites
Go语言实现原理——Map实现原理
Commonly used probability distributions: Bernoulli distribution, binomial distribution, polynomial distribution, Gaussian distribution, exponential distribution, Laplace distribution and Dirac delta d
数据库基础知识(面试)
Basic knowledge of database (interview)
98. 验证二叉搜索树 ●●
TVS管 与 稳压二极管参数对比
Scala concurrent programming (II) akka
一文搞定class的微觀結構和指令
Creative mode 1 - single case mode
随机推荐
Go语言实现原理——锁实现原理
Fix the memory structure of JVM in one article
UVA – 11637 garbage remembering exam (combination + possibility)
asp.net弹出层实例
One article deals with the microstructure and instructions of class
The method and principle of viewing the last modification time of the web page
Three. Js-01 getting started
poj 2762 Going from u to v or from v to u? (infer whether it is a weak link diagram)
regular expression
Use of shell:for loop
Design and implementation of secsha system
实现反向代理客户端IP透传
Mathematical formula screenshot recognition artifact mathpix unlimited use tutorial
LeetCode——Add Binary
(4)UART應用設計及仿真驗證2 —— TX模塊設計(無狀態機)
Media query: importing resources
Use the rewrite rule to rewrite all accesses to the a domain name to the B domain name
Data analysis - Thinking foreshadowing
openresty ngx_ Lua request response
AsyncSocket长连接棒包装问题解决