CN105119541A - DSP (digital signal processor)-based stepper motor control system - Google Patents

DSP (digital signal processor)-based stepper motor control system Download PDF

Info

Publication number
CN105119541A
CN105119541A CN201510623809.4A CN201510623809A CN105119541A CN 105119541 A CN105119541 A CN 105119541A CN 201510623809 A CN201510623809 A CN 201510623809A CN 105119541 A CN105119541 A CN 105119541A
Authority
CN
China
Prior art keywords
module
dsp
control system
stepper motor
current detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510623809.4A
Other languages
Chinese (zh)
Inventor
朱龙
李悦
孙一迪
季玲宇
葛礼嘉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China University of Mining and Technology CUMT
Original Assignee
China University of Mining and Technology CUMT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China University of Mining and Technology CUMT filed Critical China University of Mining and Technology CUMT
Priority to CN201510623809.4A priority Critical patent/CN105119541A/en
Publication of CN105119541A publication Critical patent/CN105119541A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Stepping Motors (AREA)

Abstract

The invention discloses a DSP (digital signal processor)-based stepper motor control system. The DSP-based stepper motor control system comprises a DSP control module, a power supply module, a motor driving module, a current detection module, a speed measurement module, a touch screen display module, an alarming module and a two-phase four-wire-system stepper motor. The DSP control module is used ,as a control center, to mainly generate the forth PWM signals and control the rotation speed and rotation direction of the stepper motor; the current detection module is used for detecting current flowing by a motor driving chip, the speed measurement module is used for detecting the rotation speed and rotation direction of the stepper motor and displaying the detected rotation speed and rotation direction of the stepper motor by virtue of touch screen, and a touch key is set by virtue of the touch screen module; the acoustic-optical alarming module is mainly used for receiving a signal from the DSP and issuing an alarm when the current flowing by the motor driving chip and detected by the current detection module exceeds a rated range. By adopting the system, the peripheral circuit is simplified, so that the stepper motor is high in response speed, high in precision, small in output torque pulse, more accurate in speed measurement; moreover, the expandability of the system is greatly improved.

Description

A kind of step motor control system based on DSP
Technical field
The invention belongs to electric machine control system field, particularly relate to a kind of step motor control system based on DSP.
Background technology
Stepping motor is a kind of control element electric impulse signal being changed into angular displacement or displacement of the lines.Stepping motor position location and velocity control accuracy high, have and be active in one's movements, open loop controls location and does not rely on transducer, during middle low speed, there is high torque (HT), high reliability, the features such as high power, along with the develop rapidly of electronic technology, stepping motor is widely used in Digit Control Machine Tool, calculation element, automatic recording instrument, draught machine, industrial robot, in the systems such as Non-Destructive Testing and device, and step motor control system decides the performance of stepping motor to a great extent, along with computer technology and microelectronic development, the demand of stepping motor increases gradually, and it is more and more higher to the requirement of stepping motor real-time and precision, therefore develop step motor control system to be of great significance each side tools such as promotion automation equipment development.
At present, the control system core of stepping motor adopts single-chip microcomputer, display module often to adopt charactron or LCD mostly, cause the peripheral circuit more complicated of system, chip fast and high Precision Processing ability poor, the problems such as the larger and system expandable performance of Driving Torque pulsation that is inaccurate, stepping motor of testing the speed is poor.
Summary of the invention
Object of the present invention is then to overcome the deficiencies in the prior art, provides a kind of step motor control system based on DSP.
To achieve these goals, the present invention is achieved by the following technical solutions: a kind of step motor control system based on DSP of the present invention, it is characterized in that: comprise DSP control module (1), sound and light alarm module (2), current detection module (3), touch-screen display module (4), motor drive module (5), two-phase four-wire system stepping motor (6), speed measuring module (7), power module (8), wherein DSP control module (1) respectively with power module (8), motor drive module (5), current detection module (3), speed measuring module (7), touch-screen display module (4), sound and light alarm model calling (2), described power module (8) is connected (7) with motor drive module (5), touch-screen display module (4), sound and light alarm module (2), speed measuring module respectively, described motor drive module (5) is connected with current detection module (3), two-phase four-wire system stepping motor (6) respectively, described two-phase four-wire system stepping motor (6) is connected with speed measuring module (7).
Further, the DSP in described DSP control module (1) selects TMS320F28335 chip.
Further, described sound and light alarm module (2) is made up of buzzer alarm circuit and Tricolor LED warning circuit.
Further, described current detection module (3) selects Hall Element Current Sensor.
Further, described touch-screen display module (4) selects TFT liquid crystal display screen color screen module SSD1289/ILI9341.
Further, described motor drive module (5) is made up of a full bridge driving circuit L298 chip and peripheral circuit thereof.
Further, described speed measuring module (7) selects model to be the two-phase photoelectric encoder of E6A2-CW3C.
Compare with prior art, beneficial effect of the present invention is: the present invention adopts DSP to control stepping motor, has both added the real-time to step motor control and precision, makes the Scalable Performance of system strengthen simultaneously; Adopt touch-screen to the rotating speed of stepping motor, turn to and drive on electric current control and show, the Independent keys on current most of stepping motor system or keyboard can be replaced, enormously simplify the peripheral circuit of system; By the fail safe adopting buzzer and Tricolor LED warning circuit to improve system; Adopt photoelectric encoder to test the speed to stepping motor, the speed making it measure is more accurate.
Accompanying drawing explanation
Accompanying drawing 1 is structural representation of the present invention.
Accompanying drawing 2 and accompanying drawing 3 are respectively+12V power circuit diagram and the+5V power circuit diagram of a kind of step motor control system based on DSP of the present invention.
Accompanying drawing 4 is the drive circuit figure of a kind of step motor control system based on DSP of the present invention.
Accompanying drawing 5 and accompanying drawing 6 are respectively buzzer alarm circuit figure and the three look diode warning circuits of a kind of step motor control system based on DSP of the present invention.
In figure: 1, DSP control module, 2, sound and light alarm module, 3, current detection module, 4, touch-screen display module, 5, motor drive module, 6, two-phase four-wire system stepping motor, 7, speed measuring module, 8, power module.
Embodiment
Below in conjunction with accompanying drawing and embodiment, the invention will be further described: Fig. 1 is the structural representation of a kind of step motor control system based on DSP provided by the invention.With reference to shown in Fig. 1, this system comprises DSP control module 1, sound and light alarm module 2, current detection module 3, touch-screen display module 4, motor drive module 5, two-phase four-wire system stepping motor 6, speed measuring module 7, power module 8, wherein DSP control module 1 respectively with power module 8, motor drive module 5, current detection module 3, speed measuring module 7, touch-screen display module 4, sound and light alarm model calling 2; Described power module 8 is connected 7 with motor drive module 5, touch-screen display module 4, sound and light alarm module 2, speed measuring module respectively; Described motor drive module 5 is connected with current detection module 3, two-phase four-wire system stepping motor 6 respectively; Described two-phase four-wire system stepping motor 6 is connected with speed measuring module 7.
DSP in DSP control module selects the TMS320F28335 chip of TI company, this dsp chip is compared with single-chip microcomputer with fixed DSP in the past, it is high that it has operational precision, power consumption is little, performance is high, peripheral hardware integrated level is high, the advantages such as data space is large, main generation four road pwm signal, control turning to and rotating speed of two-phase four-wire system stepping motor, cycle pulse distributor is replaced to export the pulse signal of control step motor by the software programming of DSP, the pwm pulse frequency that velocity of rotation and the DSP of stepping motor export is directly proportional, the angular dimension that stepping motor rotates is directly proportional to the pwm pulse number that DSP exports, changing the pwm pulse order that DSP exports just can the rotation direction of control step motor.
With reference to shown in Fig. 2 and Fig. 3, power module mainly produces 12V and 5V voltage, wherein 12V voltage powers to respectively motor drive module and two-phase four-wire system stepping motor, and 5V voltage is then powered to DSP control module, sound and light alarm module, current detection module, touch-screen display module and speed measuring module respectively.Power module primarily of power transformer, rectification circuit, filter circuit and voltage stabilizing circuit four part form, especially at voltage stabilizing circuit in this part, LM7812 and the LM7805 integrated chip in 78 also relatively high series of the voltage stabilization of output, voltage accuracy is adopted to fix three-terminal voltage-stabilizing pipe, powered by family expenses line voltage 220V like this, and then just can obtain 12V and 5V direct voltage like a cork through power module conversion.
With reference to shown in Fig. 3, motor drive module is connected with DSP control module, for receiving four road pwm signals that DSP produces and amplifying it, then sends to two-phase four-wire system stepping motor.Motor drive module is made up of a full bridge driving circuit L298 chip and peripheral circuit thereof, wherein be connected with four lines of two-phase four-wire system stepping motor respectively from 2,3 pin of L298 with 13,14 pin (i.e. the output of chip), and 5,7,10,12 pin are connected with DSP tetra-pins successively, the series connection being achieved DSP and L298 and two-phase four-wire system stepping motor by this connection is controlled.Control procedure is: DSP accepts the signal transmitted from touch-screen button; control signal is exported by DSP; be sent to L298 driver; turning to and rotating speed by driver control stepping motor; a part very important in motor drive module is that each phase of motor all connects the protective circuit be made up of four diodes, and its important function is exactly the self induction electromotive force defective chip preventing the rotating speed due to stepping motor from improving and produce.
Composite stepper motor selected by two-phase four-wire system stepping motor, its model is 42BYG47-401A, rotor has 50 teeth, each angular pitch is 7.2 degree, step angle is 0.9/1.8 degree, rated current is 1.5A, four lead-in wires of two-phase four-wire system stepping motor are respectively red, blue, green, black, its Green and black are a phase (A phase), red and blueness is a phase (B phase), wherein A+, A-connect motor A phase, B+, B-connect motor B phase, and electrical power order be A-B-/A-/B-A, change its phase sequence that is energized and just can change stepping motor and turn to.
Speed measuring module selects two-phase photoelectric encoder, its model is E6A2-CW3C, be connected with DSP control module, exportable two group pulse signals when photoelectric encoder rotates, for test stepping motor speed and turn to, encoder does not need drive circuit, can directly be connected with DSP, only needs to meet 10k when it exports Ωpull-up resistor.Photoelectric encoder is measured the rotating speed of stepping motor and is turned to, and is shown by touch-screen.
Current detection module selects Hall Element Current Sensor, by being connected with motor drive module with DSP control module, the electric current flowing through motor drive module is sent to DSP, and is shown by touch-screen, detect the electric current flowing through L298 driving chip and whether exceed its rated current.
With reference to shown in Fig. 4, sound and light alarm module is connected with DSP control module, is made up of buzzer alarm circuit and Tricolor LED warning circuit.In buzzer alarm circuit, drawn by action principle according to buzzer, want buzzer and normally carry out sounding, need certain electric current to go to drive it, because DSP port output current is smaller, so add a triode in design circuit, its effect is amplified current, enables electric current drive buzzer; What adopt in Tricolor LED warning circuit is three look four end common cathode light-emitting diodes, the internal structure of this three-color LED is exactly be made up of three common light-emitting diodes in fact, and their negative electrode is connected to one piece, when the port conveying high level different to LED, light-emitting diode will send the light of corresponding color.Sound and light alarm module mainly accepts the signal from DSP, just carries out warning function, controlled accordingly by the display alarm operating personnel of buzzer and light-emitting diode when current detection module detects when the electric current flowing through motor drive ic overruns.
Touch-screen display module selects TFT liquid crystal display screen color screen module SSD1289/ILI9341, be connected with DSP control module, for showing the rotating speed size of two-phase four-wire system stepping motor and turning to and flow through the electric current of motor drive module, and set six touch key-presss, the function such as beginning, rotating forward, reversion, acceleration, deceleration, stopping of control step motor respectively.
The undeclared part related in the present invention is same as the prior art or adopt prior art to be realized.

Claims (7)

1. the step motor control system based on DSP, it is characterized in that: comprise DSP control module (1), sound and light alarm module (2), current detection module (3), touch-screen display module (4), motor drive module (5), two-phase four-wire system stepping motor (6), speed measuring module (7), power module (8), wherein DSP control module (1) respectively with power module (8), motor drive module (5), current detection module (3), speed measuring module (7), touch-screen display module (4), sound and light alarm model calling (2); Described power module (8) is connected (7) with motor drive module (5), touch-screen display module (4), sound and light alarm module (2), speed measuring module respectively; Described motor drive module (5) is connected with current detection module (3), two-phase four-wire system stepping motor (6) respectively; Described two-phase four-wire system stepping motor (6) is connected with speed measuring module (7).
2. a kind of step motor control system based on DSP according to claim 1, is characterized in that: the DSP in described DSP control module (1) selects TMS320F28335 chip.
3. a kind of step motor control system based on DSP according to claim 1, is characterized in that: described sound and light alarm module (2) is made up of buzzer alarm circuit and Tricolor LED warning circuit.
4. a kind of step motor control system based on DSP according to claim 1, is characterized in that: described current detection module (3) selects Hall Element Current Sensor.
5. a kind of step motor control system based on DSP according to claim 1, is characterized in that: described touch-screen display module (4) selects TFT liquid crystal display screen color screen module SSD1289/ILI9341.
6. a kind of step motor control system based on DSP according to claim 1, is characterized in that: described motor drive module (5) is made up of a full bridge driving circuit L298 chip and peripheral circuit thereof.
7. a kind of step motor control system based on DSP according to claim 1, is characterized in that: described speed measuring module (7) selects model to be the two-phase photoelectric encoder of E6A2-CW3C.
CN201510623809.4A 2015-09-28 2015-09-28 DSP (digital signal processor)-based stepper motor control system Pending CN105119541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510623809.4A CN105119541A (en) 2015-09-28 2015-09-28 DSP (digital signal processor)-based stepper motor control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510623809.4A CN105119541A (en) 2015-09-28 2015-09-28 DSP (digital signal processor)-based stepper motor control system

Publications (1)

Publication Number Publication Date
CN105119541A true CN105119541A (en) 2015-12-02

Family

ID=54667461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510623809.4A Pending CN105119541A (en) 2015-09-28 2015-09-28 DSP (digital signal processor)-based stepper motor control system

Country Status (1)

Country Link
CN (1) CN105119541A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106026806A (en) * 2016-06-29 2016-10-12 桂林航天工业学院 Stepping motor control system based on programmable controller
CN106253774A (en) * 2016-08-11 2016-12-21 江苏理工学院 Stepping motor control system
CN106742839A (en) * 2016-11-29 2017-05-31 洛阳毅兴石化电器仪表设备有限公司 A kind of chemical industry rapping equipment with drive device
CN108712135A (en) * 2018-08-24 2018-10-26 海盐新跃电器有限公司 A kind of anti-dieback protection circuit of pressure table motor
CN111257732A (en) * 2020-02-17 2020-06-09 上海艾为电子技术股份有限公司 Linear motor driving chip testing method and system
CN111907234A (en) * 2020-08-16 2020-11-10 福建星谷信息科技有限公司 Method and equipment for realizing buzzing by vibration of stepping motor of printer

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030097082A (en) * 2002-06-19 2003-12-31 삼성전자주식회사 Device for detecting operation state of stepping motor
CN102263536A (en) * 2011-07-25 2011-11-30 李军科 Stepping motor subdivided driving device for current vector constant amplitude control
CN202197247U (en) * 2011-09-06 2012-04-18 深圳市雷赛智能控制股份有限公司 Hybrid servo driver based on DSP
CN203537285U (en) * 2013-10-31 2014-04-09 江苏海事职业技术学院 Digital multi-motor control platform based on single-chip microcomputer
CN203562985U (en) * 2013-07-26 2014-04-23 绍兴文理学院 Simple stepping motor controller
CN203645591U (en) * 2014-01-07 2014-06-11 马子轶 Stepping motor control system based on single-chip microcomputer
CN204993137U (en) * 2015-09-28 2016-01-20 中国矿业大学 Step motor control system based on DSP

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030097082A (en) * 2002-06-19 2003-12-31 삼성전자주식회사 Device for detecting operation state of stepping motor
CN102263536A (en) * 2011-07-25 2011-11-30 李军科 Stepping motor subdivided driving device for current vector constant amplitude control
CN202197247U (en) * 2011-09-06 2012-04-18 深圳市雷赛智能控制股份有限公司 Hybrid servo driver based on DSP
CN203562985U (en) * 2013-07-26 2014-04-23 绍兴文理学院 Simple stepping motor controller
CN203537285U (en) * 2013-10-31 2014-04-09 江苏海事职业技术学院 Digital multi-motor control platform based on single-chip microcomputer
CN203645591U (en) * 2014-01-07 2014-06-11 马子轶 Stepping motor control system based on single-chip microcomputer
CN204993137U (en) * 2015-09-28 2016-01-20 中国矿业大学 Step motor control system based on DSP

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
俞国亮: "《PLC原理与应用 三菱FX系列》", 31 August 2009 *
王鹏元: "《微控制器应用》", 30 April 2015 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106026806A (en) * 2016-06-29 2016-10-12 桂林航天工业学院 Stepping motor control system based on programmable controller
CN106253774A (en) * 2016-08-11 2016-12-21 江苏理工学院 Stepping motor control system
CN106742839A (en) * 2016-11-29 2017-05-31 洛阳毅兴石化电器仪表设备有限公司 A kind of chemical industry rapping equipment with drive device
CN108712135A (en) * 2018-08-24 2018-10-26 海盐新跃电器有限公司 A kind of anti-dieback protection circuit of pressure table motor
CN111257732A (en) * 2020-02-17 2020-06-09 上海艾为电子技术股份有限公司 Linear motor driving chip testing method and system
CN111907234A (en) * 2020-08-16 2020-11-10 福建星谷信息科技有限公司 Method and equipment for realizing buzzing by vibration of stepping motor of printer
CN111907234B (en) * 2020-08-16 2022-04-19 福建星谷信息科技有限公司 Method and equipment for realizing buzzing by vibration of stepping motor of printer

Similar Documents

Publication Publication Date Title
CN105119541A (en) DSP (digital signal processor)-based stepper motor control system
CN201233517Y (en) Digital monitoring and controlling system for electric vortex power measuring machine
CN103439907B (en) Multi signal collection test the speed and reversal protection control device and reversion decision method
CN205123639U (en) Micro direct current motor intelligence speed regulator
CN204993137U (en) Step motor control system based on DSP
CN109115293A (en) A kind of electronic counting-type water meter
CN203658382U (en) Photoelectric rotation speed measurement instrument
CN107973230B (en) A kind of crane full working scope oil consumption monitoring system and method
CN201364163Y (en) High-precision magnetic encoder
CN205785059U (en) Angular transducer based on hall device
CN210533302U (en) Step angle precision detection device
CN204302795U (en) A kind of aerospace system steering wheel automatic tester for performance
CN208085802U (en) Vehicle steering wheel steering indicator
CN112072966B (en) Detection device and detection method of position sensor
CN206531869U (en) A kind of automobile engine speed measuring device
CN207097060U (en) A kind of image detection device
CN109282927A (en) A kind of axis torch measuring system and measurement method
CN106655960A (en) Elevator speed detection system
CN104360266A (en) Gear switch detection device
CN204215014U (en) A kind of driving switch pick-up unit
CN107389969A (en) A kind of brushless dc tachometer
CN202939966U (en) Device for measuring indexing, revolution and rotation speed of turntable
CN106154101A (en) Permagnetic synchronous motor power line and driving line connection decision method and decision maker
CN209085632U (en) Motor positioning accuracy testing arrangement
CN202746015U (en) Multifunctional adjustable rotating speed alarm timing control meter

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151202