Take a 230:30V transformer, and wire the SECONDARY in series with your mains supply.One of friend said to go with this idea but not sure how I can aply,
*You can make it smaller and simpler, with a 30V change-transformer (2 x 15V), of much lower power, that then has one relay select Phase for ADD/SUBTRACT and another relay selects 15/30 via series or parallel. A bypass relay can remove the correction transformer entirely for correct mains.
That gives 5 steps with 3 relays and a smaller transformer and lower losses.
Most mains loads easily tolerate +/-5%, and it is rare to find an electronic load that is not able to manage 110-220 *
Supply the primary with 230V IN PHASE with your mains, and it will ADD 30V to your mains voltage.
Supply the primary with 230V OPPOSITE PHASE to your mains and it will SUBTRACT 30V from your mains voltage.
You don't need to disconnect it with a relay, if you want the mains to pass through, just short out the primary winding.
Obviously, if you connect other voltages to the primary it will add or subtract pro-rata.
If you want an advanced version, supply the primary from a chopper circuit, and you can vary the output to any voltage within 30V of your supply.
And a REALLY advanced version would enclose the whole thing in a feedback loop with a pure sinewave reference and remove any distortion from the output (but that would be a challenge to get it stable!)


