Single Chip Microcomputer stepping motor 1.
Historical background there are many ways to operate stepping motors at this stage, such as PLC, motion control card, PC and single chip microcomputer.
Using single chip microcomputer to operate stepping motor has low cost, high safety and strong universality.
Do any network security countermeasures, the goods depend on other methods are not easy to follow.
Therefore, the motion control plan of the application scene MCU also occupies a five-color wind horse in the industry. 2.
The control mechanism stepping motor controller receives differential signals, and takes one step angle along the controller stepping motor for each jump.
Usually all pulse width and azimuth signals, differential signals control the operating distance of the motor, and azimuth signals control the rotating orientation of the motor.
One of the two I/O ports of the single chip microcomputer is used to cause differential signals and one is used to cause azimuth signals. Step motor of speed and pulse width frequency rate positively correlated. 3. System configuration composition 4. ?
The mobile phone app shows that the MCU has a timer, which can be accurately recorded.
This example uses the 16-bit timer embedded in AVR microcontroller to accurately and automatically control the time interval of pulse width jump edge.
Carry out part calculation in the timer interrupt handling program together, and terminate the pulse width immediately if it exceeds the preset value.
According to the prompt information of LCD display upgraded by serial port, the face plate will be automatically scanned.
Frequently Asked Questions: 1. The final break is very precious, try to avoid occupying the seat.
In this example, only the addition and subtraction and the more multiplication and division method are carried out in the final break, and the time interval consumed by this multiplication and division method is calculated, and then the timer is adjusted to make the transmitted pulse width multiplication rate more accurate, stable.
For example, if a 16M crystal oscillator is applied, is the timer 1/16 in a small enterprise? us.
If the pulse width deviation rate is below 100 KHz, the deviation rate can be completely manipulated at 0. 625% the following.
Taking the common phase voltage stepping motor as an example, under the classification of 10000 steps/Revolution, the maximum revolution of the motor can exceed 600 rpm.
Most of this turn considers the vast majority of manipulation requirements.
If a higher number of revolutions is required, the classification setting can be reduced. 2?
The stepper motor and the controller are operated in an open loop, and there will be a slight step loss, which must be minimized.
The selection of multi-stage acceleration method can reduce the instantaneous speed and thus the torque generated by the acceleration, and can reasonably handle the lost step condition. The larger the number of segments, the more linear the motor speeds up.
In places where the number of revolutions is low, and even the rotation rate can be gradually adjusted, it is the most linear change in the number of revolutions.
In this way, the segment will occupy a large number of final breaks, reducing the maximum rate of interruption that can be caused. According to different single-chip computers, they should be selected according to their characteristics. 3?
Some single-chip computers such as AVR, the listed timers have CTC function, and the timers automatically upgrade and pull out the feet when they generate matching devices, which is suitable for transmitting pulse width with variable pulse rate.
It is obviously the best choice not to occupy the final break. Please browse a large number of packages? Stepping Motor ()
Single Chip Microcomputer, Related reading: Application of stepping motor in packaging machinery, maintenance TAG of stepping motor, single chip Microcomputer