Optical chip high-precision voltage source matrix self-correction method
Through the combination of ESP32-S3 microcontroller and MCP23017 extender, combined with the voltage feedback module and self-correction mechanism, the problem of unstable accuracy and slow response speed of the optical chip is solved, and the automatic adjustment of high-precision and multi-channel voltage source matrix is realized, which significantly improves the stability and automation level of the system.
Patent Information
- Application Number
- CN202411779651.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-03-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the accuracy of the optical chip voltage source is unstable, the response speed is slow, and the adjustment accuracy is low. Especially when the demand for multi-channel power supply increases, a single channel power supply cannot meet the actual application needs, and power correction depends on manual manual, making it difficult to achieve efficient and fast automatic adjustment.
The combination of ESP32-S3 microcontroller and MCP23017 extender is adopted to expand 16 output channels through IIC communication, and each channel is used as the chip select pin of DAC8568 to achieve efficient control of multiple DACs. Combined with the voltage feedback module and self-correction mechanism, the automatic adjustment of the high-precision voltage source matrix is realized.
It significantly improves the stability and accuracy of the output voltage, realizes the flexibility and scalability of multi-channel voltage output, avoids the inefficiency problem of manual manual correction, and improves the automation level of the system and the accuracy of power control.
Smart Images

Figure CN119597092A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of electronic engineering, and in particular to a self-correction method for a high-precision voltage source matrix of an optical chip. Background Art
[0002] With the rapid development of optoelectronic technology, especially in the field of optical communication and laser applications, the demand for high-precision power supplies is growing. As an important part of this technology field, optical chips are widely used in devices such as lasers, optical modulators and photodetectors, which have extremely high requirements for the stability and accuracy of power supplies. Therefore, how to provide accurate power to support the normal operation of optical chips has become an important topic in current research and application.
[0003] In terms of technical background, most of the existing voltage source solutions use traditional analog power supplies, which have problems such as unstable output voltage, slow response speed, and low adjustment accuracy. Especially with the increasing demand for multi-channel power supplies, a single-channel power supply cannot meet the actual application needs. At the same time, the existing technology still mainly relies on manual correction in power supply calibration, which makes it difficult to achieve efficient and fast automatic adjustment.
[0004] At present, there are some voltage source matrix solutions on the market, but most of them have obvious shortcomings. For example, some FPGA-based power supply systems control the output voltage by configuring different digital circuits. Although this solution has achieved multi-channel output to a certain extent, its design is complex, expensive, and the accuracy and stability of the power supply are not guaranteed enough. Another existing solution is the voltage source matrix based on DAC, but these solutions mostly rely on fixed output configurations and lack flexibility and scalability. DAC8568 is a 16-bit DAC. Although it can provide higher output accuracy, it still has the problem of complex correction and control and difficulty in achieving fast adjustment in situations where multiple DACs need to work together.
[0005] Therefore, how to provide a self-correction method for a high-precision voltage source matrix of an optical chip is a problem that those skilled in the art need to solve urgently. The prior art lacks a power control solution that can meet the needs of high-precision power supply and has good scalability and automatic correction capabilities. The self-correction method for a high-precision voltage source matrix of an optical chip proposed in the present invention solves the deficiencies in the prior art through the combination of an ESP32-S3 single-chip microcomputer and an MCP23017 expander, making high-precision power supply control more flexible and efficient. Summary of the invention
[0006] The purpose of the present invention is to provide a self-correction method for a high-precision voltage source matrix of an optical chip. The method utilizes an ESP32-S3 single-chip microcomputer and an MCP23017 expander to effectively expand 16 output channels through IIC communication, so that each channel can be used as a chip select pin of DAC8568, thereby realizing efficient control of multiple DACs. This design not only improves the flexibility of the system, but also significantly improves the stability and accuracy of the output voltage.
[0007] A method for self-calibration of an optical chip high-precision voltage source matrix according to an embodiment of the present invention comprises the following steps:
[0008] S1. Start the ESP32-S3 microcontroller, initialize IIC communication, detect the connection status between the MCP23017 expander and the DAC8568 chip, and set the default output voltage.
[0009] S2. Input the desired output voltage through the user interface and confirm that the input value is within the acceptable range. If the input is invalid, the system will return to prompt for re-entry.
[0010] S3, converts the voltage value input by the user into a corresponding digital signal. ESP32-S3 selects the corresponding DAC8568 chip through MCP23017 and sends configuration instructions to set the output voltage.
[0011] S4, the voltage feedback module monitors the output voltage of DAC8568 in real time and feeds back the monitored voltage value to ESP32-S3;
[0012] S5, ESP32-S3 compares the feedback voltage value with the target voltage input by the user. If the output voltage meets the expectation, it returns to step S4 for continuous monitoring; if the output voltage does not meet the expectation, it enters the self-correction step;
[0013] S6. Based on the deviation between the feedback voltage and the target voltage, ESP32-S3 calculates the adjustment amount and sends an adjustment command to DAC8568 to update the output voltage to the target value.
[0014] S7, re-monitoring the adjusted voltage, if the adjusted voltage meets expectations, record the calibration success information, if it still does not meet expectations, return to step S6 to perform calibration again.
[0015] Optionally, the S1 specifically includes:
[0016] S11. Start the ESP32-S3 microcontroller and perform a hardware self-check to ensure that all modules are connected properly.
[0017] S12, initialize the IIC communication protocol and configure the communication parameters with the MCP23017 expander to ensure smooth data transmission;
[0018] S13, detect the connection status between the MCP23017 expander and the DAC8568 chip, confirm that all control channels respond normally, and if a connection abnormality is detected, return an error prompt and interrupt the initialization process;
[0019] S14, send initialization instructions to the MCP23017 expander, configure the expander channels, and ensure that the input and output signals are correctly mapped to the corresponding channels of each DAC8568;
[0020] S15. Set the default output voltage of ESP32-S3 to the preset value, and transmit the voltage value to each DAC8568 chip through the IIC protocol to start the initial voltage output;
[0021] S16, confirm that the DAC8568 chip starts to output voltage, and monitor it in real time through the voltage feedback module to ensure the stability and accuracy of the voltage output;
[0022] S17. If the voltage output does not reach the set value, perform initialization retry until the normal voltage output setting is completed.
[0023] Optionally, the S3 specifically includes:
[0024] S31, the expected output voltage value V input by the user target Transmit to ESP32-S3 microcontroller through the user interface;
[0025] S32, ESP32-S3 will input the expected voltage value V target Converted into the corresponding digital signal D target , the conversion process is carried out through the following formula:
[0026]
[0027] Among them, V target is the expected voltage value entered by the user, V ref is the reference voltage of the DAC8568 chip, and N is the number of bits of resolution of the DAC8568 chip (e.g. 8 bits, 16 bits, etc.);
[0028] S33 and ESP32-S3 use the IIC protocol to convert the converted digital signal D target Passed to the MCP23017 expander;
[0029] S34, MCP23017 expander converts the digital signal D target Assign to the control channel of the corresponding DAC8568 chip, and transmit the signal to the DAC8568 chip through the IIC protocol;
[0030] S35, DAC8568 chip receives digital signal D target After that, the corresponding analog voltage output V_out is generated according to its internal conversion logic;
[0031] S36, ESP32-S3 performs preliminary verification on the analog voltage V_out output by DAC8568. If V_out meets the target voltage requirement, it proceeds to step S4 for real-time monitoring. If V_out does not meet expectations, it returns to step S2 for re-input and correction.
[0032] Optionally, the S5 specifically includes:
[0033] S51, ESP32-S3 receive the actual output voltage value V from the voltage feedback module feedback , and transmit it to the processing unit of ESP32-S3;
[0034] S52 and ESP32-S3 calculate the output voltage deviation using the following formula:
[0035] ΔV=V target -V feedback ;
[0036] Among them, V target The target voltage value set by the user, V feedback is the actual output voltage value monitored by the voltage feedback module, and ΔV is the voltage deviation;
[0037] S53, ESP32-S3 determines whether the voltage deviation ΔV is within a predetermined tolerance range, which is determined by a set threshold V th For comparison, if |ΔV|≤V th , it is considered that the output voltage has reached the target value, and the process returns to step S4 to continue real-time monitoring;
[0038] S54, if the voltage deviation ΔV exceeds the tolerance range |ΔV|>V th , then enter the self-calibration step S6;
[0039] S55. When judging the voltage consistency, if the deviation exceeds the threshold, the correction failure information is recorded and the correction retry mechanism is started, and the process returns to step S6 for adjustment.
[0040] Optionally, the S6 specifically includes:
[0041] S61, ESP32-S3 according to the feedback voltage value V feedback and the target voltage value V target Deviation ΔV, calculate the output voltage value ΔV that needs to be adjusted adjust , calculated by the following formula:
[0042] ΔV adjust =ΔV×K;
[0043] Where ΔV is the voltage deviation, and K is the correction coefficient, which is set according to the adjustment accuracy of the DAC8568 chip and the range of the target voltage;
[0044] S62, ESP32-S3 will adjust the value ΔV adjust Converted into the corresponding digital signal D target , the conversion is completed by the following formula:
[0045]
[0046] Where, ΔV adjust is the calculated voltage adjustment value, V ref is the reference voltage of DAC8568, and N is the number of bits of resolution of DAC8568 chip;
[0047] S63 and ESP32-S3 use the IIC protocol to convert the adjusted digital signal D adjust Passed to the MCP23017 expander;
[0048] S64, MCP23017 expander will adjust the signal D adjust Pass it to the corresponding DAC8568 chip, send adjustment instructions through the IIC protocol, and update the output voltage of DAC8568 to the adjusted value;
[0049] S65, DAC8568 receives the adjustment signal D adjust Generate a new analog voltage output value V adjusted , and fed back to the voltage feedback module;
[0050] S66 and ESP32-S3 receive the new output voltage V through the voltage feedback module adjusted , and proceed to step S7 to re-monitor and judge to confirm whether the adjustment is successful.
[0051] The beneficial effects of the present invention are:
[0052] First of all, the optical chip high-precision voltage source matrix self-correction method proposed in the present invention successfully solves the problems of unstable accuracy, slow response speed, low adjustment accuracy, etc. in the existing voltage source control scheme, especially in the case of increasing demand for multi-channel power supplies, single-channel power supplies cannot meet the actual application needs. With the combined design of ESP32-S3 microcontroller and MCP23017 expander, the present invention not only provides high-precision power control, but also has higher flexibility and scalability, can support multi-channel voltage output, and meet the needs of complex application scenarios.
[0053] Secondly, the present invention effectively expands 16 output channels through IIC communication, and each channel can independently serve as the chip select pin of the DAC8568 chip, realizing efficient collaborative work of multiple DACs. This design not only simplifies the system structure, but also significantly improves the stability and accuracy of the voltage output, avoiding the inefficiency problem caused by the reliance on manual adjustment of power supply correction in the prior art. The introduction of the self-correction mechanism makes the power supply regulation more efficient and faster, and under real-time monitoring and feedback, ensures that the voltage of each channel is always maintained within the preset range, greatly improving the automation level of the system.
[0054] Finally, through flexible hardware design and automated correction mechanism, the present invention not only significantly improves the control accuracy and stability of the optical chip voltage source, but also meets the expansion requirements of multi-channel power supplies, providing an efficient and reliable power supply solution for the field of optoelectronic technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0056] Figure 1 The present invention provides a flow chart of a self-correction method for a high-precision voltage source matrix of an optical chip.
[0057] Figure 2 This is a schematic diagram of the experimental setup and data feedback of a high-precision voltage source matrix self-correction method for an optical chip proposed in the present invention. DETAILED DESCRIPTION
[0058] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.
[0059] refer to Figure 1-2 , a method for self-correction of a high-precision voltage source matrix of an optical chip, comprising the following steps:
[0060] S1. Start the ESP32-S3 microcontroller, initialize IIC communication, detect the connection status between the MCP23017 expander and the DAC8568 chip, and set the default output voltage.
[0061] S2. Input the desired output voltage through the user interface and confirm that the input value is within the acceptable range. If the input is invalid, the system will return to prompt for re-entry.
[0062] S3, converts the voltage value input by the user into a corresponding digital signal. ESP32-S3 selects the corresponding DAC8568 chip through MCP23017 and sends configuration instructions to set the output voltage.
[0063] S4, the voltage feedback module monitors the output voltage of DAC8568 in real time and feeds back the monitored voltage value to ESP32-S3;
[0064] S5, ESP32-S3 compares the feedback voltage value with the target voltage input by the user. If the output voltage meets the expectation, it returns to step S4 for continuous monitoring; if the output voltage does not meet the expectation, it enters the self-correction step;
[0065] S6. Based on the deviation between the feedback voltage and the target voltage, ESP32-S3 calculates the adjustment amount and sends an adjustment command to DAC8568 to update the output voltage to the target value.
[0066] S7, re-monitoring the adjusted voltage, if the adjusted voltage meets expectations, record the calibration success information, if it still does not meet expectations, return to step S6 to perform calibration again.
[0067] In this implementation manner, the S1 specifically includes:
[0068] S11. Start the ESP32-S3 microcontroller and perform a hardware self-check to ensure that all modules are connected properly.
[0069] S12, initialize the IIC communication protocol and configure the communication parameters with the MCP23017 expander to ensure smooth data transmission;
[0070] S13, detect the connection status between the MCP23017 expander and the DAC8568 chip, confirm that all control channels respond normally, and if a connection abnormality is detected, return an error prompt and interrupt the initialization process;
[0071] S14, send initialization instructions to the MCP23017 expander, configure the expander channels, and ensure that the input and output signals are correctly mapped to the corresponding channels of each DAC8568;
[0072] S15. Set the default output voltage of ESP32-S3 to the preset value, and transmit the voltage value to each DAC8568 chip through the IIC protocol to start the initial voltage output;
[0073] S16, confirm that the DAC8568 chip starts to output voltage, and monitor it in real time through the voltage feedback module to ensure the stability and accuracy of the voltage output;
[0074] S17. If the voltage output does not reach the set value, perform initialization retry until the normal voltage output setting is completed.
[0075] In this implementation, S3 specifically includes:
[0076] S31, the expected output voltage value V input by the user target Transmit to ESP32-S3 microcontroller through the user interface;
[0077] S32, ESP32-S3 will input the expected voltage value V target Converted into the corresponding digital signal D target , the conversion process is carried out through the following formula:
[0078]
[0079] Among them, V target is the expected voltage value entered by the user, V ref is the reference voltage of the DAC8568 chip, and N is the number of bits of resolution of the DAC8568 chip (e.g. 8 bits, 16 bits, etc.);
[0080] S33 and ESP32-S3 use the IIC protocol to convert the converted digital signal D target Passed to the MCP23017 expander;
[0081] S34, MCP23017 expander converts the digital signal D target Assign to the control channel of the corresponding DAC8568 chip, and transmit the signal to the DAC8568 chip through the IIC protocol;
[0082] S35, DAC8568 chip receives digital signal D target After that, the corresponding analog voltage output V_out is generated according to its internal conversion logic;
[0083] S36, ESP32-S3 performs preliminary verification on the analog voltage V_out output by DAC8568. If V_out meets the target voltage requirement, it proceeds to step S4 for real-time monitoring. If V_out does not meet expectations, it returns to step S2 for re-input and correction.
[0084] In this implementation manner, S5 specifically includes:
[0085] S51, ESP32-S3 receive the actual output voltage value V from the voltage feedback module feedback , and transmit it to the processing unit of ESP32-S3;
[0086] S52 and ESP32-S3 calculate the output voltage deviation using the following formula:
[0087] ΔV=V target-V feedback ;
[0088] Among them, V target The target voltage value set by the user, V feedback is the actual output voltage value monitored by the voltage feedback module, and ΔV is the voltage deviation;
[0089] S53, ESP32-S3 determines whether the voltage deviation ΔV is within a predetermined tolerance range, which is determined by a set threshold V th For comparison, if |ΔV|≤V th , it is considered that the output voltage has reached the target value, and the process returns to step S4 to continue real-time monitoring;
[0090] S54, if the voltage deviation ΔV exceeds the tolerance range |ΔV|>V th , then enter the self-calibration step S6;
[0091] S55. When judging the voltage consistency, if the deviation exceeds the threshold, the correction failure information is recorded and the correction retry mechanism is started, and the process returns to step S6 for adjustment.
[0092] In this implementation manner, S6 specifically includes:
[0093] S61, ESP32-S3 according to the feedback voltage value V feedback and the target voltage value V target Deviation ΔV, calculate the output voltage value ΔV that needs to be adjusted adjust , calculated by the following formula:
[0094] ΔV adjust =ΔV×K;
[0095] Where ΔV is the voltage deviation, and K is the correction coefficient, which is set according to the adjustment accuracy of the DAC8568 chip and the range of the target voltage;
[0096] S62, ESP32-S3 will adjust the value ΔV adjust Converted into the corresponding digital signal D target , the conversion is completed by the following formula:
[0097]
[0098] Where, ΔV adjust is the calculated voltage adjustment value, V ref is the reference voltage of DAC8568, and N is the number of bits of resolution of DAC8568 chip;
[0099] S63 and ESP32-S3 use the IIC protocol to convert the adjusted digital signal D adjustPassed to the MCP23017 expander;
[0100] S64, MCP23017 expander will adjust the signal D adjust Pass it to the corresponding DAC8568 chip, send adjustment instructions through the IIC protocol, and update the output voltage of DAC8568 to the adjusted value;
[0101] S65, DAC8568 receives the adjustment signal D adjust Generate a new analog voltage output value V adjusted , and fed back to the voltage feedback module;
[0102] S66 and ESP32-S3 receive the new output voltage V through the voltage feedback module adjusted , and proceed to step S7 to re-monitor and judge to confirm whether the adjustment is successful.
[0103] Embodiment 1:
[0104] In order to verify the feasibility of the present invention in implementation, the present invention is applied in a certain optoelectronics research institute. Assume that we use the power control system of the present invention on an optical communication experimental platform, and the experimental platform needs to provide stable driving voltage for four independent lasers. The voltage of each laser is required to have an accuracy within ±0.1%, and due to the differences in the characteristics of different lasers, the operating voltage of each laser will be different, so it is necessary to realize multi-channel voltage output and be able to adjust in real time according to different voltage requirements.
[0105] In this embodiment, we designed a high-precision voltage source matrix self-correction method based on ESP32-S3 microcontroller and MCP23017 expander, which can effectively expand multiple output channels and ensure that the voltage output of each channel can stably and accurately reach the set value through real-time voltage feedback and self-correction mechanism. The system is applied to the power supply system of laser drive and optical modulator, which significantly improves the control accuracy, stability and automation level of multi-channel power supply.
[0106] In the traditional power supply scheme, each laser requires an independent power supply module, and the adjustment process is relatively cumbersome. In addition, due to the poor stability of the power supply, it is difficult to ensure the voltage accuracy when multiple lasers work simultaneously. After adopting the method of the present invention, the system can effectively expand 16 output channels through the ESP32-S3 microcontroller and the MCP23017 expander, using the IIC communication protocol, and accurately control and self-correct the voltage of each laser through the DAC8568 chip.
[0107] The system first sets the target voltages of the four lasers. The target voltage value of each laser is input through the user interface. The system uses ESP32-S3 to convert digital signals based on the input voltage value, and transmits the signal to the DAC8568 chip through the MCP23017 expander, and then the DAC8568 generates the corresponding analog voltage output. Through the voltage feedback module, the system monitors the output voltage of each laser in real time and compares it with the set value. If the voltage deviation exceeds the tolerance range, the system will automatically start the self-correction mechanism, calculate the voltage deviation and generate adjustment instructions to achieve automatic voltage adjustment. In the end, the voltage of each laser can be stabilized at the set value, and the accuracy and stability of the output voltage are ensured.
[0108] Table 1 Laser drive voltage correction and feedback data table
[0109]
[0110]
[0111] Table 2 Comparison data between traditional power supply scheme and power supply scheme of the present invention
[0112]
[0113] As can be seen from the above data table 1, through the feedback mechanism and self-correction, the system can accurately adjust the output voltage to ensure that the voltage of each laser meets the expectations. All lasers achieved stable output after correction, and the voltage deviation was within 0.1%, verifying the high-precision power control capability of the system. According to experimental data, the system can respond quickly in multi-channel application scenarios and accurately adjust the voltage of each channel.
[0114] It can be seen from the above data table 2 that when using traditional analog power supply or FPGA-based power supply control scheme, the output voltage deviation of the laser is generally large, with the maximum deviation being -2.86%. This is mainly due to the low adjustment accuracy and response speed of traditional power supply, which leads to large errors in the adjustment process. Although it can be improved through manual correction, the process is cumbersome and inefficient, and the adjusted voltage is difficult to remain stable for a long time.
[0115] By adopting the self-calibration scheme of ESP32-S3 microcontroller and MCP23017 expander, the system can quickly and accurately adjust the output voltage of each laser. The voltage deviation of all lasers is within ±0.1%, and the voltage stabilization time of the system is controlled within 15 seconds. Especially under the multi-channel power supply requirements, the system of the present invention can provide stable voltage output for multiple lasers at the same time, avoiding the problems of adjustment complexity and insufficient precision in traditional solutions.
[0116] The high-precision voltage source matrix self-correction method of the present invention has obvious advantages over the traditional voltage source control scheme. First, it provides more accurate voltage control, and the deviation is controlled within ±0.1%. Secondly, the system adjustment speed is faster, and the voltage correction can be completed in a short time and a stable output can be achieved. Finally, the system has a strong multi-channel control capability and can provide stable voltage output for multiple lasers at the same time, adapting to the complex optoelectronic application requirements. Therefore, the present invention has significant advantages in improving power supply stability, accuracy and efficiency.
[0117] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A high-precision voltage source matrix self-correction method for an optical chip, characterized in that: The steps include: S1. Start the ESP32-S3 microcontroller, initialize IIC communication, detect the connection status between the MCP23017 expander and the DAC8568 chip, and set the default output voltage. S2. Input the desired output voltage through the user interface and confirm that the input value is within the acceptable range. If the input is invalid, the system will return to prompt for re-entry. S3, converts the voltage value input by the user into a corresponding digital signal. ESP32-S3 selects the corresponding DAC8568 chip through MCP23017 and sends configuration instructions to set the output voltage. S4, the voltage feedback module monitors the output voltage of DAC8568 in real time and feeds back the monitored voltage value to ESP32-S3; S5, ESP32-S3 compares the feedback voltage value with the target voltage input by the user. If the output voltage meets the expectation, it returns to step S4 for continuous monitoring; If the output voltage does not meet expectations, the self-correction step is entered; S6. Based on the deviation between the feedback voltage and the target voltage, ESP32-S3 calculates the adjustment amount and sends an adjustment command to DAC8568 to update the output voltage to the target value. S7, re-monitoring the adjusted voltage, if the adjusted voltage meets expectations, record the calibration success information, if it still does not meet expectations, return to step S6 to perform calibration again.
2. The optical chip high-precision voltage source matrix self-correction method according to claim 1 is characterized in that: The S1 specifically includes: S11. Start the ESP32-S3 microcontroller and perform a hardware self-check to ensure that all modules are connected properly. S12, initialize the IIC communication protocol and configure the communication parameters with the MCP23017 expander to ensure smooth data transmission; S13, detect the connection status between the MCP23017 expander and the DAC8568 chip, confirm that all control channels respond normally, and if a connection abnormality is detected, return an error prompt and interrupt the initialization process; S14, send initialization instructions to the MCP23017 expander, configure the expander channels, and ensure that the input and output signals are correctly mapped to the corresponding channels of each DAC8568; S15. Set the default output voltage of ESP32-S3 to the preset value, and transmit the voltage value to each DAC8568 chip through the IIC protocol to start the initial voltage output; S16, confirm that the DAC8568 chip starts to output voltage, and monitor it in real time through the voltage feedback module to ensure the stability and accuracy of the voltage output; S17. If the voltage output does not reach the set value, perform initialization retry until the normal voltage output setting is completed.
3. The optical chip high-precision voltage source matrix self-correction method according to claim 1, characterized in that: The S3 specifically includes: S31, the expected output voltage value V input by the user target Transmit to ESP32-S3 microcontroller through the user interface; S32, ESP32-S3 will input the expected voltage value V target Converted into the corresponding digital signal D target , the conversion process is carried out through the following formula: Among them, V target is the expected voltage value entered by the user, V ref is the reference voltage of DAC8568 chip, N is the number of bits of resolution of DAC8568 chip; S33 and ESP32-S3 use the IIC protocol to convert the converted digital signal D target Passed to the MCP23017 expander; S34, MCP23017 expander converts the digital signal D target Assign to the control channel of the corresponding DAC8568 chip, and transmit the signal to the DAC8568 chip through the IIC protocol; S35, DAC8568 chip receives digital signal D target After that, the corresponding analog voltage output V_out is generated according to its internal conversion logic; S36, ESP32-S3 performs preliminary verification on the analog voltage V_out output by DAC8568. If V_out meets the target voltage requirement, it proceeds to step S4 for real-time monitoring. If V_out does not meet expectations, it returns to step S2 for re-input and correction.
4. The optical chip high-precision voltage source matrix self-correction method according to claim 1, characterized in that: The S5 specifically includes: S51, ESP32-S3 receive the actual output voltage value V from the voltage feedback module feedback , and transmit it to the processing unit of ESP32-S3; S52 and ESP32-S3 calculate the output voltage deviation using the following formula: ΔV=V target -V feedback ; Among them, V target The target voltage value set by the user, V feedback is the actual output voltage value monitored by the voltage feedback module, and ΔV is the voltage deviation; S53, ESP32-S3 determines whether the voltage deviation ΔV is within a predetermined tolerance range, which is determined by a set threshold V th For comparison, if |ΔV|≤V th , it is considered that the output voltage has reached the target value, and the process returns to step S4 to continue real-time monitoring; S54, if the voltage deviation ΔV exceeds the tolerance range |ΔV|>V th , then enter the self-calibration step S6; S55. When judging the voltage consistency, if the deviation exceeds the threshold, the correction failure information is recorded and the correction retry mechanism is started, and the process returns to step S6 for adjustment.
5. The optical chip high-precision voltage source matrix self-correction method according to claim 1, characterized in that: The S6 specifically includes: S61, ESP32-S3 according to the feedback voltage value V feedback and the target voltage value V target Deviation ΔV, calculate the output voltage value ΔV that needs to be adjusted adjust , calculated by the following formula: ΔV adjust =ΔV×K; Where ΔV is the voltage deviation, and K is the correction coefficient, which is set according to the adjustment accuracy of the DAC8568 chip and the range of the target voltage; S62, ESP32-S3 will adjust the value ΔV adjust Converted into the corresponding digital signal D target , the conversion is completed by the following formula: Where, ΔV adjust is the calculated voltage adjustment value, V ref is the reference voltage of DAC8568, and N is the number of bits of resolution of DAC8568 chip; S63 and ESP32-S3 use the IIC protocol to convert the adjusted digital signal D adjust Passed to the MCP23017 expander; S64, MCP23017 expander will adjust the signal D adjust Pass it to the corresponding DAC8568 chip, send adjustment instructions through the IIC protocol, and update the output voltage of DAC8568 to the adjusted value; S65, DAC8568 receives the adjustment signal D adjust Generate a new analog voltage output value V adjusted , and fed back to the voltage feedback module; S66 and ESP32-S3 receive the new output voltage V through the voltage feedback module adjusted , and proceed to step S7 to re-monitor and judge to confirm whether the adjustment is successful.
Citation Information
Patent Citations
Intelligently-controlled high-power multipath voltage output system with disturbance signal
CN117908610A
Charging and discharging digital-analog hybrid voltage compensation method
CN118151714A
Balanced control circuit in multi-input LDO (Low Dropout Regulator) power supply system and operation method thereof
CN118860052A
Multiple output programmable reference voltage source
US5905403A