The invention provides an
LED lamp driving circuit and an
LED lamp, and the
LED lamp driving circuit comprises a
voltage stabilizing circuit which is used for converting commercial power into stable
DC voltage and supplying power to the LED lamp
driving circuit, a
square wave generating circuit which comprises a
rectifier bridge and an optocoupler, a PWM pulse width adjusting circuit which is used for generating pulse signals at a photosensitive
semiconductor side of the optocoupler, and a power supply circuit which is used for supplying power to the LED lamp driving circuit, comprising a single-
chip microcomputer controller, a photosensitive
semiconductor is connected to a power-off detection terminal of the single-
chip microcomputer controller, when it is detected that an LED lamp is powered on, the pulse width of an output PMM
signal is gradually increased, when it is detected that the LED lamp is powered off, the pulse width of the output PMM
signal is gradually reduced, the pulse width type driving circuit comprises a pulse width type LED driving
chip, the input end of the pulse width type LED driving chip is connected with a PWM
signal, and the output end of the pulse width type LED driving chip is connected with a power-off detection terminal of the single-chip
microcomputer controller. The circuit is used for providing current with variable amplitude for the LED lamp, so that slow starting and slow extinguishing of the LED lamp are realized, the circuit safety is protected, and the LED lamp is prevented from flickering.