Driver module for driving LEDs, wherein the driver module comprises: - a rectifier for generating a supply voltage by rectifying an input AC voltage (Vin), - a load path with nodes (B, C) for connecting an LED string comprising one or a plurality of LEDs, and - a current source coupled with the load path for generating a constant current for the load path, and - a capacitive arrangement (11, 11', 11") comprising at least two capacitors (C1, C2) for storing electrical energy from the rectifier during a charging phase and for providing electrical energy to the load path during a discharging phase, characterized in that - the load path, the current source and the capacitive arrangement (11, 11', 11") are connected in series, - the rectifier is connected in parallel to the series connection of the load path, the current source and the capacitive arrangement (11, 11', 11"), - the capacitive arrangement (11, 11', 11") is configured such that the two capacitors (C1, C2) are in a parallel arrangement in the charging phase and in a serial arrangement (11") in the discharging phase, - the discharging phase ends and the charging phase begins when the supply voltage reaches or exceeds the forward voltage (Vf) of the LED string, - the capacitive arrangement is configured to be bypassed in a direct drive phase, in which the load path is driven by the supply voltage, - the charging phase ends and the direct drive phase starts when the supply voltage reaches or falls below a value being the addition of the forward voltage (Vf) of the LED string and the voltage across the capacitors (C1, C2), and - furthermore the direct drive phase ends and the discharging phase starts when the supply voltage reaches or falls below the forward voltage (Vf) of the LED string. - a rectifier for generating a supply voltage by rectifying an input AC voltage (Vin), - a load path with nodes (B, C) for connecting an LED string comprising one or a plurality of LEDs, and - a current source coupled with the load path for generating a constant current for the load path, and - a capacitive arrangement (11, 11', 11") comprising at least two capacitors (C1, C2) for storing electrical energy from the rectifier during a charging phase and for providing electrical energy to the load path during a discharging phase, - the load path, the current source and the capacitive arrangement (11, 11', 11") are connected in series, - the rectifier is connected in parallel to the series connection of the load path, the current source and the capacitive arrangement (11, 11', 11"), - the capacitive arrangement (11, 11', 11") is configured such that the two capacitors (C1, C2) are in a parallel arrangement in the charging phase and in a serial arrangement (11") in the discharging phase, - the discharging phase ends and the charging phase begins when the supply voltage reaches or exceeds the forward voltage (Vf) of the LED string, - the capacitive arrangement is configured to be bypassed in a direct drive phase, in which the load path is driven by the supply voltage, - the charging phase ends and the direct drive phase starts when the supply voltage reaches or falls below a value being the addition of the forward voltage (Vf) of the LED string and the voltage across the capacitors (C1, C2), and - furthermore the direct drive phase ends and the discharging phase starts when the supply voltage reaches or falls below the forward voltage (Vf) of the LED string.