A non-mobile indoor light-emitting diode (LED) emergency light in coordination with a long-range (LoRa) gateway, comprising an alternating-current (AC) control device, an emergency control device, a light source assembly, a battery, an auxiliary control board, and a power input interface, wherein a transistor circuit controlled by a pin 10 of a chip of a microcontroller circuit is provided between an output terminal of the AC control device and an LED load;
- during emergency testing, the output terminal of the AC control device is disconnected from the LED load;
- the AC control device, the emergency control device, the battery, and the auxiliary control board are all configured with the light source assembly;
- the emergency control device is provided with a constant-voltage drive circuit, an emergency operating circuit, the microcontroller circuit, and a LoRa module circuit;
- the constant-voltage drive circuit is configured to charge the battery and provide power to a microcontroller in the microcontroller circuit and the LoRa module circuit during normal power supply;
- the emergency operating circuit is powered by the battery to operate;
- the microcontroller of the microcontroller circuit is configured to control a pin 11 to output a high level to a pin DIM of a chip of the emergency operating circuit, allowing the LED load of a light source to operate in an emergency state;
- when the microcontroller circuit is under normal power supply, the constant-voltage drive circuit outputs a voltage, and a voltage regulator chip of the microcontroller circuit outputs a 3.3 V voltage for power supply;
- during emergency operation, the battery generates a 3.3 V voltage through the voltage regulator chip of the microcontroller circuit for power supply;
- among pins used by the microcontroller of the microcontroller circuit, two pins VDD and GND serve as 3.3 V power supply pins for the microcontroller;
- two pins 2 and 3, as data transmission and reception pins TXD and RXD of a serial interface, are respectively connected to pins RXD and TXD of the LoRa module circuit, achieving transparent data transmission with the LoRa module circuit;
- a pin 7 serves as a control pin for an indicator light, and is connected to the indicator light of the auxiliary control board;
- an input/output (I/O) pin 7 of the microcontroller is configured to output signals, causing the indicator light to display different operating states;
- a pin 8 serves as a trigger pin for a test button, and is connected to the test button of the auxiliary control board;
- the I/O pin 8 of the microcontroller is configured to receive a trigger signal from the test button;
- a pin 10 is configured to connect or disconnect the output terminal of the AC control device and the LED load;
- during normal power supply, the pin 10 outputs a high level to a base of a transistor Q6, causing the transistor Q6 to be on;
- a voltage LED1+ output by the AC control device is applied to a gate and a source of a transistor Q5 through voltage division by R18, causing the transistor Q5 to be on;
- a voltage output by the AC control device is applied to the LED load LED+, causing the LED load to operate normally;
- during emergency testing, the pin 10 outputs a low level to the base of the transistor Q6, causing the transistor Q6 to be off;
- the voltage LED1+ output by the AC control device to the gate and the source of the transistor Q5 is lost through voltage division by R18, causing the transistor Q5 to be off;
- a voltage output by the AC control device is disconnected from the LED load LED+;
- a pin 11 serves as an emergency operation control pin;
- in an emergency operation mode, the I/O pin 11 outputs a high level to a pin DIM of an emergency control circuit chip, such that the emergency operating circuit operates, causing the LED load to light up and enter the emergency operation mode;
- a pin 12 serves as a charging control pin for the battery;
- during normal power supply, the pin 12 outputs a high level to a base of a transistor Q3, causing the transistor Q3 to be on;
- a voltage output by the constant-voltage drive circuit is applied to a gate and a source of a transistor Q4 through voltage division by R13, causing the transistor Q4 to be on;
- the constant-voltage drive circuit outputs a voltage to charge the battery;
- when the battery is charged to a certain value, the pin 12 outputs a low level to the base of the transistor Q3, causing the transistor Q3 to be off;
- the voltage output by the constant-voltage drive circuit to the gate and the source of the transistor Q4 is lost through voltage division by R13, causing the transistor Q4 to be off, such that the charging of the battery by the voltage output by the constant-voltage drive circuit stops;
- a pin 14 serves as a voltage detection pin for the battery, and acquires voltage information of the battery through resistor division sampling on a voltage of the battery as a basis for determining whether emergency charging, emergency operation, and emergency testing conditions are met;
- a pin 15 serves as a normal power supply detection pin;
- during normal power supply, the emergency drive circuit operates and outputs a voltage, causing a transistor Q2 to be on;
- the normal power supply detection pin 15 is pulled down to generate a low-level signal;
- the LoRa module circuit performs transparent data transmission with the serial interface of the microcontroller circuit;
- the LoRa module circuit is connected to a spring antenna on the auxiliary control board through a communication line to achieve LoRa wireless communication of data and instructions with the LoRa gateway;
- the auxiliary control board is provided with a toggle switch, the indicator light, the test button, and the spring antenna;
- the toggle switch is coordinated with the battery to disconnect and connect the battery;
- the indicator light is configured to display an operating mode and an automatic testing state of the non-mobile indoor LED emergency light;
- the test button is configured for emergency manual testing;
- when the test button is pressed several times within set seconds, the non-mobile indoor LED emergency light performs set seconds of automatic emergency testing;
- when the test button is pressed several times within set seconds, the non-mobile indoor LED emergency light performs set minutes of automatic emergency testing;
- during any manual testing process, when the test button is pressed several times, an automatic testing control system terminates manual testing;
- and when the test button is pressed and held for set seconds for reset, timing of an automatic testing program is reset to zero.