An LED module comprising: a resistor (R3, 54) connected to a cathode end of an LED array (304, 404) of the LED module, the LED array comprising one or more LEDs (302, 402, 32) and connected to ground, wherein a voltage across the resistor (R3, 54) is proportional to a current through the one or more LEDs (302, 402, 32); and a single stage AC input boost converter (306, 406, 500, 600) 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 (316, 416, 200) for regulating an output voltage supplied to an anode end of the LED array (304, 404), wherein the controller (316, 416, 200) 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 (318, 418, 46) coupled to the controller (316, 416, 200, 86), wherein the controller (316, 416, 200) turns the switching transistor (318, 418, 46) 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 (306, 406, 500, 600) and the current through the one or more LEDs of the LED array (304, 404) 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 (304, 404) of the LED module, the LED array comprising one or more LEDs (302, 402, 32) and connected to ground, wherein a voltage across the resistor (R3, 54) is proportional to a current through the one or more LEDs (302, 402, 32); and a single stage AC input boost converter (306, 406, 500, 600) 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 (316, 416, 200) for regulating an output voltage supplied to an anode end of the LED array (304, 404), wherein the controller (316, 416, 200) 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 (318, 418, 46) coupled to the controller (316, 416, 200, 86), wherein the controller (316, 416, 200) turns the switching transistor (318, 418, 46) 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 (306, 406, 500, 600) and the current through the one or more LEDs of the LED array (304, 404) 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 (316, 416, 200) for regulating an output voltage supplied to an anode end of the LED array (304, 404), wherein the controller (316, 416, 200) 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 (318, 418, 46) coupled to the controller (316, 416, 200, 86), wherein the controller (316, 416, 200) turns the switching transistor (318, 418, 46) 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 (306, 406, 500, 600) and the current through the one or more LEDs of the LED array (304, 404) such that the voltage across the resistor (R3, 54) is regulated to the variable dimming voltage (V RefDim, V dim).