The circuit shown in Figure 1 illustrates one of the most basic versions of the buck-boost voltage regulator. An electrical switch is connected in series with the line input to regulate the circuit.