Test different types of voltage regulation components.
Power supplies are the heart of any electronics project, as every circuit needs a source of energy, and usually with very specific electrical characteristics. Most of our circuits will require regulated DC supplies, with energy coming either from a battery or the building electrical system. Unless otherwise specified, regulated means the voltage is controlled to a constant level despite changes in the load.
In this exercise we will be using a switching regulator.
A switching regulator chops the input current at a high frequency and either pulses it through an inductor (a coil) to generate higher voltages via inductive effects, or filters it through capacitors and/or inductors to generate a lower voltage. The upside of the complexity is much higher efficiency, and hence less heat. The downside is the potential for supply noise, since the switching frequency can appear in the output. But the efficiency almost always outweighs the complexity in consumer applications, especially for battery circuits.
Unless you need efficiency (which is rarely the case) or a regulator that can step up a voltage, a linear regulator is usually the safest bet.
Switching regulators typically operate as 85% efficiency or higher. The availability has been remarkably eased by the introduction of simple integrated circuits which implement the chopping and feedback function. Consumer 'wall-wart' power supplies used to only use simple linear regulation (or no regulation), but nearly all modern power supplies for consumer electronics are now switch-mode.
A good debugging heuristic for any project is to begin solving problems by checking the power supply. There are many, many possible problems, so for example: