The following shows a simple regulated transformer supply
This unit needs 230 Volt Input to produce 5 Volt.
But I'd like to build a power supply that can handle both 120V and 230 Volt. Like this one here 5V Buck convert with variable input voltage. It accepts AC 85 ~ 265 v. What do I need to add to make it accept different voltages?