Real-time optical pulse width detection device and detection system

By integrating a real-time optical pulse width detection device on the phototherapy instrument, the photoelectric converter and signal processing module detect the optical pulse width in real time, the problems of low detection efficiency and poor stability in the prior art are solved, and the real-time optical pulse width is realized Monitor and stabilize output, improve safety.

CN119043490APending Publication Date: 2024-11-29WUHAN YAGE OPTIC & ELECTRONICS TECHN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411075254.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The existing strong pulse photon therapy system cannot detect the optical pulse width in real time, resulting in low detection efficiency and the inability to ensure the stable output of the optical pulse width, affecting patient safety.

Method used

A real-time optical pulse width detection device is designed, including a photoelectric converter, a signal processing module, a pulse width detection module and a controller U1. By collecting optical signals and converting them into electrical signals, the pulse square wave signal is generated after processing. The controller is based on The preset pulse width generates a control signal to ensure that the pulse width of the light source output is within the safe range.

Benefits of technology

Real-time detection of optical pulse width is achieved, which improves detection efficiency and convenience, ensures stable output of optical pulse width, and enhances patient safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119043490A_ABST
    Figure CN119043490A_ABST
Patent Text Reader

Abstract

The invention provides a real-time light pulse width detection device and a detection system, which are used for detecting the pulse width of a light signal output by a light therapeutic apparatus in real time, the light therapeutic apparatus comprises a light source and a light source driving circuit for driving the light source to emit light, and a lighting hole is formed in a position, close to the light source, of the light therapeutic apparatus. The real-time light pulse width detection device is arranged at the daylighting hole, the real-time light pulse width detection device comprises a photoelectric converter, a signal processing module, a pulse width detection module and a controller U1, the signal processing module is connected with the photoelectric converter, the pulse width detection module is connected with the signal processing module and the light source driving circuit, and the controller U1 is connected with the controller U1. The controller U1 is connected with the signal processing module, the pulse width detection module and the light source driving circuit. According to the real-time light pulse width detection device provided by the invention, the detection of the light pulse width output by the light therapeutic apparatus by means of external equipment is replaced, and the technical effects of improving the detection efficiency, improving the detection convenience and improving the light pulse width output stability are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical devices, and in particular to a real-time optical pulse width detection device and a detection system. Background Art

[0002] At present, the intense pulsed photon therapy system treats human skin diseases and improves skin conditions by periodically emitting strong light of multiple different wavelengths. The pulse width of the optical signal will directly affect the specific use effect. Under the condition of constant pulse energy, the longer the pulse width, the longer the effect of the laser on the skin tissue and the greater the damage to human tissue. Therefore, during use, the output optical pulse width must be appropriate and stable to ensure the safety of the patient, which is also an important step in the detection of medical equipment.

[0003] Existing intense pulsed photon systems all use external or external instruments, such as oscilloscopes, and light therapy devices do not have the function of detecting the width of light pulses, or can only rely on external instruments for detection, which has low detection efficiency and cannot output stable pulse width.

[0004] That is, how to provide a real-time optical pulse width detection device to achieve the technical effect of real-time detection of optical pulse width, improved detection efficiency and detection convenience is a technical problem that urgently needs to be solved in this field. Summary of the invention

[0005] In view of the above problems, the present invention aims to provide a real-time optical pulse width detection device to at least solve at least one of the above technical problems.

[0006] In the first aspect, the present invention provides a real-time light pulse width detection device, which is used to detect in real time the pulse width of a light signal output by a light therapy device, the light therapy device comprising a light source and a light source driving circuit for driving the light source to emit light, the light therapy device is provided with a light-collecting hole near the light source, the real-time light pulse width detection device is arranged at the light-collecting hole, the real-time light pulse width detection device comprises a photoelectric converter, a signal processing module, a pulse width detection module and a controller U1; the signal processing module is connected to the photoelectric converter, the pulse width detection module is respectively connected to the signal processing module and the light source driving circuit, and the controller U1 is respectively connected to the signal processing module and the light source driving circuit. It is connected with the signal processing module, the pulse width detection module and the light source driving circuit; the photoelectric converter collects the light signal emitted by the light source and converts the light signal into an electrical signal; the signal processing module processes the electrical signal and converts it into a pulse square wave signal and sends it to the controller U1 and the pulse width detection module; the controller U1 generates a pulse width control signal according to a preset pulse width and sends it to the pulse width detection module; the pulse width detection module outputs a laser shut-off signal to the light source driving circuit according to the pulse square wave signal and the pulse width control signal, so that when the actual pulse width of the pulse square wave signal is greater than the preset pulse width, the light source is controlled to shut off the light according to the laser shut-off signal.

[0007] Preferably, the signal processing module includes a preamplifier circuit and a shaping circuit, the preamplifier circuit is connected to the photoelectric converter, the shaping circuit is respectively connected to the preamplifier circuit, the pulse width detection module, and the controller U1, the preamplifier circuit amplifies the electrical signal, and then the shaping circuit generates a pulse square wave signal according to the amplified electrical signal;

[0008] The pulse width detection module includes a pulse width detection circuit and a first isolation circuit. The pulse width detection circuit is respectively connected to the shaping circuit and the controller U1; the first isolation circuit is respectively connected to the pulse width detection circuit, the controller U1, and the light source driving circuit. The pulse width detection circuit generates the laser shutoff signal based on the pulse width control signal and the pulse square wave signal. The first isolation circuit electrically isolates the laser shutoff signal and then sends it to the light source driving circuit.

[0009] Preferably, the real-time optical pulse width detection device further comprises:

[0010] The second isolation circuit is connected between the controller U1 and the light source driving circuit, and is used for electrically isolating the light output pulse control signal generated by the controller U1 and then sending it to the light source driving circuit.

[0011] Preferably, the preamplifier circuit comprises:

[0012] A first operational amplifier U2, wherein an inverting input terminal of the first operational amplifier U2 is connected to the negative electrode of the photoelectric converter, a negative power supply terminal of the first operational amplifier U2 is connected to the positive electrode of the photoelectric converter and is grounded, and a positive power supply terminal of the first operational amplifier U2 is connected to a first power supply VCC;

[0013] A first capacitor C1, one end of the first capacitor C1 is grounded, and the other end of the first capacitor C1 is connected to the first power supply VCC;

[0014] a second capacitor C2, wherein the second capacitor C2 is connected between the output terminal of the first operational amplifier U2 and the inverting input terminal of the first operational amplifier U2;

[0015] A first resistor R1, wherein the first resistor R1 is connected in parallel with the second capacitor C2;

[0016] A first adjustable resistor VR1, wherein the first adjustable resistor VR1 is connected in parallel with the second capacitor C2;

[0017] a second resistor R2, one end of the second resistor R2 is connected to the first power supply VCC, and the other end of the second resistor R2 is connected to the non-inverting input end of the first operational amplifier U2;

[0018] A third resistor R3, one end of the third resistor R3 is connected to the non-inverting input end of the first operational amplifier U2, and the other end of the third resistor R3 is grounded;

[0019] A fourth resistor R4, one end of the fourth resistor R4 is connected to the output end of the first operational amplifier U2, and the other end of the fourth resistor R4 is connected to the shaping circuit.

[0020] Preferably, the shaping circuit comprises:

[0021] A second operational amplifier U3, wherein a non-inverting input terminal of the second operational amplifier U3 is connected to the other end of the fourth resistor R4, and a negative power supply terminal of the second operational amplifier U3 is grounded;

[0022] a fifth resistor R5, one end of which is connected to the first power supply VCC, and the other end of which is connected to the inverting input end of the second operational amplifier U3;

[0023] a sixth resistor R6, one end of the sixth resistor R6 is connected to the inverting input end of the second operational amplifier U3, and the other end of the sixth resistor R6 is grounded;

[0024] a seventh resistor R7, one end of the seventh resistor R7 is connected to the output end of the second operational amplifier U3, and the other end of the seventh resistor R7 is respectively connected to the controller U1 and the pulse width detection circuit to output the pulse square wave signal to the controller U1 and the pulse width detection circuit;

[0025] a third capacitor C3, one end of the third capacitor C3 is connected to the first power supply VCC, and the other end of the third capacitor C3 is grounded;

[0026] A fourth capacitor C4, one end of the fourth capacitor C4 is connected to the other end of the seventh resistor R7, and the other end of the fourth capacitor C4 is grounded.

[0027] Preferably, the pulse width detection circuit comprises:

[0028] a fifth capacitor C5, one end of the fifth capacitor C5 being connected to the other end of the seventh resistor R7 to receive the pulse square wave signal output by the shaping circuit;

[0029] A first transistor Q1, wherein a base of the first transistor Q1 is connected to the other end of the fifth capacitor C5, and an emitter of the first transistor Q1 is grounded;

[0030] an eighth resistor R8, wherein the eighth resistor R8 is connected between the base and the emitter of the first transistor Q1;

[0031] A timing chip U4, wherein a first pin of the timing chip U4 is grounded, a second pin of the timing chip U4 is connected to the collector of the first transistor Q1, and a fourth pin and an eighth pin of the timing chip U4 are both connected to the first power supply VCC;

[0032] a ninth resistor R9, wherein the ninth resistor R9 is connected between the first power supply VCC and the seventh pin of the timing chip U4;

[0033] A field effect transistor Q2, wherein the source of the field effect transistor Q2 is connected to the sixth pin of the timing chip U4, and the drain of the field effect transistor Q2 is connected to the seventh pin of the timing chip U4;

[0034] A voltage stabilizing diode D2, wherein the cathode of the voltage stabilizing diode D2 is connected to the gate of the field effect transistor Q2, and the anode of the voltage stabilizing diode D2 is grounded;

[0035] A twelfth resistor R12, the twelfth resistor R12 is connected in parallel with the voltage zener diode D2;

[0036] A sixth capacitor C6, one end of the sixth capacitor C6 is connected to the source of the field effect transistor Q2, and the other end of the sixth capacitor C6 is grounded;

[0037] A seventh capacitor C7, one end of the seventh capacitor C7 is connected to the fifth pin of the timing chip U4, and the other end of the seventh capacitor C7 is grounded;

[0038] A second transistor Q3, an emitter electrode of the second transistor Q3 is respectively connected to the other end of the seventh capacitor C7, the first pin of the timing chip U4, the other end of the sixth capacitor C6, the anode of the voltage stabilizing diode D2, and the emitter electrode of the first transistor Q1, and a collector electrode of the second transistor Q3 is respectively connected to the twelfth pin of the controller U1 and the first isolation circuit to output the laser off signal to the first isolation circuit;

[0039] a tenth resistor R10, one end of the tenth resistor R10 is connected to the thirteenth pin of the controller U1, one end of the fifth capacitor C5, and the other end of the seventh resistor R7, and the other end of the tenth resistor R10 is connected to the collector of the second transistor Q3;

[0040] an eleventh resistor R11, one end of the eleventh resistor R11 is connected to the fourth pin of the timing chip U4, and the other end of the eleventh resistor R11 is connected to the base of the second transistor Q3;

[0041] A thirteenth resistor R13, one end of the thirteenth resistor R13 is connected to the gate of the field effect transistor Q2, and the other end of the thirteenth resistor R13 is connected to the sixteenth pin of the microcontroller to receive the pulse width control signal generated by the controller.

[0042] Preferably, the first isolation circuit comprises:

[0043] A first optical coupler U5, wherein a negative electrode of an input terminal of the first optical coupler U5 is respectively connected to a collector of the second transistor Q3 and a twelfth pin of the controller U1, a positive electrode of an output terminal of the first optical coupler U5 is connected to the light source driving circuit, and a negative electrode of an output terminal of the first optical coupler U5 is grounded;

[0044] a fourteenth resistor R14, one end of the fourteenth resistor R14 is connected to the first power supply VCC, and the other end of the fourteenth resistor R14 is connected to the positive input terminal of the first optical coupler U5;

[0045] A first light emitting diode LED1, wherein the cathode of the first light emitting diode LED1 is connected to the negative electrode of the output terminal of the first optical coupler U5;

[0046] A sixteenth resistor R16, one end of the sixteenth resistor R16 is connected to the anode of the first light emitting diode LED1, and the other end of the sixteenth resistor R16 is connected to the positive output terminal of the first optical coupler U5;

[0047] A fifteenth resistor R15, one end of the fifteenth resistor R15 is respectively connected to the other end of the sixteenth resistor R16, the positive output end of the first optical coupler U5, and the light source driving circuit, and the other end of the fifteenth resistor R15 is connected to the second power supply VDD.

[0048] Preferably, the second isolation circuit comprises:

[0049] A second optical coupler U6, wherein a positive electrode of an output terminal of the second optical coupler U6 is connected to the light source driving circuit, and a negative electrode of an output terminal of the second optical coupler U6 is grounded;

[0050] a seventeenth resistor R17, one end of the seventeenth resistor R17 is connected to the first power supply VCC, and the other end of the seventeenth resistor R17 is connected to the positive input terminal of the second optical coupler U6;

[0051] An eighteenth resistor R18, one end of the eighteenth resistor R18 is connected to the second power supply VDD, and the other end of the eighteenth resistor R18 is connected to the positive output terminal of the second optical coupler U6;

[0052] A second light emitting diode LED2, wherein an anode of the second light emitting diode LED2 is connected to the negative electrode of the input terminal of the second optical coupler U6, and a cathode of the second light emitting diode LED2 is connected to the fifteenth pin of the controller U1.

[0053] Preferably, the real-time optical pulse width detection device further comprises:

[0054] An attenuation plate is arranged between the light source and the photoelectric converter.

[0055] In a second aspect, the present invention provides a real-time optical pulse width detection system, the real-time optical pulse width detection system comprising: a real-time optical pulse width detection device as described in any one of the first aspects.

[0056] A light therapy device, wherein a light-collecting hole is provided on the light therapy device near the light source;

[0057] As described in any one of the first aspects, the real-time light pulse width detection device is arranged at the light-collecting hole of the light therapy device.

[0058] Beneficial effects:

[0059] The present invention provides a real-time optical pulse width detection device, which is used for detecting the pulse width of an optical signal output by a phototherapy device in real time. The phototherapy device includes a light source and a light source driving circuit for driving the light source to emit light. A light-collecting hole is arranged near the light source of the phototherapy device. The real-time optical pulse width detection device is arranged at the light-collecting hole. The real-time optical pulse width detection device includes a photoelectric converter, a signal processing module, a pulse width detection module and a controller U1, wherein the signal processing module is connected to the photoelectric converter, the pulse width detection module is respectively connected to the signal processing module and the light source driving circuit, and the controller U1 is respectively connected to the signal processing module, the pulse width detection module and the light source driving circuit; the photoelectric converter collects the optical signal emitted by the light source and converts the optical signal into an electrical signal, the signal processing module converts the electrical signal into a pulse square wave signal after processing the electrical signal and sends it to the controller U1 and the pulse width detection module, the controller U1 generates an optical pulse control signal according to the pulse square wave signal and sends it to the light source driving circuit, the controller U1 generates a pulse width control signal according to a preset pulse width and sends it to the pulse width detection module, and the pulse width detection module outputs a laser off signal to the light source driving circuit according to the pulse square wave signal and the pulse width control signal. The present application directly loads the light pulse width detection device on the light source of the phototherapy device to perform light pulse width detection in real time, replacing the existing method of detecting the light pulse width output by the phototherapy device with the help of external equipment. The light pulse width can be detected in real time, achieving the technical effect of improving detection efficiency, improving detection convenience, and improving the stability of light pulse width output.

[0060] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0062] Figure 1 A schematic diagram of the structure of a real-time optical pulse width detection device provided in this application;

[0063] Figure 2 A circuit connection diagram of the real-time optical pulse width detection device provided in this application;

[0064] Figure 3 An exploded schematic diagram of a real-time optical pulse width detection device provided in the present application;

[0065] Figure 4 A schematic diagram of the installation of the real-time optical pulse width detection device provided in this application;

[0066] Figure 5 This is an overall schematic diagram of the real-time optical pulse width detection device provided in the present application after installation.

[0067] Reference numerals:

[0068] 1. Light therapy device;

[0069] 11. Light source;

[0070] 12. Lighting hole;

[0071] 2. Attenuation film;

[0072] 31. Preamplifier circuit;

[0073] 32. Shaping circuit;

[0074] 41. Pulse width detection circuit. DETAILED DESCRIPTION

[0075] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention; the "and / or" keyword involved in this implementation represents both and, or. In other words, A and / or B mentioned in the embodiments of this specification represent both A and B, and A or B, and describe the three states of A and B. For example, A and / or B means: only A is included but not B; only B is included but not A; A and B are included.

[0076] Meanwhile, in the embodiments of this specification, when a component is considered to be "connected" to another component, it may be directly connected to the other component or there may be a central component at the same time. When a component is considered to be "set on" another component, it may be directly set on the other component or there may be a central component at the same time.

[0077] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.

[0078] Embodiment 1

[0079] See also Figure 1-5 , this embodiment 1 provides a real-time light pulse width detection device, the real-time light pulse width detection device is used to detect in real time the pulse width of the light signal output by the light therapy device 1, the light therapy device 1 includes a light source and a light source driving circuit that drives the light source to emit light, the light therapy device 1 is provided with a light-collecting hole 12 near the light source, the real-time light pulse width detection device is arranged at the light-collecting hole 12, the real-time light pulse width detection device includes a photoelectric converter, a signal processing module, a pulse width detection module and a controller U1; the signal processing module is connected to the photoelectric converter, the pulse width detection module is respectively connected to the signal processing module and the light source driving circuit, the controller U1 They are respectively connected to the signal processing module, the pulse width detection module and the light source driving circuit; the photoelectric converter collects the light signal emitted by the light source and converts the light signal into an electrical signal; the signal processing module processes the electrical signal and converts it into a pulse square wave signal and sends it to the controller U1 and the pulse width detection module; the controller U1 generates a pulse width control signal according to a preset pulse width and sends it to the pulse width detection module; the pulse width detection module outputs a laser shut-off signal to the light source driving circuit according to the pulse square wave signal and the pulse width control signal, so that when the actual pulse width of the pulse square wave signal is greater than the preset pulse width, the light source is controlled to shut off the light according to the laser shut-off signal.

[0080] Specifically, an embodiment of the present invention provides a real-time light pulse width detection device for detecting the pulse width of a light signal output by a light therapy device 1 in real time. The light therapy device 1 includes a light source and a light source driving circuit for driving the light source to emit light. The light therapy device 1 is provided with a light-collecting hole 12 near the light source. The real-time light pulse width detection device is arranged at the light-collecting hole 12. The real-time light pulse width detection device includes a photoelectric converter, a signal processing module, a pulse width detection module and a controller U1, wherein the signal processing module is connected to the photoelectric converter, the pulse width detection module is respectively connected to the signal processing module and the light source driving circuit, and the controller U1 is connected to the signal processing module, the pulse width detection module, and the light source driving circuit respectively; the photoelectric converter collects the light signal emitted by the light source and converts the light signal into an electrical signal. The signal processing module processes the electrical signal and converts it into a pulse square wave signal and sends it to the controller U1 and the pulse width detection module. The controller U1 generates a pulse width control signal according to the preset pulse width and sends it to the pulse width detection module. The pulse width detection module outputs a laser shutoff signal to the light source driving circuit according to the pulse square wave signal and the pulse width control signal, so that when the actual pulse width of the pulse square wave signal is greater than the preset pulse width, the light source is controlled to shut off the light according to the laser shutoff signal. The embodiment of the present application directly loads the light pulse width detection device at the light source of the phototherapy device 1, and performs light pulse width detection in real time, so as to replace the existing method of detecting the light pulse width output by the phototherapy device 1 with the help of external equipment. The light pulse width can be detected in real time, achieving the technical effect of improving detection efficiency, improving detection convenience, and improving the stability of light pulse width output.

[0081] Further, in a possible implementation, the controller U1 generates a light pulse control signal and sends it to the light source driving circuit to control whether the light source emits light, specifically:

[0082] When the light source driving circuit needs to drive the light source to emit light, the fifteenth pin of the controller U1 outputs a high level (the light emitting pulse control signal is a high level) to keep the light source emitting light, and the thirteenth pin of the controller U1 can detect a pulse square wave signal at this time;

[0083] When the detection of the pulse width detection module fails, the controller U1 calculates the actual pulse based on the pulse square wave signal and compares it with the preset pulse stored in the controller U1. When the actual pulse is greater than the preset pulse, the fifteenth pin of the controller U1 outputs a low level (the light pulse control signal is a low level) to turn off the light source. At this time, the thirteenth pin of the controller U1 cannot detect the pulse square wave signal.

[0084] The light source may be a xenon lamp, and the light signal generated by the emitted light beam is collected by the photoelectric converter D1.

[0085] In a possible implementation, the seventh pin of the microprocessor U1 is connected to the first power supply VCC via a resistor R19, the third pin of the microprocessor U1 is connected to the first power supply VCC via a light-emitting diode LED3 and a resistor R20, the eighth pin of the microprocessor U1 is connected to the first power supply VCC, the ninth pin of the microprocessor U1 is connected to a 2.5V power supply, and a capacitor 15 is connected between the ninth pin and the tenth pin of the microprocessor U1, and the tenth pin of the microprocessor U1 is grounded. The first power supply VCC is connected to a capacitor C16 and a capacitor C14, and the other ends of the capacitor C16 and the capacitor C14 are grounded, so as to filter the first power supply VCC through the capacitor C16 and the capacitor C14.

[0086] like Figure 3-4 As shown, in a possible embodiment, the real-time optical pulse width detection device also includes an attenuation plate 2, which is arranged between the light source and the photoelectric converter D1 to attenuate the strong light emitted by the light source through the attenuation plate 2 to prevent the strong light signal from entering the photoelectric converter D1, causing input signal saturation and causing device damage.

[0087] In a possible implementation, the signal processing module includes a preamplifier circuit 31 and a shaping circuit 32, the preamplifier circuit 31 is connected to the photoelectric converter, the shaping circuit 32 is respectively connected to the preamplifier circuit 31, the pulse width detection module, and the controller U1, the preamplifier circuit amplifies the electrical signal, and then the shaping circuit generates a pulse square wave signal according to the amplified electrical signal;

[0088] The pulse width detection module includes a pulse width detection circuit 41 and a first isolation circuit. The pulse width detection circuit 41 is respectively connected to the shaping circuit 32 and the controller U1; the first isolation circuit is respectively connected to the pulse width detection circuit 41, the controller U1, and the light source driving circuit. The pulse width detection circuit generates the laser shutoff signal based on the pulse width control signal and the pulse square wave signal. The first isolation circuit electrically isolates the laser shutoff signal and then sends it to the light source driving circuit.

[0089] Among them, the preamplifier circuit 31 is used to convert the current signal generated by the photoelectric converter D1 into a voltage signal and amplify it, and the shaping circuit 32 is used to convert the amplified pulse voltage signal into a standard pulse square wave signal. The pulse width detection circuit 41 is used to generate a preset pulse width through a peripheral circuit. When it is detected that the input signal pulse width is greater than the preset pulse width, the pulse width detection circuit 41 outputs a high level through the first isolation circuit to the light source driving circuit, so that the light source can be turned off immediately. The first isolation circuit is used to electrically isolate the pulse width detection circuit 41 from the light source driving circuit, thereby protecting the device while improving the anti-interference ability of the device.

[0090] In a possible implementation, the real-time optical pulse width detection device also includes a second isolation circuit, which is connected between the controller U1 and the light source driving circuit, and the second isolation circuit is used to electrically isolate the light output pulse control signal generated by the controller U1 and send it to the light source driving circuit, so as to electrically isolate the controller U1 and the light source driving circuit through the second isolation circuit.

[0091] like Figure 2 As shown, in a possible implementation manner, the preamplifier circuit 31 includes a first operational amplifier U2, a first capacitor C1, a second capacitor C2, a first resistor R1, a first adjustable resistor VR1, a second resistor R2, a third resistor R3, and a fourth resistor R4, the inverting input terminal of the first operational amplifier U2 is connected to the negative electrode of the photoelectric converter, the negative power supply terminal of the first operational amplifier U2 is connected to the positive electrode of the photoelectric converter and grounded, and the positive power supply terminal of the first operational amplifier U2 is connected to the first power supply VCC; one end of the first capacitor C1 is grounded, and the other end of the first capacitor C1 is connected to the first power supply VCC; the second capacitor C2 is connected to the first between the output end of an operational amplifier U2 and the inverting input end of the first operational amplifier U2; the first resistor R1 is connected in parallel with the second capacitor C2; the first adjustable resistor VR1 is connected in parallel with the second capacitor C2; one end of the second resistor R2 is connected to the first power supply VCC, and the other end of the second resistor R2 is connected to the non-inverting input end of the first operational amplifier U2; one end of the third resistor R3 is connected to the non-inverting input end of the first operational amplifier U2, and the other end of the third resistor R3 is grounded; one end of the fourth resistor R4 is connected to the output end of the first operational amplifier U2, and the other end of the fourth resistor R4 is connected to the shaping circuit 32.

[0092] Specifically, the preamplifier circuit 31 is provided to convert the current signal generated by the photoelectric converter D1 into a voltage signal and amplify the signal.

[0093] like Figure 2As shown, in a possible implementation manner, the shaping circuit 32 includes a second operational amplifier U3, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, a third capacitor C3, and a fourth capacitor C4, the non-inverting input terminal of the second operational amplifier U3 is connected to the other end of the fourth resistor R4, and the negative power supply terminal of the second operational amplifier U3 is grounded; one end of the fifth resistor R5 is connected to the first power supply VCC, and the other end of the fifth resistor R5 is connected to the inverting input terminal of the second operational amplifier U3; one end of the sixth resistor R6 is connected to the second operational amplifier U 3, and the other end of the sixth resistor R6 is grounded; one end of the seventh resistor R7 is connected to the output end of the second operational amplifier U3, and the other end of the seventh resistor R7 is connected to the controller U1 and the pulse width detection circuit 41 respectively, so as to output the pulse square wave signal to the controller U1 and the pulse width detection circuit; one end of the third capacitor C3 is connected to the first power supply VCC, and the other end of the third capacitor C3 is grounded; one end of the fourth capacitor C4 is connected to the other end of the seventh resistor R7, and the other end of the fourth capacitor C4 is grounded.

[0094] Specifically, the shaping circuit 32 is provided to convert the amplified pulse voltage signal into a standard pulse square wave signal.

[0095] like Figure 2As shown, in a possible implementation, the pulse width detection circuit 41 includes a fifth capacitor C5, a first transistor Q1, an eighth resistor R8, a timing chip U4, a ninth resistor R9, a field effect transistor Q2, a voltage regulator diode D2, a twelfth resistor R12, a sixth capacitor C6, a seventh capacitor C7, a second transistor Q3, a tenth resistor R10, an eleventh resistor R11, and a thirteenth resistor R13; one end of the fifth capacitor C5 is connected to the other end of the seventh resistor R7 to receive the pulse square wave signal output by the shaping circuit; the base of the first transistor Q1 is connected to the other end of the fifth capacitor C5, and the emitter of the first transistor Q1 is grounded; the eighth resistor R8 connected between the base and the emitter of the first triode Q1; the first pin of the timing chip U4 is grounded, the second pin of the timing chip U4 is connected to the collector of the first triode Q1, and the fourth pin and the eighth pin of the timing chip U4 are both connected to the first power supply VCC; the ninth resistor R9 is connected between the first power supply VCC and the seventh pin of the timing chip U4; the source of the field effect tube Q2 is connected to the sixth pin of the timing chip U4, and the drain of the field effect tube Q2 is connected to the seventh pin of the timing chip U4; the cathode of the voltage regulator diode D2 is connected to the gate of the field effect tube Q2, and the anode of the voltage regulator diode D2 is grounded; The twelfth resistor R12 is connected in parallel with the voltage-stabilizing diode D2; one end of the sixth capacitor C6 is connected to the source of the field effect transistor Q2, and the other end of the sixth capacitor C6 is grounded; one end of the seventh capacitor C7 is connected to the fifth pin of the timing chip U4, and the other end of the seventh capacitor C7 is grounded; the emitter electrode of the second transistor Q3 is respectively connected to the other end of the seventh capacitor C7, the first pin of the timing chip U4, the other end of the sixth capacitor C6, the anode of the voltage-stabilizing diode D2, and the emitter electrode of the first transistor Q1, and the collector of the second transistor Q3 is respectively connected to the twelfth pin of the controller U1 and the first isolation circuit to provide the first transistor Q3 with a first voltage-stabilizing diode D2. An isolation circuit outputs the laser off signal; one end of the tenth resistor R10 is connected to the thirteenth pin of the controller U1, one end of the fifth capacitor C5, and the other end of the seventh resistor R7, and the other end of the tenth resistor R10 is connected to the collector of the second transistor Q3; one end of the eleventh resistor R11 is connected to the fourth pin of the timing chip U4, and the other end of the eleventh resistor R11 is connected to the base of the second transistor Q3; one end of the thirteenth resistor R13 is connected to the gate of the field effect transistor Q2, and the other end of the thirteenth resistor R13 is connected to the sixteenth pin of the microcontroller to receive the pulse width control signal generated by the controller.

[0096] Specifically, the fifth capacitor C5 and the eighth resistor R8 form a differential circuit to realize the differential operation of the signal. The timing chip U4, the field effect tube Q2, the ninth resistor R9, and the sixth capacitor C6 form a monostable timing circuit, and the controller U1 is used to adjust the on-state internal resistance of the field effect tube Q2, so that the monostable timing circuit generates a preset timing time according to the preset pulse width. The preset timing time is equal to the preset pulse width and is set to Td.

[0097] The pulse square wave signal to be tested is added to the differential (C5, R8) and amplifier circuit (Q1) in one path, and is added to the collector circuit of the second transistor Q3 after passing through the tenth resistor R10 in the other path. The signal after differential amplification triggers the timing chip U4 to set its position, so that its third pin outputs a positive pulse with a preset pulse width, and its preset pulse width is the timing time of the monostable circuit, that is, Td=1.1RC (R is the sum of the internal resistance of the ninth resistor R9 and the field effect tube Q2, and C represents the capacitance of the sixth capacitor C6), and the positive pulse is added to the base of Q3, so during the detection period, Q3 is saturated and turned on, and the collector (Vout) is at a low level. At this time, the light-emitting end of the first optical coupler U5 is turned on, and the laser shutdown signal (SHUTDOWN) is low, and the laser can be output normally. If the detected pulse width is greater than the preset pulse width Td, the collector (Vout) will be at a high level because the collector voltage application time of Q3 is greater than the base bias time Td, indicating that the detected pulse width exceeds the set value. At this time, the input end (light-emitting end) of the first optocoupler U5 is not conducting, and the laser shutdown signal (SHUTDOWN) is high. At this time, the laser light is turned off, and the warning indicator LED1 lights up. The high level of Vout is also sent to the microcontroller port, the fault is recorded and prompted on the external display screen.

[0098] like Figure 2As shown, in a possible implementation manner, the first isolation circuit includes a first optical coupler U5, a fourteenth resistor R14, a first light-emitting diode LED1, a sixteenth resistor R16, and a fifteenth resistor R15, the negative electrode of the input end of the first optical coupler U5 is respectively connected to the collector of the second transistor Q3 and the twelfth pin of the controller U1, the positive electrode of the output end of the first optical coupler U5 is connected to the light source driving circuit, and the negative electrode of the output end of the first optical coupler U5 is grounded; one end of the fourteenth resistor R14 is connected to the first power supply VCC, and the other end of the fourteenth resistor R14 is connected to the first power supply VCC. The first end of the sixteenth resistor R16 is connected to the positive electrode of the input terminal of the first optocoupler U5; the cathode of the first light-emitting diode LED1 is connected to the negative electrode of the output terminal of the first optocoupler U5; one end of the sixteenth resistor R16 is connected to the anode of the first light-emitting diode LED1, and the other end of the sixteenth resistor R16 is connected to the positive electrode of the output terminal of the first optocoupler U5; one end of the fifteenth resistor R15 is respectively connected to the other end of the sixteenth resistor R16, the positive electrode of the output terminal of the first optocoupler U5, and the light source driving circuit, and the other end of the fifteenth resistor R15 is connected to the second power supply VDD.

[0099] Specifically, when the collector of the second transistor Q3 outputs a low level, the input end (light-emitting side) of the first optocoupler U5 is connected, and at the same time, the output end of the first optocoupler U5 is connected. At this time, the level of the positive electrode of the output end of the first optocoupler U5 is pulled low, and the light source driving circuit turns off the light source after receiving the low-level signal, and the first light-emitting diode LED1 is off; and when the collector of the second transistor Q3 outputs a high level, the input end and output end of the first optocoupler U5 are not connected, and the level of the positive electrode of the output end of the first optocoupler U5 is pulled high. At this time, the light source driving circuit starts the light source after receiving the high-level signal. Among them, the conduction of the first isolation circuit and the level output of the collector of the second transistor Q3 can be monitored by the first light-emitting diode LED1 turning on and off, and the first optocoupler U5 plays a role in electrical isolation.

[0100] like Figure 2As shown, in a possible implementation, the second isolation circuit includes a second optocoupler U6, a seventeenth resistor R17, an eighteenth resistor R18, and a second light-emitting diode LED2, the positive electrode of the output end of the second optocoupler U6 is connected to the light source driving circuit, and the negative electrode of the output end of the second optocoupler U6 is grounded; one end of the seventeenth resistor R17 is connected to the first power supply VCC, and the other end of the seventeenth resistor R17 is connected to the positive electrode of the input end of the second optocoupler U6; one end of the eighteenth resistor R18 is connected to the second power supply VDD, and the other end of the eighteenth resistor R18 is connected to the positive electrode of the output end of the second optocoupler U6; the anode of the second light-emitting diode LED2 is connected to the negative electrode of the input end of the second optocoupler U6, and the cathode of the second light-emitting diode LED2 is connected to the fifteenth pin of the controller U1.

[0101] Specifically, when the fifteenth pin of the controller U1 outputs a low level, the input end (light-emitting side) of the second optocoupler U6 is connected, and the second light-emitting diode LED2 is on, and the output end of the second optocoupler U6 is connected, and the level of the positive electrode of the output end of the second optocoupler U6 is pulled low, and the light source driving circuit receives a low-level signal and turns off the light source. When the fifteenth pin of the controller U1 outputs a high level, the input end (light-emitting side) of the second optocoupler U6 is not connected, and the second light-emitting diode LED2 is off, and the output end of the second optocoupler U6 is disconnected, and the level of the positive electrode of the output end of the second optocoupler U6 is pulled high, and the light source driving circuit receives a high-level signal and starts the light source to emit light. Among them, the conduction of the second isolation circuit and the level of the fifteenth pin of the controller U1 can be monitored by the second light-emitting diode LED2 being on, and the second optocoupler U6 plays a role in electrical isolation.

[0102] In a possible implementation manner, the signal output terminal of the controller U1 is connected to an external display screen, so that the pulse square wave signal and the actual pulse width of the pulse square wave signal are displayed on the screen through the external display screen.

[0103] In a possible implementation manner, the supply voltages of the first power source VCC and the second power source VDD are both 5V; and the photoelectric converter D1 is a photodiode.

[0104] In a possible implementation, the photoelectric converter and the first operational amplifier U2 can use an integrated chip with model OPT101, the second operational amplifier U3 can use model LM321, the timing chip U4 can use model NE555, the controller U1 can use model STC8H1K08, the first optocoupler U5 and the second optocoupler U6 can use model PC817, the first transistor Q1 and the second transistor Q3 can use model S8050, and the field effect transistor Q2 can use model A03400.

[0105] It should be noted that the present application is an optimization performed on the handpiece corresponding to the light therapy device 11 (intense photon pulse therapy device). An attenuation plate 22 and a photoelectric converter D1 are added to the outer periphery of the center of the xenon lamp tube of the handpiece. When the light therapy device 11 handpiece is started, the xenon lamp is turned on, and the light signal is collected into the photoelectric converter D1 through the light hole 1212. The current signal generated by the photoelectric converter is then converted into a voltage signal and amplified through the preamplifier circuit 31. The amplified pulse voltage signal is then converted into a pulse square wave signal through the rectifier circuit, and the pulse square wave signal is transmitted to the controller U1 and the pulse width detection circuit 41.

[0106] After the controller U1 receives the pulse square wave signal:

[0107] On the one hand, the pulse square wave signal is displayed in real time through an external display screen, and the pulse width of the pulse square wave signal is calculated and the result is displayed through the external display screen. The actual pulse width calculation process is as follows: the positive pulse width of the pulse square wave signal is collected, and the input capture rising edge detection is first performed to record the time count value of the current rising edge, and then the input capture falling edge detection is performed to record the time count value of the current falling edge. The pulse width can be calculated based on the difference between the two time count values ​​and the counting frequency; when the controller U1 does not detect the pulse square wave signal, the controller U1 generates a high-level light-emitting pulse control signal, then LIGH The T_PULSE terminal is at a high level, and the light source driving circuit can control the light source to turn on after receiving the high-level signal; when the controller U1 detects a pulse square wave signal, and the calculated actual pulse width of the pulse square wave signal is greater than the preset pulse width or the light therapy device 1 fails, a low-level light output pulse control signal is generated by the controller U1, and the LIGHT_PULSE terminal is at a low level and sent to the light source driving circuit to control the light source to turn off. Since this process takes a long time and the pulse width cannot be accurately output controlled, it can be used as a backup control method when the pulse width control module fails to further ensure the safety of the light therapy device 1.

[0108] On the other hand, after the controller U1 receives the pulse square wave signal, the controller U1 generates a pulse width control signal according to the preset pulse width and sends it to the pulse width detection module. The pulse width control signal output to the pulse width detection circuit 41 is used to adjust the on-state internal resistance of the field effect tube Q2, so that the timing chip U4, the field effect tube Q2, the ninth resistor R9, and the sixth capacitor C6 form a monostable timing circuit and form the preset pulse width Td set by the controller U1. The collector of the second transistor Q3 applies the actual pulse width of the actual pulse square wave signal, and the base of the second transistor Q3 applies the preset pulse width. When the pulse width of the actual pulse square wave signal is greater than the preset pulse width, the SHUTDOWN terminal immediately outputs a high level, so that the light source can be quickly turned off, thereby realizing the precise control of the light pulse width of the light therapy device 1 and improving the stability of the light pulse width output.

[0109] The real-time optical pulse width detection devices provided in the present application are all formed by micro devices, and can be used for real-time detection of light energy in a small space such as a handpiece of a light therapy device 11 .

[0110] Embodiment 2

[0111] Based on the same inventive concept as the above-mentioned embodiment 1, the present embodiment 2 provides a real-time optical pulse width detection system, which includes a phototherapy device 1 and the real-time optical pulse width detection device in the above-mentioned embodiment 1. A light-collecting hole 12 is provided on the phototherapy device 1 near the light source 11, and the real-time optical pulse width detection device is arranged at the light-collecting hole 12 of the phototherapy device 1. Those skilled in the art can understand that since the system provided by the present embodiment 2 includes the real-time optical pulse width detection device in the above-mentioned embodiment 1, the system of the present embodiment 2 also has a technical effect. Since the present embodiment 2 includes the real-time optical pulse width detection device in the embodiment 1, it is sufficient to refer to the embodiment 1 for the part not described in detail in the embodiment 2, and this embodiment will not be repeated.

[0112] It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention, so they have no substantial technical significance. Any modification of the structure, change of the proportion relationship or adjustment of the size should still fall within the scope of the technical content disclosed by the present invention without affecting the effects and purposes that can be achieved by the present invention. At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of description, and are not used to limit the scope of the implementation of the present invention. The change or adjustment of their relative relationship should also be regarded as the scope of the implementation of the present invention without substantially changing the technical content.

[0113] The above is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of the technical solution of the present invention.

Claims

1. A real-time optical pulse width detection device, characterized in that: The real-time optical pulse width detection device is used to detect in real time the pulse width of the optical signal output by the optical therapy device, the optical therapy device comprises a light source and a light source driving circuit for driving the light source to emit light, the optical therapy device is provided with a light-collecting hole near the light source, the real-time optical pulse width detection device is arranged at the light-collecting hole, and the real-time optical pulse width detection device comprises: Photoelectric converter, signal processing module, pulse width detection module and controller U1; The signal processing module is connected to the photoelectric converter, the pulse width detection module is respectively connected to the signal processing module and the light source driving circuit, and the controller U1 is respectively connected to the signal processing module, the pulse width detection module, and the light source driving circuit; the photoelectric converter collects the light signal emitted by the light source and converts the light signal into an electrical signal, the signal processing module processes the electrical signal and converts it into a pulse square wave signal and sends it to the controller U1 and the pulse width detection module, the controller U1 generates a pulse width control signal according to a preset pulse width and sends it to the pulse width detection module, the pulse width detection module outputs a laser shut-off signal to the light source driving circuit according to the pulse square wave signal and the pulse width control signal, so that when the actual pulse width of the pulse square wave signal is greater than the preset pulse width, the light source is controlled to shut off the light according to the laser shut-off signal.

2. The real-time optical pulse width detection device according to claim 1, characterized in that: The signal processing module includes a preamplifier circuit and a shaping circuit, the preamplifier circuit is connected to the photoelectric converter, the shaping circuit is respectively connected to the preamplifier circuit, the pulse width detection module, and the controller U1, the preamplifier circuit amplifies the electrical signal, and then the shaping circuit generates a pulse square wave signal according to the amplified electrical signal; The pulse width detection module includes a pulse width detection circuit and a first isolation circuit. The pulse width detection circuit is respectively connected to the shaping circuit and the controller U1; the first isolation circuit is respectively connected to the pulse width detection circuit, the controller U1, and the light source driving circuit. The pulse width detection circuit generates the laser shutoff signal based on the pulse width control signal and the pulse square wave signal. The first isolation circuit electrically isolates the laser shutoff signal and then sends it to the light source driving circuit.

3. The real-time optical pulse width detection device according to claim 2, characterized in that: The real-time optical pulse width detection device also includes: The second isolation circuit is connected between the controller U1 and the light source driving circuit, and is used for electrically isolating the light output pulse control signal generated by the controller U1 and then sending it to the light source driving circuit.

4. The real-time optical pulse width detection device according to claim 3, characterized in that: The preamplifier circuit comprises: A first operational amplifier U2, wherein an inverting input terminal of the first operational amplifier U2 is connected to the negative electrode of the photoelectric converter, a negative power supply terminal of the first operational amplifier U2 is connected to the positive electrode of the photoelectric converter and is grounded, and a positive power supply terminal of the first operational amplifier U2 is connected to a first power supply VCC; A first capacitor C1, one end of the first capacitor C1 is grounded, and the other end of the first capacitor C1 is connected to the first power supply VCC; a second capacitor C2, wherein the second capacitor C2 is connected between the output terminal of the first operational amplifier U2 and the inverting input terminal of the first operational amplifier U2; A first resistor R1, wherein the first resistor R1 is connected in parallel with the second capacitor C2; A first adjustable resistor VR1, wherein the first adjustable resistor VR1 is connected in parallel with the second capacitor C2; a second resistor R2, one end of the second resistor R2 is connected to the first power supply VCC, and the other end of the second resistor R2 is connected to the non-inverting input end of the first operational amplifier U2; A third resistor R3, one end of the third resistor R3 is connected to the non-inverting input end of the first operational amplifier U2, and the other end of the third resistor R3 is grounded; A fourth resistor R4, one end of the fourth resistor R4 is connected to the output end of the first operational amplifier U2, and the other end of the fourth resistor R4 is connected to the shaping circuit.

5. The real-time optical pulse width detection device according to claim 4, characterized in that: The shaping circuit comprises: A second operational amplifier U3, wherein a non-inverting input terminal of the second operational amplifier U3 is connected to the other end of the fourth resistor R4, and a negative power supply terminal of the second operational amplifier U3 is grounded; a fifth resistor R5, one end of which is connected to the first power supply VCC, and the other end of which is connected to the inverting input end of the second operational amplifier U3; a sixth resistor R6, one end of the sixth resistor R6 is connected to the inverting input end of the second operational amplifier U3, and the other end of the sixth resistor R6 is grounded; a seventh resistor R7, one end of the seventh resistor R7 is connected to the output end of the second operational amplifier U3, and the other end of the seventh resistor R7 is respectively connected to the controller U1 and the pulse width detection circuit to output the pulse square wave signal to the controller U1 and the pulse width detection circuit; a third capacitor C3, one end of the third capacitor C3 is connected to the first power supply VCC, and the other end of the third capacitor C3 is grounded; A fourth capacitor C4, one end of the fourth capacitor C4 is connected to the other end of the seventh resistor R7, and the other end of the fourth capacitor C4 is grounded.

6. The real-time optical pulse width detection device according to claim 5, characterized in that: The pulse width detection circuit comprises: a fifth capacitor C5, one end of the fifth capacitor C5 being connected to the other end of the seventh resistor R7 to receive the pulse square wave signal output by the shaping circuit; A first transistor Q1, wherein a base of the first transistor Q1 is connected to the other end of the fifth capacitor C5, and an emitter of the first transistor Q1 is grounded; an eighth resistor R8, wherein the eighth resistor R8 is connected between the base and the emitter of the first transistor Q1; A timing chip U4, wherein a first pin of the timing chip U4 is grounded, a second pin of the timing chip U4 is connected to the collector of the first transistor Q1, and a fourth pin and an eighth pin of the timing chip U4 are both connected to the first power supply VCC; a ninth resistor R9, wherein the ninth resistor R9 is connected between the first power supply VCC and the seventh pin of the timing chip U4; A field effect transistor Q2, wherein the source of the field effect transistor Q2 is connected to the sixth pin of the timing chip U4, and the drain of the field effect transistor Q2 is connected to the seventh pin of the timing chip U4; A voltage stabilizing diode D2, wherein the cathode of the voltage stabilizing diode D2 is connected to the gate of the field effect transistor Q2, and the anode of the voltage stabilizing diode D2 is grounded; A twelfth resistor R12, the twelfth resistor R12 is connected in parallel with the voltage zener diode D2; A sixth capacitor C6, one end of the sixth capacitor C6 is connected to the source of the field effect transistor Q2, and the other end of the sixth capacitor C6 is grounded; A seventh capacitor C7, one end of the seventh capacitor C7 is connected to the fifth pin of the timing chip U4, and the other end of the seventh capacitor C7 is grounded; A second transistor Q3, an emitter electrode of the second transistor Q3 is respectively connected to the other end of the seventh capacitor C7, the first pin of the timing chip U4, the other end of the sixth capacitor C6, the anode of the voltage stabilizing diode D2, and the emitter electrode of the first transistor Q1, and a collector electrode of the second transistor Q3 is respectively connected to the twelfth pin of the controller U1 and the first isolation circuit to output the laser off signal to the first isolation circuit; a tenth resistor R10, one end of the tenth resistor R10 is connected to the thirteenth pin of the controller U1, one end of the fifth capacitor C5, and the other end of the seventh resistor R7, and the other end of the tenth resistor R10 is connected to the collector of the second transistor Q3; an eleventh resistor R11, one end of the eleventh resistor R11 is connected to the fourth pin of the timing chip U4, and the other end of the eleventh resistor R11 is connected to the base of the second transistor Q3; A thirteenth resistor R13, one end of the thirteenth resistor R13 is connected to the gate of the field effect transistor Q2, and the other end of the thirteenth resistor R13 is connected to the sixteenth pin of the microcontroller to receive the pulse width control signal generated by the controller.

7. The real-time optical pulse width detection device according to claim 6, characterized in that: The first isolation circuit comprises: A first optical coupler U5, wherein a negative electrode of an input terminal of the first optical coupler U5 is respectively connected to a collector of the second transistor Q3 and a twelfth pin of the controller U1, a positive electrode of an output terminal of the first optical coupler U5 is connected to the light source driving circuit, and a negative electrode of an output terminal of the first optical coupler U5 is grounded; a fourteenth resistor R14, one end of the fourteenth resistor R14 is connected to the first power supply VCC, and the other end of the fourteenth resistor R14 is connected to the positive input terminal of the first optical coupler U5; A first light emitting diode LED1, wherein the cathode of the first light emitting diode LED1 is connected to the negative electrode of the output terminal of the first optical coupler U5; A sixteenth resistor R16, one end of the sixteenth resistor R16 is connected to the anode of the first light emitting diode LED1, and the other end of the sixteenth resistor R16 is connected to the positive output terminal of the first optical coupler U5; A fifteenth resistor R15, one end of the fifteenth resistor R15 is respectively connected to the other end of the sixteenth resistor R16, the positive output end of the first optical coupler U5, and the light source driving circuit, and the other end of the fifteenth resistor R15 is connected to the second power supply VDD.

8. The real-time optical pulse width detection device according to claim 7, characterized in that: The second isolation circuit comprises: A second optical coupler U6, wherein a positive electrode of an output terminal of the second optical coupler U6 is connected to the light source driving circuit, and a negative electrode of an output terminal of the second optical coupler U6 is grounded; a seventeenth resistor R17, one end of the seventeenth resistor R17 is connected to the first power supply VCC, and the other end of the seventeenth resistor R17 is connected to the positive input terminal of the second optical coupler U6; An eighteenth resistor R18, one end of the eighteenth resistor R18 is connected to the second power supply VDD, and the other end of the eighteenth resistor R18 is connected to the positive output terminal of the second optical coupler U6; A second light emitting diode LED2, wherein an anode of the second light emitting diode LED2 is connected to the negative electrode of the input terminal of the second optical coupler U6, and a cathode of the second light emitting diode LED2 is connected to the fifteenth pin of the controller U1.

9. The real-time optical pulse width detection device according to claim 8, characterized in that: The real-time optical pulse width detection device also includes: An attenuation plate is arranged between the light source and the photoelectric converter.

10. A real-time optical pulse width detection system, characterized in that: The system comprises: A light therapy device, wherein a light-collecting hole is provided on the light therapy device near the light source; The real-time light energy detection device as described in any one of claims 1-9, wherein the real-time light energy detection device is arranged at the light-collecting hole of the light therapy device.