An LED module comprising: a resistor (R3, 54) connected to a cathode end of an LED array of the LED module, the LED array comprising one or more LEDs and connected to ground, wherein a voltage across the resistor (R3, 54) is proportional to a current through the one or more LEDs ; and a single stage AC input boost converter comprising: a differential amplifier (U1, 330, 60), wherein a first input of the differential amplifier (U1, 330, 60) is coupled to the voltage across the resistor (R3, 54) and a second input of the differential amplifier (U1, 330, 60) is coupled to a variable dimming voltage (V RefDim , V dim ) controlled by a user; a controller for regulating an output voltage supplied to an anode end of the LED array , wherein the controller comprises an error amplifier having a first input coupled to a fixed internal reference voltage (V RefOut ) and a second input coupled to an output of the differential amplifier (U1, 330, 60); and a switching transistor coupled to the controller , wherein the controller turns the switching transistor on and off based on the output of the differential amplifier (U1, 330, 60) to vary the output voltage of the single stage AC input boost converter and the current through the one or more LEDs of the LED array such that the voltage across the resistor (R3, 54) is regulated to the variable dimming voltage (V RefDim , V dim ). a resistor (R3, 54) connected to a cathode end of an LED array of the LED module, the LED array comprising one or more LEDs and connected to ground, wherein a voltage across the resistor (R3, 54) is proportional to a current through the one or more LEDs ; and a single stage AC input boost converter comprising: a differential amplifier (U1, 330, 60), wherein a first input of the differential amplifier (U1, 330, 60) is coupled to the voltage across the resistor (R3, 54) and a second input of the differential amplifier (U1, 330, 60) is coupled to a variable dimming voltage (V RefDim , V dim ) controlled by a user; a controller for regulating an output voltage supplied to an anode end of the LED array , wherein the controller comprises an error amplifier having a first input coupled to a fixed internal reference voltage (V RefOut ) and a second input coupled to an output of the differential amplifier (U1, 330, 60); and a switching transistor coupled to the controller , wherein the controller turns the switching transistor on and off based on the output of the differential amplifier (U1, 330, 60) to vary the output voltage of the single stage AC input boost converter and the current through the one or more LEDs of the LED array such that the voltage across the resistor (R3, 54) is regulated to the variable dimming voltage (V RefDim , V dim ). a differential amplifier (U1, 330, 60), wherein a first input of the differential amplifier (U1, 330, 60) is coupled to the voltage across the resistor (R3, 54) and a second input of the differential amplifier (U1, 330, 60) is coupled to a variable dimming voltage (V RefDim , V dim ) controlled by a user; a controller for regulating an output voltage supplied to an anode end of the LED array , wherein the controller comprises an error amplifier having a first input coupled to a fixed internal reference voltage (V RefOut ) and a second input coupled to an output of the differential amplifier (U1, 330, 60); and a switching transistor coupled to the controller , wherein the controller turns the switching transistor on and off based on the output of the differential amplifier (U1, 330, 60) to vary the output voltage of the single stage AC input boost converter and the current through the one or more LEDs of the LED array such that the voltage across the resistor (R3, 54) is regulated to the variable dimming voltage (V RefDim , V dim ). <EOS>