Stepper motor is a digital transmission device that converts electric pulse signal into angular displacement or linear displacement.It has the advantages of easy open-loop control and no accumulation error.It has a wide range of applications in electronics and machinery.Most of the traditional stepping motor control systems use single-chip microcomputers or microprocessors as the main controller.Although the control effect can meet the requirements,the overall flexibility of the system is low,and it is difficult to make modifications after the design is completed.In response to the above problems,the project uses the System-on-a-ProgrammableChip(SOPC)technology to build a stepper motor control system based on the Nios II softcore processor,which is developed with the advantages of SOPC technology that can be tailored,scalable,and upgradeable.A highly flexible stepper motor control system.Provide a new design idea for embedded system design.In this paper,the stepping motor IP core is designed according to the driving principle of the stepping motor.The motor subdivision driving module in the IP core effectively alleviates the phenomenon that the stepping motor vibrates at low frequency,and takes into account the special frequency of the stepping motor.The moment characteristics,as well as the problem that the motor is prone to out-of-step during the start and stop phases,optimize the traditional stepping motor acceleration and deceleration algorithm in the software control part of the IP core,and finally embed this IP core into the Nios II system.The Nios II system was built using the Qsys system integration tool provided by Altera Corporation.After the completion of the construction,the entire Nios II system was integrated on the Cyclone IV series EP4CE10F17C8 N chip.At the same time,the μc/OSII operating system and μc/GUI graphical interface system are also transplanted in the design to provide a friendly and intuitive human-computer interaction interface,which facilitates the control of the stepping motor and makes the whole system more perfect.The stepping motor control system based on Nios II makes full use of the flexibility of SOPC technology.Under the framework of ensuring the most basic hardware system,what modules are needed,the IP core with corresponding functions is embedded into the whole system,which greatly reduces the system’s Development cycle and difficulty.The experiment shows that the stepper motor is flexible and reliable under the control of the system.It proves that the design scheme of the whole stepper motor control system is reasonable and feasible,and has certain practical value and design reference value. |