Control system and control method of optical switch
By using boost components and simulink simulation tools in optical switch control systems, the electrostatic drive requirements and code writing difficulties of MEMS optical switches are solved, achieving a wider applicability and more efficient development process.
Patent Information
- Application Number
- CN202010091172.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-13
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2040-02-13
AI Technical Summary
In the prior art, the electrostatic drive requirement of MEMS optical switches causes the hardware system to be unable to meet, increase control costs, and the manual code writing process is difficult and time-consuming.
An optical switch control system was designed, including a boost component and a simulink simulation tool. It provides a larger DC power supply through the boost component, broadens the scope of application, and automatically generates control codes through the simulink simulation tool to reduce the need for handwritten codes and provide Graphical programming environment simplifies the debugging process.
It reduces production costs, broadens the scope of application of the control system, simplifies the development process, reduces debugging time, improves the efficiency of algorithm verification, and avoids the problem of correcting code errors.
Smart Images

Figure CN111176196B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of optical switches, and in particular to a control system of an optical switch and a control method of an optical switch. Background Art
[0002] MEMS (Micro-Electro-Mechanical Systems) optical switches, especially electrostatically driven MEMS optical switches, are small in size, simple in structure, fast in response speed, and have broad application prospects. In order to obtain an ideal response speed, control algorithms are usually used to control optical switches, such as direct open-loop control of step voltage, input shaping control, and sliding mode control. The traditional control method is to first develop a hardware system for a specific optical switch, manually program and debug the code according to different algorithms, but the hardware system cannot meet the electrostatic drive requirements of most optical switches, thereby increasing the control cost of the optical switch, and various errors are prone to occur in the process of manually writing code, making the debugging process difficult and time-consuming. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0004] To this end, a first aspect of the present invention is to provide a control system for an optical switch.
[0005] A second aspect of the present invention is to provide a control method for an optical switch.
[0006] In view of this, according to a first aspect of the present invention, a control system for an optical switch is proposed, comprising: 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 powering 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 supply voltage to be input to the controller; and 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.
[0007] The control system of the optical switch provided by the present invention, on the one hand, by setting a boost component to perform a boost conversion on the power supply voltage to be input to the controller, thereby providing a larger DC power supply for the controller, obtaining a larger light angle range, and then enabling the control system to be applied to most optical switches, broadening the scope of application of the control system, solving the problem of needing to develop a specific hardware control system for different electrostatically driven MEMS optical switches, and reducing production costs. On the other hand, a simulink simulation tool is installed on the processor, and the control code of the controller can be automatically generated by the control parameters, compilation parameters and simulink simulation tool, without the need for developers to write codes by hand, so that the controller can output the corresponding voltage according to the control code, so that the optical switch micromirror rotates under the voltage loading due to the electrostatic attraction, and realizes the switching of the optical path of the optical switch. At the same time, the simulink simulation tool can provide a graphical programming environment, so that the constructed algorithm is intuitive and easy to understand, and problems are easy to find during the debugging process, avoiding the difficulty of directly writing code, so that developers pay more attention to the algorithm itself, rather than constantly correcting the errors of the code in the subsequent debugging process, and then can use less time to verify the correctness of the algorithm and promote the development process.
[0008] Specifically, the number of optical switches is at least one, thereby achieving switching of a greater number of optical paths.
[0009] In addition, the control system of the optical switch in the above technical solution provided by the present invention may also have the following additional technical features:
[0010] In any of the above technical solutions, further, the controller includes: a control chip connected to the processor, the control chip is suitable for generating a control signal according to the control code; a driving chip connected to the control chip and the optical switch, the driving chip is suitable for outputting a voltage to the optical switch according to the control signal.
[0011] In this technical solution, the controller includes a control chip and a driver chip. The control code generated by the processor is downloaded to the control chip through the emulator. The control chip controls the output voltage of the driver chip. The optical switch micromirror rotates due to the electrostatic attraction under voltage loading, thereby realizing the switching of the optical path of the optical switch. Since the voltage output by the boost component is large, the output range of the driver chip is wide, which can meet the electrostatic drive requirements of most optical switches, that is, the control system can be applied to different electrostatically driven optical switches.
[0012] In any of the above technical solutions, further, it also includes: an angle measurement component connected to the optical switch, and the angle measurement component is suitable for detecting the torsion angle of the optical switch.
[0013] In this technical solution, the control system also includes an angle measurement component, which measures the torsion angle value of the optical switch so that the user can timely understand the deflection status of the optical switch micromirror, thereby completing the open-loop control of the optical switch.
[0014] In any of the above technical solutions, further, the angle measurement component includes: a position sensor, which is suitable for 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; a position controller, which is connected to the position sensor and is suitable for determining the torsion angle according to the first position and the second position.
[0015] In this technical solution, the angle measurement component includes a position sensor and a position controller. When no voltage is loaded, the incident laser is irradiated on the non-rotating optical switch micromirror, and the reflected light (outgoing light) is captured and irradiated to the first position (point a) of the position sensor. When the optical switch is loaded with voltage, the micromirror is driven by electrostatic attraction to rotate, so that the reflected light after the micromirror stops rotating is irradiated to the second position (point b) of the position sensor. The torsion angle can be calculated through the distance values between points a and b, so that the user can timely understand the deflection status of the optical switch micromirror.
[0016] In any of the above technical solutions, further, the angle measurement component is connected to the processor, and the angle measurement component is also suitable for feeding back the torsion angle to the processor, so that the processor determines the connection state of the optical switch according to the torsion angle.
[0017] In this technical solution, the angle measurement component can feed back the torsion angle to the processor, thereby realizing closed-loop control of the optical switch, and the processor can determine the connection status of the optical switch based on the torsion angle, making it convenient for the user to know the switching result of the optical switch optical path and meet the user's usage needs.
[0018] In any of the above technical solutions, it further includes: a timer connected to the angle measurement component, the timer is suitable for timing 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 is suitable for displaying the connection status, the torsion angle and the rotation time; a prompter connected to the processor, the prompter is suitable for issuing a prompt message when at least one of the connection status, the rotation time and the torsion angle does not meet the control parameters.
[0019] In this technical solution, the timer records the time when the reflected light irradiates the first position and the second position respectively, and calculates the rotation time of the reflected light of the optical switch from the first position to the second position, that is, the time consumed by the rotation of the optical switch micromirror, so as to facilitate the determination of the switching efficiency of the optical switch optical path. At the same time, the optical switch connection status, torsion angle and rotation time are displayed on the display, so that the user can understand the operating status of the optical switch and adjust and control it in time. After determining the connection status, rotation time and torsion angle of the optical switch, the processor determines whether at least one of the connection status, rotation time and torsion angle meets the user's control parameters for the optical switch. If not, a prompt message is issued through the prompter to remind the user to debug the control system or control code.
[0020] According to the second aspect of the present invention, a control method for an optical switch is also proposed, including: obtaining compilation parameters and control parameters of the optical switch; building a control algorithm for the optical switch according to the control parameters and the simulink simulation tool; constructing a control code for the controller according to the control algorithm and the compilation parameters; generating a control signal according to the control code; and outputting a voltage to the optical switch according to the control signal, so that the optical switch rotates due to electrostatic attraction under voltage loading.
[0021] The control method provided by the present invention obtains the compilation parameters and control parameters of the optical switch input by the user, sets the control parameters in the simulink simulation tool, builds the control algorithm of the optical switch, compiles and links the control algorithm according to the compilation parameters, thereby constructing the control code of the controller, generating a control signal according to the control code, and outputting a corresponding voltage to the optical switch according to the control signal, so that the optical switch rotates under the electrostatic attraction under the voltage loading, thereby realizing the automatic generation of the control code of the optical switch, without the need for the developer to write the code by hand, and can output the corresponding voltage according to the control code, so that the optical switch micromirror rotates under the electrostatic attraction under the voltage loading, thereby realizing the switching of the optical path of the optical switch. At the same time, the simulink simulation tool can provide a graphical programming environment, so that the constructed algorithm is intuitive and easy to understand, and problems are easy to find during the debugging process, thereby avoiding the difficulty of directly writing the code, so that the developer pays more attention to the algorithm itself, rather than constantly correcting the errors of the code in the subsequent debugging process, thereby being able to use less time to verify the correctness of the algorithm and promote the development process.
[0022] In any of the above technical solutions, it further includes: 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.
[0023] In this technical solution, when no voltage is loaded, the incident laser is irradiated on the non-rotating optical switch micromirror to capture the first position (point a) where the reflected light is irradiated. When voltage is loaded on the optical switch, the micromirror is driven by electrostatic attraction to rotate, thereby obtaining the second position (point b) where the reflected light is irradiated after the micromirror stops rotating. The torsion angle can be calculated through the distance values between points a and b, and the connection state of the optical switch can be determined based on the torsion angle, so that the user can easily know the deflection of the optical switch micromirror and the switching result of the optical switch optical path, thereby meeting the user's usage needs.
[0024] In any of the above technical solutions, further, it also includes: timing the rotation time of the reflected light of the optical switch from the first position to the second position.
[0025] In this technical solution, the time when the reflected light irradiates 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 is calculated, that is, the time consumed by the optical switch micromirror to rotate, which is helpful to determine the switching efficiency of the optical switch optical path.
[0026] In any of the above technical solutions, it further includes: judging whether at least one of the connection status, rotation time and torsion angle meets the control parameters; judging that at least one of the connection status, rotation time and torsion angle does not meet the control parameters, and issuing a prompt message.
[0027] In this technical solution, after determining the connection status, rotation time and torsion angle of the optical switch, it is judged whether at least one of the connection status, rotation time and torsion angle meets the user's control parameters for the optical switch. If not, a prompt message is issued to remind the user to debug the control system or control code.
[0028] Additional aspects and advantages of the present invention will become apparent from the following description or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0030] Figure 1 A schematic block diagram of a control system of an optical switch according to an embodiment of the present invention is shown;
[0031] Figure 2 A schematic block diagram of a control system of an optical switch according to another embodiment of the present invention is shown;
[0032] Figure 3 A schematic diagram of a control system flow of an optical switch according to another embodiment of the present invention is shown;
[0033] Figure 4A schematic flow chart showing a method for controlling an optical switch according to an embodiment of the present invention is shown;
[0034] Figure 5 A schematic flow chart showing a method for controlling an optical switch according to another embodiment of the present invention;
[0035] Figure 6 A schematic block diagram of an angle measurement component according to a specific embodiment of the present invention is shown;
[0036] Figure 7 A schematic block diagram of a control system of an optical switch according to a specific embodiment of the present invention is shown;
[0037] Figure 8 A schematic diagram of torsion angle measurement of an optical switch according to a specific embodiment of the present invention is shown. DETAILED DESCRIPTION
[0038] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0039] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0040] Refer to the following Figures 1 to 8 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.
[0041] Embodiment 1
[0042] like Figure 1 As shown, according to an embodiment of the first aspect of the present invention, a control system 100 for an optical switch is provided. The system includes: a controller 102 , a power supply 104 , a boost component 106 and a processor 108 .
[0043] Specifically, the controller 102 is connected to the optical switch 120, and the controller 102 can output a voltage to the optical switch 120 so that the optical switch 120 rotates due to electrostatic attraction under voltage loading; the power supply 104 is connected to the controller 102 and supplies power to the controller 102; the boost component 106 is connected to the power supply 104 and the controller 102, and the boost component 106 is suitable for boosting the power supply voltage to be input to the controller 102; the processor 108 is connected to the controller 102, and the processor 108 is suitable for compiling the control code of the controller 102 according to the control parameters, compilation parameters and simulink simulation tools.
[0044] In this embodiment, on the one hand, by setting the boost component 106 to boost the power supply voltage to be input to the controller 102, a larger DC power supply 104 is provided for the controller 102, and a larger light angle range is obtained, so that the control system can be applied to most optical switches 120, broadening the scope of application of the control system, solving the problem of developing a specific hardware control system for different electrostatically driven MEMS optical switches, and reducing production costs. On the other hand, the processor 108 is equipped with a simulink simulation tool, which can automatically generate the control code of the controller 102 through control parameters, compilation parameters and the simulink simulation tool. The controller 102 outputs the corresponding voltage according to the control code, and the optical switch micromirror rotates under the voltage loading due to the electrostatic attraction, thereby realizing the switching of the optical path of the optical switch. At the same time, the simulink simulation tool can provide a graphical programming environment, so that the constructed algorithm is intuitive and easy to understand, and problems are easy to find during the debugging process, avoiding the difficulty of directly writing code, so that developers can pay more attention to the algorithm itself, rather than constantly correcting the errors of the code in the subsequent debugging process, so that less time can be used to verify the correctness of the algorithm and promote the development process.
[0045] Furthermore, the control system can control at least one optical switch 120, thereby achieving switching of a greater number of optical paths.
[0046] It should be noted that the voltage output by the boosting component 106 after boosting is not less than 80V, so as to meet the driving voltage of most optical switches 120. The processor 108 can be any one of a computer, a mobile terminal, and a tablet computer.
[0047] Embodiment 2
[0048] like Figure 2 As shown, according to an embodiment of the present invention, the features defined in the above embodiments are included, and the controller 102 is further defined to include: a control chip 1022 and a driving chip 1024 .
[0049] Specifically, the control chip 1022 is connected to the processor 108, and the control chip 1022 is suitable for generating a control signal according to the control code; the driving chip 1024 is connected to the control chip 1022 and the optical switch 120, and the driving chip 1024 is suitable for outputting a voltage to the optical switch 120 according to the control signal.
[0050] In this embodiment, the control code generated by the processor 108 is downloaded to the control chip 1022 through the emulator. The control chip 1022 can control the output voltage of the driver chip 1024 without the need for the developer to write code by hand. The optical switch micromirror rotates under the voltage loading due to the electrostatic attraction, thereby realizing the switching of the optical path of the optical switch. Moreover, since the voltage output by the boost component 106 is relatively large, the output range of the driver chip 1024 is relatively wide, which can meet the electrostatic driving requirements of most optical switches 120, that is, the control system can be applied to different electrostatically driven optical switches 120.
[0051] Embodiment 3
[0052] like Figure 3 As shown, according to an embodiment of the present invention, a control system 100 for an optical switch is provided. The system includes: a controller 102 , a power supply 104 , a voltage boosting component 106 , a processor 108 and an angle measuring component 110 .
[0053] Specifically, the angle measurement component is connected to the optical switch 120, and the angle measurement component 110 is suitable for detecting the torsion angle of the optical switch 120; the angle measurement component 110 includes: a position sensor 1102 and a position controller 1104 connected to the position sensor 1102, the position sensor 1102 is suitable for detecting a first position of the reflected light of the optical switch 120 and a second position of the reflected light of the optical switch 120 after rotation, and the position controller 1104 is suitable for determining the torsion angle according to the first position and the second position.
[0054] In this embodiment, if Figure 8 As shown, when no voltage is loaded, the incident laser is irradiated on the non-rotating optical switch micromirror, and the reflected light is captured and irradiated to the first position (point a) of the position sensor 1102. When the voltage is loaded on the optical switch 120, the micromirror is driven by electrostatic attraction to rotate, so that the reflected light obtained after the micromirror stops rotating is irradiated to the second position (point b) of the position sensor 1102. The torsion angle can be calculated through the distance values between points a and b, so that the user can timely understand the deflection status of the optical switch micromirror, so as to complete the open-loop control of the optical switch 120.
[0055] Furthermore, the angle measurement component is connected to the processor 108, and the angle measurement component 110 is also suitable for feeding back the torsion angle to the processor 108, thereby realizing closed-loop control of the optical switch 120, and the processor 108 can determine the connection status of the optical switch 120 according to the torsion angle, so as to facilitate the user to know the switching result of the optical switch optical path and meet the user's usage needs.
[0056] Embodiment 4
[0057] According to an embodiment of the present invention, including the features defined in the above embodiment, and further defining the control system of the optical switch further comprising: a timer, a display and a prompter.
[0058] Specifically, a timer is connected to the angle measurement component, and the timer is suitable for timing the rotation time of the reflected light of the optical switch from the first position to the second position; a display is connected to the processor, and the display is suitable for displaying the connection status, torsion angle and rotation time; a prompter is connected to the processor, and the prompter is suitable for issuing a prompt message when at least one of the connection status, rotation time and torsion angle does not meet the control parameters.
[0059] In this embodiment, the time when the reflected light irradiates 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 is calculated, that is, the time consumed by the rotation of the optical switch micromirror, so as to facilitate determining the switching efficiency of the optical path of the optical switch. At the same time, the connection status, torsion angle and rotation time of the optical switch are displayed on the display, so that the user can understand the operating status of the optical switch and adjust and control it in time. After the processor receives the connection status, rotation time and torsion angle of the optical switch, it determines whether at least one of the connection status, rotation time and torsion angle meets the user's control parameters for the optical switch. If not, a prompt message is issued through the prompter to remind the user to debug the control system or control code.
[0060] Embodiment 5
[0061] like Figure 4 As shown, according to one embodiment of the present invention, a control method for an optical switch is proposed, the method comprising:
[0062] Step 402, obtaining compilation parameters and control parameters of the optical switch;
[0063] Step 404, building a light switching control algorithm according to the control parameters and the simulink simulation tool;
[0064] Step 406, constructing a control code of the controller according to the control algorithm and the compilation parameters;
[0065] Step 408, generating a control signal according to the control code;
[0066] Step 410: output voltage to the optical switch according to the control signal.
[0067] In this embodiment, the compilation parameters and control parameters of the optical switch input by the user are obtained, the control parameters are set in the simulink simulation tool, the control algorithm of the optical switch is built, the control algorithm is compiled and linked according to the compilation parameters, so as to construct the control code of the optical switch, generate a control signal according to the control code, and output a corresponding voltage according to the control signal, so that the optical switch rotates under the voltage loading due to the electrostatic attraction, thereby realizing the automatic generation of the control code of the optical switch, without the need for the developer to write the code by hand, and the corresponding voltage can be output according to the control code, so that the optical switch micromirror rotates under the voltage loading due to the electrostatic attraction, thereby realizing the switching of the optical path of the optical switch. At the same time, the simulink simulation tool can provide a graphical programming environment, so that the constructed algorithm is intuitive and easy to understand, and problems are easy to find during the debugging process, thereby avoiding the difficulty of directly writing code, so that the developer can pay more attention to the algorithm itself, rather than constantly correcting the errors in the code in the subsequent debugging process, and thus can use less time to verify the correctness of the algorithm and promote the development process.
[0068] Specifically, the compilation parameters include but are not limited to at least one of the following: parser type, simulation step, simulation time, code type, and compiler type.
[0069] Embodiment 6
[0070] like Figure 5 As shown, according to one embodiment of the present invention, a control method for an optical switch is proposed, the method comprising:
[0071] Step 502, obtaining compilation parameters and control parameters of the optical switch;
[0072] Step 504, building a light switching control algorithm according to the control parameters and the simulink simulation tool;
[0073] Step 506, constructing a control code of the controller according to the control algorithm and the compilation parameters;
[0074] Step 508, generating a control signal according to the control code;
[0075] Step 510, outputting a voltage to the optical switch according to the control signal;
[0076] Step 512, detecting a first position of the reflected light of the optical switch and a second position of the reflected light of the rotated optical switch;
[0077] Step 514, determining a torsion angle of the optical switch according to the first position and the second position;
[0078] Step 516, determining the connection state of the optical switch according to the torsion angle;
[0079] Step 518, timing the rotation time of the reflected light of the optical switch from the first position to the second position.
[0080] In this embodiment, when no voltage is loaded, the incident laser is irradiated on the non-rotating optical switch micromirror, and the first position (point a) where the reflected light is irradiated is captured. When the voltage is loaded on the optical switch, the micromirror is driven by electrostatic attraction to rotate, so that the reflected light after the micromirror stops rotating is irradiated to the second position (point b) of the angle sensor. The torsion angle can be calculated by the distance values of points a and b, and the connection state of the optical switch is determined according to the torsion angle. The time when the reflected light is irradiated to the first position and the second position is recorded respectively, and the rotation time of the optical switch reflected light from the first position to the second position is calculated, that is, the time consumed by the rotation of the optical switch micromirror, which is conducive to determining the switching efficiency of the optical switch optical path, and convenient for users to know the deflection of the optical switch micromirror and the switching result of the optical switch optical path, so as to meet the user's usage needs.
[0081] Embodiment 7
[0082] According to one embodiment of the present invention, a control method for an optical switch is proposed, the method also including: determining whether at least one of the connection state, rotation time and torsion angle of the optical switch meets the control parameters; determining that at least one of the connection state, rotation time and torsion angle does not meet the control parameters, and issuing a prompt message.
[0083] In this embodiment, after determining the connection status, rotation time and torsion angle of the optical switch, it is determined whether at least one of the connection status, rotation time and torsion angle meets the user's control parameters for the optical switch. If not, a prompt message is issued to remind the user to debug the control system or control code.
[0084] Embodiment 8
[0085] like Figure 6 As shown, according to a specific embodiment of the present invention, a MEMS optical switch control system based on simulink automatic code generation is proposed, and the hardware system includes a computer (processor), a chip power supply (power supply), a control chip, a boost switching power supply (boost component), a digital-to-analog conversion chip (DA chip), an optical switch, and an angle measuring instrument, wherein the output voltage of the boost switching power supply is greater than 80 volts to meet the driving voltage of most optical switches.
[0086] The computer provided in this embodiment includes software matrix factory MATLAB (simulink), C2000 support package, CCS, simulink coder module of DA chip and ControlSuite module, wherein MATLAB (simulink) provides graphical programming environment, C2000 support package provides graphical programming module of 2000 series chip, CCS software completes the compilation and linking of code, DA simulink coder module is to provide code generation function of AD chip, and the function of ControlSuite module is to enable MATLAB to find corresponding library files and header files when generating code. Specifically, a new simulinkfile (simulink blank page) is created, mathematical function module and chip function module in simulink library browser are selected and connected according to logical relationship, and the construction of algorithm is completed. After the construction is completed, set the simulation parser (parser type, simulation step, simulation time, etc.), the type of generated code, and the compiler to set the compilation environment, select a specific embedded chip, set the inherent resources of the chip, such as the chip clock information, and after the compilation environment is constructed, download it to the control chip through the simulator. The control chip controls the output voltage of the DA chip, and the optical switch micromirror rotates under the voltage loading due to the electrostatic attraction, thereby realizing the switching of the optical switch optical path, and then the torsion angle value of the optical switch is measured by the angle measuring instrument. And the angle value feedback can realize closed-loop control.
[0087] like Figure 7 As shown, the angle measuring instrument is composed of a position sensing detector (PSD) and a PSD controller. The position sensing detector captures the position of light, and the PSD controller measures the distance difference and angle value of the two points of light, such as Figure 8 As shown in the figure, when no voltage is applied, the incident laser irradiates the non-rotating MEMS micromirror, and the reflected outgoing light 1 irradiates point a of the angle measuring instrument; when the optical switch is loaded with voltage, the micromirror rotates due to electrostatic attraction, thereby obtaining outgoing light 2 and irradiating point b of the angle measuring instrument, and the rotation angle θ can be calculated by the distance value between points a and b.
[0088] In this embodiment, 1) the voltage output by the boost switching power supply is relatively large, so the output range of the DA chip is relatively wide, which can meet the electrostatic drive requirements of most optical switches, that is, the system can be applied to different electrostatically driven optical switches, solving the problem of developing specific hardware control systems for different electrostatically driven MEMS optical switches. 2) The graphical programming environment provided by simulink makes the constructed algorithm intuitive and easy to understand, and problems are easy to find during the debugging process. At the same time, it avoids the difficulty of directly writing code, allowing developers to focus more on the algorithm itself, rather than constantly correcting code errors during the subsequent debugging process. Therefore, less time can be used to verify the correctness of the algorithm, advance the development process, and solve the problem that developers need to write code by hand and the code debugging process is difficult.
[0089] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance unless otherwise clearly specified and limited; the terms "connection", "installation", "fixation" and the like should be understood in a broad sense, for example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0090] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0091] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A control system for an optical switch, characterized in that: include: 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; 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. The control system of the optical switch according to claim 1, characterized in that: The controller specifically includes: 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. The control system of the optical switch according to claim 1, characterized in that: 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. A control method for an optical switch, applicable to the control system of the optical switch according to any one of claims 1 to 3, characterized in that: include: Obtaining compilation parameters and control parameters of the optical switch; 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. The control method of the optical switch according to claim 4, characterized in that: Also includes: 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. The control method of the optical switch according to claim 5, characterized in that: Also includes: The rotation time of the reflected light of the optical switch from the first position to the second position is measured.
7. The control method of the optical switch according to claim 6, characterized in that: Also includes: 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.