Graphical analysis of single-chip microcomputer stepper motor control

After continually exploring and referring to the design of the master, the stepper motor control of the single-chip microcomputer is finally completed, and the real-time forward and reverse rotation, acceleration and deceleration of the stepping motor can be realized.

As for the working principle of the stepper motor, I believe many people already know that this time is a four-phase stepping motor, which uses four-phase eight-shot working mode, namely: A-AB-B-BC-C-CD-D -DA-A

The specific circuit and code are as follows:

Graphical analysis of single-chip microcomputer stepper motor control

Graphical analysis of single-chip microcomputer stepper motor control

Graphical analysis of single-chip microcomputer stepper motor control

Graphical analysis of single-chip microcomputer stepper motor control

Graphical analysis of single-chip microcomputer stepper motor control

Graphical analysis of single-chip microcomputer stepper motor control

Graphical analysis of single-chip microcomputer stepper motor control

Graphical analysis of single-chip microcomputer stepper motor control

I have also done the button control before, but every time I press the button, the response is very slow. I have to wait until the loop of a module is completed before I can respond to the operation of the button. In the past few days, I have seen a master on the Internet by enabling external interrupts. The method to achieve the control of the button, and then go to proteus to verify, the effect is very good, very happy, now the relevant circuit diagram and code map posted for reference only, welcome advice...


20 Port USB Charger

20 port USB charging station

This 20 port USB charging station has high quality patience and persistence. And the maximum demand that meets the charging is up to 20 devices. Each interface has an independent chip, which effectively prevents mutual interference between each port. Static single fan automatically heat dissipation to ensure the safety of the charging equipment. Provide overvoltage, short -circuit, overload, overload, temperature and voltage regulator protection.


20 Port USB Charging

20 Port Usb Charger,Usb Ai Smart Charger,20 Port Intelligent Charger,20 Port Electronic Devices Charge

shenzhen ns-idae technology co.,ltd , https://www.szbestchargers.com

Posted on