I graduated with a bachelor's degree in automation. During this period, I learned various motor motion control principles and automatic control principles, but I only took exams and did not study the principles. Recently I came into contact with simplefoc, an open source brushless motor driver library based on Arduino, and I wanted to take this opportunity to apply what I learned in undergraduate studies into practice, so I came up with this small project, a balancing car based on brushless motor FOC .
Compared with brush motors used in ordinary cars, brushless motors have greater torque under the same volume. When driving a car, brushless motors can be directly driven, unlike brushed motors that require a reducer to meet torque requirements, and the response speed is faster. quick. Using a brushless motor can make the car more compact and beautiful.
The drive circuit and algorithm of the brushless motor are more complex. When the brushless motor works at low speed, the field-oriented control algorithm FOC (Field-oriented control) is used at the algorithm level to accurately control the motor's position, speed and even current, which is torque. , you can make a lot of fun things from this. FOC-based brushless motors are widely used in fields such as robot joints and camera gimbal motor control.
Blog document link
https://blog.csdn.net/weixin_42487906/article/details/124898392
Video link
https://www.bilibili.com/video/BV1Sv4y137FG/
Github warehouse, containing code, 3D printing files, pcb board making files:
https://github.com/FranHawk/simplefoc_balance_car
The schematic diagram and pcb can be viewed online at Lichuang eda project:
there are a total of three boards,
main boards (including motor control and drive parts) : https://oshwhub.com/FranHawk/balance_car_esp32_simplefoc
encoder board : https://oshwhub.com/FranHawk /as5600-16mm
RGB light strip board : https://oshwhub.com/FranHawk/rgb_strip
All electronic component materials can be purchased by referring to the BOM list or the schematic diagram in the project. You can buy them on Taobao or Lichuang. Here are some links to key materials.
AS5600 L6234PD INA240A1 : [Taobao] https://m.tb.cn/h.ft947n2?tk=gn3u2P8IocI "L6234PD L6234D L6234 HSOP original automotive IC imported chip hot sale quality super good" Click the link to directly open
the motor part chip to buy from this store The goods arrived are quite cheap, and
other electronic components can be found at Uxin Electronics and the like. Those with sufficient financial resources can start their own business directly, which saves trouble.
2210 gimbal motor (at least two) [Taobao] https://m.tb.cn/h.fslSDE8?tk=G8Pk2P8HluO "Clearout HJ2210-75T brushless gimbal motor Dog 3 gimbal special aerial photography motor gimbal hollow shaft "Ma" click on the link to directly open
the tire skin (at least two) [Taobao] https://m.tb.cn/h.ft9UFV4?tk=L8Ez2P8u1Ma "AXIAL 1:24 car SCX24 90081 Xiaomi Jimny universal rubber climbing tire skin Diameter 52mm" Click the link to directly open
the motor bracket (at least two) [Taobao] https://m.tb.cn/h.fsl86Kp?tk=i9Oo2P8FvxY "390 motor bracket 385 fixed base 365 mounting base 380 motor fixed frame with screws Nut click on the link to directly open
the black acrylic plate (at least two) [Taobao] https://m.tb.cn/h.fH9ybkd?tk=2OCV2P8vqAf "Balance car DIY special acrylic bracket plate expansion board" click on the link to directly open
the battery 900mah [Taobao] https://m.tb.cn/h.fGk2f0O?tk=33dF2PjbvTN "Model Aircraft Battery 5200mAh 11.1V Full Capacity High C7.4V Car Model Ship Model RC Climbing Car Quality Assurance" Click the link to open it directly
Other small mechanical parts
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