Method for improving attenuation speed of optical attenuator

By combining segmented control and PID control, the speed problem of the optical attenuator during deceleration and constant speed phases was solved, enabling the optical attenuator to attenuate quickly and accurately, thus improving testing efficiency and accuracy.

CN121559679APending Publication Date: 2026-02-24CHINA ELECTRONIS TECH INSTR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511431229.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-09
Publication Date
2026-02-24

AI Technical Summary

Technical Problem

Existing attenuation control methods for optical attenuators suffer from overshoot due to excessive acceleration during the deceleration phase and excessively slow speed during the constant speed phase, which affect testing efficiency and accuracy.

Method used

A segmented control method is adopted, which uses a uniformly accelerating motor for acceleration, and combines PID control for constant speed and deceleration. The drive voltage is adjusted by using the real-time position difference of the motor to ensure that the motor maintains a high speed in the middle stage and reduces overshoot.

Benefits of technology

This improved the attenuation speed and accuracy of optical attenuators, thereby enhancing the testing efficiency and accuracy of optical devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121559679A_ABST
    Figure CN121559679A_ABST
Patent Text Reader

Abstract

The invention discloses a method for improving attenuation speed of an optical attenuator, which comprises the following steps of: converting an optical attenuation value A set by a user into a code value B of a motor coding disc, and recording a motor initial code value; according to a set acceleration interval C1, a set deceleration interval C2 and a set constant speed interval C3, the current interval P of the motor is judged; if P is greater than or equal to C1, driving the motor to do accelerated motion by using the constant forward voltage V until P is greater than or equal to C1; if P is greater than or equal to C1, the motor moves at a constant speed; at the moment, the motor performs decelerating motion according to a constant deceleration track; and when the set attenuation position is reached, the motor stops, and attenuation response is completed. According to the invention, a segmented control method is used, so that the final overshoot can be reduced, the higher speed of the motor in the middle stage can be ensured, and the accuracy and the attenuation speed of light attenuation are further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of optical attenuation, and particularly to a method for improving the attenuation speed of an optical attenuator. Background Art

[0002] With the rapid development of fiber optic communication technology, the market's performance requirements for tunable optical attenuators are getting higher and higher. Especially with the rapid development of the 5G industry today, core optical modules are mass-produced, and the production line has put forward higher requirements for the testing needs of mass-produced devices, including batch testing accuracy and testing efficiency. Optical attenuators are widely used in the sensitivity testing of optical devices on the production line. In order to improve testing efficiency, the production line has put forward high requirements for the attenuation speed of optical attenuators.

[0003] In the prior art, the attenuation control of an optical attenuator adopts a trapezoidal control method. In the trapezoidal rising stage, the motor accelerates, in the trapezoidal falling stage, the motor decelerates, and in the middle stage, the motor moves at a constant speed. Using this method, due to the excessive acceleration in the deceleration stage and the lack of closed-loop control, the motor will generate excessive overshoot when reaching the termination position, and there may also be a situation where the speed in the constant speed stage is too slow, resulting in a longer time for the attenuation to reach the target position. Summary of the Invention

[0004] In order to overcome the above problems existing in the prior art, the present invention proposes a method for improving the attenuation speed of an optical attenuator.

[0005] The technical solution adopted by the present invention to solve its technical problems is: a method for improving the attenuation speed of an optical attenuator, including the following steps: Step 1, convert the optical attenuation value A set by the user into the code value B of the motor encoder disk, and record the starting code value of the motor; Step 2, according to the set acceleration interval C1, deceleration interval C2 and constant speed interval C3, judge the current interval P where the motor is located. If P < C1, then go to Step 3; if P ≥ C1, then go to Step 4; Step 3, drive the motor to accelerate with a constant positive voltage V until P ≥ C1; Step 4, when the motor moves at a constant speed; when the motor decelerates according to a constant deceleration trajectory; Step 5, when reaching the set attenuation position, the motor stops and completes the attenuation response.

[0006] In the above method for improving the attenuation speed of an optical attenuator, the specific content of Step 1 is: , if B is a decimal, round down to an integer, where A is the attenuation value set by the user and B is the code value of the motor encoder.

[0007] In the above-described method for improving the attenuation rate of an optical attenuator, the acceleration interval in step 2... Deceleration range Uniform speed range .

[0008] In the above-mentioned method for improving the attenuation speed of an optical attenuator, the constant speed range and the deceleration range are PID motor control ranges.

[0009] In the above-mentioned method for improving the attenuation rate of an optical attenuator, in step 4 when At that time, use voltage Drive motor to move; when Using voltage The drive motor approximates the real-time trajectory point of constant deceleration, where K is the proportional parameter of the PID control and I is the integral parameter of the PID control. This represents the current position deviation. This represents the positional deviation at the first three moments.

[0010] The beneficial effects of this invention are that it uses a segmented control method. In the first stage, a uniform acceleration motor control method is adopted to ensure that the motor has a large acceleration in this stage. In the uniform speed stage and the deceleration stage, a PID (proportional integral derivative) control method is adopted to control the motor movement. The motor changes its driving voltage according to the real-time position difference. This can reduce the final overshoot and ensure that the motor has a high speed in the middle stage, thereby increasing the accuracy and attenuation rate of light attenuation. Attached Figure Description

[0011] Figure 1 This is a schematic diagram of the process of this invention. Detailed Implementation

[0012] To enable those skilled in the art to better understand the technical solution of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0013] like Figure 1 As shown in the figure, this embodiment discloses a method for improving the attenuation rate of an optical attenuator, which specifically includes the following steps: Step 1: Encoding disk code value conversion The user-defined light attenuation value A is converted into the code value of the motor encoder disk, i.e. This step decouples the physical concept (light attenuation) from the control concept (motor encoder code value). Users only need to focus on the business objective (how many dB of attenuation is required), without needing to understand the specific parameters of the underlying motor, making the entire system easier to operate and integrate. If B is stored as a decimal, it is rounded down to an integer, where A is the user-set attenuation value and B is the code value of the motor encoder; and the initial code value of the motor is recorded. Rounding down B ensures that the control logic processes discrete and explicit encoder pulse values, avoiding the accumulation of rounding errors that may arise from decimal operations, and guaranteeing the determinism of the target position.

[0014] Step 2: Divide the acceleration interval and constant speed / deceleration interval, and determine the current interval. Step 2.1: Determine the acceleration range Deceleration range and uniform speed interval The constant speed / deceleration range is also the PID motor control range. Clearly defined deceleration range planning is crucial. It allows the system to begin deceleration earlier, rather than directly "crashing" into the target point at high speed. This significantly reduces system overshoot, mechanical vibration, and shock to the equipment, improving stability and lifespan. Constant speed operation is generally more energy-efficient than frequent acceleration and deceleration. Planning a constant speed segment helps optimize energy consumption over long strokes. The division of the range provides a logical basis for subsequently adopting different control strategies (step 3 vs. step 4), making the program structure clear, easy to debug, and maintain.

[0015] Step 2.2: Determine the current range of the motor and perform corresponding control; when the motor's current position... Proceed to step 3; when the motor is currently in position Then proceed to step 4.

[0016] Step 3: The motor accelerates uniformly. When the motor is currently in position At that time, a constant positive voltage V ( The drive motor accelerates, and after each acceleration, it returns to step 2.2 to determine the current position, until... The system exits the acceleration range. Within the system's allowable range, it provides maximum voltage / torque, enabling the motor to quickly escape from a standstill and accelerate to the predetermined speed, minimizing acceleration time and directly contributing to overall rapid response. Open-loop control does not rely on sensor feedback for calculations, resulting in minimal computational load, low requirements for microcontroller computing power, and extremely short response latency.

[0017] Step 4: The motor moves according to the PID control parameters. When the motor is currently in position At that time, it moves at a constant speed under PID control, that is, using voltage The drive motor moves. Even with external disturbances such as resistance changes and voltage fluctuations, the PID controller can detect speed / position deviations in real time through feedback and automatically adjust the output force (voltage) to suppress the disturbances and maintain the set uniform speed. This is something open-loop control simply cannot do. This ensures the motor travels through most of its stroke at a precise and constant speed, laying a solid foundation for precise deceleration in the next step.

[0018] When the motor is currently in position At that time, under PID control, it decelerates along a constant deceleration trajectory, i.e., using voltage... The drive motor approximates the real-time trajectory point of constant deceleration, where K is the proportional parameter of the PID control and I is the integral parameter of the PID control. This represents the current position deviation. This represents the positional deviation at the first three moments.

[0019] Step 5: Complete the attenuation response The motor stops, reaches the set attenuation position, and completes the attenuation response.

[0020] In addition, in this embodiment, a time threshold is set when performing the attenuation response. If the motor fails to reach the preset attenuation position within the set time threshold range, the motor stops moving and reports an error.

[0021] This invention employs a segmented control method. In the initial stage, a uniform acceleration motor control is used to ensure the motor has significant acceleration during this phase. In the constant speed and deceleration stages, PID control is used to control the motor's motion. The motor's drive voltage is adjusted based on the real-time position difference. This reduces the final overshoot and ensures a relatively high motor speed in the intermediate stages, thereby increasing the accuracy and speed of optical attenuation. The advantages of this method include: improved attenuation speed of the optical attenuator; improved attenuation accuracy of the optical attenuator; and improved testing efficiency of optical devices.

[0022] The above embodiments are merely exemplary embodiments of the present invention and are not intended to limit the present invention. Those skilled in the art can make various modifications or equivalent substitutions to the present invention within its scope and spirit, and such modifications or equivalent substitutions should also be considered to fall within the scope of protection of the present invention.

Claims

1. A method for improving the attenuation rate of an optical attenuator, characterized in that, It includes the following steps: Step 1: Convert the optical attenuation value A set by the user into the code value B of the motor encoder disk, and record the starting code value of the motor; Step 2: According to the set acceleration interval C1, deceleration interval C2 and constant speed interval C3, judge the current interval P of the motor. If P < C1, then go to Step 3; if P ≥ C1, then go to Step 4; Step 3: Drive the motor to accelerate with a constant positive voltage V until P ≥ C1; Step 4, when When the motor moves at a constant speed; when At that time, the motor decelerates along a constant deceleration trajectory; Step 5: When reaching the set attenuation position, the motor stops, and the attenuation response is completed.

2. The method for improving the attenuation rate of an optical attenuator according to claim 1, characterized in that, Step 1 specifically involves: If B is a decimal, round it down to the nearest integer, where A is the attenuation value set by the user and B is the code value of the motor encoder.

3. The method for improving the attenuation rate of an optical attenuator according to claim 1, characterized in that, acceleration zone in step 2 Deceleration range Uniform speed range .

4. The method for improving the attenuation rate of an optical attenuator according to claim 1, characterized in that, The constant speed interval and the deceleration interval are PID motor control intervals.

5. The method for improving the attenuation rate of an optical attenuator according to claim 1, characterized in that, In step 4, when At that time, use voltage Drive motor to move; when Using voltage The drive motor approximates the real-time trajectory point of constant deceleration, where K is the proportional parameter of the PID control and I is the integral parameter of the PID control. This represents the current position deviation. This represents the positional deviation at the first three moments.