CN110112968A - Galvanometer control system and control method based on single-chip microcontroller control stepper motor - Google Patents

Galvanometer control system and control method based on single-chip microcontroller control stepper motor Download PDF

Info

Publication number
CN110112968A
CN110112968A CN201910081012.4A CN201910081012A CN110112968A CN 110112968 A CN110112968 A CN 110112968A CN 201910081012 A CN201910081012 A CN 201910081012A CN 110112968 A CN110112968 A CN 110112968A
Authority
CN
China
Prior art keywords
stepper motor
galvanometer
chip microcontroller
control
chip
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
CN201910081012.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.)
Guangdong Weiren Medical Technology Co Ltd
Original Assignee
Guangdong Weiren Medical Technology Co Ltd
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 Guangdong Weiren Medical Technology Co Ltd filed Critical Guangdong Weiren Medical Technology Co Ltd
Priority to CN201910081012.4A priority Critical patent/CN110112968A/en
Publication of CN110112968A publication Critical patent/CN110112968A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P8/00Arrangements for controlling dynamo-electric motors rotating step by step
    • H02P8/14Arrangements for controlling speed or speed and torque
    • H02P8/18Shaping of pulses, e.g. to reduce torque ripple
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P8/00Arrangements for controlling dynamo-electric motors rotating step by step
    • H02P8/32Reducing overshoot or oscillation, e.g. damping

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Stepping Motors (AREA)
  • Mechanical Optical Scanning Systems (AREA)

Abstract

The present invention provides a kind of galvanometer control system and control method based on single-chip microcontroller control stepper motor, and the control system includes impulse generator, single-chip microcontroller, motor drive power supply circuit, amplifying circuit, X, Y-direction stepper motor and galvanometer.Control system of the invention, the galvanometer in former galvanometer system is substituted with stepper motor, with impulse generator and single-chip microcontroller output control drive waveform stepper motor rotation, it is compact-sized, convenient for control, and it is at low cost, while the timely inertia to brake when inhibiting galvanometer rotation can also be accomplished as driving original part using stepper motor, in order to avoid cause the coverage error and scanner distortion when scanning.

Description

Galvanometer control system and control method based on single-chip microcontroller control stepper motor
Technical field
The invention belongs to galvanometer control fields, and in particular to a kind of OCT galvanometer control based on single-chip microcontroller control stepper motor System and control method processed.
Background technique
In the galvanometer scanning system of OCT, the mentality of designing of galvanometer follows galvanometric design method, i.e. current-carrying conductor completely The principle deflected in magnetic field by torque is enclosed, eyeglass is instead of indicator, and the signal of galvanometer throw of pointer is by computer The direct current signal of the -5V Zhi+5V or -10V to+10V of control replace, to complete scheduled movement.In galvanometer system work, have X, the scanning mirror coordination of Y both direction could complete the scanning to two-dimensional surface, i.e., laser beam is incident on two reflecting mirrors On (scanning mirror), the reflection angle of reflecting mirror is controlled, the two reflecting mirrors can be respectively along X, Y axis scanning, to reach laser beam Deflection, and control the reflection angle of reflecting mirror, need to be respectively supplied to one specific signal of driving circuit of two galvanometers Wave, and need to control the corresponding transformation period of two waveform signals to complete the predetermined action of galvanometer.
Waveform signal is provided to galvanometer driving circuit is mostly waveform generator, and existing waveform generator product Change, and volume is larger, is not easy to together with the OCT system integration, therefore designs galvanometer control system using single-chip microcontroller and integrate In OCT system.
Summary of the invention
It is an object of the present invention to provide a kind of OCT galvanometer control systems and control based on single-chip microcontroller control stepper motor Method.
In order to reach above-mentioned technical purpose, technical scheme is as follows: the OCT based on single-chip microcontroller control stepper motor Galvanometer control system, including impulse generator, single-chip microcontroller, motor drive power supply circuit, amplifying circuit, X, Y-direction stepper motor And galvanometer;
The impulse generator is connect with single-chip microcontroller, provides pulse signal for it;
The single-chip microcontroller is X, Y-direction stepper motor provides stairstep signal, and the stairstep signal is after amplifying circuit amplifies Into X, Y-direction stepper motor;
The motor drive power supply circuit supplies electricity to X, Y-direction stepper motor through amplifying circuit,
The X, Y-direction stepper motor are connect with the galvanometer, drive the movement of galvanometer.
Preferably, the single-chip microcontroller uses STC89C52RC chip.
Preferably, the single-chip microcontroller is also connected with exterior I/O extended chip, and the I/O extended chip and amplifying circuit connect It connects, in order to extend, while there is the advantages of economical and practical, advantage of lower cost, optimal performance cost performance can be obtained.
It is further preferred that the model 74HC165 of the I/O extended chip.
It preferably, further include operation button;The operation button is connected to the single-chip microcontroller, for adjusting vibration mirror scanning speed Degree.Further, the operation button includes 4 independent keys, is started for vibration mirror scanning, and scanning stops and speed selects function Energy.
Another aspect of the present invention additionally provides a kind of control method of OCT galvanometer, and the OCT galvanometer control system includes Impulse generator, single-chip microcontroller, motor drive power supply circuit, amplifying circuit, X, Y-direction stepper motor and galvanometer;The controlling party Method the following steps are included:
(1) impulse generator provides the pulse signal of specific frequency,
(2) single-chip microcontroller receives the pulse signal and counting that impulse generator generates,
(3) single-chip microcontroller issues stairstep signal according to count results, and X, Y-direction stepping are acted on after amplifying by amplifying circuit Motor, then motor drive power supply circuit sending signal, X, Y-direction stepper motor drive galvanometer according to stairstep signal, change vibration Field range when scarnning mirror.
The beneficial effects of the present invention are: the OCT galvanometer control system of the invention based on single-chip microcontroller control stepper motor, is used Stepper motor substitutes the galvanometer in former galvanometer system, with impulse generator and single-chip microcontroller output control drive waveform stepper motor Rotation, it is compact-sized, convenient for controlling, and also it is at low cost, while can also be accomplished in time using stepper motor as driving original part Brake inhibits inertia when galvanometer rotation, in order to avoid cause the coverage error and scanner distortion when scanning.
Detailed description of the invention
Fig. 1 is the OCT galvanometer control system architecture schematic diagram of the invention that stepper motor is controlled based on single-chip microcontroller;
Fig. 2 is the pulse signal schematic diagram that impulse sender of the invention provides;
Fig. 3 is the input signal schematic diagram of X of the invention, Y-direction stepper motor.
Specific embodiment
The technical solution that the present invention will be described in detail in the following with reference to the drawings and specific embodiments.
The present invention provides a kind of OCT galvanometer control systems based on single-chip microcontroller control stepper motor, including pulse generation Device, single-chip microcontroller, motor drive power supply circuit, amplifying circuit, X, Y-direction stepper motor and 2-D vibration mirror;Impulse generator and list The connection of piece machine, provides pulse signal for it;Single-chip microcontroller is X, Y-direction stepper motor provides stairstep signal, and the stairstep signal passes through Amplifying circuit is amplified into X, Y-direction stepper motor;Motor drive power supply circuit supplies electricity to X, Y-direction stepping through amplifying circuit Motor;X, Y-direction stepper motor is connect with the galvanometer, drives the movement of galvanometer.
In OCT vibration mirror scanning control system of the invention, shift pulse signal is driven at control waveform by single-chip microcontroller Dynamic driving motor, stairstep signal come from single-chip microcontroller pin;Two driving motors of X, Y-direction use small step-length, high-precision stepping Motor, therefore the number of phases of motor is more;Stepper motor uses another set of drive circuitry.
Specifically, impulse generator provides the pulse signal of a specific frequency, the arteries and veins that pulse generator generates It rushes signal and carries out step-by-step counting, the view when result counted to get can act on the step number of stepper motor and then change vibration mirror scanning Field range.Two stepper motors, i.e. X, Y-direction stepper motor complete the scanning of a plane jointly, and two rotation centers do not exist Approximately the same plane is divided into fast axle (X-direction) and slow axis (Y-direction), and for X, two pulse signal quantitative values, X is arranged in Y-direction altogether X-direction completes primary line scanning when direction pulse signal quantitative value reaches preset value, then has a trigger signal for triggering Y The stepper motor step in direction further returns to initial position with X-direction stepper motor, and pulse signal reaches preset value in the Y direction When, entire flat scanning is completed, and Y-direction stepper motor returns to initial position.
It can be according to the OK range of scanning, to determine that stepper motor completes the X-direction stepper motor steps of primary line scanning And Y-direction stepper motor steps.Since the point ordinary mail number of single-chip microcontroller pin output does not have the ability of direct-driving motor, pulse Signal is only used to make tally function, therefore the definition of low and high level is carried out to stepper motor phase sequence, and the definition of low and high level embodies In a program, single-chip microcontroller pin only exports stairstep signal.Stairstep signal is stored in single-chip microcontroller by what the phase sequence of motor determined The low and high level signal in portion amplifies signal by amplifying circuit, and external motor drive power supply provides drive for two stepper motors Kinetic force makes galvanometer work.
It can change the frequency of impulse generator generation pulse signal by software programming mode to change scanning speed, lead to Often selection C language programming, readable good, convenient for improving and expanding, transplanting is easy, and is substantially shorter the programming development period.In journey Different scanning speeds can be set in sequence;Single-chip microcontroller also external connection keyboard, different scanning speeds is selected by keyboard.
Another aspect of the present invention additionally provides a kind of control method of OCT galvanometer, and OCT galvanometer control system includes pulse Generator, single-chip microcontroller, motor drive power supply circuit, amplifying circuit, X, Y-direction stepper motor and galvanometer;Control method include with Lower step:
(1) impulse generator provides the pulse signal of specific frequency,
(2) single-chip microcontroller receives the pulse signal and counting that impulse generator generates,
(3) single-chip microcontroller issues stairstep signal according to count results, and X, Y-direction stepping are acted on after amplifying by amplifying circuit Motor, then motor drive power supply circuit drives X, Y-direction stepper motor, X, Y-direction stepper motor drive according to stairstep signal Galvanometer changes field range when vibration mirror scanning.
Embodiment 1
With reference to Fig. 1, a kind of OCT galvanometer control system based on single-chip microcontroller control stepper motor, including impulse generator 1, Single-chip microcontroller 2, I/O extended chip 3, motor drive power supply circuit 4, amplifying circuit 5, X, Y-direction stepper motor 6, galvanometer 7 and operation Key 8.
Single-chip microcontroller 2 uses STC89C52RC chip, and using the I/O extended chip 3 of model 74HC165 to single-chip microcontroller 2 I/O mouthfuls are extended, and by the way of transformation from serial to parallel, all chips share a power circuit.
Operation button 8 is connect with single-chip microcontroller 2, and the scanning speed of galvanometer 7 is divided into two grades, and scanning starts, and stops and speed is selected It selects altogether using 4 independent keys, distributes the keyboard signal that 4 single-chip processor i/o mouths carry out scan operation key 8 altogether, when pressing certain When one key, then corresponding I/O mouthfuls of the low and high level of the detection of single-chip microcontroller 2 operates impulse generator 1, is sent out by pulse Raw device 1 starts, stops, is fast, the slow mode for issuing pulse signal changes system mode.
When being controlled using the control system of the present embodiment, control method the following steps are included:
(1) impulse generator 1 provides the pulse signal of specific frequency, and pulse signal is as shown in Figure 2;
(2) pulse signal for receiving the generation of impulse generator 1 of single-chip microcontroller 2 and counting;
(3) single-chip microcontroller 2 issues stairstep signal according to count results, and X, Y-direction step are acted on after amplifying by amplifying circuit Into motor 6, motor drive power supply circuit 4 power supply X, Y-direction stepper motor 5, X, Y-direction stepper motor 6 drive according to stairstep signal Dynamic galvanometer 7 changes field range when galvanometer 7 scans;Wherein X, the input signal of Y-direction stepper motor are as shown in Figure 3.
The beneficial effect that embodiment 1 provides control system is:
(1) galvanometer in former galvanometer system is substituted with stepper motor, with impulse generator and single-chip microcontroller output control wave Shape drives stepper motor rotation, compact-sized, convenient for controlling, and also it is at low cost.
(2) single-chip processor i/o pin is usually multi-functional, and external extended capability is strong, while having economical and practical, cost phase To lower advantage, optimal performance cost performance can be obtained.
(3) single-chip microcontroller is used, can choose and programmed using C language, readable good, transplanting is easy, convenient for improving and expanding, The programming development period can be greatly shortened, and at low cost.
(4) it can accomplish the inertia to be braked when inhibiting galvanometer rotation in time as driving original part using stepper motor, in order to avoid Cause the coverage error and scanner distortion when scanning.
According to the disclosure and teachings of the above specification, those skilled in the art in the invention can also be to above-mentioned embodiment party Formula is changed and is modified.Therefore, the invention is not limited to the specific embodiments disclosed and described above, to of the invention Some modifications and changes should also be as falling into the scope of the claims of the present invention.In addition, although being used in this specification Some specific terms, these terms are merely for convenience of description, does not limit the present invention in any way.

Claims (10)

1. the OCT galvanometer control system based on single-chip microcontroller control stepper motor, which is characterized in that including impulse generator, monolithic Mechanical, electrical machine driving power circuit, amplifying circuit, X, Y-direction stepper motor and galvanometer;
The impulse generator is connect with single-chip microcontroller, provides pulse signal for it;
The single-chip microcontroller is X, Y-direction stepper motor provides stairstep signal, and the stairstep signal is amplified into through amplifying circuit X, Y-direction stepper motor;
The motor drive power supply circuit supplies electricity to X, Y-direction stepper motor through amplifying circuit,
The X, Y-direction stepper motor are connect with the galvanometer, drive the movement of galvanometer.
2. the OCT galvanometer control system according to claim 1 based on single-chip microcontroller control stepper motor, which is characterized in that
The single-chip microcontroller uses STC89C52RC chip.
3. the OCT galvanometer control system according to claim 1 based on single-chip microcontroller control stepper motor, which is characterized in that
The single-chip microcontroller is also connected with exterior I/O extended chip, and the I/O extended chip is connect with amplifying circuit.
4. the OCT galvanometer control system according to claim 3 based on single-chip microcontroller control stepper motor, which is characterized in that
The model 74HC165 of the I/O extended chip.
5. the OCT galvanometer control system according to claim 1 based on single-chip microcontroller control stepper motor, which is characterized in that
It further include operation button;The operation button is connected to the single-chip microcontroller, for adjusting scan rate of vibrating mirror.
6. the OCT galvanometer control system according to claim 5 based on single-chip microcontroller control stepper motor, which is characterized in that
The operation button includes 4 independent keys.
7. a kind of control method of OCT galvanometer, which is characterized in that the OCT galvanometer control system includes impulse generator, monolithic Mechanical, electrical machine driving power circuit, amplifying circuit, X, Y-direction stepper motor and galvanometer;The control method the following steps are included:
(1) impulse generator provides the pulse signal of specific frequency,
(2) single-chip microcontroller receives the pulse signal and counting that impulse generator generates,
(3) single-chip microcontroller issues stairstep signal according to count results, and X, Y-direction stepping electricity are acted on after amplifying by amplifying circuit Machine, then motor drive power supply circuit supplies electricity to X, Y-direction stepper motor, and X, Y-direction stepper motor drive according to stairstep signal Galvanometer changes field range when vibration mirror scanning.
8. the control method of OCT galvanometer according to claim 7, which is characterized in that the single-chip microcontroller uses STC89C52RC chip.
9. the control method of OCT galvanometer according to claim 7, which is characterized in that the single-chip microcontroller is also circumscribed with I/O expansion Chip is opened up, and the I/O extended chip is connect with amplifying circuit.
10. the control method of OCT galvanometer according to claim 9, which is characterized in that the model of the I/O extended chip For 74HC165.
CN201910081012.4A 2019-01-28 2019-01-28 Galvanometer control system and control method based on single-chip microcontroller control stepper motor Pending CN110112968A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910081012.4A CN110112968A (en) 2019-01-28 2019-01-28 Galvanometer control system and control method based on single-chip microcontroller control stepper motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910081012.4A CN110112968A (en) 2019-01-28 2019-01-28 Galvanometer control system and control method based on single-chip microcontroller control stepper motor

Publications (1)

Publication Number Publication Date
CN110112968A true CN110112968A (en) 2019-08-09

Family

ID=67483702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910081012.4A Pending CN110112968A (en) 2019-01-28 2019-01-28 Galvanometer control system and control method based on single-chip microcontroller control stepper motor

Country Status (1)

Country Link
CN (1) CN110112968A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110739889A (en) * 2019-08-15 2020-01-31 佛山市顺德区蚬华多媒体制品有限公司 Driving device of electromagnetic driving micro motor
CN113659888A (en) * 2021-06-29 2021-11-16 广州永士达医疗科技有限责任公司 Driving system and method of OCT (optical coherence tomography) equipment
CN116047985A (en) * 2023-03-30 2023-05-02 济南森峰激光科技股份有限公司 Control system and definition control method for digital two-dimensional galvanometer

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002277809A (en) * 2001-03-15 2002-09-25 Miyota Kk Planar galvanomirror driving circuit
CN101458212A (en) * 2009-01-04 2009-06-17 北京心润心激光医疗设备技术有限公司 Real-time imaging optical coherent chromatography skin diagnostic device
CN201692540U (en) * 2010-04-09 2011-01-05 杨骏 Programmable laser aiming emergency evacuation device
CN104464483A (en) * 2014-12-25 2015-03-25 湖北工程学院 Two-dimensional galvanometric laser scanning teaching demonstration device and implementing method thereof
CN106073788A (en) * 2016-07-19 2016-11-09 杭州捷诺飞生物科技有限公司 In-situ three-dimensional based on OCT prints skin repair equipment and its implementation
CN108375346A (en) * 2018-02-11 2018-08-07 西安知象光电科技有限公司 A kind of multi-thread laser three-dimensional scanning method based on micro- galvanometer beam splitting type projection arrangement

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002277809A (en) * 2001-03-15 2002-09-25 Miyota Kk Planar galvanomirror driving circuit
CN101458212A (en) * 2009-01-04 2009-06-17 北京心润心激光医疗设备技术有限公司 Real-time imaging optical coherent chromatography skin diagnostic device
CN201692540U (en) * 2010-04-09 2011-01-05 杨骏 Programmable laser aiming emergency evacuation device
CN104464483A (en) * 2014-12-25 2015-03-25 湖北工程学院 Two-dimensional galvanometric laser scanning teaching demonstration device and implementing method thereof
CN106073788A (en) * 2016-07-19 2016-11-09 杭州捷诺飞生物科技有限公司 In-situ three-dimensional based on OCT prints skin repair equipment and its implementation
WO2018014440A1 (en) * 2016-07-19 2018-01-25 杭州捷诺飞生物科技有限公司 Oct-based in situ 3d printing skin repair equipment and implementation method therefor
CN108375346A (en) * 2018-02-11 2018-08-07 西安知象光电科技有限公司 A kind of multi-thread laser three-dimensional scanning method based on micro- galvanometer beam splitting type projection arrangement

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110739889A (en) * 2019-08-15 2020-01-31 佛山市顺德区蚬华多媒体制品有限公司 Driving device of electromagnetic driving micro motor
CN110739889B (en) * 2019-08-15 2022-01-11 佛山市顺德区蚬华多媒体制品有限公司 Driving device of electromagnetic driving micro motor
CN113659888A (en) * 2021-06-29 2021-11-16 广州永士达医疗科技有限责任公司 Driving system and method of OCT (optical coherence tomography) equipment
CN116047985A (en) * 2023-03-30 2023-05-02 济南森峰激光科技股份有限公司 Control system and definition control method for digital two-dimensional galvanometer

Similar Documents

Publication Publication Date Title
CN110112968A (en) Galvanometer control system and control method based on single-chip microcontroller control stepper motor
CN104267670B (en) A kind of laser marking on the fly hardware compensating method
CN201783759U (en) Optical fiber laser or disc laser dynamic focusing scanning spot trajectory processing system
CN206331115U (en) The laser radar system scanned based on MEMS micromirror
CN106289098B (en) The method of controlling rotation of three-dimensional laser scanner
CN100504498C (en) Precision tracing subsystem for laser communication tracking system
CN1069403C (en) Three-dimensional measuring apparatus and three-dimensional measuring method
CN105258784B (en) A kind of autompulse excitation Modal Parameters Identification and device
CN104607638A (en) Novel laser output device for 3D printing
CN108247200A (en) For the optical beam scanning system and beam scanning method of laser micropore processing
CN103048811A (en) Laser scanner
CN202230201U (en) Closed loop laser scanning range-finding device
CN201698212U (en) Laser energy follow-up control device and laser cutting machine
CN207873390U (en) Optical beam scanning system for laser micropore processing
CN110194018A (en) A kind of numerical control supersonic carving system
CN100466402C (en) Grating-selected quick tuning laser resonant cavity
CN114415199A (en) Single-line MEMS laser radar ranging method and system
CN101241189A (en) Two-dimensional scanning laser collision avoidance radar system
CN216449730U (en) Laser radar scanning device based on stepping motor
CN210776030U (en) Resonant scanning mirror based on photoelectric feedback
CN103475334A (en) Self-adaptive method for ultrasonic generator
CN103397174B (en) Device and method for eliminating stress by utilizing modal broadband vibration
CN210323362U (en) Miniature medium-long distance digital laser ranging device
CN204143062U (en) A kind of laser beam movement locus control system
CN206003139U (en) A kind of laser calculating instrument

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
DD01 Delivery of document by public notice

Addressee: Patent Manager of Guangdong Weiren Medical Technology Co., Ltd.

Document name: Notification of Passing Examination on Formalities

DD01 Delivery of document by public notice