Emergency lamp switch and LED detection circuit

By using a reused design of dual-color LEDs and a single test switch, the problem of independent control of LED indicators and switches in emergency lights was solved, which optimized the MCU pins and PCB wiring, reduced costs and improved production efficiency.

CN224217009UActive Publication Date: 2026-05-08DONGGUAN YIWUTE ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
DONGGUAN YIWUTE ELECTRONICS CO LTD
Filing Date
2025-05-14
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

The existing emergency lights use an independent control scheme for LED indicator lights and switches, which results in high chip resource consumption, complex PCB wiring, high cost and low production efficiency.

Method used

The design utilizes a dual-color LED light and a single test switch, and achieves seamless switching between status indication and switch detection through MCU pin level combination and transistor amplification circuit, reducing the number of MCU pins and PCB openings.

Benefits of technology

It saves 2-3 MCU pins, simplifies PCB wiring, reduces hardware costs, improves production efficiency and equipment sealing, and avoids signal conflicts and display delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224217009U_ABST
    Figure CN224217009U_ABST
Patent Text Reader

Abstract

The utility model provides an emergency lamp switch and LED detection circuit, belonging to the electronic circuit technology field, the emergency lamp switch and LED detection circuit comprises a power supply circuit, an LED detection circuit and an MCU controller U6, the LED detection circuit comprises a double-color LED lamp, a test switch, a resistor R8, a resistor R52, a resistor R53, a resistor R54, a resistor R55 and a triode Q13, the double-color LED lamp comprises a Status LED and a Charge LED, the test switch comprises a resistor R7, a resistor R8, a resistor R52, a resistor R53, a resistor R54, a resistor R55 and a triode Q13, and the test switch comprises a resistor R8, a resistor R8, a resistor R8, a resistor R52, a resistor R53, a one end of the Status LED is connected to a pin 2 of the interface H4 through a resistor R8, one end of the Charge LED is directly connected to a pin 1 of the interface H4, the double-color LED lamp receives a control signal through the interface H4, a base electrode of the triode Q13 is connected to the pin 2 of the interface H4 through a resistor R52 and is grounded to SGND through R54, a pin 22 and a pin 21 of the MCU controller U6 are respectively connected to the interface H4, and on and off of the double-color LED lamp are controlled through level combination. And indicating the system state. The utility model aims to solve the problems of high manufacturing cost and troublesome production because the conventional LED indicating lamp and the switch are separately controlled.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model belongs to the field of electronic circuit technology, specifically relating to an emergency light switch and LED detection circuit. Background Technology

[0002] Emergency lights, as crucial equipment for ensuring public safety, must meet international safety standards (such as IEC 60598), among which LED charging status indicators and emergency function test switches are core and essential functions. In traditional emergency light designs, LED indicators and test switches typically employ independent control schemes: separate red and green LEDs are used to indicate battery abnormalities and charging status respectively, coupled with independent mechanical switches to trigger emergency modes.

[0003] Existing solutions require allocating 4-5 MCU (microcontroller) I / O pins for red and green LEDs and switches, which not only increases chip resource usage but also complicates PCB (printed circuit board) routing, necessitating the additional placement of multiple LED holes and switch circuits. Taking a typical 8-bit MCU as an example, the scarcity of pin resources directly impacts system scalability, while the discrete component design for independent LEDs and switches (such as dual LEDs, multiple resistors, and independent driver circuits) further increases material costs (BOM cost increases by approximately 20%-30%), and the assembly process is cumbersome and production efficiency is low. Utility Model Content

[0004] The purpose of this invention is to provide an emergency light switch and LED detection circuit. This invention aims to solve the problems of existing LED indicator lights and switches being controlled separately, resulting in high manufacturing costs and cumbersome production processes.

[0005] To achieve the above objectives, this utility model provides the following technical solution:

[0006] An emergency light switch and LED detection circuit are disclosed for controlling LED indicator lights and switches. The circuit includes a power supply circuit, an LED detection circuit, and an MCU controller U6. The LED detection circuit includes a dual-color LED, a test switch, resistors R8, R52, R53, R54, and R55, and a transistor Q13. The dual-color LED includes a Status LED and a Charge LED. The dual-color LED is exposed through a single aperture, and different operating states are indicated by switching between red and green colors. The two states can be indicated with only one physical aperture by switching the levels of the red and green light-emitting units inside the dual-color LED, reducing the number of PCB openings and mechanical structure complexity, and lowering the assembly error rate. The Status LED is a green light-emitting unit, indicating normal charging, and the Charge LED is a red light-emitting unit, indicating an abnormal or disconnected battery state. One end of the Status LED is connected to pin 2 of interface H4 via resistor R8. The Charge LED... One end of the LED is directly connected to pin 1 of interface H4. The dual-color LED receives control signals through interface H4. The base of transistor Q13 is connected to pin 2 of interface H4 through resistor R52 and grounded to SGND through R54. The collector of transistor Q13 is connected to one end of resistors R53 and R55. The other ends of these two resistors are connected to a 5V0 power supply to provide a pull-up voltage to the collector. The 5V0 power supply is also grounded to SGND through C32. The 5V0 power supply is generated by the front-end DC-DC conversion circuit (specifically, chip U4 OB2576ALPCP) to provide a stable DC voltage for MCU controller U6, LED detection circuit, and transistor Q1. The emitter of Q13 is directly grounded to SGND. Pins 22 and 21 of MCU controller U6 are connected to interface H4 respectively. The dual-color LED is controlled to turn on and off through level combination to indicate the system status. Filter capacitor C32 is connected in parallel between the 5V0 power supply and ground SGND to filter out high-frequency noise, ensure the collector voltage of transistor Q13 is stable, and avoid false triggering of the switch detection signal.

[0007] In a preferred embodiment of this utility model, pins 22 and 21 of the MCU controller U6 are multiplexed for LED control and switch detection, and the multiplexing logic is as follows:

[0008] Under normal conditions, pins 22 and 21 output opposite levels to control the on / off state of the dual-color LED.

[0009] When testing the switch, pins 22 and 21 output a high level simultaneously, and the switch action is determined by the conduction state of transistor Q13.

[0010] As a preferred embodiment of this utility model, the pins 22 and 21 of the MCU controller U6 output opposite level combinations as follows:

[0011] When charging is in normal condition, pin 22 outputs a low level, pin 21 outputs a high level, and the green LED lights up.

[0012] When the battery is in an abnormal state, pin 22 outputs a high level, pin 21 outputs a low level, and the red LED lights up.

[0013] As a preferred embodiment of this utility model, when the test switch is closed, pins 22 and 21 of the MCU controller U6 both output high levels, the dual-color LED is turned off because there is no voltage difference between the two ends, the base of transistor Q13 is turned on by a high level, and pin 20 of the MCU controller U6 detects a low voltage.

[0014] As a preferred embodiment of this utility model, the MCU controller U6 implements multi-function button detection through the following logic:

[0015] Short press of the test switch (low level duration < 1 second): triggers the system self-test function;

[0016] Press and hold the test switch (low level duration ≥ 3 seconds): Switch emergency lighting mode;

[0017] Press the test switch 6 times consecutively to enter factory test mode;

[0018] Press the test switch 7 times consecutively: trigger the discharge time detection function.

[0019] As a preferred embodiment of this utility model, the dual-color LED light is exposed through a single lamp hole, and different working states are indicated by switching between red and green colors.

[0020] Compared with the prior art, the beneficial effects of this utility model are:

[0021] This solution employs a dual-color LED and a single test switch multiplexing design, requiring only two MCU pins to complete charging status indication (green LED illuminates during charging, red LED illuminates when there is no battery or an abnormality) and multi-functional button detection (long press / short press / trigger emergency mode / power detection, etc.). Compared to existing technologies, this reduces 2-3 MCU pins, significantly saving chip resources and PCB routing space, and lowering hardware costs. By replacing the traditional mechanical opening of red and green dual LEDs with a single LED hole, the structural design is simplified, production steps are reduced, and assembly efficiency and equipment sealing are improved. Utilizing the combined control of MCU pin level combinations and transistor amplifier circuits, seamless switching between status indication and switch detection is achieved, avoiding signal conflicts and display delays in independent control schemes, and improving software logic efficiency. Attached Figure Description

[0022] The accompanying drawings are provided to further illustrate the present invention and form part of the specification. They are used together with the embodiments of the present invention to explain the present invention, but do not constitute a limitation thereof. In the drawings:

[0023] Figure 1 This is a pin diagram of the MCU controller U6 of an emergency light switch and LED detection circuit according to this utility model;

[0024] Figure 2 This is a circuit diagram of an emergency light switch and LED detection circuit according to the present invention.

[0025] Figure 3 The overall principle of this utility model is as follows: an emergency light switch and an LED detection circuit. Figure 1

[0026] Figure 4 The overall principle of this utility model is as follows: an emergency light switch and an LED detection circuit. Figure 2 . Detailed Implementation

[0027] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present utility model, not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present utility model without creative effort are within the scope of protection of the present utility model.

[0028] Example

[0029] Please see Figures 1-4 The present invention provides the following technical solution:

[0030] An emergency light switch and LED detection circuit, used to control LED indicator lights and a switch, includes: a power supply circuit, an LED detection circuit, and an MCU controller U6. The LED detection circuit includes a dual-color LED, a test switch, resistors R8, R52, R53, R54, and R55, and a transistor Q13. The dual-color LED includes a Status LED and a Charge LED. One end of the Status LED is connected to pin 2 of interface H4 via resistor R8. The Charge LED... One end of the LED is directly connected to pin 1 of interface H4. The dual-color LED receives control signals through interface H4. The base of transistor Q13 is connected to pin 2 of interface H4 through resistor R52 and grounded to SGND through R54. The collector of transistor Q13 is connected to one end of resistors R53 and R55. The other ends of these two resistors are connected to a 5V0 power supply to provide a pull-up voltage for the collector. The 5V0 power supply is also grounded to SGND through C32. The emitter of Q13 is directly grounded to SGND. Pins 22 and 21 of the MCU controller U6 are connected to interface H4 respectively. The dual-color LED is controlled to turn on and off through level combinations to indicate the system status.

[0031] Specifically, pins 22 and 21 of the MCU controller U6 are multiplexed for LED control and switch detection, and the multiplexing logic is as follows:

[0032] Under normal conditions, pins 22 and 21 output opposite levels to control the on / off state of the dual-color LED.

[0033] When testing the test switch, the switch action is determined by the conduction state of transistor Q13. When the test switch is closed, pins 22 and 21 of the MCU controller U6 both output a high level, transistor Q13 is turned on, and pin 20 of the MCU controller U6 detects a low voltage.

[0034] Furthermore, the MCU controller U6 outputs the following opposite level combinations for pins 22 and 21:

[0035] When charging is in normal condition, pin 22 outputs a low level, pin 21 outputs a high level, and the green LED lights up.

[0036] When the battery is in an abnormal state, pin 22 outputs a high level, pin 21 outputs a low level, and the red LED lights up.

[0037] Specifically, the MCU controller U6 implements multi-function button detection through the following logic:

[0038] Short press of the test switch (low level duration < 1 second): triggers the system self-test function;

[0039] Press and hold the test switch (low level duration ≥ 3 seconds): Switch emergency lighting mode;

[0040] Press the test switch 6 times consecutively to enter factory test mode;

[0041] Press the test switch 7 times consecutively: trigger the discharge time detection function.

[0042] In practical applications, after the device is connected to AC power, the power supply circuit generates 5V0 power to power the MCU controller U6 and the LED detection circuit. After initialization, the MCU controller U6 detects the battery status through the BAT.ADC signal. If the battery is normal and charging, control pin 22 outputs a low level and pin 21 outputs a high level, causing the Status LED (green) to light up, indicating normal charging. If the battery is not connected or is abnormal, pin 22 outputs a high level and pin 21 outputs a low level, the Charge LED (red) lights up, prohibiting charging and indicating an abnormality. When the user operates the test switch, pressing the switch makes pins 21 / 22 of the MCU controller U6 both high, transistor Q13 conducts, and the MCU detects a low-level signal through pin 20. Based on the duration and number of presses, the corresponding function is triggered: short press <1 second triggers self-test, long press ≥3 seconds switches to emergency mode (disconnects AC power, only battery power), double-click starts battery power detection (feedback through LED flashing frequency), continuous press 6 times enters FT function test, and press 7 times triggers discharge time detection. After the operation is completed and the switch is released, Q13 is cut off, and the LED status returns to the current working mode. If AC power is connected, the device automatically returns from emergency mode to charging mode, and the green LED lights up again. If overcurrent causes fuse F2 to blow during charging, the MCU detects the abnormality, lights up the red LED, and stops charging. The fuse must be replaced and the device restarted. The entire process achieves efficient integration of status indication and switching functions through the coordinated control of MCU pin level combinations and transistor amplifier circuits, ensuring user convenience and system reliability.

[0043] Finally, it should be noted that the above description is merely a preferred embodiment of this utility model and is not intended to limit the utility model. Although the utility model has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this utility model should be included within the protection scope of this utility model.

Claims

1. An emergency light switch and LED detection circuit, used to control an LED indicator and a switch, characterized in that, include: The system comprises a power supply circuit, an LED detection circuit, and an MCU controller U6. The LED detection circuit includes a dual-color LED, a test switch, resistors R8, R52, R53, R54, and R55, and a transistor Q13. The dual-color LED includes a Status LED and a Charge LED. One end of the Status LED is connected to pin 2 of interface H4 via resistor R8, and one end of the Charge LED is directly connected to pin 1 of interface H4. The dual-color LED receives control signals through interface H4. The base of transistor Q13 is connected to pin 2 of interface H4 via resistor R52 and grounded to SGND via R54. The collector of transistor Q13 is connected to one end of resistors R53 and R55. The other ends of these two resistors are connected to a 5V 0V power supply, providing a pull-up voltage to the collector. The 5V 0V power supply is also grounded to SGND via capacitor C32. The emitter of Q13 is directly grounded to SGND. Pins 22 and 21 of the MCU controller U6 are connected to interface H4 respectively, and the dual-color LED is controlled to turn on and off through level combinations to indicate the system status.

2. The emergency light switch and LED detection circuit according to claim 1, characterized in that, Pins 22 and 21 of the MCU controller U6 are multiplexed for LED control and switch detection, and the multiplexing logic is as follows: Under normal conditions, pins 22 and 21 output opposite levels to control the on / off state of the dual-color LED. When testing the switch, pins 22 and 21 output a high level simultaneously, and the switch action is determined by the conduction state of transistor Q13.

3. The emergency light switch and LED detection circuit according to claim 2, characterized in that, The MCU controller U6 outputs the following opposite level combinations for pins 22 and 21: When charging is in normal condition, pin 22 outputs a low level, pin 21 outputs a high level, and the green LED lights up. When the battery is in an abnormal state, pin 22 outputs a high level, pin 21 outputs a low level, and the red LED lights up.

4. The emergency light switch and LED detection circuit according to claim 2, characterized in that, When the test switch is closed, pins 22 and 21 of the MCU controller U6 both output a high level, transistor Q13 is turned on, and pin 20 of the MCU controller U6 detects a low voltage.

5. The emergency light switch and LED detection circuit according to claim 1, characterized in that, The MCU controller U6 implements multi-function button detection through the following logic: Short press the test switch: triggers the system self-test function; Press and hold the test switch to switch the emergency lighting mode; Press the test switch 6 times consecutively to enter factory test mode; Press the test switch 7 times consecutively: trigger the discharge time detection function.

6. The emergency light switch and LED detection circuit according to claim 5, characterized in that, The dual-color LED light is exposed through a single light hole, and different working states are indicated by switching between red and green colors.