CN-224217009-U - Emergency light switch and LED detection circuit
Abstract
The utility model provides an emergency lamp switch and LED detection circuit, which belongs to the technical field of electronic circuits, and comprises a power supply circuit, an LED detection circuit and an MCU controller U6, wherein the LED detection circuit comprises a bicolor 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 bicolor LED lamp comprises Status LEDs and CHARGE LED, one end of the Status LED is connected to a pin 2 of an interface H4 through the resistor R8, one end of the CHARGE LED is directly connected to a pin 1 of the interface H4, the bicolor LED lamp receives a control signal through the interface H4, the base electrode of the triode Q13 is connected to the pin 2 of the interface H4 through the resistor R52 and is grounded SGND through the resistor R54, and a pin 22 and a pin 21 of the MCU controller U6 are respectively connected to the interface H4 and control the bicolor LED lamp to be turned on and off through level combination to indicate the state of the system. The utility model aims to solve the problems of high manufacturing cost and troublesome production caused by separate control of the existing LED indicator lamp and the switch.
Inventors
- Milini Todd
- DANIEL REES
- FANG LIZHI
- YIN CHUNCHENG
- WU WEIHUI
Assignees
- 东莞依沃特电子有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20250514
Claims (6)
- 1. The emergency lamp switch and LED detection circuit is used for controlling an LED indicator lamp and a switch and is characterized by comprising a power supply circuit, an LED detection circuit and an MCU controller U6, wherein the LED detection circuit comprises a bicolor 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 bicolor LED lamp comprises Status LEDs and CHARGE LED, one end of the Status LED is connected to a pin 2 of an interface H4 through the resistor R8, one end of the CHARGE LED is directly connected to a pin 1 of the interface H4, the bicolor LED lamp receives a control signal through the interface H4, a base electrode of the triode Q13 is connected to a pin 2 of the interface H4 through the resistor R52 and is grounded SGND through the resistor R54, a collector electrode of the triode Q13 is connected to one ends of the resistor R53 and the resistor R55, a pull-up voltage is provided for the collector electrode, the 5V0 power supply is also grounded through a C32 SGND, the direct ground pin 22 of the triode Q13 is grounded, and the LED controller U22 and the MCU controller is connected to a LED indicator lamp in a state.
- 2. The emergency light switch and LED detection circuit of claim 1, wherein the pins 22 and 21 of the MCU controller U6 are multiplexed into LED control and switch detection, the multiplexing logic is: In a normal state, the pin 22 and the pin 21 output opposite levels to control the on and off of the bicolor LED lamp; when the test switch is detected, the pin 22 and the pin 21 output high level at the same time, and the switch action is judged by the conducting state of the triode Q13.
- 3. The emergency light switch and LED detection circuit of claim 2, wherein the output of pin 22 and pin 21 of the MCU controller U6 are combined at opposite levels as follows: In a normal state of charge, the pin 22 outputs a low level, the pin 21 outputs a high level, and the green LED is lighted; In the abnormal battery state, the pin 22 outputs a high level, the pin 21 outputs a low level, and the red LED is lighted.
- 4. The emergency light switch and LED detection circuit of claim 2, wherein when the test switch is turned on, both pin 22 and pin 21 of the MCU controller U6 output high, the transistor Q13 is turned on, and pin 20 of the MCU controller U6 detects low voltage.
- 5. The emergency light switch and LED detection circuit of claim 1, wherein the MCU controller U6 implements multi-function key detection by: triggering a system self-checking function by pressing a test switch in a short time; A test switch is pressed for a long time, and an emergency lighting mode is switched; Continuously pressing the test switch for 6 times, namely entering a factory test mode; and continuously pressing the test switch for 7 times to trigger the discharge time detection function.
- 6. The emergency light switch and LED detection circuit of claim 5, wherein the bi-color LED light is exposed through a single light hole and indicates different operating conditions by red-green color switching.
Description
Emergency light switch and LED detection circuit Technical Field The utility model belongs to the technical field of electronic circuits, and particularly relates to an emergency lamp switch and an LED detection circuit. Background The emergency lamp is used as important equipment for guaranteeing public safety, and is required to meet international safety standard (such as IEC 60598), wherein an LED charging state indication and an emergency function test switch are core necessary functions. In the traditional emergency lamp design, an independent control scheme is generally adopted for the LED indicator lamp and the test switch, namely, independent red LEDs and independent green LEDs are used for respectively indicating abnormal battery and charging state, and an independent mechanical switch is matched for realizing emergency mode triggering. The existing scheme needs to allocate 4-5 MCU (micro controller) I/O pins for the red and green LEDs and the switches, not only increases the occupation of chip resources, but also leads to the complexity of PCB (printed circuit board) wiring, and a plurality of LED lamp holes and switch circuits need to be additionally laid out. Taking a typical 8-bit MCU as an example, the scarcity of pin resources directly affects the expansibility of a system, and the design of discrete components (such as double LEDs, multiple resistors and independent driving circuits) of an independent LED and a switch further increases the material cost (the BOM cost is increased by about 20% -30%), and the assembly process is complicated and the production efficiency is low. Disclosure of utility model The utility model aims to provide an emergency lamp switch and an LED detection circuit. The utility model aims to solve the problems of high manufacturing cost and troublesome production caused by separate control of the existing LED indicator lamp and the switch. In order to achieve the above purpose, the present utility model provides the following technical solutions: An emergency light switch and LED detection circuit for controlling LED indicator lights and switches, comprising: the LED detection circuit comprises a bicolor LED lamp, a test switch, a resistor R8, a resistor R52, a resistor R53, a resistor R54, a resistor R55 and a triode Q13, wherein the bicolor LED lamp comprises Status LEDs and CHARGE LED, the bicolor LED lamp is exposed through a single lamp hole, different working states are indicated through red-green color switching, two state indication can be realized through level switching of a red-green light emitting unit in the bicolor LED lamp only by one physical lamp hole, the number of PCB holes and the complexity of a mechanical structure are reduced, the assembly error rate is reduced, the Status LEDs are green light emitting units, the normal state of charge is indicated, the CHARGE LED is a red light emitting unit, the abnormal or unaccessed state of a battery is indicated, one end of the Status LEDs is connected to a pin 2 of an interface H4 through the resistor R8, one end of the Status LEDs is directly connected to a pin 1 of the interface H4, the dual-color LED lamp receives control signals through an interface H4, the base electrode of the triode Q13 is connected to a pin 2 of the interface H4 through a resistor R52 and is grounded through a resistor R54, the collector electrode of the triode Q13 is connected to one ends of R53 and R55, the other ends of the two resistors are commonly connected with a 5V0 power supply, a pull-up voltage is provided for the collector electrode, the 5V0 power supply is also grounded through a C32 SGND, the 5V0 power supply is generated by a front-stage DC-DC conversion circuit (particularly a U4 chip OB2576 ALPCP), a stable DC voltage is provided for an MCU controller U6, an LED detection circuit and a triode Q1, the emitter electrode of the Q13 is directly grounded SGND, the pin 22 and the pin 21 of the MCU controller U6 are respectively connected to the interface H4, the dual-color LED lamp is turned on and off through level combination control, the system state is indicated, a filter capacitor C32 is connected between the 5V0 power supply and the ground SGND in parallel, high-frequency noise is filtered, stable collector voltage of the triode Q13 is ensured, and false triggering of a switch detection signal is avoided. As a preferable scheme of the utility model, the pin 22 and the pin 21 of the MCU controller U6 are multiplexed into LED control and switch detection, and multiplexing logic is as follows: In a normal state, the pin 22 and the pin 21 output opposite levels to control the on and off of the bicolor LED lamp; when the test switch is detected, the pin 22 and the pin 21 output high level at the same time, and the switch action is judged by the conducting state of the triode Q13. As a preferred solution of the present utility model, the output reverse level of the pin 22 and the pin 21 of the MCU controller U6 is comb