Photoelectric power meter
By introducing the function of automatically adjusting the magnification into the photoelectric power meter, the problems of troublesome manual shifting operations and circuit damage are solved, and safer and more convenient optical power detection is achieved.
Patent Information
- Application Number
- CN201911184471.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-27
- Publication Date
- 2024-09-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing manual shift photoelectric power meter is troublesome to operate and can easily burn out the circuit.
A photoelectric power meter including a photoelectric conversion circuit, a gain selection circuit and a main controller is designed. By converting the collected optical signal into a voltage signal, and automatically adjusting the amplification factor based on the comparison between the voltage signal and the preset reference voltage, Realize the measurement and display of optical power.
It achieves simple operation, protected circuit structure, and avoids circuit damage caused by manual shifting.
Smart Images

Figure CN110849477B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power meters, and in particular to a photoelectric power meter. Background Art
[0002] With the development of the optical communication industry, higher requirements are placed on photoelectric detection modules. For the detection of optical power, it is generally required to be in the range of 0dBm to -30dBm or even larger.
[0003] Photoelectric power meter is a commonly used photoelectric detection module. Photoelectric power is generally required to be in the range of 0dBm to -30dBm or even larger. However, the existing optical power meter using the "photoelectric characteristics" of photodiodes uses manual shifting, that is, changing the amplification factor to achieve light detection of different powers. The manual shifting method is cumbersome to operate and can easily burn out the circuit. Summary of the invention
[0004] In view of this, the present application provides a photoelectric power meter, which solves the technical problems of the existing manual shift photoelectric power meter being difficult to operate and easy to burn out the circuit.
[0005] The present application provides a photoelectric power meter, comprising: a photoelectric conversion circuit, a gain selection circuit main controller and a display circuit;
[0006] The photoelectric conversion circuit is used to convert the collected light signal of the light source to be detected into a voltage signal;
[0007] The gain selection circuit is used to compare the voltage signal with a preset reference voltage, and select an amplification factor for amplifying the voltage signal in the photoelectric conversion circuit according to the comparison result;
[0008] The main controller is used to measure the voltage signal amplified by the amplification factor to obtain the corresponding optical power;
[0009] The display circuit is used to display the optical power.
[0010] Optionally, the gain selection circuit includes: a voltage comparison circuit and a self-locking circuit;
[0011] The voltage comparison circuit is used to compare the voltage signal with a preset reference voltage to obtain a comparison result;
[0012] The self-locking circuit is used to input the comparison result to the photoelectric conversion circuit, so that the photoelectric conversion circuit selects the amplification factor of the voltage signal according to the comparison result.
[0013] Optionally, the voltage comparison circuit includes: a voltage comparator U1, a relay RL2 and a voltage comparator U8;
[0014] The self-locking circuit comprises: a first self-locking circuit and a second self-locking circuit;
[0015] The positive input end of the voltage comparator U1 is connected to the output end of the photoelectric conversion circuit, and the output end is connected to the pin 1 of the relay RL2 through the first self-locking circuit;
[0016] Pin 2 of the relay RL2 is grounded, pin 3 is connected to the output end of the photoelectric conversion circuit, and pin 4 is connected to the positive input end of the voltage comparator U8;
[0017] The output end of the voltage comparator U8 is connected to the photoelectric conversion circuit through the second self-locking circuit.
[0018] Optionally, the first self-locking circuit includes: a relay RL1, a diode D1, a diode D2, an amplifier U3 and a relay RL5;
[0019] Pin 1 of the relay RL1 is connected to the output end of the voltage comparator U1, pin 2 is grounded, pin 3 is connected to the power supply voltage, and pin 4 is connected to the positive input end of the amplifier U3, the positive electrode of the diode D1 and pin 3 of the relay RL5;
[0020] The cathode of the diode D1 is connected to the anode of the diode D2;
[0021] The cathode of the diode D2 is connected to the reverse input terminal of the amplifier U3;
[0022] The output end of the amplifier U3 is connected to the pin 1 of the relay RL2;
[0023] Pin 1 of the relay RL5 is used to input a first control signal, pin 5 is connected to pin 1 of the relay RL2, and pin 2 and pin 4 are both grounded.
[0024] Optionally, the second self-locking circuit includes: a relay RL3, a diode D4, a diode D5, an amplifier U9 and a relay RL4;
[0025] Pin 1 of the relay RL3 is connected to the output end of the voltage comparator U8, pin 2 is grounded, pin 3 is connected to the power supply voltage, and pin 4 is connected to the positive input end of the amplifier U9, the positive electrode of the diode D4 and pin 3 of the relay RL4;
[0026] The cathode of the diode D4 is connected to the anode of the diode D5;
[0027] The cathode of the diode D5 is connected to the reverse input terminal of the amplifier U9;
[0028] The output end of the amplifier U9 is connected to the photoelectric conversion circuit;
[0029] Pin 1 of the relay RL4 inputs the second control signal, pin 5 is connected to the photoelectric conversion circuit, and pin 2 and pin 4 are both grounded.
[0030] Optionally, it also includes: a peak holding circuit;
[0031] The input end of the peak holding circuit is connected to the output end of the gain selection circuit, and the output end is connected to the input end of the main controller;
[0032] The peak holding circuit is used to hold the peak value of the amplified voltage signal.
[0033] Optionally, the peak holding circuit includes: an amplifier U7, a diode D6, a diode D7, a diode D8, a capacitor C20 and a voltage comparator U10;
[0034] The positive input end of the amplifier U7 is connected to the output end of the gain selection circuit, the reverse input end is connected to the output end of the voltage comparator U10 and the anode of the diode D8, and the output end is connected to the cathode of the diode D8 and the anode of the diode D6;
[0035] The cathode of the diode D6 is connected to the anode of the diode D7;
[0036] The cathode of the diode D7 is connected to the first end of the capacitor C20 and the positive input end of the voltage comparator U10;
[0037] The second end of the capacitor C20 is grounded;
[0038] The inverting input terminal of the voltage comparator U10 is connected to the output terminal of the voltage comparator U10 , and the output terminal is connected to the input terminal of the main controller.
[0039] Optionally, the peak holding circuit further includes: a transistor Q4, a resistor R19 and a resistor R20;
[0040] The collector of the triode is connected to the cathode of the diode D7, the base is connected to the first end of the resistor R19 and the first end of the resistor R20, and the emitter is grounded;
[0041] The second end of the resistor R20 is grounded;
[0042] The second end of the resistor R19 is used to input a discharge signal.
[0043] Optionally, a photodiode PIN, an analog switch, a resistor R1, a resistor R2, and a resistor R3;
[0044] The input end of the photodiode PIN is used to collect the light signal of the light source to be detected, and the output end is respectively connected to the first end of the resistor R1, the first end of the resistor R2 and the first end of the resistor R3;
[0045] The second end of the resistor R1, the second end of the resistor R2 and the second end of the resistor R3 are respectively connected to the first transmission channel, the second transmission channel and the third transmission channel of the analog switch, wherein the resistance values of the resistor R1, the resistor R2 and the resistor R3 are different;
[0046] The input end of the analog switch is connected to the gain selection circuit, and the output end is connected to the voltage comparison circuit and the main controller.
[0047] Optionally, the photoelectric conversion circuit further includes: an amplifier U4;
[0048] The inverting input terminal of the amplifier U4 is connected to the output terminal of the photodiode PIN, the forward input terminal is grounded, and the output terminal is negatively fed back to the inverting input terminal of the amplifier U4.
[0049] It can be seen from the above technical solutions that this application has the following advantages:
[0050] The present application provides a photoelectric power meter, comprising: a photoelectric conversion circuit, a gain selection circuit main controller and a display circuit; the photoelectric conversion circuit is used to convert the collected light signal of the light source to be detected into a voltage signal; the gain selection circuit is used to compare the voltage signal with a preset reference voltage, and select the amplification factor for amplifying the voltage signal in the photoelectric conversion circuit according to the comparison result; the main controller is used to measure the voltage signal amplified by the amplification factor to obtain the corresponding light power; the display circuit is used to display the light power.
[0051] In the present application, after the photoelectric conversion circuit converts the detected optical signal into a voltage signal, the gain selection circuit automatically and adaptively adjusts the amplification factor of the voltage signal in the photoelectric conversion circuit according to the comparison result between the voltage signal and the preset reference voltage. Then the main controller measures the optical power of the amplified voltage signal, and finally the display circuit outputs the optical power. Compared with the manual shift photoelectric power meter in the prior art, the operation is simple and the circuit structure is protected, thereby solving the technical problems that the existing manual shift photoelectric power meter is cumbersome to operate and easy to burn the circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 This is a schematic diagram of the structure of a photoelectric power meter in an embodiment of the present application;
[0053] Figure 2 This is a schematic diagram of the structure of the gain selection circuit in the embodiment of the present application;
[0054] Figure 3 This is a schematic diagram of the structure of the peak holding circuit in the embodiment of the present application;
[0055] Figure 4 This is a schematic diagram of the structure of the photoelectric conversion circuit in the embodiment of the present application;
[0056] Figure 5 It is a flowchart of an application example of a photoelectric power meter in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The embodiment of the present application provides a photoelectric power meter, which solves the technical problems that the existing manual shift photoelectric power meter is difficult to operate and easy to burn out the circuit.
[0058] The technical solutions of the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. All other embodiments obtained by ordinary technicians in this field without creative work based on the embodiments in the embodiments of the present application are within the scope of protection of the embodiments of the present application.
[0059] In the description of the embodiments of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the embodiments of the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0060] In the description of the embodiments of the present application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a replaceable connection, or an integral connection, it can be a mechanical connection, it can be an electrical connection, it can be a direct connection, it can be indirectly connected through an intermediate medium, and it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the embodiments of the present application can be understood according to specific circumstances.
[0061] For ease of understanding, a photoelectric power meter provided in the present application is described in detail below.
[0062] The present application provides a first embodiment of a photoelectric power meter. For details, please refer to Figure 1 .
[0063] The photoelectric power meter in this embodiment includes: a photoelectric conversion circuit, a gain selection circuit main controller and a display circuit; the photoelectric conversion circuit is used to convert the collected light signal of the light source to be detected into a voltage signal; the gain selection circuit is used to compare the voltage signal with a preset reference voltage, and select the amplification factor of the voltage signal in the photoelectric conversion circuit according to the comparison result; the main controller is used to measure the voltage signal amplified by the amplification factor to obtain the corresponding light power; the display circuit is used to display the light power.
[0064] In the present embodiment, after the photoelectric conversion circuit converts the detected optical signal into a voltage signal, the gain selection circuit automatically and adaptively adjusts the amplification factor of the voltage signal in the photoelectric conversion circuit according to the comparison result between the voltage signal and the preset reference voltage, and then the main controller measures the optical power of the amplified voltage signal, and finally the display circuit outputs the optical power. Compared with the manual shift photoelectric power meter in the prior art, the operation is simple and the circuit structure is protected, thereby solving the technical problems of the existing manual shift photoelectric power meter being troublesome to operate and easy to burn the circuit.
[0065] The above is an embodiment of a photoelectric power meter provided in the embodiment of the present application. The following is an embodiment of a photoelectric power meter provided in the embodiment of the present application. For details, please refer to Figure 1 .
[0066] The photoelectric power meter in this embodiment includes: a photoelectric conversion circuit, a gain selection circuit main controller and a display circuit; the photoelectric conversion circuit is used to convert the collected light signal of the light source to be detected into a voltage signal; the gain selection circuit is used to compare the voltage signal with a preset reference voltage, and select the amplification factor of the voltage signal in the photoelectric conversion circuit according to the comparison result; the main controller is used to measure the voltage signal amplified by the amplification factor to obtain the corresponding light power; the display circuit is used to display the light power.
[0067] Specifically, Figure 2 As shown, the gain selection circuit includes: a voltage comparison circuit and a self-locking circuit; the voltage comparison circuit is used to compare the voltage signal and the preset reference voltage to obtain a comparison result; the self-locking circuit is used to input the comparison result to the photoelectric conversion circuit, so that the photoelectric conversion circuit selects the amplification factor of the amplified voltage signal according to the comparison result.
[0068] Specifically, Figure 1 and Figure 2As shown, the voltage comparison circuit includes: a voltage comparator U1, a relay RL2 and a voltage comparator U8; the self-locking circuit includes: a first self-locking circuit and a second self-locking circuit; the positive input end of the voltage comparator U1 is connected to the output end of the photoelectric conversion circuit, and the output end is connected to pin 1 of the relay RL2 through the first self-locking circuit; pin 2 of the relay RL2 is grounded, pin 3 is connected to the output end of the photoelectric conversion circuit, and pin 4 is connected to the positive input end of the voltage comparator U8; the output end of the voltage comparator U8 is connected to the photoelectric conversion circuit through the second self-locking circuit.
[0069] It should be noted that the voltage comparison circuit in this embodiment is composed of a comparator formed by an operational amplifier. In order to understand the size relationship between the ADC reference voltage and the amplifier circuit in real time to avoid exceeding the range, a voltage comparison circuit is used to compare the sizes of the two. When the amplified voltage (the amplified voltage signal, referred to as the amplified voltage) > the reference voltage, the maximum forward undistorted voltage is output; when the amplified voltage < the reference voltage, the maximum reverse undistorted voltage is output. If a single-power supply operational amplifier is used, that is, the reverse power supply of the operational amplifier is grounded. The comparator either outputs the maximum forward undistorted voltage or outputs 0, which is equivalent to outputting a digital signal of "0" or "1". Compared with the method of collecting and judging by a single-chip microcomputer, this voltage comparison method has a short acquisition time, so it can respond to situations where the optical signal changes rapidly.
[0070] It is understandable that in this embodiment, because there are three choices of magnification factors, that is, there are three feedback resistors, and different resistance values represent different magnification factors. The design idea of the circuit is that, by default, the feedback resistor is selected as 100K, because the weak signal is measured, so the magnification factor must be large enough. Then it will enter the comparison circuit. When the weak signal is amplified 100K times, that is, 105 times, the converted voltage is higher than the reference voltage. At this time, the voltage signal cannot be transmitted to the ADC, otherwise it is easy to burn out the main controller, so a feedback resistor of 10K is replaced, that is, the magnification factor is converted, but if the converted voltage is still greater than the reference voltage, it is converted to 1k.
[0071] When working, the comparison order is to compare the voltage comparator U1 first and then the voltage comparator U8. Because if the amplified voltage converted at this time is higher than the reference voltage, the voltage comparator U1 outputs a high level, and the self-locking circuit locks it to a high level. This high level controls the relay RL2, so that the voltage signal can enter the voltage comparator U8 for further comparison.
[0072] Specifically, Figure 1 and Figure 2As shown, the first self-locking circuit includes: a relay RL1, a diode D1, a diode D2, an amplifier U3 and a relay RL5; pin 1 of the relay RL1 is connected to the output end of the voltage comparator U1, pin 2 is grounded, pin 3 is connected to the power supply voltage, and pin 4 is connected to the forward input end of the amplifier U3, the anode of the diode D1 and the pin 3 of the relay RL5; the cathode of the diode D1 is connected to the anode of the diode D2; the cathode of the diode D2 is connected to the reverse input end of the amplifier U3; the output end of the amplifier U3 is connected to the pin 1 of the relay RL2; the pin 1 of the relay RL5 is used to input the first control signal, the pin 5 is connected to the pin 1 of the relay RL2, and the pin 2 and the pin 4 are both grounded.
[0073] The output end of the first self-locking circuit is further connected to a resistor R11 and a resistor R12, and the inverting input end of the amplifier U9 is further connected to a resistor R9 and a resistor R10.
[0074] It should be noted that if Figure 1 and Figure 2 As shown, the second self-locking circuit includes: relay RL3, diode D4, diode D5, amplifier U9 and relay RL4; pin 1 of relay RL3 is connected to the output end of voltage comparator U8, pin 2 is grounded, pin 3 is connected to the power supply voltage, pin 4 is connected to the forward input end of amplifier U9, the anode of diode D4 and pin 3 of relay RL4; the cathode of diode D4 is connected to the anode of diode D5; the cathode of diode D5 is connected to the reverse input end of amplifier U9; the output end of amplifier U9 is connected to the photoelectric conversion circuit; pin 1 of relay RL4 inputs the second control signal, pin 5 is connected to the photoelectric conversion circuit, and pin 2 and pin 4 are both grounded.
[0075] The output end of the second self-locking circuit is further connected to resistors R15 and R16, and the inverting input end of the amplifier U9 is further connected to resistors R13 and R14.
[0076] It should be noted that when the amplified voltage is greater than the reference voltage, the voltage comparison circuit outputs a positive voltage, thereby changing the transmission channel of the analog switch, so the result is a pulse. However, the channel selection pin of the analog switch needs to be level-type, so a "self-locking" circuit is needed to keep it always at a high level. Therefore, a "self-locking" circuit is designed.
[0077] When the amplified voltage is higher than the reference voltage, for example, the positive input terminal of the voltage comparator U8 inputs the converted voltage. If it is higher than the reference voltage input at the reverse input terminal, the voltage comparator U8 outputs the positive power supply voltage value of the amplifier, that is, +5V. For relay RL3, a path is formed on the left, so the armature is attracted, the switch inside the relay is closed, and +5V is connected to the self-locking circuit. For U9, the reverse input terminal is connected to a 2.5V voltage obtained by dividing the 5V voltage, and the forward input terminal and reverse input terminal of U9 are connected through diodes D4 and D5, and the diode conduction voltage is about 0.7V, so the voltage U at the forward input terminal is in+ will be higher than the reverse input terminal U in- The voltage is about 1.4V higher, that is, U in+ =U in- +2*0.7, and U9 forms a positive feedback loop through RL4, so U9 will continue to amplify the voltage until saturation, that is, the output positive power supply voltage value is 5V. For RL4, P1.5 controls the self-locking circuit to stop working. Because when the microcontroller P1.5 pin outputs a high level, it forms a path with the ground, so the armature of RL4 is attracted downward, U9 has no positive feedback, and RL3 is also disconnected, so the output of U9 slowly drops to 0V, waiting for the next comparison.
[0078] It should be noted that for the input of the peak hold circuit, since the amplified voltage fluctuates, if the ADC conversion time is not fast enough, it is easy to cause misjudgment / mismeasurement. Figure 1 and Figure 3 As shown, the photoelectric power meter in this embodiment also includes: a peak holding circuit; the input end of the peak holding circuit is connected to the output end of the gain selection circuit, and the output end is connected to the input end of the main controller; the peak holding circuit is used to maintain the peak value of the amplified voltage signal.
[0079] Specifically, the peak holding circuit includes: an amplifier U7, a diode D6, a diode D7, a diode D8, a capacitor C20 and a voltage comparator U10; the positive input terminal of the amplifier U7 is connected to the output terminal of the gain selection circuit, the reverse input terminal is connected to the output terminal of the voltage comparator U10 and the positive electrode of the diode D8, and the output terminal is connected to the negative electrode of the diode D8 and the positive electrode of the diode D6; the negative electrode of the diode D6 is connected to the positive electrode of the diode D7; the negative electrode of the diode D7 is connected to the first terminal of the capacitor C20 and the positive input terminal of the voltage comparator U10; the second terminal of the capacitor C20 is grounded; the reverse input terminal of the voltage comparator U10 is connected to the output terminal of the voltage comparator U10, and the output terminal is connected to the input terminal of the main controller.
[0080] It should be noted that when the amplified voltage is input, because the voltage at the output pin 6 of the amplifier U7 is higher than the voltage of the capacitor C20, the diodes D6 and D7 are forward-conducted, so the capacitor C20 is charged. C20 can be charged to the size of the amplified voltage. When it is less than the input amplified voltage, that is, the voltage at pin 6 is lower than the voltage across C20, due to the unidirectional conductivity of the diode, the input voltage cannot charge the capacitor. Therefore, from the back, the output is still the amplified voltage that remains unchanged from the input.
[0081] Furthermore, in order to prevent the voltage on the capacitor C20 from not being able to be leaked out in time, resulting in an error in the next detection, the peak holding circuit also includes: a transistor Q4, a resistor R19 and a resistor R20; the collector of the transistor is connected to the cathode of the diode D7, the base is connected to the first end of the resistor R19 and the first end of the resistor R20, and the emitter is grounded; the second end of the resistor R20 is grounded; the second end of the resistor R19 is used to input a discharge signal.
[0082] It is understandable that in order to maintain the stability of the circuit structure, the peak holding circuit may also be connected to capacitor C15, capacitor C16, capacitor C17, capacitor C18, capacitor C19, resistor R17 and resistor R18.
[0083] It should be noted that the transistor Q4, the resistor R19 and the resistor R20 constitute a discharge circuit, that is, the resistor R19 controlled by P1.7, the resistor R20, and the transistor Q4. When P1.7 outputs a discharge signal, that is, a high level, Q4 is turned on and C20 discharges to the ground.
[0084] It should be noted that if Figure 4 As shown, the photoelectric conversion circuit includes: a photodiode PIN, an analog switch, a resistor R1, a resistor R2 and a resistor R3; the input end of the photodiode PIN is used to collect the light signal of the light source to be detected, and the output end is respectively connected to the first end of the resistor R1, the first end of the resistor R2 and the first end of the resistor R3; the second end of the resistor R1, the second end of the resistor R2 and the second end of the resistor R3 are respectively connected to the first transmission channel, the second transmission channel and the third transmission channel of the analog switch, wherein the resistance values of the resistor R1, the resistor R2 and the resistor R3 are different; the input end of the analog switch is connected to the gain selection circuit, and the output end is connected to the voltage comparison circuit and the main controller.
[0085] Furthermore, the photoelectric conversion circuit also includes: an amplifier U4; the reverse input terminal of the amplifier U4 is connected to the output terminal of the photodiode PIN, the forward input terminal is grounded, and the output terminal is negatively fed back to the reverse input terminal of the amplifier U4.
[0086] It should be noted that amplifier U4 is connected to a negative feedback loop, so it has the characteristics of "virtual short" and "virtual open", and the positive input terminal is grounded, that is, the potential to ground is 0V. Therefore, from the "virtual short" characteristic, it can be seen that the voltage at the reverse input terminal is also 0V. At the same time, from the "virtual open" characteristic, it can be seen that the input current at the reverse input terminal is also 0A. Therefore, the input current I in With the output voltage V out The relationship is:
[0087] V out =I in *R,
[0088] Where R is the resistance value of the selected feedback resistor.
[0089] It is understandable that if Figure 4 As shown, in order to stabilize the circuit structure, capacitors C7, C2 and C1 are also connected in the photoelectric conversion circuit.
[0090] Specifically, the main controller in this embodiment adopts the STC12C5A chip, which is an enhanced version of the 8051 single-chip microcomputer, has the advantages of high speed, low power consumption, and super strong anti-interference, and is low in price, which can reduce product manufacturing costs.
[0091] Specifically, the display circuit LCD12864 in this embodiment is used as a display screen to display the optical power result on the screen. Because the response relationship of the diode current to the input light is given in the manual or has been measured by itself. Therefore, in the program, it is only necessary to convert the detected ADC value into the corresponding analog voltage value, and then divide the analog voltage value by the amplification factor to obtain the light response current value, and the optical power can be obtained from the corresponding relationship.
[0092] like Figure 5 As shown, the working principle of the optical power meter in this embodiment is as follows: first, the PIN diode receives the light emitted by the light source to be detected and responds with the corresponding photocurrent. Then the photocurrent enters the amplifier U4. Because the transmission channel A pin of the analog switch is supplied with a positive power supply, that is, it is always at a high level, the default transmission channel of the analog switch is channel 1, that is, resistor R3 is selected as the feedback resistor, and the amplified voltage is output through the transmission channel 1. Then it enters the voltage comparator U1. If the amplified voltage is less than the reference voltage Vref, the output of U1 is the negative power supply voltage value, and the negative power supply terminal of U1 is grounded, so the output is a low level 0V at this time, and the transmission channel of the analog switch remains unchanged. Then the amplified voltage is kept stable through the peak holding circuit, and then the main controller performs ADC to detect the peak voltage and display the detected optical power value.
[0093] If the amplified voltage > ADC reference voltage Vref, the voltage comparator U1 outputs the voltage value of the positive power supply terminal of U1, which is +5V, and then the relay core coil is energized to attract the armature, so that 5V is connected to the self-locking circuit. In the self-locking circuit, because the amplifier U3 introduces positive feedback, and the positive input terminal of the amplifier U3 is two diode conduction voltages higher than the reverse input terminal, self-locking is achieved through positive feedback, and finally the amplifier U3 outputs +5V voltage. The +5V voltage output by the amplifier U3 is input to the pin control B pin of the analog switch, thereby changing the transmission channel, and the level of the channel selection pin "CBA" of the analog switch becomes 011, so channel 3 is connected, that is, resistor 10K is selected as the feedback resistor. If there is no self-locking circuit, once the transmission channel of the analog switch is changed, the output of the voltage comparator U1 returns to a low level, which will cause the analog switch to turn on channel 1. Therefore, in order to always get a high level for the transmission channel pin of the analog switch, a "self-locking" circuit is added. The reverse terminal voltage of the operational amplifier in the "self-locking" circuit is 0.5VCC, so when there is no input to the self-locking circuit, the output of amplifier U3 is always low.
[0094] In addition, when the amplifier U3 outputs a high level, the iron core coil of the relay RL2 is energized, attracting the armature, and thus entering the voltage comparator U8. Its working principle is the same as above. When 10k is used as the feedback resistor, that is, the amplification factor is 104, and the amplified voltage is higher than the ADC reference voltage Vref, the comparator U8 outputs a high level, and the self-locking circuit output always outputs a high level, so that the level of the three channel control pins "CBA" of the analog switch is 111, and the 1k resistor is selected as the feedback resistor, that is, the amplification factor is adjusted again. This method is used to achieve adaptive range detection. After completing a detection, the discharge pin of the relay is controlled by the single-chip microcomputer to disconnect the operational amplifier in the "self-locking" circuit and discharge the capacitor in the peak holding circuit, thereby restoring the initial state.
[0095] In the gain selection circuit diagram, P2.3 and P2.4 are detection pins, which are used to determine at which feedback resistor the ADC result is obtained, that is, the result obtained under the amplification factor.
[0096] In the present embodiment, after the photoelectric conversion circuit converts the detected optical signal into a voltage signal, the gain selection circuit automatically and adaptively adjusts the amplification factor of the voltage signal in the photoelectric conversion circuit according to the comparison result between the voltage signal and the preset reference voltage, and then the main controller measures the optical power of the amplified voltage signal, and finally the display circuit outputs the optical power. Compared with the manual shift photoelectric power meter in the prior art, the operation is simple and the circuit structure is protected, thereby solving the technical problems of the existing manual shift photoelectric power meter being troublesome to operate and easy to burn the circuit.
[0097] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A photoelectric power meter, characterized in that: include: Main controller, photoelectric conversion circuit, gain selection circuit, main controller and display circuit; The photoelectric conversion circuit is used to convert the collected light signal of the light source to be detected into a voltage signal; The gain selection circuit is used to compare the voltage signal with a preset reference voltage, and select an amplification factor for amplifying the voltage signal in the photoelectric conversion circuit according to the comparison result; The main controller is used to measure the voltage signal amplified by the amplification factor to obtain the corresponding optical power; The display circuit is used to display the optical power; The gain selection circuit comprises: a voltage comparison circuit and a self-locking circuit; The voltage comparison circuit is used to compare the voltage signal with a preset reference voltage to obtain a comparison result; The self-locking circuit is used to input the comparison result to the photoelectric conversion circuit, so that the photoelectric conversion circuit selects the amplification factor of the voltage signal according to the comparison result; The voltage comparison circuit comprises: a voltage comparator U1, a relay RL2 and a voltage comparator U8; The self-locking circuit comprises: a first self-locking circuit and a second self-locking circuit; The positive input end of the voltage comparator U1 is connected to the output end of the photoelectric conversion circuit, and the output end is connected to the pin 1 of the relay RL2 through the first self-locking circuit; Pin 2 of the relay RL2 is grounded, pin 3 is connected to the output end of the photoelectric conversion circuit, and pin 4 is connected to the positive input end of the voltage comparator U8; The output end of the voltage comparator U8 is connected to the photoelectric conversion circuit through the second self-locking circuit; The first self-locking circuit includes: a relay RL1, a diode D1, a diode D2, an amplifier U3 and a relay RL5; Pin 1 of the relay RL1 is connected to the output end of the voltage comparator U1, pin 2 is grounded, pin 3 is connected to the power supply voltage, and pin 4 is connected to the positive input end of the amplifier U3, the positive electrode of the diode D1 and pin 3 of the relay RL5; The cathode of the diode D1 is connected to the anode of the diode D2; The cathode of the diode D2 is connected to the reverse input terminal of the amplifier U3; The output end of the amplifier U3 is connected to the pin 1 of the relay RL2; Pin 1 of the relay RL5 is used to input a first control signal, pin 5 is connected to pin 1 of the relay RL2, and pins 2 and 4 are both grounded; The second self-locking circuit includes: a relay RL3, a diode D4, a diode D5, an amplifier U9 and a relay RL4; Pin 1 of the relay RL3 is connected to the output end of the voltage comparator U8, pin 2 is grounded, pin 3 is connected to the power supply voltage, and pin 4 is connected to the positive input end of the amplifier U9, the positive electrode of the diode D4 and pin 3 of the relay RL4; The cathode of the diode D4 is connected to the anode of the diode D5; The cathode of the diode D5 is connected to the reverse input terminal of the amplifier U9; The output end of the amplifier U9 is connected to the photoelectric conversion circuit; Pin 1 of the relay RL4 inputs the second control signal, pin 5 is connected to the photoelectric conversion circuit, and pin 2 and pin 4 are both grounded.
2. The photoelectric power meter according to claim 1, characterized in that: Also includes: Peak hold circuit; The input end of the peak holding circuit is connected to the output end of the gain selection circuit, and the output end is connected to the input end of the main controller; The peak holding circuit is used to hold the peak value of the amplified voltage signal.
3. The photoelectric power meter according to claim 2, characterized in that: The peak holding circuit includes: an amplifier U7, a diode D6, a diode D7, a diode D8, a capacitor C20 and a voltage comparator U10; The positive input end of the amplifier U7 is connected to the output end of the gain selection circuit, the reverse input end is connected to the output end of the voltage comparator U10 and the anode of the diode D8, and the output end is connected to the cathode of the diode D8 and the anode of the diode D6; The cathode of the diode D6 is connected to the anode of the diode D7; The cathode of the diode D7 is connected to the first end of the capacitor C20 and the positive input end of the voltage comparator U10; The second end of the capacitor C20 is grounded; The inverting input terminal of the voltage comparator U10 is connected to the output terminal of the voltage comparator U10 , and the output terminal is connected to the input terminal of the main controller.
4. The photoelectric power meter according to claim 3, characterized in that: The peak holding circuit also includes: a transistor Q4, a resistor R19 and a resistor R20; The collector of the transistor Q4 is connected to the cathode of the diode D7, the base is connected to the first end of the resistor R19 and the first end of the resistor R20, and the emitter is grounded; The second end of the resistor R20 is grounded; The second end of the resistor R19 is used to input a discharge signal.
5. The photoelectric power meter according to claim 1, characterized in that: The photoelectric conversion circuit includes: a photodiode PIN, an analog switch, a resistor R1, a resistor R2 and a resistor R3; The input end of the photodiode PIN is used to collect the light signal of the light source to be detected, and the output end is respectively connected to the first end of the resistor R1, the first end of the resistor R2 and the first end of the resistor R3; The second end of the resistor R1, the second end of the resistor R2 and the second end of the resistor R3 are respectively connected to the first transmission channel, the second transmission channel and the third transmission channel of the analog switch, wherein the resistance values of the resistor R1, the resistor R2 and the resistor R3 are different; The input end of the analog switch is connected to the gain selection circuit, and the output end is connected to the voltage comparison circuit and the main controller.
6. The photoelectric power meter according to claim 5, characterized in that: The photoelectric conversion circuit further includes: an amplifier U4; The inverting input terminal of the amplifier U4 is connected to the output terminal of the photodiode PIN, the forward input terminal is grounded, and the output terminal is negatively fed back to the inverting input terminal of the amplifier U4.
Citation Information
Cited By
Equipment for testing laser damage threshold value of sample and processing method
CN122171499A
