The invention belongs to the field of LED lamps and discloses an LED lamp with a dimming function. An output end of a PWM signal generation circuit is connected to a G end of a field effect transistorQ1, a D end of the field effect transistor Q1 is connected to a power supply Vcc, an S end of the field effect transistor Q1 is reversely connected with a voltage stabilizing diode D1, and another end of the voltage stabilizing diode D1 is grounded. The voltage stabilizing diode D1 is also connected in series with an inductor L and a capacitor C1. An output end of the inductor L is connected withan LED light-emitting element which is formed by connecting a plurality of light-emitting diodes in series, another end of the light-emitting element is connected to a D end of a field effect transistor Q2, a G end of the field effect transistor Q2 is connected to an input pin of a single-chip microcomputer, an S end of the field effect transistor Q2 is connected to the ground through a resistorR1, and the single-chip microcomputer is connected with the Bluetooth module. According to the LED lamp, a Buck conversion topology circuit constant-current driving mode is adopted by a driving powersupply circuit, the circuit structure is simple, the voltage stabilization effect is efficient, the parallel connection of a plurality of groups of light-emitting elements can be realized, the expansion is carried out according to needs, and the application range is wide.