A linear light-emitting diode (LED) lamp, comprising:
- at least two electrical conductors configured to couple to alternate-current (AC) mains;
- at least one LED printed circuit board (PCB);
- one or more LED arrays fixed on the at least one LED PCB with a forward voltage across the one or more LED arrays;
- a rechargeable battery with a terminal voltage across thereon;
- at least one full-wave rectifier coupled to the at least two electrical conductors and configured to convert a line voltage from the AC mains into a first direct-current (DC) voltage;
- at least one input filter coupled to the at least one full-wave rectifier, the at least one input filter configured to suppress an electromagnetic interference (EMI) noise;
- a charging circuit comprising a control device, a first transformer, a first ground reference, and a second ground reference electrically isolated from the first ground reference, the charging circuit coupled to the at least one full-wave rectifier via the at least one input filter and configured to convert the first DC voltage into a second DC voltage that charges the terminal voltage of the rechargeable battery to reach a nominal third DC voltage;
- an LED driving circuit comprising an input inductor, an electronic switch, at least one diode rectifier, and an output capacitor connected between the at least one diode rectifier and the second ground reference, the LED driving circuit configured to convert the terminal voltage from the rechargeable battery into a fourth DC voltage with a second LED driving current to light up the one or more LED arrays when the line voltage from the AC mains is unavailable;
- a power supply unit comprising a main transformer, the power supply unit configured to generate a main DC voltage with a first LED driving current to power up the one or more LED arrays at full power and to meet LED luminaire efficacy requirements when the line voltage from the AC mains is available;
- and
- a control and test circuit comprising a self-diagnostic circuit and a charging detection and control circuit, wherein the control and test circuit is configured to enable or disable the LED driving circuit and the power supply unit according to availability of the AC mains and whether a rechargeable battery test is initiated, and wherein the self-diagnostic circuit comprises a control portion and a test portion both operated when the rechargeable battery test is initiated or when the line voltage from the AC mains is unavailable,
- wherein:
- the charging circuit, the LED driving circuit, the power supply unit, and the control and test circuit are configured to auto-select either the main DC voltage or the fourth DC voltage to operate the one or more LED arrays;
- the charging detection and control circuit comprises a main peripheral circuit configured to receive a logic high level or a logic low level from the control portion and to control whether the main DC voltage applies on the one or more LED arrays or not;
- and
- the self-diagnostic circuit further comprises one or more timers, wherein each of the one or more timers respectively comprises multiple time delays, wherein the multiple time delays of each of the one or more timers respectively comprise at least one initial time delay and a next time delay immediately following the at least one initial time delay, wherein, upon an initiation of each of the one or more timers, the at least one initial time delay begins with an input voltage applied, wherein, at an end of the at least one initial time delay, an output of the self-diagnostic circuit is activated to reach the logic high level and remains activated so as to enable the LED driving circuit, the control portion, and the test portion for the next time delay, wherein, at an end of the next time delay, the output of the self-diagnostic circuit is inactivated to drop to the logic low level, wherein the at least one initial time delay and the next time delay form a primary sequence that repeats, and wherein a duration over the next time delay is configured to allow the self-diagnostic circuit to control discharging of the rechargeable battery and to perform the rechargeable battery test.