This simple switching regulator circuit have 5 V output, the input provide by a 9 V battery. It having 80% efficiency and 50mA output capability.
How simple switching Regulator works:
While Q1 is actually on, its collector voltage increases, delivering current through the inductor. The output voltage goes up, triggering A1′s(precision op amp LT1013) output to rise. Q1 cuts off as well as the output decays through the load.
The 100pF capacitor would ensure clean switching. The cycle repeats when the output falls low enough for A1 to turn on Transistor Q1. The 1µF capacitor ensures low battery impedance at high frequencies, preventing sag during switching.