CN201113878Y - Driver - Google Patents

Driver Download PDF

Info

Publication number
CN201113878Y
CN201113878Y CNU2007201215951U CN200720121595U CN201113878Y CN 201113878 Y CN201113878 Y CN 201113878Y CN U2007201215951 U CNU2007201215951 U CN U2007201215951U CN 200720121595 U CN200720121595 U CN 200720121595U CN 201113878 Y CN201113878 Y CN 201113878Y
Authority
CN
China
Prior art keywords
module
circuit unit
driver
motor
pulse
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.)
Expired - Fee Related
Application number
CNU2007201215951U
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CNU2007201215951U priority Critical patent/CN201113878Y/en
Application granted granted Critical
Publication of CN201113878Y publication Critical patent/CN201113878Y/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Control Of Stepping Motors (AREA)

Abstract

The utility model is applicable to the driving control field and provides a driver which comprises a motor driving circuit unit. The driver also comprises: an interface circuit conversion unit which is connected with an upper computer and receives and processes control command parameters input by the upper computer through a USB; an FPGA control circuit unit which is respectively connected with the interface circuit conversion unit and the motor driving circuit unit, processes the control command parameters received by the interface circuit conversion unit, and uses a control signal obtained after the processing to make a driving control to a motor through the motor driving circuit unit. In the utility model, the driver adopts the FPGA based on the USB as the control core, so the driver has the characteristics of plug and play, and simple and easy installation and so on; at the same time, the driver improves the response speed, the reliability and the flexibility of the prior stepping motor system, so the driver has broad application prospect.

Description

A kind of driver
Technical field
The utility model belongs to the drive controlling field, relates in particular to a kind of driver.
Background technology
In the prior art, motor driver and control system be connected or data interaction realizes by 232 interfaces, at USB (Universal Serial Bus, USB) under the situation that interface is popularized, the interface of motor driver is converted to USB interface from 232 is just becoming a kind of trend, and the digital-to-analog circuit form is generally adopted in stepper motor driver control at present in addition, or the employing Single-chip Controlling, the response speed of its control, stability and reliability etc. can not satisfy user's needs gradually.
The utility model content
The purpose of this utility model is to provide a kind of driver, is intended to solve in the prior art, and driver interface is connected the mutual complicated problems that realizes with computer data signal.
The utility model is achieved in that a kind of driver, comprises the motor-drive circuit unit, and described driver also comprises:
The interface circuit converting unit is connected with host computer, receives the control command parameter of handling the host computer input by USB; And
The FPGA control circuit unit, be connected with described interface circuit converting unit, motor-drive circuit unit respectively, the described control command parameter that described interface circuit converting unit receives is handled, and with the control signal that obtains after the described processing, through described motor-drive circuit unit, motor is carried out drive controlling.
In the utility model, driver adopts FPGA based on USB as the control core, have promptly pull out promptly with and characteristics such as simple and easy are installed, the while has been improved existing stepping motor system response speed greatly, reliability and flexibility, thereby have development prospect widely.
Description of drawings
Fig. 1 is the structure chart of the driver that provides of the utility model;
Fig. 2 is the structure chart of the CP2101 that provides of the utility model.
Embodiment
In order to make the purpose of this utility model, technical scheme and advantage clearer,, the utility model is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the utility model, and be not used in qualification the utility model.
In the utility model, adopt field programmable gate array (the Field ProgrammableGate Array of USB interface, FPGA) stepper motor driver, make driver promptly pull out promptly with and install simple and easy, and FPGA freely programmes, speed is fast, has improved the flexibility of actuating speed, reliability and the control of driver.
Fig. 1 shows the structure of the stepper motor driver that the utility model provides, for convenience of explanation, only show the part relevant with the utility model among the figure, this driver receives and handles the control command parameter by the host computer input, and utilizes the parameter control motor after handling to rotate.
This driver comprises interface circuit converting unit, FPGA control circuit unit and motor-drive circuit unit, this interface circuit converting unit, be connected with host computer, receive the control command parameter of handling by the host computer input by USB, wherein this interface circuit processing unit is converted to 232 mouthfuls of data that can receive with the data processing that the USB mouth receives, and promptly above-mentioned control command parameter is carried out data type conversion; The FPGA control circuit unit, be connected with above-mentioned interface circuit converting unit, motor-drive circuit unit respectively, the interface circuit converting unit receives the control command parameter of handling and handles, and the parameter after the described processing sent to described motor-drive circuit unit, carry out motor-driven control.Certainly, this driver also comprises an optical coupling isolation circuit unit, indicator light and charactron, wherein there are 3 digital light-coupled isolation input ports and 1 digital light-coupled isolation delivery outlet in the optical coupling isolation circuit unit, be used for driver and external equipment and carry out data interaction, wherein, this external equipment is external memory device or control appliance; 6 status indicator lamps are respectively applied for indicates stepping motor forward and backward, USB reception, USB transmission, system alarm, motor to get electric indication etc.; 4 figure place sign indicating number display tubes are display driver internal pulses cumulative number then, is convenient to on-site supervision and debugging.
The FPGA control circuit unit comprises receiver module, decoding module, pulse regneration module, sinusoidal wave module, adjusting module, pulse counter module, internal state display module, group of four figures display module and the sending module of taking place, wherein:
Receiver module is connected with the interface circuit converting unit, and receiving interface circuit conversion unit receives the control command parameter of handling;
Decoding module is connected with receiver module, and the control command parameter that receives is deciphered processing;
The pulse regneration module is connected with above-mentioned decoding module, and this decoding module is deciphered the pulse number information that obtains after the processing, is converted to the forward and backward two pulse signals;
The sinusoidal wave module that takes place is connected with above-mentioned pulse regneration module, and above-mentioned two pulse signals is controlled, and generates the two-way sine wave signal that differs 90 degree;
The amplitude modulation module, be connected with above-mentioned sinusoidal wave generation module, motor-drive circuit unit respectively, according to the amplitude amount information that obtains after the above-mentioned decoding module decoding, the two-way sine wave signal that offset of sinusoidal ripple generation module produces carries out amplitude modulation, obtain the sine wave that two-way differs 90 degree, for stepper motor driving circuit provides input signal;
Pulse counter module is counted the umber of pulse that the pulse regneration module in the FPGA control circuit unit produces;
Group of four figures display module is connected with charactron, pulse counter module, control group of four figures pipe, and the pulse number above-mentioned pulse counter module record shows on charactron;
The internal state display module is connected with indicator light, is used to control indicator light, gets electrical information with indication stepping motor forward and backward, USB reception, USB transmission, system alarm and motor;
Sending module is connected with optical coupling isolation circuit unit, interface circuit converting unit, and the interaction data of external equipment is fed back to host computer through the interface circuit converting unit.
In the utility model; the various states signal of stepping motor; for example stepping motor get electricly enable, just change, counter-rotating, driver receive that the usb signal feedback is replied, driver overcurrent protection and extraneous input signal feedback signal etc.; feed back to host computer by the interface conversion circuit unit; and on corresponding apparatus, report to the police and show that for example this feedback information can be indicated accordingly on indicator light.
In the utility model, driver can carry out data interaction by general optical coupling isolation circuit unit and external equipment.
Three outside general digital input signal In0, In1, In2 (not shown) through the optical coupling isolation circuit unit, are input to the inside of FPGA control circuit unit, handle for FPGA.The decoding module of FPGA control circuit unit according to accepting the information that module is sent, sends control signal, through electric coupling buffer circuit unit, the information that host computer sends, transmits to the external world.
In the utility model, above-mentioned host computer can be personal computer, can certainly be other external equipment with input function.Driver can pass through computer software; startup to stepping motor; brake and reset and control; and to controlling with the operation step number running time of stepping motor; simultaneously to the various feedback signals of stepping motor; get as stepping motor electricly enable, just change, counter-rotating, driver receive that the usb signal feedback is replied, driver overcurrent protection and extraneous input signal feedback signal etc. show and report to the police; adopt serial asynchronous communication between personal computer and the stepping motor; Control Software is based on the solution of personal computer, adopts VB6.0 to write.Carry out the setting of control command parameter by personal computer, can adjust accurately flexibly to the commentaries on classics width of cloth of stepping motor.
In the utility model, above-mentioned interface circuit converting unit can adopt USB-UART bridger CP2101 chip.
Fig. 2 shows internal structure and the outside connecting circuit of the CP2101 that the utility model provides, for convenience of explanation, the part relevant with the utility model only is shown.
This CP2101 is built-in with the usb protocol with usb communication, can the USB mouth of PC be invented com port by driver, to reach the purpose of expansion.The device driver of virtual com port (VCP) allows the device based on CP2101, is independent of any existing hardware with the form of PC application software as the com port of an increase.Com port makes the application software that operates on the PC visit device based on CP2101 in the mode of visiting a standard hardware com port, transfer of data between PC and CP2101 is finished by USB, and therefore need not to revise existing software and hardware just can be by USB to the device transmission data based on CP2101.
This CP2101 comprises a USB connector, USB transceiver, USB function control device, voltage calibrator and asynchronous serial data bus (UART), wherein:
USB connector is connected with host computer, is the passage of the data interaction of CP2101, FPGA control circuit unit and host computer;
The USB transceiver is connected with USB connector, is used for receiving or sending command parameter;
The USB function control device is connected with the USB transceiver, is used for the transmission of control data parameter;
Voltage calibrator is connected with USB connector, is used to realize the voltage transitions of CP2101 inside;
UART is connected with USB function control device, FPGA control circuit unit respectively, and UART is connected with FPGA through light-coupled isolation by pin TXD, RXD and DTR (not shown), is used to carry out the conversion of data format and the control of data transmission bauds.
It is mutual that this CP2101 and host computer carry out transfer of data by USB, and the UART of CP2101 handles all data parameters that receive via USB.
In the utility model, driver adopts FPGA based on USB as the control core, thus have promptly pull out promptly with and characteristics such as simple and easy are installed, improved existing stepping motor system response speed simultaneously, reliability and flexibility, thereby be with a wide range of applications.
The above only is preferred embodiment of the present utility model; not in order to restriction the utility model; all any modifications of within spirit of the present utility model and principle, being done, be equal to and replace and improvement etc., all should be included within the protection range of the present utility model.

Claims (6)

1. a driver comprises the motor-drive circuit unit, it is characterized in that, described driver also comprises:
The interface circuit converting unit is connected with host computer, receives the control command parameter of handling the host computer input by USB; And
The FPGA control circuit unit, be connected with described interface circuit converting unit, motor-drive circuit unit respectively, the described control command parameter that described interface circuit converting unit receives is handled, and with the control signal that obtains after the described processing, through described motor-drive circuit unit, motor is carried out drive controlling.
2. driver as claimed in claim 1 is characterized in that, described host computer is a personal computer.
3. driver as claimed in claim 1 is characterized in that, described interface conversion circuit unit adopts USB-UART bridgt circuit CP2101.
4. driver as claimed in claim 1 is characterized in that, described FPGA control circuit unit specifically comprises:
Receiver module is connected with described interface circuit converting unit, receives described interface circuit converting unit and receives the control command parameter of handling;
Decoding module is connected with described receiver module, and the control command parameter that receives is deciphered processing;
The pulse regneration module is connected with described decoding module, and described decoding module is deciphered the pulse number information that obtains after the processing, is converted to the forward and backward two pulse signals;
The sinusoidal wave module that takes place is connected with described pulse regneration module, and described two pulse signals is handled, and generates the two-way sine wave signal that differs 90 degree; And
The amplitude modulation module, be connected with described sinusoidal wave generation module, motor-drive circuit unit respectively, the two-way sine wave signal that offset of sinusoidal ripple generation module produces carries out amplitude modulation, obtains the sine wave that two-way differs 90 degree, for the stepper motor driving circuit unit provides input signal.
5. driver as claimed in claim 1 is characterized in that, described driver also comprises:
The optical coupling isolation circuit unit is connected with described FPGA control circuit unit, carries out data interaction with external equipment;
Indicator light is connected with described FPGA control circuit unit, is used to indicate stepping motor forward and backward, USB reception, USB transmission, system alarm and motor to get; And
Charactron is connected with described FPGA control circuit unit, is used to show described internal drive pulse cumulative number.
6. as claim 1,4 or 5 described drivers, it is characterized in that described FPGA control circuit unit also comprises:
Pulse counter module is connected with the pulse regneration module, and the umber of pulse that the described pulse regneration module in the described FPGA control circuit unit produces is counted;
Group of four figures display module is connected with described charactron, pulse counter module, control group of four figures pipe, and the pulse number described pulse counter module record shows on described charactron;
The internal state display module is connected with described indicator light, is used to control described indicator light, with the indication stepping motor just change, counter-rotating, USB reception, USB transmission, system alarm and motor get electrical information; And
Sending module is connected with described optical coupling isolation circuit unit, interface circuit converting unit, and the interaction data of external equipment is fed back to host computer through described interface circuit converting unit.
CNU2007201215951U 2007-07-23 2007-07-23 Driver Expired - Fee Related CN201113878Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2007201215951U CN201113878Y (en) 2007-07-23 2007-07-23 Driver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2007201215951U CN201113878Y (en) 2007-07-23 2007-07-23 Driver

Publications (1)

Publication Number Publication Date
CN201113878Y true CN201113878Y (en) 2008-09-10

Family

ID=39965626

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2007201215951U Expired - Fee Related CN201113878Y (en) 2007-07-23 2007-07-23 Driver

Country Status (1)

Country Link
CN (1) CN201113878Y (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102005997A (en) * 2010-10-27 2011-04-06 北京和利康源医疗科技有限公司 Device and method for driving and controlling stepper motor
CN102122913A (en) * 2011-03-18 2011-07-13 上海理工大学 Controller for hyperfine stepping motor
CN104601062A (en) * 2015-01-15 2015-05-06 北京奥普维尔科技有限公司 FPGA based stepping motor control system and method
CN105577052A (en) * 2015-12-31 2016-05-11 哈尔滨工业大学 FPGA-based shakeless drive control system of stepping motor and control method based on same
CN105635184A (en) * 2016-03-22 2016-06-01 青岛海信宽带多媒体技术有限公司 Communication protocol conversion method, device and system
CN106078796A (en) * 2016-08-03 2016-11-09 西安旭天电子科技有限公司 A kind of multiplex interface steering wheel
CN112583327A (en) * 2019-09-30 2021-03-30 比亚迪股份有限公司 Motor controller, motor debugging system and method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102005997A (en) * 2010-10-27 2011-04-06 北京和利康源医疗科技有限公司 Device and method for driving and controlling stepper motor
CN102005997B (en) * 2010-10-27 2012-08-15 北京和利康源医疗科技有限公司 Device and method for driving and controlling stepper motor
CN102122913A (en) * 2011-03-18 2011-07-13 上海理工大学 Controller for hyperfine stepping motor
CN104601062A (en) * 2015-01-15 2015-05-06 北京奥普维尔科技有限公司 FPGA based stepping motor control system and method
CN105577052A (en) * 2015-12-31 2016-05-11 哈尔滨工业大学 FPGA-based shakeless drive control system of stepping motor and control method based on same
CN105577052B (en) * 2015-12-31 2019-01-04 哈尔滨工业大学 A kind of stepper motor non-jitter driving control system based on FPGA and the control method based on the system
CN105635184A (en) * 2016-03-22 2016-06-01 青岛海信宽带多媒体技术有限公司 Communication protocol conversion method, device and system
CN106078796A (en) * 2016-08-03 2016-11-09 西安旭天电子科技有限公司 A kind of multiplex interface steering wheel
CN112583327A (en) * 2019-09-30 2021-03-30 比亚迪股份有限公司 Motor controller, motor debugging system and method

Similar Documents

Publication Publication Date Title
CN201113878Y (en) Driver
EP2912831B1 (en) Ethernet over usb interfaces with full-duplex differential pairs
CN102323905B (en) Remote monitoring system for Godson main board
CN101350001B (en) Data sharing and transfer systems and methods
CN102621974B (en) Industrial automatic real-time control device and method based on communication bus
CN201303348Y (en) Universal multi-serial bus converter
US20100217900A1 (en) Protocol adapter for passing diagnostic messages between vehicle networks and a host computer
TW200405172A (en) Bus connection system
US20170116147A1 (en) System, device and method for transmitting signals between different communication interfaces
CN113626360B (en) Low-speed MIPI observation type SOC chip and operation method thereof
CN1801020A (en) Embedded field bus protocol interface device and implementation method
CN201435003Y (en) Two-phase mixed stepping motor control system
CN101794152A (en) Embedded controller with LVDS serial interface and control method thereof
CN105549552A (en) CAN bus expansion system based on Linux and CAN bus expansion method based on Linux
CN106656707B (en) Stepping motor subdivision control system
CN203092570U (en) Measurement and control circuit of robot teleoperation hand controller with seven-degree of freedom force feedback
CN201336671Y (en) Interface converting circuit, DVR and GPS
CN202694039U (en) Adapter circuit
CN102621950A (en) Pure electric vehicle carload controller refreshing instrument and refreshing method
CN202693499U (en) X ray crystal orientation instrument data recorder
CN102642209B (en) Seven-degree of freedom force feedback hand controller measurement and control system
CN211956196U (en) CAN bus communication control device
CN203708272U (en) HDLC communication card based on marine digital data communication standard
CN209514605U (en) A kind of USB with intelligent parameter display function turns serial port device
CN203734667U (en) Bluetooth bridge for realizing long-distance data communication

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080910

Termination date: 20120723