LED lamp detection circuit

By designing the LED lamp detection circuit, the periodic pulse signal controlled by a microcontroller is used to detect the light emission and insertion state of the LED lamp, the problem of the inability to detect the light emission of the LED lamp in the prior art is solved, and a stable and flexible detection method is realized.

CN114895167BActive Publication Date: 2025-08-19NANJING UNIV OF INFORMATION SCI & TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210517843.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-13
Publication Date
2025-08-19
Estimated Expiration
2042-05-13

AI Technical Summary

Technical Problem

In the prior art, it is impossible to effectively detect whether the LED lamp emits light. It is mainly based on the multimeter to measure the resistance value and cannot determine the luminous state of the LED lamp.

Method used

An LED lamp detection circuit is designed, including a light emitting detection circuit and a placement detection circuit. The output signal controlled by the microcontroller is used to perform periodic pulse signal detection. The light emitting detection circuit is used to determine whether the LED lamp is emitting light, and the placement detection circuit is used to determine whether the LED lamp is inserted correctly.

Benefits of technology

It realizes simple and stable LED lamp detection, adjustable output signal cycle, strong adaptability, and can accurately judge the luminous state and insertion state of the LED lamp.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114895167B_ABST
    Figure CN114895167B_ABST
Patent Text Reader

Abstract

The present invention discloses an LED lamp detection circuit, comprising a single-chip microcomputer, a light emission detection circuit, and a placement detection circuit. The light emission detection circuit and placement detection circuit are electrically connected to the single-chip microcomputer. The light emission detection circuit is used to detect whether the LED lamp is emitting light, and the placement detection circuit is used to detect whether the LED lamp is placed in the detection circuit. The circuit structure of the present invention is simple and has stable operating performance. The output signal controlled by the single-chip microcomputer is a periodically changing pulse signal, and the period of the pulse signal can be arbitrarily adjusted according to different parameters of the LED, thus providing strong adaptability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an LED lamp detection circuit, belonging to the technical field of electronic information. Background Art

[0002] The current method of testing the quality of LED light-emitting diodes is to use a multimeter to measure the forward and reverse resistance of the LED to roughly estimate the quality of the LED, but it cannot determine whether the LED can emit light normally.

[0003] Therefore, there is an urgent need for an LED lamp detection instrument or method to perform luminescence detection on LED lamps. Summary of the Invention

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and provide an LED lamp detection circuit to solve the problem in the prior art that LED lamps cannot perform light emission detection.

[0005] To solve the above technical problems, the present invention is implemented by adopting the following solutions:

[0006] An LED lamp detection circuit includes a single-chip microcomputer, a light-emitting detection circuit and a placement detection circuit; the light-emitting detection circuit and the placement detection circuit are electrically connected to the single-chip microcomputer, the light-emitting detection circuit is used to detect whether the LED lamp is emitting light, and the placement detection circuit is used to detect whether the LED lamp is placed in the detection circuit.

[0007] Preferably, the luminescence detection circuit includes the P2.0 port of the single-chip microcomputer, the P2.1 port of the single-chip microcomputer, the resistor R1, the resistor R2, the resistor R3, the resistor R4, the transistor Q1 and the transistor Q2, the P2.0 port of the single-chip microcomputer is electrically connected to the base of the transistor Q1 and one end of the resistor R1, the other end of the resistor R1 is electrically connected to the positive pole of the power supply and one end of the resistor R2, the other end of the resistor R2 is electrically connected to the collector of the transistor Q1, the P2.1 port of the single-chip microcomputer is electrically connected to the base of the transistor Q2 and one end of the resistor R3, the other end of the resistor R3 is electrically connected to the positive pole of the power supply and one end of the resistor R4, the other end of the resistor R4 is electrically connected to the collector of the transistor Q2, and the emitter of the transistor Q1 is electrically connected to the emitter of the transistor Q2 and the negative pole of the power supply.

[0008] Preferably, the insertion detection circuit includes two metal buckles A and B, a transistor Q3, a field effect transistor Q4, a resistor R5, a resistor R6, a resistor R8, a capacitor C4 and a P1.0 port of a single-chip microcomputer. The two metal buckles A and B include a moving contact piece and a static contact piece. The static contact piece of the metal buckle A is electrically connected to the collector of the transistor Q1 and one end of the resistor R5. The moving contact piece of the metal buckle A is electrically connected to the base of the transistor Q3 and one end of the capacitor C4. The other end of the resistor R5 is electrically connected to the collector of the transistor Q1 and one end of the resistor R5. One end of resistor R6, one end of R8 and the positive electrode of the power supply are electrically connected, the other end of resistor R6 is electrically connected to the collector of transistor Q3 and the gate of field effect transistor Q4, the emitter of transistor Q3 is electrically connected to the other end of capacitor C4 and the negative electrode of the power supply, the drain of field effect transistor Q4 is electrically connected to the other end of resistor R8 and the P1.0 port of the microcontroller, the source of field effect transistor Q4 is electrically connected to the negative electrode of the power supply, and the static contact piece of metal buckle B is electrically connected to the collector of transistor Q2.

[0009] Preferably, the moving contact pieces and the static contact pieces of the two metal buckles A and B are separated from each other by air.

[0010] Preferably, the capacitor C4 is used to filter out the pulse signal generated by the P2.0 port of the single chip microcomputer.

[0011] Preferably, the single chip microcomputer is an AT89S52 single chip microcomputer.

[0012] Compared with the prior art, the present invention has the following beneficial effects: simple circuit structure and stable working performance; and the output signal controlled by the single chip microcomputer is a periodically changing pulse signal, the period of the pulse signal can be adjusted arbitrarily with different parameters of the LED, and has strong adaptability. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a circuit connection diagram of an LED lamp detection circuit provided by an embodiment of the present invention; DETAILED DESCRIPTION

[0014] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention and are not intended to limit the scope of protection of the present invention.

[0015] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention.

[0016] like Figure 1 As shown, the present invention provides an LED lamp detection circuit, including a single-chip microcomputer, a light-emitting detection circuit and a placement detection circuit; the light-emitting detection circuit and the placement detection circuit are electrically connected to the single-chip microcomputer, the light-emitting detection circuit is used to detect whether the LED lamp is emitting light, and the placement detection circuit is used to detect whether the LED lamp is placed in the detection circuit. The selected single-chip microcomputer is AT89S52 single-chip microcomputer.

[0017] Among them, the luminescence detection circuit includes the P2.0 port of the microcontroller, the P2.1 port of the microcontroller, the resistor R1, the resistor R2, the resistor R3, the resistor R4, the transistor Q1 and the transistor Q2. The P2.0 port of the microcontroller is electrically connected to the base of the transistor Q1 and one end of the resistor R1, the other end of the resistor R1 is electrically connected to the positive pole of the power supply and one end of the resistor R2, the other end of the resistor R2 is electrically connected to the collector of the transistor Q1, the P2.1 port of the microcontroller is electrically connected to the base of the transistor Q2 and one end of the resistor R3, the other end of the resistor R3 is electrically connected to the positive pole of the power supply and one end of the resistor R4, the other end of the resistor R4 is electrically connected to the collector of the transistor Q2, and the emitter of the transistor Q1 is electrically connected to the emitter of the transistor Q2 and the negative pole of the power supply.

[0018] The detection circuit includes two metal buckles A and B, transistor Q3, field effect transistor Q4, resistor R5, resistor R6, resistor R8, capacitor C4 and P1.0 port of the single chip computer. The two metal buckles A and B include a moving contact piece and a static contact piece. The static contact piece of the metal buckle A is electrically connected to the collector of the transistor Q1 and one end of the resistor R5. The moving contact piece of the metal buckle A is electrically connected to the base of the transistor Q3 and one end of the capacitor C4. The other end of the resistor R5 is electrically connected to one end of the resistor R6, one end of R8 and the positive terminal of the power supply. The collector of the transistor Q3 and the gate of the field-effect transistor Q4 are electrically connected to each other, the other end of the resistor R6 is electrically connected to the collector of the transistor Q3 and the gate of the field-effect transistor Q4, the emitter of the transistor Q3 is electrically connected to the other end of the capacitor C4 and the negative electrode of the power supply, the drain of the field-effect transistor Q4 is electrically connected to the other end of the resistor R8 and the P1.0 port of the microcontroller, the source of the field-effect transistor Q4 is electrically connected to the negative electrode of the power supply, the static contact piece of the B metal buckle is electrically connected to the collector of the transistor Q2, and the moving contact pieces and the static contact pieces of the two metal buckles A and B are separated from each other by air.

[0019] When the two pins of the LED lamp are inserted into the two metal clips A and B respectively, the two metal clips A and B will respectively clamp the two pins of the LED lamp. The moving contact piece and the static contact piece of the metal clip A and one pin of the LED lamp are clamped together, so that the resistor R5 provides a bias voltage for the base of the transistor Q3. If the LED lamp is not placed in the detection circuit, no bias voltage is provided and the circuit has no characteristic display; capacitor C4 is used to filter out the pulse signal generated by the P2.0 port of the microcontroller.

[0020] In addition, in the figure, one side of the microcontroller non-LED lamp detection circuit is connected to the microcontroller's oscillation circuit (including capacitor C1, capacitor C2 and crystal oscillator X1, etc.), which is used to generate the oscillation frequency of the microcontroller; the RST port of the microcontroller is connected to a reset circuit (including power supply, capacitor C3, reset switch and resistor R7, etc.), which is used to reset the microcontroller; the above-mentioned oscillation circuit and reset circuit are both existing technologies, which are used to realize the normal operation of the microcontroller in the present invention.

[0021] Working principle:

[0022] The LED lamp pins are inserted into the two metal clips A and B. After the A clip is stuck with one of the LED pins, the power supply provides a bias voltage to the positive terminal of the transistor Q3 through the resistor R5. The transistor Q3 is turned on to provide a turn-on voltage for the gate of the field effect transistor Q4. The conduction of the field effect transistor Q4 makes the drain potential of the field effect transistor Q4 0v, causing the potential of the P1.0 port of the microcontroller to be 0v. After the potential of the P1.0 port of the microcontroller is 0v, the microcontroller controls the P2.0 and P2.1 ports of the microcontroller to output a certain period of changing pulse current. The changing pulse current output by the P2.0 and P2.1 ports of the microcontroller is amplified by the transistor Q1 and the transistor Q2 respectively and then added to the two pins of the LED lamp to make the normal LED lamp emit light. If the LED lamp is damaged, it will not emit light.

[0023] In summary, the LED lamp detection circuit of the present invention has a simple circuit structure and stable working performance; and the output signal controlled by the single-chip microcomputer is a periodically changing pulse signal, and the period of the pulse signal can be adjusted arbitrarily with different parameters of the LED, and has strong adaptability.

[0024] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. An LED lamp detection circuit, characterized in that: It includes a single-chip microcomputer, a light-emitting detection circuit and a placement detection circuit; the light-emitting detection circuit and the placement detection circuit are electrically connected to the single-chip microcomputer, the light-emitting detection circuit is used to detect whether the LED lamp is emitting light, and the placement detection circuit is used to detect whether the LED lamp is placed in the detection circuit; The luminescence detection circuit includes a P2.0 port of the single-chip microcomputer, a P2.1 port of the single-chip microcomputer, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a transistor Q1 and a transistor Q2, the P2.0 port of the single-chip microcomputer is electrically connected to the base of the transistor Q1 and one end of the resistor R1, the other end of the resistor R1 is electrically connected to the positive electrode of the power supply and one end of the resistor R2, the other end of the resistor R2 is electrically connected to the collector of the transistor Q1, the P2.1 port of the single-chip microcomputer is electrically connected to the base of the transistor Q2 and one end of the resistor R3, the other end of the resistor R3 is electrically connected to the positive electrode of the power supply and one end of the resistor R4, the other end of the resistor R4 is electrically connected to the collector of the transistor Q2, and the emitter of the transistor Q1 is electrically connected to the emitter of the transistor Q2 and the negative electrode of the power supply; The insertion detection circuit includes two metal buckles A and B, a transistor Q3, a field effect transistor Q4, a resistor R5, a resistor R6, a resistor R8, a capacitor C4 and a P1.0 port of a single-chip computer. The two metal buckles A and B include a moving contact piece and a static contact piece. The static contact piece of the metal buckle A is electrically connected to the collector of the transistor Q1 and one end of the resistor R5. The moving contact piece of the metal buckle A is electrically connected to the base of the transistor Q3 and one end of the capacitor C4. The other end of the resistor R5 is electrically connected to one end of the resistor R6, one end of R8 and the positive electrode of the power supply. The other end of the resistor R6 is electrically connected to the collector of the transistor Q3 and the gate of the field effect transistor Q4. The emitter of the transistor Q3 is electrically connected to the other end of the capacitor C4 and the negative electrode of the power supply. The drain of the field effect transistor Q4 is electrically connected to the other end of the resistor R8 and the P1.0 port of the single-chip computer. .0 port is electrically connected, the negative pole of the source power supply of the field effect transistor Q4 is electrically connected, and the static contact piece of the B metal buckle is electrically connected to the collector of the transistor Q2.

2. The LED lamp detection circuit according to claim 1, characterized in that: The moving contact pieces and the stationary contact pieces of the two metal buckles A and B are separated from each other by air.

3. The LED lamp detection circuit according to claim 1, characterized in that: The capacitor C4 is used to filter out the pulse signal generated by the P2.0 port of the single chip microcomputer.

4. The LED lamp detection circuit according to claim 1, characterized in that: The single chip microcomputer is an AT89S52 single chip microcomputer.

Citation Information

Patent Citations

  • LED lamp tube test frame

    CN103901360A