Photoelectric sampling circuit and counter

By introducing diagnostic modules and control modules into the photoelectric sampling circuit, fault diagnosis of the photoelectric emission modules and photoelectric reception modules is achieved, and the problem of degradation of the metering accuracy and reliability of the photoelectric sampling circuit when the transmitter and receiver tubes are damaged is solved, and the measurement accuracy and reliability of the photoelectric sampling circuit are improved. The accuracy and reliability of measurement are achieved.

CN222441688UActive Publication Date: 2025-02-07天津新智感知科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420954901.3
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2025-02-07
Estimated Expiration
2034-04-30

AI Technical Summary

Technical Problem

When the transmitter and receiver tubes are damaged, the existing photoelectric sampling circuit cannot perform photoelectric measurement correctly, resulting in a decrease in metering accuracy and reliability.

Method used

An optical sampling circuit including a photoelectric emission module, a diagnostic module, a reflective module, a photoelectric reception module and a control module is designed. Through the coordinated work of the diagnostic module and the control module, fault diagnosis of the photoelectric emission module and the photoelectric reception module is realized.

Benefits of technology

Through fault diagnosis, the probability of errors in metering of the photoelectric sampling circuit is reduced, and the measurement accuracy and reliability of the photoelectric sampling circuit are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222441688U_ABST
    Figure CN222441688U_ABST
Patent Text Reader

Abstract

The utility model discloses a photoelectric sampling circuit and a counter. The circuit comprises a photoelectric emission module, a diagnosis module, a light reflection module, a photoelectric receiving module and a control module, the input end of the diagnosis module is connected with the first output end of the control module, and the output end of the diagnosis module is connected with the photoelectric emission module and the first interface of the control module; the input end of the photoelectric receiving module is connected with the second output end of the control module, and the output end of the photoelectric receiving module is connected with the second interface of the control module; the diagnosis module is used for controlling the photoelectric emission module according to a first signal provided by the first output end in a diagnosis mode, the light reflection module is used for reflecting light to the photoelectric receiving module when the photoelectric emission module emits light, and the photoelectric receiving module is used for forming a diagnosis signal according to a second signal provided by the second output end and the intensity of the light. The control module is used for performing photoelectric sampling circuit diagnosis according to the potential of the first interface and the diagnosis signal, thereby improving the metering accuracy and reliability of the photoelectric sampling circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the utility model relate to the technical field of photoelectric measurement, and in particular to a photoelectric sampling circuit and a counter. Background Art

[0002] At present, photoelectric sampling circuits are often used in photoelectric measurement. The photoelectric sampling circuit includes a transmitting tube and a receiving tube. When the transmitting tube and the receiving tube in the photoelectric sampling circuit are damaged, the photoelectric sampling circuit cannot perform photoelectric measurement correctly, which reduces the measurement accuracy and reliability of the photoelectric sampling circuit. Utility Model Content

[0003] The utility model provides a photoelectric sampling circuit and a counter, which can realize the diagnosis of the photoelectric sampling circuit and improve the measurement accuracy and reliability of the photoelectric sampling circuit.

[0004] In a first aspect, an embodiment of the utility model provides a photoelectric sampling circuit, including a photoelectric transmitting module, a diagnostic module, a reflective module, a photoelectric receiving module and a control module;

[0005] The input end of the diagnostic module is connected to the first output end of the control module, and the output end of the diagnostic module is connected to the photoelectric transmitting module and the first interface of the control module; the input end of the photoelectric receiving module is connected to the second output end of the control module, and the output end of the photoelectric receiving module is connected to the second interface of the control module;

[0006] The diagnostic module is used to control the photoelectric transmitting module according to the first signal provided by the first output end in the diagnostic mode, the reflective module is used to reflect the light to the photoelectric receiving module when the photoelectric transmitting module emits light, the photoelectric receiving module is used to form a diagnostic signal according to the second signal provided by the second output end and the intensity of the light, and the control module is used to perform photoelectric sampling circuit diagnosis according to the potential of the first interface and the diagnostic signal.

[0007] Optionally, the diagnostic module includes a diagnostic resistor; a first end of the diagnostic resistor serves as an input end of the diagnostic module, and a second end of the diagnostic resistor serves as an output end of the diagnostic module.

[0008] Optionally, the photoelectric sampling circuit further includes a metering module;

[0009] The input end of the metering module is connected to the third output end of the control module, and the output end of the metering module is connected to the photoelectric emission module. The metering module is used to control the photoelectric emission module to emit light according to the third signal provided by the third output end in the metering mode; the photoelectric receiving module is also used to form a sampling signal according to the second signal and the intensity of the light in the metering mode, and the control module is also used to perform photoelectric metering according to the sampling signal.

[0010] Optionally, the metering module includes a metering resistor; a first end of the metering resistor serves as an input end of the metering module, and a second end of the metering resistor serves as an output end of the metering module.

[0011] Optionally, the diagnostic module includes a diagnostic resistor; the resistance of the diagnostic resistor is smaller than the resistance of the metering resistor.

[0012] Optionally, the control module includes an interface configuration unit, and the interface configuration unit is used to configure the type of signal received by the second interface.

[0013] Optionally, the photoelectric emission module includes a photoelectric emission tube; an anode of the photoelectric emission tube is connected to an output end of the diagnosis module, and a cathode of the photoelectric emission tube is grounded.

[0014] Optionally, the photoelectric receiving module includes a photoelectric receiving tube and a photoelectric receiving resistor;

[0015] The first end of the photoelectric receiving resistor is connected to the second output end of the control module, the second end of the photoelectric receiving resistor is connected to the first electrode of the photoelectric receiving tube, and the second electrode of the photoelectric receiving tube is grounded.

[0016] Optionally, the reflective module includes a counting wheel and a reflective sticker;

[0017] The reflective sticker is arranged on the counting wheel, and is used for reflecting the light emitted by the photoelectric transmitting module to the photoelectric receiving module when the counting wheel rotates.

[0018] In a second aspect, an embodiment of the utility model further provides a counter, comprising the photoelectric sampling circuit described in the first aspect.

[0019] The technical solution of the embodiment of the utility model is to connect the input end of the diagnostic module with the first output end of the control module, and the output end of the diagnostic module with the first interface of the photoelectric transmitting module and the control module. When the photoelectric sampling circuit is in the diagnostic mode, the diagnostic module can control the photoelectric transmitting module according to the first signal provided by the first output end of the control module, so that the control module can diagnose the short circuit and open circuit of the photoelectric transmitting module according to the first terminal potential of the photoelectric transmitting module. At the same time, the input end of the photoelectric receiving module is connected to the second output end of the control module, and the output end of the photoelectric receiving module is connected to the second interface of the control module, so that the control module can diagnose the short circuit and open circuit of the photoelectric receiving module according to the output terminal potential of the photoelectric receiving module, thereby realizing the fault diagnosis of the photoelectric transmitting module and the photoelectric receiving module, reducing the probability of measurement error of the photoelectric sampling circuit, and improving the measurement accuracy of the photoelectric sampling circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A schematic diagram of the structure of a photoelectric sampling circuit provided for related technologies;

[0021] Figure 2 A schematic diagram of the structure of a photoelectric sampling circuit provided by an embodiment of the utility model;

[0022] Figure 3 A schematic diagram of the structure of another photoelectric sampling circuit provided by an embodiment of the utility model;

[0023] Figure 4 A schematic diagram of the structure of another photoelectric sampling circuit provided by an embodiment of the utility model;

[0024] Figure 5 A schematic diagram of the structure of another photoelectric sampling circuit provided by an embodiment of the utility model;

[0025] Figure 6 A schematic diagram of the structure of another photoelectric sampling circuit provided by an embodiment of the utility model;

[0026] Figure 7 A flow chart of a control method of a photoelectric sampling circuit provided by an embodiment of the utility model;

[0027] Figure 8 A flow chart of another control method of a photoelectric sampling circuit provided by an embodiment of the utility model;

[0028] Fig. 9 A flow chart of another control method of a photoelectric sampling circuit provided by an embodiment of the utility model;

[0029] Fig.10 The present invention provides a flow chart of another method for controlling a photoelectric sampling circuit according to an embodiment of the present invention. DETAILED DESCRIPTION

[0030] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0031] Figure 1 A schematic diagram of a photoelectric sampling circuit provided for related technologies. Figure 1 As shown, the photoelectric sampling circuit includes a micro control unit (MCU) 101, a photoelectric emitting diode 102, a photoelectric receiving diode 103, a counting wheel 104 and a reflective sticker 105. The photoelectric emitting diode 102 is connected to the output end of the micro control unit 101, and the photoelectric receiving diode 103 is connected to the input end of the micro control unit 101. In the photoelectric sampling process, the micro control unit 101 emits light to the counting wheel 104 through the photoelectric emitting diode 102, and the reflective sticker 105 on the counting wheel 104 reflects the light and reflects it to the photoelectric receiving diode 103. The photoelectric receiving diode 103 converts the received light signal into an electrical signal and outputs it to the micro control unit 101, and the micro control unit 101 performs measurement according to the received electrical signal. In the related art, when at least one of the photoelectric emitting diode 102 and the photoelectric receiving diode 103 is damaged, the photoelectric sampling circuit fails, so that the electrical signal received by the micro control unit 101 through the photoelectric receiving diode 103 cannot be accurately measured, which reduces the accuracy of the photoelectric sampling circuit.

[0032] In view of the above technical problems, an embodiment of the utility model provides a photoelectric sampling circuit. Figure 2 The schematic diagram of the structure of a photoelectric sampling circuit provided by the embodiment of the utility model is shown in FIG. Figure 2As shown, the photoelectric sampling circuit includes a photoelectric transmitting module 110, a diagnostic module 120, a reflective module 130, a photoelectric receiving module 140 and a control module 150; the input end of the diagnostic module 120 is connected to the first output end IO1 of the control module 150, and the output end of the diagnostic module 150 is connected to the photoelectric transmitting module 110 and the first interface AD1 of the control module 150; the input end of the photoelectric receiving module 140 is connected to the second output end IO2 of the control module 150, and the output end of the photoelectric receiving module 140 is connected to the second interface AD2 of the control module 150; the diagnostic module 120 is used to control the photoelectric transmitting module 110 according to the first signal provided by the first output end IO1 in the diagnostic mode, the reflective module 130 is used to reflect the light to the photoelectric receiving module 140 when the photoelectric transmitting module 110 emits light, the photoelectric receiving module 140 is used to form a diagnostic signal according to the second signal provided by the second output end IO2 and the intensity of the light, and the control module 150 is used to perform photoelectric sampling circuit diagnosis according to the potential of the first interface AD1 and the diagnostic signal.

[0033] Specifically, the first end of the photoelectric emission module 110 is connected to the output end of the diagnosis module 120, and the second end of the photoelectric emission module 110 is connected to the first fixed potential input end. Figure 2 As shown, the first fixed potential input terminal can be a ground terminal. In the diagnostic mode of the photoelectric sampling circuit, the first output terminal IO1 of the control module 150 outputs a first signal to the diagnostic module 120, and outputs it to the photoelectric emission module 110 through the diagnostic module 120, so that the first terminal potential of the photoelectric emission module 110 can be controlled by the diagnostic module 120 according to the first signal. When the voltage difference between the two ends of the photoelectric emission module 110 is greater than the working threshold voltage of the photoelectric emission module 110, the photoelectric emission module 110 can convert the electrical signal into an optical signal. Thus, the diagnostic module 120 can control the light-emitting state of the photoelectric emission module 110 according to the first signal. Exemplarily, the photoelectric emission module 110 can be set to emit light at a high level and not emit light at a low level. At this time, when the first signal is at a high level, the diagnostic module 120 can control the photoelectric emission module 110 to emit light according to the first signal, and when the first signal is at a low level, the diagnostic module 120 can control the photoelectric emission module 110 not to emit light according to the first signal.

[0034] The reflective module 130 is disposed on the optical path of the light when the photoelectric transmitting module 110 emits light, and has a reflective effect. The photoelectric receiving module 140 is disposed on the optical path of the light reflected by the light emitting module 130. When the photoelectric transmitting module 110 emits light, the photoelectric transmitting module 110 can emit light to the reflective module 130, and the light is reflected to the photoelectric receiving module 140 through the reflective module 130. At the same time, the input end of the photoelectric receiving module 140 is connected to the second output end IO2 of the control module 150, and the second end of the photoelectric receiving module 140 is connected to the second fixed potential input end. For example, Figure 2 As shown, the second fixed potential input terminal can be a ground terminal. In the diagnostic mode of the photoelectric sampling circuit, the second output terminal IO2 of the control module 150 outputs a second signal, so that the voltage difference between the two ends of the photoelectric receiving module 140 is greater than the working threshold voltage of the photoelectric receiving module 140, so that the photoelectric receiving module 140 can be controlled to be in an enabled state through the second signal. The photoelectric receiving module 140 can convert the received optical signal into an electrical signal and output it to the second interface AD2 of the control module 150. The control module 150 performs photoelectric sampling circuit diagnosis according to the electrical signal of the second interface AD2.

[0035] In the diagnostic mode of the photoelectric sampling circuit, the first signal outputted by the first output terminal IO1 of the control module 150 is outputted to the photoelectric emission module 110 after passing through the diagnostic module 130, so that the photoelectric emission module 110 is in a light-emitting state. At the same time, the first interface AD1 of the control module 150 is connected to the first terminal of the photoelectric emission module 110 for collecting the first terminal potential of the photoelectric emission module 110. When the first terminal potential of the photoelectric emission module 110 is less than the first threshold value, it can be determined that the current photoelectric emission module 110 is in a short-circuit state. Exemplarily, the first threshold value can be greater than or equal to the sum of the working threshold voltage of the photoelectric emission module 110 and the first fixed potential provided by the first fixed potential input terminal. When the photoelectric emission module 110 is in a light-emitting state, when the photoelectric emission module 110 is normal, the voltage difference between the two ends of the photoelectric emission module 110 is greater than or equal to the working threshold value of the photoelectric emission module 110. When the photoelectric emission module 110 is short-circuited, the voltage difference between the two ends of the photoelectric emission module 110 tends to 0, and the second terminal potential of the photoelectric emission module 110 is fixed, so that it can be judged whether the photoelectric emission module 110 is short-circuited according to the first terminal potential of the photoelectric emission module 110.

[0036] When the photoelectric emission module 110 is in a light-emitting state, the potential of the first terminal outputted to the photoelectric emission module 110 by the diagnostic module 130 according to the first signal may be greater than the sum of the working threshold voltage of the photoelectric emission module 110 and the first fixed potential provided by the first fixed potential input terminal. At this time, when the potential of the first terminal of the photoelectric emission module 110 is greater than the second threshold, it can be determined that the current photoelectric emission module 110 is in an open circuit state. Exemplarily, the second threshold may be equal to the sum of the working threshold voltage of the photoelectric emission module 110 and the first fixed potential provided by the first fixed potential input terminal. Optionally, the second threshold is equal to the first threshold. When the photoelectric emission module 110 is in a light-emitting state, when the photoelectric emission module 110 is normal, the voltage difference between the two ends of the photoelectric emission module 110 is greater than or equal to the working threshold of the photoelectric emission module 110. When the photoelectric emission module 110 is short-circuited, the potential of the first terminal of the photoelectric emission module 110 is the potential output by the diagnostic module 130 to the first terminal of the photoelectric emission module 110 according to the first signal. At this time, the potential of the first terminal of the photoelectric emission module 110 may be greater than the sum of the operating threshold voltage of the photoelectric emission module 110 and the first fixed potential provided by the first fixed potential input terminal, so that it is possible to determine whether the photoelectric emission module 110 is short-circuited based on the potential of the first terminal of the photoelectric emission module 110.

[0037] In addition, when the photoelectric transmitting module 110 is in the light-emitting state, the reflective module 130 reflects the light emitted by the photoelectric transmitting module 110 to the photoelectric receiving module 140, and the intensity of the light received by the photoelectric receiving module 140 is greater than 0. At the same time, the input end of the photoelectric receiving module 140 is connected to the second output end IO2 of the control module 150, and the fixed potential end of the photoelectric receiving module 140 is connected to the second fixed potential input end. At the same time, the second interface AD2 of the control module 150 is connected to the output end of the photoelectric receiving module 140, and is used to collect the output end potential of the photoelectric receiving module 140. The photoelectric receiving module 140 is in an enabled state according to the second signal provided by the second output end IO2 of the control module 150. When the photoelectric receiving module 140 is normal, the output end potential of the photoelectric receiving module 140 is the sum of the working threshold voltage of the photoelectric receiving module 140 and the second fixed potential provided by the second fixed potential input end. When the photoelectric receiving module 140 is disconnected, the potential of the output terminal of the photoelectric receiving module 140 is related to the second signal, and its voltage value may be greater than the sum of the working threshold voltage of the photoelectric receiving module 140 and the second fixed potential provided by the second fixed potential input terminal. At this time, when the potential of the output terminal of the photoelectric receiving module 140 is greater than the third threshold, it can be determined that the photoelectric receiving module 140 is in a disconnected state. Exemplarily, the third threshold may be equal to the sum of the working threshold voltage of the photoelectric receiving module 140 and the second fixed potential provided by the second fixed potential input terminal.

[0038] In the diagnostic mode, the photoelectric sampling circuit can also be set to output the first signal output by the first output terminal IO1 of the control module 150 to the photoelectric transmitting module 110 after passing through the diagnostic module 130, so that the photoelectric transmitting module 110 is in a non-luminous state. At this time, the intensity of the light received by the photoelectric receiving module 140 is equal to 0, that is, the photoelectric receiving module 140 cannot work normally. When the photoelectric receiving module 140 is normal, the output terminal potential of the photoelectric receiving module 140 is determined by the second signal provided by the second output terminal IO2 of the control module 150. Its voltage value can be greater than or equal to the sum of the working threshold voltage of the photoelectric receiving module 140 and the second fixed potential provided by the second fixed potential input terminal. When the photoelectric receiving module 140 is short-circuited, the output terminal potential of the photoelectric receiving module 140 tends to the second fixed potential provided by the second fixed potential input terminal. Therefore, it can be judged whether the photoelectric receiving module 140 is short-circuited based on the output terminal potential of the photoelectric receiving module 140. Exemplarily, when the output terminal potential of the photoelectric receiving module 140 is less than the fourth threshold value, it can be determined that the photoelectric receiving module 140 is in a short-circuited state. The fourth threshold may be the sum of the operating threshold voltage of the optoelectronic receiving module 140 and the second fixed potential provided by the second fixed potential input terminal.

[0039] The technical solution of this embodiment is to connect the input end of the diagnostic module with the first output end of the control module, and the output end of the diagnostic module with the first interface of the photoelectric transmitting module and the control module. When the photoelectric sampling circuit is in the diagnostic mode, the diagnostic module can control the photoelectric transmitting module according to the first signal provided by the first output end of the control module, so that the control module can diagnose the short circuit and open circuit of the photoelectric transmitting module according to the first terminal potential of the photoelectric transmitting module. At the same time, the input end of the photoelectric receiving module is connected to the second output end of the control module, and the output end of the photoelectric receiving module is connected to the second interface of the control module, so that the control module can diagnose the short circuit and open circuit of the photoelectric receiving module according to the output terminal potential of the photoelectric receiving module, thereby realizing the fault diagnosis of the photoelectric transmitting module and the photoelectric receiving module, reducing the probability of measurement error of the photoelectric sampling circuit, and improving the measurement accuracy of the photoelectric sampling circuit.

[0040] Figure 3 This is a schematic diagram of another photoelectric sampling circuit provided by an embodiment of the utility model. Figure 3 As shown, the diagnosis module 130 includes a diagnosis resistor R1 ; a first end of the diagnosis resistor R1 serves as an input end of the diagnosis module 130 , and a second end of the diagnosis resistor R1 serves as an output end of the diagnosis module 130 .

[0041] Specifically, Figure 3As shown, the first end of the diagnostic resistor R1 is connected to the first output end IO1 of the control module 150, and the second end of the diagnostic resistor R1 is connected to the first end of the photoelectric emission module 110 and the first interface AD1 of the control module 150. In the diagnostic mode of the photoelectric sampling circuit, the first output end IO1 of the control module 150 provides a first signal to the first end of the diagnostic resistor R1, and the current is limited by the diagnostic resistor R1. The resistance value of the diagnostic resistor R1 can be adjusted according to the potential requirement of the first end of the photoelectric emission module 110. In the diagnostic mode of the photoelectric sampling circuit, when the first signal is at a high level, the potential of the second end of the diagnostic resistor R1 is less than the level of the first signal, and is greater than the sum of the working threshold voltage of the photoelectric emission module 110 and the first fixed potential, that is, the first end potential of the photoelectric emission module 110. When the photoelectric emission module 110 is normal, the first end potential of the photoelectric generation module 110 is the sum of the working threshold voltage of the photoelectric emission module 110 and the first fixed potential. When the photoelectric emission module 110 is short-circuited, the first end potential of the photoelectric generation module 110 tends to the first fixed potential. When the photoelectric emission module 110 is disconnected, the potential of the first terminal of the photoelectric generation module 110 is the potential after the first signal passes through the diagnostic resistor R1, which is greater than the sum of the working threshold voltage and the first fixed potential of the photoelectric emission module 110. Therefore, the potential of the first terminal of the photoelectric emission module 110 can be collected through the first interface AD1 of the control module 150 to diagnose the fault of the photoelectric emission module 110.

[0042] It should be noted that Figure 3 The figure only shows that the diagnostic module 130 includes a diagnostic resistor R1. In other embodiments, the diagnostic module 130 may include at least two resistors, and the at least two resistors may be connected in series and / or in parallel to achieve that the resistance value of the equivalent resistance of the at least two resistors meets the resistance value requirement of the diagnostic resistor R1.

[0043] Figure 4 This is a schematic diagram of another photoelectric sampling circuit provided by an embodiment of the utility model. Figure 4 As shown, the photoelectric sampling circuit also includes a metering module 160; the input end of the metering module 160 is connected to the third output end IO3 of the control module 150, and the output end of the metering module 160 is connected to the photoelectric transmitting module 110, and the metering module 160 is used to control the photoelectric transmitting module 110 to emit light according to the third signal provided by the third output end IO3 in the metering mode; the photoelectric receiving module 140 is also used to form a sampling signal according to the second signal and the intensity of the light in the metering mode, and the control module 150 is also used to perform photoelectric metering according to the sampling signal.

[0044] Specifically, in the metering mode of the photoelectric sampling circuit, the third output terminal IO3 of the control module 150 outputs a third signal to the metering module 160, and outputs it to the photoelectric transmitting module 110 through the metering module 160, so that the potential of the first terminal of the photoelectric transmitting module 110 can be controlled by the metering module 160 according to the third signal. When the voltage difference between the two ends of the photoelectric transmitting module 110 is greater than the working threshold voltage of the photoelectric transmitting module 110, the photoelectric transmitting module 110 can convert the electrical signal into an optical signal. Thus, the metering module 160 can control the photoelectric transmitting module 110 to emit light according to the third signal. Then the reflective module 130 reflects the light emitted by the light transmitting module 110 to the photoelectric receiving module 140, and the photoelectric receiving module 140 is in an enabled state under the action of the second signal. When the light is reflected to the photoelectric receiving module 140, the photoelectric receiving module 140 can convert the optical signal into an electrical signal, so that the output terminal level of the photoelectric receiving module 140 received by the second interface AD2 of the control module 150 changes, thereby realizing the metering of photoelectric sampling. During the operation of the photoelectric sampling circuit, the metering mode and the diagnostic mode can be switched to improve the metering accuracy of the photoelectric sampling circuit without affecting the metering of the photoelectric sampling circuit. Exemplarily, the photoelectric sampling circuit can be diagnosed by the first signal output from the first output terminal IO1 of the control module 150 when the photoelectric sampling circuit is started. On the basis that the photoelectric transmitting module 110 and the photoelectric receiving module 140 in the photoelectric sampling circuit are normal, the third signal output from the third output terminal IO3 of the control module 150 controls the photoelectric sampling circuit to perform metering. Alternatively, the photoelectric sampling circuit can be diagnosed after the photoelectric sampling circuit has been metered for a period of time, which is not limited here.

[0045] Figure 5 This is a schematic diagram of another photoelectric sampling circuit provided by an embodiment of the utility model. Figure 5 As shown, the metering module 160 includes a metering resistor R2 ; a first end of the metering resistor R2 serves as an input end of the metering module 160 , and a second end of the metering resistor R2 serves as an output end of the metering module 160 .

[0046] Specifically, Figure 5As shown, the first end of the metering resistor R2 is connected to the third output terminal IO3 of the control module 150, and the second end of the metering resistor R2 is connected to the first end of the photoelectric transmitting module 110 and the first interface AD1 of the control module 150. In the metering mode of the photoelectric sampling circuit, the third output terminal IO3 of the control module 150 provides a third signal to the first end of the metering resistor R2, and the current is limited by the metering resistor R2. The resistance value of the metering resistor R2 can be adjusted according to the potential requirement of the first end of the photoelectric transmitting module 110. In the metering mode of the photoelectric sampling circuit, when the third signal output by the third output terminal IO3 of the control module 150 is high, the potential of the second end of the metering resistor R2 is less than the level of the third signal after the voltage drop of the metering resistor R2, and is greater than the sum of the working threshold voltage of the photoelectric transmitting module 110 and the first fixed potential, so that the photoelectric transmitting module 110 is turned on and emits light. The reflective module 130 reflects the light to the photoelectric receiving module 140, and the photoelectric receiving module 140 works normally, so that the output terminal potential of the photoelectric receiving module 140 tends to the second fixed potential. At this time, the output terminal potential of the photoelectric receiving module 140 can be low. When the third signal outputted by the third output terminal IO3 of the control module 150 is at a low level, the potential of the second terminal of the metering resistor R2 is less than the level of the third signal after the voltage drop through the metering resistor R2, and is also less than the sum of the working threshold voltage of the photoelectric transmitting module 110 and the first fixed potential, so that the photoelectric transmitting module 110 is cut off and does not emit light. The intensity of the light received by the photoelectric receiving module 140 is 0, and the photoelectric receiving module 140 cannot work normally, so that the output terminal potential of the photoelectric receiving module 140 is determined by the second signal provided by the second output terminal IO2 of the control module 150, and the output terminal potential of the photoelectric receiving module 140 can be at a high level at this time. Therefore, the metering can be realized according to the alternating high and low levels of the output terminal potential of the photoelectric receiving module 140.

[0047] It should be noted that Figure 5 It is only exemplarily shown that the metering module 160 includes a metering resistor R2. In other embodiments, the metering module 160 may also include at least two resistors, and the at least two resistors may be connected in series and / or in parallel to achieve that the resistance value of the equivalent resistance of the at least two resistors meets the resistance value requirement of the metering resistor R2.

[0048] Based on the above technical solutions, continue to refer to Figure 5 , the diagnostic module 130 includes a diagnostic resistor R1; the resistance of the diagnostic resistor R1 is smaller than the resistance of the measuring resistor R2.

[0049] Specifically, when the first signal provided by the first output terminal IO1 of the control module 150 is at a high level and the third signal provided by the third output terminal IO3 is at a high level, the voltage value of the first signal may be equal to the voltage value of the third signal. When the diagnosis module 130 includes a diagnosis resistor R1 and the metering module 160 includes a metering resistor R2, the resistance value of the diagnosis resistor R1 may be set to be smaller than the resistance value of the metering resistor R2, so that the first terminal potential of the photoelectric emission module 110 in the diagnosis mode is greater than the first terminal potential of the photoelectric emission module 110 in the metering mode, thereby making the luminous brightness of the photoelectric emission module 110 in the diagnosis mode greater than the luminous brightness in the metering mode, which is beneficial for users to distinguish the working mode of the photoelectric sampling circuit according to the luminous brightness of the photoelectric emission module 110.

[0050] Figure 6 This is a schematic diagram of another photoelectric sampling circuit provided by an embodiment of the utility model. Figure 6 As shown, the control module 150 includes an interface configuration unit 151, and the interface configuration unit 151 is used to configure the type of signal received by the second interface AD2.

[0051] Specifically, when the photoelectric sampling circuit is working, the second interface AD2 of the control module 150 receives the output terminal potential of the photoelectric receiving module 140, and the signal received by the second interface AD2 of the control module 150 is an analog signal. The control module 150 includes an interface configuration unit 151, and the interface configuration unit 151 is connected to the second interface AD2. When the photoelectric sampling circuit is in the metering mode, the interface configuration unit 151 can convert the analog signal received by the second interface AD2 into a digital signal, so that the signal processing unit in the control module 150 can perform metering according to the high and low levels received by the second interface AD2. When the photoelectric sampling circuit is in the diagnostic mode, the signal processing unit in the control module 150 can directly determine the fault of the photoelectric receiving module 140 according to the analog signal received by the second interface AD2, and realize the fault diagnosis of the photoelectric receiving module 140.

[0052] Continue to refer Figure 6 The photoelectric emission module 110 includes a photoelectric emission tube D1; the anode of the photoelectric emission tube D1 is connected to the output end of the diagnosis module 120, and the cathode of the photoelectric emission tube D1 is grounded GND.

[0053] Specifically, when the voltage difference between the anode potential and the cathode potential of the photoelectric emitting tube D1 is greater than the threshold voltage of the photoelectric emitting tube D1, the photoelectric emitting tube D1 emits light, so that the electrical signal can be converted into an optical signal by the photoelectric emitting tube D1. Exemplarily, the photoelectric emitting tube D1 may include a vacuum photodiode, a photomultiplier tube, and an image converter tube.

[0054] Continue to refer Figure 6The photoelectric receiving module 140 includes a photoelectric receiving tube D2 and a photoelectric receiving resistor R3; the first end of the photoelectric receiving resistor R3 is connected to the second output end IO2 of the control module 150, the second end of the photoelectric receiving resistor R3 is connected to the first electrode of the photoelectric receiving tube D2, and the second electrode of the photoelectric receiving tube D2 is grounded GND.

[0055] Specifically, the first end of the photoelectric receiving resistor R3 serves as the input end of the photoelectric receiving module 140, and is used to receive the second signal provided by the second output end IO2 of the control module 150, and outputs it to the first pole of the photoelectric receiving tube D2 after the voltage drop through the photoelectric receiving resistor R3, and the first pole of the photoelectric receiving tube D2 serves as the output end of the photoelectric receiving module 140, and is connected to the second interface AD2 of the control module 150. At the same time, the second pole of the photoelectric receiving tube D2 serves as the fixed potential end of the photoelectric receiving module 140, and is connected to the second fixed potential input end. During the operation of the photoelectric sampling circuit, the second signal provided by the second input end IO2 of the control module 150 is at a high level, and after passing through the photoelectric receiving resistor R3, the potential of the first pole transmitted to the photoelectric receiving tube D2 is greater than the sum of the working threshold voltage of the photoelectric receiving tube D2 and the second fixed potential, so that the photoelectric receiving tube D2 is in an enabled state. When the reflective module 130 reflects the light emitted by the photoelectric transmitting tube D1 to the photoelectric receiving tube D2, the photoelectric receiving tube D2 works to convert the received light signal into an electrical signal. When the photoelectric sampling circuit is in the metering mode, the second interface AD2 of the control module 150 performs metering according to the high and low levels of the first electrode of the photoelectric receiving tube D2. When the photoelectric sampling circuit is in the diagnostic mode, the second interface AD2 of the control module 150 performs short circuit and open circuit diagnosis of the photoelectric receiving tube D2 according to the first electrode potential of the photoelectric receiving tube D2. Exemplarily, the photoelectric receiving tube D2 may include a photoconductive device, a photodiode, a phototransistor, and the like.

[0056] Continue to refer Figure 6 The reflective module 130 includes a counting wheel 131 and a reflective sticker 132 ; the reflective sticker 132 is disposed on the counting wheel 131 , and the reflective sticker 132 is used to reflect the light emitted by the photoelectric transmitting module 110 to the photoelectric receiving module 140 when the counting wheel 131 rotates.

[0057] Specifically, when the photoelectric sampling circuit is working, the counting wheel 131 can rotate, and the reflective sticker 132 can reflect the light emitted by the photoelectric transmitting module 110 to the photoelectric receiving module 140 according to the rotation of the counting wheel 131, and pass through the optical circuit of the photoelectric sampling circuit.

[0058] The embodiment of the utility model also provides a control method of a photoelectric sampling circuit, which is used to control the photoelectric sampling circuit provided by any embodiment of the utility model. The photoelectric sampling circuit includes a photoelectric transmitting module, a diagnostic module, a reflective module, a photoelectric receiving module and a control module; the input end of the diagnostic module is connected to the first output end of the control module, and the output end of the diagnostic module is connected to the photoelectric transmitting module and the first interface of the control module; the input end of the photoelectric receiving module is connected to the second output end of the control module, and the output end of the photoelectric receiving module is connected to the second interface of the control module. Figure 7 A flow chart of a control method of a photoelectric sampling circuit provided by an embodiment of the utility model, such as Figure 7 As shown, the method includes:

[0059] S10, in the diagnosis mode, the first output terminal of the control module outputs a first signal to the diagnosis module;

[0060] S11, the diagnosis module controls the photoelectric emission module based on the first signal;

[0061] S12, the reflective module reflects light to the photoelectric receiving module when the photoelectric transmitting module emits light;

[0062] S13, the photoelectric receiving module forms a diagnostic signal according to the second signal provided by the second output terminal and the intensity of the light;

[0063] S14, the control module diagnoses the photoelectric sampling circuit according to the potential of the first interface and the diagnostic signal of the second interface.

[0064] The technical solution of this embodiment is that in the diagnosis mode, the diagnosis module can control the photoelectric transmission module according to the first signal provided by the first output terminal of the control module, so that the control module can diagnose the short circuit and open circuit of the photoelectric transmission module according to the first terminal potential of the photoelectric transmission module. At the same time, the control module can diagnose the short circuit and open circuit of the photoelectric receiving module according to the output terminal potential of the photoelectric receiving module, so as to realize the fault diagnosis of the photoelectric transmission module and the photoelectric receiving module, reduce the probability of measurement error of the photoelectric sampling circuit, and improve the measurement accuracy of the photoelectric sampling circuit.

[0065] On the basis of the above technical solutions, the first signal includes a first diagnostic signal; the diagnostic module controls the photoelectric emission module to emit light based on the first diagnostic signal. Figure 8 A flow chart of another control method of a photoelectric sampling circuit provided by an embodiment of the present utility model, such as Figure 8 As shown, the method includes:

[0066] S20, in the diagnosis mode, the first output terminal of the control module outputs a first diagnosis signal to the diagnosis module;

[0067] S21, the diagnosis module controls the photoelectric emission module to emit light based on the first diagnosis signal;

[0068] S22, the reflective module reflects the light to the photoelectric receiving module;

[0069] S23, the photoelectric receiving module forms a diagnostic signal according to the second signal provided by the second output terminal and the intensity of the light;

[0070] S24, the control module performs short circuit and open circuit diagnosis on the photoelectric transmission module according to the potential of the first interface;

[0071] S25. The control module performs a circuit breaker diagnosis on the optoelectronic receiving module according to the diagnostic signal of the second interface.

[0072] On the basis of the above technical solutions, the control module performs short circuit and open circuit diagnosis on the photoelectric emission module according to the potential of the first interface, including:

[0073] When the potential of the first interface is less than a first threshold, the control module determines that the photoelectric emission module is short-circuited;

[0074] The first threshold value can be determined according to the sum of the working threshold voltage of the photoelectric emission module and the first fixed voltage. When the photoelectric sampling circuit is in the diagnostic mode, the first diagnostic signal can be a high-level signal, at which time the photoelectric emission module can emit light according to the first diagnostic signal, and when the potential of the first terminal of the photoelectric emission module is less than the first threshold value, it is determined that the photoelectric emission module is short-circuited. Exemplarily, the first threshold value can be equal to the sum of the working threshold voltage of the photoelectric emission module and the first fixed potential provided by the first fixed potential input terminal.

[0075] When the potential of the first interface is greater than a second threshold, the control module determines that the photoelectric emission module is disconnected; wherein the second threshold is greater than or equal to the first threshold.

[0076] The second threshold value can be determined based on the sum of the working threshold voltage of the photoelectric emission module and the first fixed voltage. When the photoelectric sampling circuit is in the diagnostic mode, the first diagnostic signal can be a high-level signal, and when the potential of the first terminal of the photoelectric emission module is greater than the second threshold value, it is determined that the photoelectric emission module is disconnected. Exemplarily, the second threshold value can be equal to the sum of the working threshold voltage of the photoelectric emission module and the first fixed potential provided by the first fixed potential input terminal.

[0077] On the basis of the above technical solutions, the control module performs circuit breaker diagnosis on the photoelectric receiving module according to the diagnostic signal of the second interface, including:

[0078] When the diagnosis signal is greater than a third threshold, the control module determines that the optoelectronic receiving module is open-circuited.

[0079] Wherein, the diagnostic signal may be the output terminal potential of the photoelectric receiving module, and the third threshold value may be determined according to the sum of the working threshold voltage of the photoelectric receiving module and the second fixed voltage. When the photoelectric sampling circuit is in the diagnostic mode, the first diagnostic signal may be a high-level signal, and the photoelectric transmitting module emits light according to the first diagnostic signal, and is reflected to the photoelectric receiving module through the reflective module. When the output terminal potential of the photoelectric receiving module is greater than the third threshold value, it is determined that the photoelectric transmitting module is disconnected. Exemplarily, the third threshold value may be equal to the sum of the working threshold voltage of the photoelectric receiving module and the second fixed potential provided by the second fixed potential input terminal.

[0080] On the basis of the above technical solutions, the first signal also includes a second diagnostic signal, the level of the second diagnostic signal is lower than the level of the first diagnostic signal; the diagnostic module drives the photoelectric emission module not to emit light based on the second diagnostic signal; Fig. 9 A flow chart of another control method of a photoelectric sampling circuit provided by an embodiment of the present utility model, such as Fig. 9 As shown, the method includes:

[0081] S30, in the diagnosis mode, the first output terminal of the control module outputs a second diagnosis signal to the diagnosis module;

[0082] S31, the diagnostic module controls the photoelectric emission module not to emit light based on the second diagnostic signal;

[0083] S32, the photoelectric receiving module forms a diagnostic signal according to the second signal provided by the second output terminal;

[0084] S33. The control module performs short circuit diagnosis on the photoelectric transmitting module according to the diagnosis signal.

[0085] On the basis of the above technical solutions, the control module performs short circuit diagnosis on the photoelectric emission module according to the diagnostic signal, including:

[0086] When the diagnosis signal is less than a fourth threshold, the control module determines that the photoelectric emission module is short-circuited; wherein the fourth threshold is less than or equal to the third threshold.

[0087] The fourth threshold value can be determined according to the sum of the working threshold voltage of the photoelectric transmitting module and the first fixed voltage. When the photoelectric sampling circuit is in the diagnostic mode, the second diagnostic signal can be a low-level signal, and the photoelectric transmitting module does not emit light according to the first diagnostic signal. When the output terminal potential of the photoelectric receiving module is less than the fourth threshold value, it is determined that the photoelectric transmitting module is short-circuited. Exemplarily, the fourth threshold value can be equal to the sum of the working threshold voltage of the photoelectric receiving module and the second fixed potential provided by the second fixed potential input terminal.

[0088] On the basis of the above technical solutions, the photoelectric sampling circuit further includes a metering module; the input end of the metering module is connected to the third output end of the control module, and the output end of the metering module is connected to the photoelectric emission module; Fig.10 A flow chart of another control method of a photoelectric sampling circuit provided by an embodiment of the present utility model, such as Fig.10 As shown, the method includes:

[0089] S40, in the diagnosis mode, the first output terminal of the control module outputs a first signal to the diagnosis module;

[0090] S41, the diagnosis module controls the photoelectric emission module based on the first signal;

[0091] S42, the reflective module reflects light to the photoelectric receiving module when the photoelectric transmitting module emits light;

[0092] S43, the photoelectric receiving module forms a diagnostic signal according to the second signal provided by the second output terminal and the intensity of the light;

[0093] S44, the control module diagnoses the photoelectric sampling circuit according to the potential of the first interface and the diagnostic signal of the second interface.

[0094] S45, in the metering mode, the third output terminal of the control module outputs a third signal to the metering module;

[0095] S46, the metering module drives the photoelectric generating module to emit light based on the third signal;

[0096] S47, the reflective module reflects the light to the photoelectric receiving module;

[0097] S48, the photoelectric receiving module forms a sampling signal according to the second signal and the intensity of the light;

[0098] S49, the control module performs photoelectric measurement based on the sampling signal.

[0099] The technical solution of this embodiment can perform fault diagnosis on the photoelectric transmitting module and the photoelectric receiving module in the diagnosis mode, and use the photoelectric sampling circuit for measurement when there is no fault, which can ensure the measurement accuracy of the photoelectric sampling circuit.

[0100] It should be noted that, in this embodiment, the diagnostic mode is located before the metering mode. In other embodiments, the metering mode can also be set before the diagnostic mode, or the metering mode and the diagnostic mode are performed alternately, which is not limited here.

[0101] The embodiment of the utility model further provides a counter, which includes the photoelectric sampling circuit provided by any embodiment of the utility model. Since the counter provided by the embodiment of the utility model includes the photoelectric sampling circuit provided by any embodiment of the utility model, it has the same beneficial effects as the photoelectric sampling circuit provided by any embodiment of the utility model, which will not be described in detail here.

[0102] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention is described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A photoelectric sampling circuit, characterized in that: It includes a photoelectric transmitting module, a diagnostic module, a reflective module, a photoelectric receiving module and a control module; The input end of the diagnostic module is connected to the first output end of the control module, and the output end of the diagnostic module is connected to the photoelectric transmitting module and the first interface of the control module; the input end of the photoelectric receiving module is connected to the second output end of the control module, and the output end of the photoelectric receiving module is connected to the second interface of the control module; The diagnostic module is used to control the photoelectric transmitting module according to the first signal provided by the first output end in the diagnostic mode, the reflective module is used to reflect the light to the photoelectric receiving module when the photoelectric transmitting module emits light, the photoelectric receiving module is used to form a diagnostic signal according to the second signal provided by the second output end and the intensity of the light, and the control module is used to perform photoelectric sampling circuit diagnosis according to the potential of the first interface and the diagnostic signal.

2. The photoelectric sampling circuit according to claim 1, characterized in that: The diagnostic module includes a diagnostic resistor; a first end of the diagnostic resistor serves as an input end of the diagnostic module, and a second end of the diagnostic resistor serves as an output end of the diagnostic module.

3. The photoelectric sampling circuit according to claim 2, characterized in that: Also included is a metering module; The input end of the metering module is connected to the third output end of the control module, and the output end of the metering module is connected to the photoelectric emission module. The metering module is used to control the photoelectric emission module to emit light according to the third signal provided by the third output end in the metering mode; the photoelectric receiving module is also used to form a sampling signal according to the second signal and the intensity of the light in the metering mode, and the control module is also used to perform photoelectric metering according to the sampling signal.

4. The photoelectric sampling circuit according to claim 3, characterized in that: The metering module includes a metering resistor; a first end of the metering resistor serves as an input end of the metering module, and a second end of the metering resistor serves as an output end of the metering module.

5. The photoelectric sampling circuit according to claim 4, characterized in that: The resistance value of the diagnostic resistor is smaller than the resistance value of the metering resistor.

6. The photoelectric sampling circuit according to any one of claims 1 to 5, characterized in that: The control module comprises an interface configuration unit, and the interface configuration unit is used to configure the type of signal received by the second interface.

7. The photoelectric sampling circuit according to claim 1, characterized in that: The photoelectric emission module comprises a photoelectric emission tube; the anode of the photoelectric emission tube is connected to the output end of the diagnosis module, and the cathode of the photoelectric emission tube is grounded.

8. The photoelectric sampling circuit according to claim 1, characterized in that: The photoelectric receiving module includes a photoelectric receiving tube and a photoelectric receiving resistor; The first end of the photoelectric receiving resistor is connected to the second output end of the control module, the second end of the photoelectric receiving resistor is connected to the first electrode of the photoelectric receiving tube, and the second electrode of the photoelectric receiving tube is grounded.

9. The photoelectric sampling circuit according to claim 1, characterized in that: The reflective module includes a counting wheel and a reflective sticker; The reflective sticker is arranged on the counting wheel, and is used for reflecting the light emitted by the photoelectric transmitting module to the photoelectric receiving module when the counting wheel rotates.

10. A counter, characterized in that: The invention comprises the photoelectric sampling circuit as described in any one of claims 1 to 9.