The buck converter converts an input voltage to a lower output voltage. Its basic elements are shown in Figure 1. Initially, the switch SW1 is closed; that is, current flows into the coil L1. Since the coil is a differentiating component, the current flow increases steadily until switch SW1 is opened and SW2 closes. This causes the current flow to change. Capacitor C1 is an integrating component; therefore, the resulting output voltage is a function of the current and the turn-on times of switches SW1 and SW2.
Fig. 1: The basic elements of a step-down converter (Image source: RECOM)
Originally S1 and S2 were actually mechanical switches, but these were quickly replaced by silicon - S1 with a transistor and S2 with a diode.

Fig. 1: The basic elements of a step-down converter (Image source: RECOM)
Originally S1 and S2 were actually mechanical switches, but these were quickly replaced by silicon - S1 with a transistor and S2 with a diode.