Based on simple foc, it is directly plugged into the 3D printing motherboard and uses step and dir signals to drive the brushless motor. Mainly used to drive lightweight brushless extruders.
Hardware solution introduction:
The main control chip uses LGT8F328, which is a replacement chip for Atmaga328 and has a built-in clock source.
The motor driver chip uses AT8313, which is a domestic chip. You can also use DRV8313. The hardware circuits of the two are exactly the same.
AT8313 supports up to 35V power supply, and DRV8313 supports up to 60V power supply. The maximum driving current of both is 2.5A.
The driver has driving voltage detection and can automatically identify the driving voltage. The sampling port is A3. It should be noted that the AD accuracy of LGT8F328 is 12 bits and the range is 0~4095.
A download serial port and key reset circuit are reserved for debugging and downloading programs.
The software solution introduction
is based on the Arduino development platform and uses the simple foc library. After the LGT8F328 chip support package is installed in the Arduino IDE, it can be used normally.
Using open loop position control mode, the torque in the locked position is determined by the set current. Of course, the heating power of the motor is also determined by the current. Torque and heating are bound, and it is the same for open and closed loops.
The position closed loop can only reduce the current when it reaches the predetermined position. If it is necessary to maintain a large torque to lock the position or overcome resistance to reach the predetermined angle, then the closed loop has limited effect on reducing the current and heating power.
In summary, after using open-loop control and adding the control of starting current, starting speed, uniform rotation current, uniform rotation speed and locking current to the control program, the overall effect is good.
If you want to further study the related usage of simple foc, please refer to the Chinese development documentation, link: https://docs.simplefoc.com/docs_chinese/