A circuit arrangement (10) for controlling an output
voltage of the circuit arrangement (10). The circuit arrangement (10) comprises battery cells (121) forming a plurality of series-connectable
cell modules (120, 120′). The
cell modules (120, 120′) comprise: a first group of
cell modules (150) comprising a first number of cell modules (150), Each cell module (120, 120′) of the first group has a first nominal cell module
voltage in a range of 30-200 V, and at least one second group of cell modules (150′) comprising a second number of cell modules (150′). Each cell module (120, 120′) of said at least one second group has a second nominal cell module
voltage that is less than the first nominal cell module voltage. The circuit arrangement (10) comprises a
control unit (20) configured to: measure the output voltage of the circuit arrangement (10), and in order to control the measured output voltage towards the voltage target, control at least one respective electronic module (100, 100′) to adjust a respective contributing number of cell modules (120, 120′) of at least one of the first and second groups. Each cell module (120, 120′) of the respective contributing number of cell modules (120, 120′) is contributing, positively or negatively, to the output voltage of the circuit arrangement (10).