Types of power supply
There are three main types of power supply: linear, switching, and battery-based.
Linear power supplies use a transformer to convert the AC voltage from the wall outlet into DC voltage. The output is smooth and consistent, making them ideal for low-power applications. However, they are inefficient and generate a lot of heat, so they are not very common in consumer electronics.
Switching power supplies use high-frequency pulses to convert the AC voltage from a wall outlet into DC voltage. They are very efficient, but their design can create interference that may interfere with other appliances or devices near them. You can find these types of power supplies in most consumer electronics.
Battery-based power supplies use a battery to convert the AC voltage from the wall outlet into DC voltage. They are very efficient and can provide a stable output even when the input voltage fluctuates. However, they can be expensive and require regular maintenance.