[go: up one dir, main page]

CN111176196B - Control system and control method of optical switch - Google Patents

Control system and control method of optical switch Download PDF

Info

Publication number
CN111176196B
CN111176196B CN202010091172.XA CN202010091172A CN111176196B CN 111176196 B CN111176196 B CN 111176196B CN 202010091172 A CN202010091172 A CN 202010091172A CN 111176196 B CN111176196 B CN 111176196B
Authority
CN
China
Prior art keywords
optical switch
control
controller
processor
voltage
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.)
Active
Application number
CN202010091172.XA
Other languages
Chinese (zh)
Other versions
CN111176196A (en
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.)
Guilin University of Electronic Technology
Original Assignee
Guilin University of Electronic Technology
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 Guilin University of Electronic Technology filed Critical Guilin University of Electronic Technology
Priority to CN202010091172.XA priority Critical patent/CN111176196B/en
Publication of CN111176196A publication Critical patent/CN111176196A/en
Application granted granted Critical
Publication of CN111176196B publication Critical patent/CN111176196B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Mechanical Light Control Or Optical Switches (AREA)

Abstract

本发明提出了一种光开关的控制系统和控制方法,其中控制系统包括:控制器,与光开关连接,控制器适于向光开关输出电压,以使光开关在电压加载下受静电吸引力而旋转;电源,与控制器连接,电源适于为控制器供电;升压组件,连接于电源和控制器,升压组件适于对待输入至控制器的供电电压进行升压转换;处理器,与控制器连接,处理器适于根据控制参数、编译参数和simulink仿真工具编译控制器的控制代码,一方面能够提供较大的直流电源,解决对于不同的静电驱动MEMS光开关需要开发特定的硬件控制系统的问题,降低生产成本,另一方面,基于simulink的图形化编程构造算法,能自动生成代码并下载到系统中。

The present invention proposes a control system and a control method for an optical switch, wherein the control system comprises: a controller connected to the optical switch, the controller being suitable for outputting a voltage to the optical switch so that the optical switch rotates under voltage loading due to electrostatic attraction; a power supply connected to the controller, the power supply being suitable for supplying power to the controller; a boost component connected to the power supply and the controller, the boost component being suitable for performing a boost conversion on a power supply voltage to be input to the controller; a processor connected to the controller, the processor being suitable for compiling a control code of the controller according to control parameters, compilation parameters and a simulink simulation tool, on the one hand, being able to provide a larger DC power supply, solving the problem of needing to develop a specific hardware control system for different electrostatically driven MEMS optical switches, thereby reducing production costs; on the other hand, based on a graphical programming construction algorithm of simulink, being able to automatically generate code and download it to the system.

Description

Control system and control method of optical switch
Technical Field
The invention relates to the technical field of optical switches, in particular to a control system and a control method of an optical switch.
Background
MEMS (Micro-Electro-MECHANICAL SYSTEMS, micro Electro mechanical system) optical switches, in particular to electrostatic driven MEMS optical switches, have small size, simple structure, high response speed and wide application prospect. In order to obtain an ideal response speed, a control algorithm is generally adopted to control the optical switch, such as algorithms of direct open loop control, input shaping control, sliding mode control and the like of step voltage, a hardware system is developed for a specific optical switch, and code debugging is performed by manual programming according to different algorithms, but the hardware system cannot meet the electrostatic driving requirement of most of the optical switches, so that the control cost of the optical switch is increased, various errors are easy to occur in the process of manually writing codes, and the debugging process is difficult and time-consuming.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
To this end, a first aspect of the present invention is to propose a control system for an optical switch.
A second aspect of the present invention is to provide a control method of an optical switch.
In view of this, according to a first aspect of the present invention, there is provided a control system for an optical switch, comprising a controller connected to the optical switch, the controller adapted to output a voltage to the optical switch to cause the optical switch to rotate under a voltage load by an electrostatic attraction force, a power supply connected to the controller, the power supply adapted to supply power to the controller, a boost assembly connected to the power supply and the controller, the boost assembly adapted to boost a power supply voltage to be input to the controller, and a processor connected to the controller, the processor adapted to compile a control code of the controller according to a control parameter, a compilation parameter, and a simulink simulation tool.
According to the control system of the optical switch, on one hand, the boosting component is arranged to boost the power supply voltage to be input into the controller, so that a larger direct current power supply is provided for the controller, a larger light angle range is obtained, the control system can be applied to most of optical switches, the application range of the control system is widened, the problem that a specific hardware control system needs to be developed for different electrostatic drive MEMS optical switches is solved, and the production cost is reduced. On the other hand, a simulink simulation tool is installed on the processor, control codes of the controller can be automatically generated through control parameters, compiling parameters and the simulink simulation tool, a developer is not required to write codes, the controller can output corresponding voltages according to the control codes, so that the optical switch micro mirror is rotated by electrostatic attraction under voltage loading, optical switch light paths are switched, meanwhile, the simulink simulation tool can provide a graphical programming environment, a constructed algorithm is visual and easy to understand, problems in the debugging process are easy to find, difficulty in directly writing codes is avoided, a developer is more concerned with the algorithm rather than continuously correcting errors of the codes in the later debugging process, and therefore the correctness of the algorithm can be verified and the development process can be promoted by using less time.
Specifically, the number of optical switches is at least one, thereby realizing a greater number of optical path switching.
In addition, the control system of the optical switch in the technical scheme provided by the invention can also have the following additional technical characteristics:
In any of the above technical schemes, the controller further comprises a control chip connected with the processor, wherein the control chip is suitable for generating control signals according to the control codes, and a driving chip connected with the control chip and the optical switch, and the driving chip is suitable for outputting voltages to the optical switch according to the control signals.
In this technical scheme, the controller includes control chip and driver chip, and the control code that the processor produced downloads control chip through the simulator in, and control chip control driver chip's output voltage, and the photoswitch micromirror receives the static attraction and rotates under the voltage loading to realize the switching of photoswitch light path, because the voltage of step-up subassembly output is great, consequently driver chip's output scope is wider, can satisfy most photoswitch's static drive demand, and this control system can be applied to different static drive photoswitchs promptly.
In any of the above technical schemes, the optical switch further comprises an angle measuring component connected with the optical switch, wherein the angle measuring component is suitable for detecting the torsion angle of the optical switch.
In the technical scheme, the control system further comprises an angle measuring component, and the torsion angle value of the optical switch is measured through the angle measuring component, so that a user can know the deflection condition of the micro mirror of the optical switch in time, and the open loop control of the optical switch is completed.
In any of the above technical solutions, the angle measurement assembly further comprises a position sensor adapted to detect a first position of the reflected light of the optical switch and a second position of the reflected light of the optical switch after rotation, and a position controller connected to the position sensor, the position controller being adapted to determine the torsion angle based on the first position and the second position.
In this technical scheme, angle measurement subassembly includes position sensor and position controller, when not loaded voltage, incident laser shines on irrotational photoswitch micro mirror, catch reflected light (emergent light) and shine to position sensor's first position (a point), when photoswitch loading voltage, the micro mirror receives static attraction drive and rotate to obtain the reflected light after the micro mirror stops rotating and shine to position sensor's second position (b point), can calculate torsion angle through the distance value of a, b two points, and then can make the user know the deflection situation of photoswitch micro mirror in time.
In any of the above solutions, further, the angle measurement assembly is connected to the processor, and the angle measurement assembly is further adapted to feed back the torsion angle to the processor, so that the processor determines the connection state of the optical switch according to the torsion angle.
In the technical scheme, the angle measuring component can feed back the torsion angle to the processor, so that closed-loop control of the optical switch is realized, the processor can determine the connection state of the optical switch according to the torsion angle, a user can know the switching result of the optical path of the optical switch conveniently, and the use requirement of the user is met.
In any of the above technical schemes, the device further comprises a timer connected with the angle measuring component, a display connected with the processor, the display being suitable for displaying the connection state, the torsion angle and the rotation time, and a prompter connected with the processor, the prompter being suitable for sending out a prompt message when at least one of the connection state, the rotation time and the torsion angle does not meet the control parameters.
In the technical scheme, the timer respectively records the time when the reflected light irradiates the first position and the second position, and calculates the rotation time of the reflected light of the optical switch from the first position to the second position, namely the time consumed by the rotation of the micro mirror of the optical switch, thereby being beneficial to determining the switching efficiency of the optical path of the optical switch. Meanwhile, the connection state, the torsion angle and the rotation time of the optical switch are displayed through the display, so that a user can know the operation condition of the optical switch conveniently, and adjustment and control can be performed in time. And after determining the connection state, the rotation time and the torsion angle of the optical switch, the processor judges whether at least one of the connection state, the rotation time and the torsion angle meets the control parameters of the optical switch by a user, and if not, prompts information sent by the prompter to remind the user to debug the control system or the control code.
According to the second aspect of the invention, a control method of the optical switch is also provided, which comprises the steps of obtaining compiling parameters and control parameters of the optical switch, building a control algorithm of optical switching according to the control parameters and a simulink simulation tool, building a control code of a controller according to the control algorithm and the compiling parameters, generating a control signal according to the control code, and outputting voltage to the optical switch according to the control signal so as to enable the optical switch to rotate under the action of electrostatic attraction force under the action of voltage loading.
According to the control method provided by the invention, the compiling parameters and the control parameters of the optical switch input by a user are obtained, the control parameters set by the simulink simulation tool are used for building the optical switching control algorithm, the control algorithm is compiled and linked according to the compiling parameters, so that the control code of the controller is constructed, a control signal is generated according to the control code, and corresponding voltage is output to the optical switch according to the control signal, so that the optical switch is rotated under the action of electrostatic attraction force under the action of voltage loading, the control code is automatically generated, a developer is not required to write the code, the corresponding voltage can be output according to the control code, so that the micro mirror of the optical switch is rotated under the action of electrostatic attraction force under the action of voltage loading, the switching of an optical switch light path is realized, meanwhile, the simulink simulation tool can provide a graphical programming environment, the constructed algorithm is visual and easy to find, the problem in the debugging process is easy to avoid the difficulty of directly writing the code, the developer is more focused on the algorithm itself, the error of the code is not continuously corrected in the following debugging process, the algorithm can be further used for verifying the correctness of the algorithm, and the development progress is correct.
In any of the above technical solutions, the method further comprises detecting a first position of the reflected light of the optical switch and a second position of the reflected light of the optical switch after rotation, determining a torsion angle of the optical switch according to the first position and the second position, and determining a connection state of the optical switch according to the torsion angle.
In the technical scheme, when no voltage is applied, incident laser irradiates on the unrotated optical switch micro mirror, the first position (point a) where reflected light irradiates is captured, when the optical switch is applied with the voltage, the micro mirror is driven by electrostatic attraction to rotate, so that the second position (point b) where the reflected light irradiates after the micro mirror stops rotating is obtained, the torsion angle can be calculated through the distance value between the points a and b, the connection state of the optical switch is determined according to the torsion angle, a user can conveniently know the deflection condition of the optical switch micro mirror and the switching result of an optical switch optical path, and the use requirement of the user is met.
In any of the above technical solutions, further comprising timing a rotation time of the reflected light of the optical switch from the first position to the second position.
In the technical scheme, the time when the reflected light irradiates to the first position and the second position is recorded respectively, and the rotation time of the reflected light of the optical switch from the first position to the second position, namely the time consumed by the rotation of the optical switch micro mirror, is calculated, so that the switching efficiency of the optical switch optical path is determined.
In any of the above technical solutions, further comprising determining whether at least one of the connection state, the rotation time and the torsion angle satisfies the control parameter, determining that at least one of the connection state, the rotation time and the torsion angle does not satisfy the control parameter, and sending out a prompt message.
In the technical scheme, after the connection state, the rotation time and the torsion angle of the optical switch are determined, whether at least one of the connection state, the rotation time and the torsion angle meets the control parameters of the optical switch or not is judged, and if the at least one of the connection state, the rotation time and the torsion angle meets the control parameters of the optical switch, prompt information is sent out to remind the user to debug the control system or the control code.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and may be better understood from the following description of embodiments taken in conjunction with the accompanying drawings in which:
FIG. 1 shows a schematic block diagram of a control system for an optical switch according to one embodiment of the invention;
FIG. 2 shows a schematic block diagram of a control system for an optical switch according to yet another embodiment of the present invention;
FIG. 3 is a schematic flow diagram of a control system for an optical switch according to yet another embodiment of the present invention;
FIG. 4 is a flow chart of a method of controlling an optical switch according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a control method of an optical switch according to another embodiment of the present invention;
FIG. 6 is a schematic block diagram of an angle measurement assembly according to one embodiment of the present invention;
FIG. 7 shows a schematic block diagram of a control system for an optical switch in accordance with one embodiment of the present invention;
Fig. 8 shows a schematic view of torsion angle measurement of an optical switch according to an embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. It should be noted that, without conflict, the embodiments of the present invention and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than those described herein, and therefore the scope of the present invention is not limited to the specific embodiments disclosed below.
A control system 100 of an optical switch and a control method of an optical switch according to some embodiments of the present invention are described below with reference to fig. 1 to 8.
Example 1
As shown in fig. 1, according to an embodiment of the first aspect of the present invention, a control system 100 of an optical switch is presented, the system comprising a controller 102, a power supply 104, a boost component 106, and a processor 108.
Specifically, the controller 102 is connected to the optical switch 120, the controller 102 is capable of outputting a voltage to the optical switch 120 such that the optical switch 120 is rotated by an electrostatic attraction force under a voltage loading, the power source 104 is connected to the controller 102 and supplies power to the controller 102, the boost component 106 is connected to the power source 104 and the controller 102, the boost component 106 is adapted to boost-convert a power supply voltage to be input to the controller 102, the processor 108 is connected to the controller 102, and the processor 108 is adapted to compile a control code of the controller 102 according to a control parameter, a compiling parameter, and a simulink simulation tool.
In this embodiment, on the one hand, the boost component 106 is configured to boost the power supply voltage to be input to the controller 102, so as to provide a larger direct current power supply 104 for the controller 102, and obtain a larger light angle range, so that the control system can be applied to most of the optical switches 120, the application range of the control system is widened, the problem that a specific hardware control system needs to be developed for different electrostatic driving MEMS optical switches is solved, and the production cost is reduced. On the other hand, the processor 108 is provided with a simulink simulation tool, the control code of the controller 102 can be automatically generated through the control parameter, the compiling parameter and the simulink simulation tool, the controller 102 outputs corresponding voltage according to the control code, the optical switch micromirror is rotated by electrostatic attraction under voltage loading, so that the switching of an optical switch light path is realized, meanwhile, the simulink simulation tool can provide a graphical programming environment, a constructed algorithm is visual and easy to understand, problems in the debugging process are easy to find, the difficulty of directly writing the code is avoided, a developer is more focused on the algorithm rather than continuously correcting errors of the code in the later debugging process, and therefore less time is used, the correctness of the algorithm is verified, and the development process is promoted.
Further, the control system is able to control the at least one optical switch 120, thereby enabling a greater number of optical path switches.
It should be noted that, the voltage output by the boost component 106 after boosting is not less than 80V, so as to satisfy the driving voltage of most of the optical switches 120. The processor 108 may be any of a computer, a mobile terminal, and a tablet computer.
Example two
As shown in fig. 2, according to one embodiment of the present invention, including the features defined in the above embodiments, and further defining the controller 102 includes a control chip 1022 and a drive chip 1024.
Specifically, the control chip 1022 is connected to the processor 108, the control chip 1022 is adapted to generate a control signal according to a control code, the driving chip 1024 is connected to the control chip 1022 and the optical switch 120, and the driving chip 1024 is adapted to output a voltage to the optical switch 120 according to the control signal.
In this embodiment, the control code generated by the processor 108 is downloaded to the control chip 1022 through the emulator, so that the developer does not need to write the code, the control chip 1022 can control the output voltage of the driving chip 1024, the optical switch micromirror is rotated by the electrostatic attraction under the voltage loading, so as to realize the switching of the optical switch light path, and the output voltage of the boost component 106 is larger, so that the output range of the driving chip 1024 is wider, and the electrostatic driving requirement of most of the optical switches 120 can be met, i.e. the control system can be applied to different electrostatic driving optical switches 120.
Example III
As shown in fig. 3, according to one embodiment of the present invention, a control system 100 for an optical switch is provided, the system comprising a controller 102, a power source 104, a boost component 106, a processor 108, and an angle measurement component 110.
Specifically, the angle measuring assembly 110 is connected with the optical switch 120, the angle measuring assembly 110 is adapted to detect a torsion angle of the optical switch 120, the angle measuring assembly 110 comprises a position sensor 1102 and a position controller 1104 connected with the position sensor 1102, the position sensor 1102 is adapted to detect a first position of reflected light of the optical switch 120 and a second position of reflected light of the optical switch 120 after rotation, and the position controller 1104 is adapted to determine the torsion angle according to the first position and the second position.
In this embodiment, as shown in fig. 8, when no voltage is applied, the incident laser irradiates the optical switch micromirror which is not rotated, the reflected light irradiates the first position (point a) of the position sensor 1102, when the optical switch 120 is applied with voltage, the micromirror is driven to rotate by electrostatic attraction, so that the second position (point b) of the position sensor 1102 is irradiated by the reflected light after the rotation of the micromirror is stopped, the torsion angle can be calculated by the distance between the points a and b, so that the user can know the deflection condition of the optical switch micromirror in time, and the user can know the deflection condition of the optical switch micromirror in time, thereby completing the open loop control of the optical switch 120.
Further, the angle measurement assembly is connected with the processor 108, the angle measurement assembly 110 is further adapted to feed back the torsion angle to the processor 108, so as to realize closed-loop control of the optical switch 120, and the processor 108 can determine the connection state of the optical switch 120 according to the torsion angle, so that a user can conveniently know the switching result of the optical path of the optical switch, and the use requirement of the user is met.
Example IV
According to one embodiment of the present invention, the control system including the features defined in the above embodiments and further defining the optical switch further includes a timer, a display and a reminder.
The device comprises a light switch, a processor, a timer, a display, a prompting device and a prompting device, wherein the light switch is used for switching light, the timer is connected with the angle measuring assembly and is suitable for timing rotation time of light reflected by the light switch from a first position to a second position, the display is connected with the processor and is suitable for displaying a connection state, a torsion angle and rotation time, the prompting device is connected with the processor and is suitable for sending prompting information when at least one of the connection state, the rotation time and the torsion angle does not meet control parameters.
In this embodiment, the time when the reflected light irradiates the first position and the second position is recorded respectively, and the rotation time when the reflected light of the optical switch reaches the second position from the first position is calculated, that is, the time consumed by the rotation of the micro mirror of the optical switch is thus beneficial to determining the switching efficiency of the optical path of the optical switch, meanwhile, the connection state, the torsion angle and the rotation time of the optical switch are displayed through the display, so that the user can know the running state of the optical switch and adjust and control in time, and after the processor receives the connection state, the rotation time and the torsion angle of the optical switch, it is determined whether at least one of the connection state, the rotation time and the torsion angle meets the control parameters of the optical switch of the user, and if not, the prompting information is sent out through the prompter to prompt the user to debug the control system or the control code.
Example five
As shown in fig. 4, according to an embodiment of the present invention, there is provided a control method of an optical switch, the method including:
step 402, acquiring compiling parameters and control parameters of an optical switch;
step 404, constructing a light-on control algorithm according to the control parameters and the simulink simulation tool;
step 406, constructing a control code of the controller according to the control algorithm and the compiling parameters;
step 408, generating a control signal according to the control code;
step 410, outputting a voltage to the optical switch according to the control signal.
In this embodiment, the compiling parameters and the control parameters of the optical switch input by the user are obtained, the control parameters set by the simulink simulation tool are obtained, the control algorithm of the optical switch is built, the control algorithm is compiled and linked according to the compiling parameters, so that the control code of the optical switch is constructed, the control signal is generated according to the control code, and the corresponding voltage is output according to the control signal, so that the optical switch is rotated under the voltage loading and is subjected to electrostatic attraction force, the control code is not needed to be written by a developer, the corresponding voltage can be output according to the control code, so that the micro mirror of the optical switch is rotated under the voltage loading and the optical switch optical path is switched, meanwhile, the simulink simulation tool can provide a graphical programming environment, so that the constructed algorithm is visual and easy to understand, the problem in the debugging process is easy to find, the difficulty of directly writing the code is avoided, the developer is more focused on the algorithm itself, the error of the code is continuously corrected in the following debugging process, the algorithm can be verified in a smaller time, and the correctness of the algorithm is verified, and the development process is advanced.
Specifically, the compiling parameters include, but are not limited to, at least one of a parser type, a simulation step size, a simulation duration, a code type, and a compiler type.
Example six
As shown in fig. 5, according to an embodiment of the present invention, there is provided a control method of an optical switch, the method including:
step 502, acquiring compiling parameters and control parameters of an optical switch;
Step 504, constructing a light-on control algorithm according to the control parameters and the simulink simulation tool;
step 506, constructing a control code of the controller according to the control algorithm and the compiling parameters;
step 508, generating a control signal according to the control code;
Step 510, outputting voltage to the optical switch according to the control signal;
Step 512, detecting a first position of the reflected light of the optical switch and a second position of the reflected light of the optical switch after rotation;
step 514, determining a torsion angle of the optical switch according to the first position and the second position;
Step 516, determining the connection state of the optical switch according to the torsion angle;
in step 518, a rotation time of the reflected light of the optical switch from the first position to the second position is counted.
In this embodiment, when no voltage is applied, the incident laser irradiates on the optical switch micromirror which is not rotated, and captures a first position (a point) where the reflected light irradiates, when the optical switch is applied with voltage, the micromirror is driven to rotate by electrostatic attraction, so as to obtain a second position (b point) where the reflected light irradiates to the angle sensor after the micromirror stops rotating, a torsion angle can be calculated through a distance value between the a point and the b point, a connection state of the optical switch can be determined according to the torsion angle, time when the reflected light irradiates to the first position and the second position is recorded respectively, and a rotation time of the reflected light of the optical switch from the first position to the second position, namely, time consumed by the rotation of the optical switch micromirror is calculated, so that the determination of the switching efficiency of an optical switch light path is facilitated, a user can conveniently learn the deflection condition of the optical switch micromirror and a switching result of the optical switch light path, and the use requirement of the user is met.
Example seven
According to one embodiment of the invention, the control method of the optical switch is provided, and the method further comprises the steps of judging whether at least one of the connection state, the rotation time and the torsion angle of the optical switch meets the control parameters or not, judging that at least one of the connection state, the rotation time and the torsion angle does not meet the control parameters, and sending prompt information.
In this embodiment, after determining the connection state, rotation time, and torsion angle of the optical switch, it is determined whether at least one of the connection state, rotation time, and torsion angle satisfies the control parameter of the optical switch by the user, and if not, a prompt message is sent to remind the user to debug the control system or the control code.
Example eight
As shown in fig. 6, according to an embodiment of the present invention, a MEMS optical switch control system based on simulink automatic code generation is provided, where the hardware system includes a computer (processor), a chip power supply (power supply), a control chip, a boost switch power supply (boost component), a digital-to-analog conversion chip (DA chip), an optical switch, and an angle gauge, where an output voltage of the boost switch power supply is greater than 80 volts to satisfy a driving voltage of most optical switches.
The computer provided in this embodiment includes a software matrix factory MATLAB (simulink), a C2000 support package, CCS, a simulink code module of a DA chip, and a ControlSuite module, where MATLAB (simulink) provides a graphical programming environment, the C2000 support package provides a graphical programming module of a 2000 series chip, and the CCS software compiles and links codes, and the DA simulink coder module is to provide a code generating function of an AD chip, and the ControlSuite module functions to enable MATLAB to find a corresponding library file and header file when generating codes. Specifically, a simulink file (simulink blank page) is newly created, and mathematical function modules in simulink library browser (library browser) are selected and connected with chip function modules according to a logical relationship, so that the algorithm is built. After the construction is completed, setting a simulation analyzer (information such as the type of the analyzer, the simulation step length, the simulation duration and the like), the type of a generated code, the information such as a compiler and the like, so as to set a compiling environment, selecting a specific embedded chip, setting the inherent resources of the chip, such as clock information of the chip, downloading the chip into a control chip through the simulator after the construction of the compiling environment is completed, controlling the output voltage of a DA (digital-to-analog) chip by the control chip, and rotating an optical switch micromirror under the action of electrostatic attraction force under the action of voltage loading, thereby realizing the switching of an optical switch light path, and measuring the torsion angle value of the optical switch through an angle measuring instrument. And the angle value feedback is carried out, so that the closed-loop control can be realized.
As shown in fig. 7, the angle measuring instrument is composed of a Position Sensor Detector (PSD) and a PSD controller, the position sensor detector captures the light position, the PSD controller measures the distance difference and the angle value of the two points of light, as shown in fig. 8, when no voltage is applied, the incident laser irradiates on the non-rotating MEMS micro mirror, the emergent light 1 irradiates the point a of the angle measuring instrument, when the voltage is applied to the optical switch, the micro mirror rotates by electrostatic attraction, the emergent light 2 is obtained and irradiates the point b of the angle measuring instrument, and the rotating angle θ can be calculated by the distance value of the two points a and b.
In this embodiment, 1) the voltage output by the boost switching power supply is larger, so the output range of the DA chip is wider, and the electrostatic driving requirement of most of the optical switches can be met, that is, the system can be applied to different electrostatic driving optical switches, and the problem that a specific hardware control system needs to be developed for different electrostatic driving MEMS optical switches is solved. 2) The graphical programming environment provided by the simulink enables the constructed algorithm to be visual and easy to understand, and problems in the debugging process are easy to find. Meanwhile, the difficulty of directly writing codes is avoided, so that a developer is more focused on the algorithm rather than continuously correcting errors of the codes in the later debugging process, the correctness of the algorithm can be verified in a shorter time, the development process is advanced, and the problems that the developer needs to write codes in a handwriting mode and the code debugging process is difficult are solved.
In the description of this specification, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying any particular importance unless otherwise expressly specified or limited, the terms "connected," "mounted," "secured," and the like are to be construed broadly, e.g., as being either fixedly connected, detachably connected, or integrally connected, or directly connected, or indirectly connected via an intervening medium. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
In the description of the present specification, the terms "one embodiment," "some embodiments," "particular embodiments," and the like, mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (7)

1.一种光开关的控制系统,其特征在于,包括:1. A control system for an optical switch, comprising: 控制器,与所述光开关连接,所述控制器适于向所述光开关输出电压,以使所述光开关在所述电压加载下受静电吸引力而旋转;A controller connected to the optical switch, the controller being adapted to output a voltage to the optical switch so that the optical switch rotates under the voltage loading due to electrostatic attraction; 电源,与所述控制器连接,所述电源适于为所述控制器供电;A power supply connected to the controller, wherein the power supply is suitable for supplying power to the controller; 升压组件,连接于所述电源和所述控制器,所述升压组件适于对待输入至所述控制器的供电电压进行升压转换;A boost component, connected to the power supply and the controller, the boost component being adapted to perform a boost conversion on a supply voltage to be input to the controller; 处理器,与所述控制器连接,所述处理器适于根据控制参数、编译参数和simulink仿真工具编译所述控制器的控制代码;A processor connected to the controller, the processor being adapted to compile a control code of the controller according to control parameters, compilation parameters and a simulink simulation tool; 角度测量组件,与所述光开关连接,所述角度测量组件适于检测所述光开关的扭转角度;An angle measuring component connected to the optical switch, wherein the angle measuring component is suitable for detecting a torsion angle of the optical switch; 所述角度测量组件与所述处理器连接,所述角度测量组件还适于将所述扭转角度反馈至所述处理器,以使所述处理器根据所述扭转角度确定所述光开关的连接状态;The angle measurement component is connected to the processor, and the angle measurement component is further adapted to feed back the torsion angle to the processor, so that the processor determines the connection state of the optical switch according to the torsion angle; 计时器,与所述角度测量组件连接,所述计时器适于计时所述光开关的反射光的由第一位置到达第二位置的旋转时间;A timer connected to the angle measuring assembly, the timer being adapted to time the rotation time of the reflected light of the optical switch from the first position to the second position; 显示器,与所述处理器连接,所述显示器适于显示所述连接状态、所述扭转角度和所述旋转时间;a display connected to the processor, the display being adapted to display the connection state, the torsion angle and the rotation time; 提示器,与所述处理器连接,所述提示器适于当所述连接状态、所述旋转时间和所述扭转角度中至少一项不满足所述控制参数时,发出提示信息。A prompter is connected to the processor, and is suitable for issuing a prompt message when at least one of the connection state, the rotation time and the torsion angle does not meet the control parameters. 2.根据权利要求1所述的光开关的控制系统,其特征在于,所述控制器具体包括:2. The control system of the optical switch according to claim 1, characterized in that the controller specifically comprises: 控制芯片,与所述处理器连接,所述控制器适于根据所述控制代码生成控制信号;A control chip connected to the processor, wherein the controller is adapted to generate a control signal according to the control code; 驱动芯片,与所述控制芯片和所述光开关连接,所述驱动芯片适于根据所述控制信号向所述光开关输出所述电压。A driving chip is connected to the control chip and the optical switch, and the driving chip is suitable for outputting the voltage to the optical switch according to the control signal. 3.根据权利要求1所述的光开关的控制系统,其特征在于,所述角度测量组件包括:3. The control system of the optical switch according to claim 1, wherein the angle measurement component comprises: 位置传感器,所述位置传感器适于检测所述光开关的反射光的所述第一位置和旋转后所述光开关的反射光的所述第二位置;a position sensor, the position sensor being adapted to detect the first position of the reflected light of the optical switch and the second position of the reflected light of the optical switch after rotation; 位置控制器,与所述位置传感器连接,所述位置控制器适于根据所述第一位置和所述第二位置确定所述扭转角度。A position controller is connected to the position sensor, and the position controller is suitable for determining the torsion angle according to the first position and the second position. 4.一种光开关的控制方法,适用于如权利要求1至3中任一项所述的光开关的控制系统,其特征在于,包括:4. A method for controlling an optical switch, applicable to the control system of the optical switch according to any one of claims 1 to 3, characterized in that it comprises: 获取所述光开关的编译参数和控制参数;Obtaining compilation parameters and control parameters of the optical switch; 根据所述控制参数和simulink仿真工具,搭建所述光开关的控制算法;According to the control parameters and the simulink simulation tool, a control algorithm of the optical switch is constructed; 根据所述控制算法和所述编译参数,构造所述控制器的控制代码;Constructing a control code of the controller according to the control algorithm and the compilation parameters; 根据所述控制代码生成控制信号;generating a control signal according to the control code; 根据所述控制信号向所述光开关输出电压,以使所述光开关在所述电压加载下受静电吸引力而旋转。A voltage is output to the optical switch according to the control signal, so that the optical switch rotates due to electrostatic attraction under the voltage loading. 5.根据权利要求4所述的光开关的控制方法,其特征在于,还包括:5. The control method of the optical switch according to claim 4, further comprising: 检测所述光开关的反射光的第一位置和旋转后所述光开关的反射光的第二位置;detecting a first position of the reflected light of the optical switch and a second position of the reflected light of the optical switch after rotation; 根据所述第一位置和所述第二位置,确定所述光开关的扭转角度;determining a torsion angle of the optical switch according to the first position and the second position; 根据所述扭转角度确定所述光开关的连接状态。The connection state of the optical switch is determined according to the twisting angle. 6.根据权利要求5所述的光开关的控制方法,其特征在于,还包括:6. The method for controlling an optical switch according to claim 5, further comprising: 计时所述光开关的反射光的由所述第一位置到达所述第二位置的旋转时间。The rotation time of the reflected light of the optical switch from the first position to the second position is measured. 7.根据权利要求6所述的光开关的控制方法,其特征在于,还包括:7. The method for controlling an optical switch according to claim 6, further comprising: 判断所述连接状态、所述旋转时间和所述扭转角度中至少一项是否满足所述控制参数;Determine whether at least one of the connection state, the rotation time and the torsion angle satisfies the control parameter; 判定所述连接状态、所述旋转时间和所述扭转角度中至少一项不满足所述控制参数,发出提示信息。It is determined that at least one of the connection state, the rotation time and the torsion angle does not satisfy the control parameter, and a prompt message is issued.
CN202010091172.XA 2020-02-13 2020-02-13 Control system and control method of optical switch Active CN111176196B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010091172.XA CN111176196B (en) 2020-02-13 2020-02-13 Control system and control method of optical switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010091172.XA CN111176196B (en) 2020-02-13 2020-02-13 Control system and control method of optical switch

Publications (2)

Publication Number Publication Date
CN111176196A CN111176196A (en) 2020-05-19
CN111176196B true CN111176196B (en) 2024-12-27

Family

ID=70651319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010091172.XA Active CN111176196B (en) 2020-02-13 2020-02-13 Control system and control method of optical switch

Country Status (1)

Country Link
CN (1) CN111176196B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN211741871U (en) * 2020-02-13 2020-10-23 桂林电子科技大学 Optical switch control system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004103559A (en) * 2002-07-15 2004-04-02 Toshiba Corp MEMS device
JP4344145B2 (en) * 2003-02-03 2009-10-14 富士通株式会社 Optical signal switching device and control method of optical signal switching device
JP4695342B2 (en) * 2003-09-03 2011-06-08 富士通株式会社 Optical switch control device and moving body control device
CN100504419C (en) * 2005-06-20 2009-06-24 中国科学院半导体研究所 Device and method for testing photoelectric characteristics of thermo-optic switch array
CN103235518B (en) * 2013-04-19 2016-04-27 中国科学院光电技术研究所 Testing method and platform for photoelectric tracking stable system
CN103986521B (en) * 2014-05-26 2016-05-18 桂林电子科技大学 A kind of time division multiplex optical fiber grating sensing network of high recyclability
CN109343027B (en) * 2018-10-18 2022-11-25 华北水利水电大学 A laser radar multi-dimensional scanning control device and control method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN211741871U (en) * 2020-02-13 2020-10-23 桂林电子科技大学 Optical switch control system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MEMS扭转微镜的滑模控制研究;陈辉;《中国博士学位论文全文数据库工程科技Ⅱ辑》;20141115;第3章 *

Also Published As

Publication number Publication date
CN111176196A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
EP2778804B1 (en) Control program, control method, and control device
CN102227622B (en) Offline control method and system for simulating coupled hybrid dynamic systems
US7863851B2 (en) Closed loop stepper motor control
CN102224491A (en) Testing machine with workflow based test procedure
CN111176196B (en) Control system and control method of optical switch
KR20090001725A (en) Hardware Simulation Method and System for Robot Driving
CN211741871U (en) Optical switch control system
CN113448571B (en) MATLAB-based digital signal processor code rapid generation method
CN102956179A (en) Apparatus and method for controlling a flexible display
JP2004048187A (en) Optical switch sub-system
CN109141588B (en) Automatic simulation test system for gas meter
CN105676343B (en) For simulating device, system and the backlight module and test method of light guide plate
CN109710081A (en) Gesture induction test device and method
CN111832122A (en) A vehicle vibration reduction simulation test method and system
CN214670127U (en) Fuel cell control algorithm hardware-in-the-loop test platform
CN105972284A (en) Pipeline valve control system and method
CN116107886A (en) MCU automatic test method and system based on test bench
CN112748904A (en) Controller rapid prototyping development method based on MATLAB platform
CN114609924A (en) Fuel cell control algorithm hardware-in-loop test platform and test method
TWI304943B (en)
WO2018223714A1 (en) Fast prototype development verification system and method for control algorithm of advanced driver-assistance system
CN102567187B (en) A kind of method utilizing C++test to perform SCADE tested object
CN111858305A (en) Instrument fault online diagnosis method and device
Merazga et al. Worst-Case Execution Time Analysis of a Real-Time System based on Arduino in CAN Network
KR102309854B1 (en) Sun-sensor verification system

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
GR01 Patent grant
GR01 Patent grant