Tag Archives: Power Supply


DIY power supply for home server computer

This project describes a home made power supply for a small server computer. It uses a toroidal power transformer (not the conventional transformer) to step down the mains AC voltage. The advantages of using a Toroidal is it is quiet, efficient and smaller in size. The transformer output is then rectified and capacitive filtered. DC regulation is achieved using PTN78020 for the 12v supply, and PTN78000 for the 5V one.
Read more

Regulated power supply for embedded systems

Power is an important aspect of all embedded systems. Nothing works without electric power. Depending upon the type of applications, several options for power are available. For example, if the system doesn’t need to be portable, it can be powered directly from the wall source using AC adaptors. AC adaptors are cheap and easily available at any electronics store. They are used to power a bunch of electronics gadgets at home, like radios, answering machines, wireless routers, etc. They also come with mobile phones as chargers. They convert the high voltage AC in the wall socket to low voltage DC suitable to run the appliances. They usually provide the output voltage somewhere in the range of +3.3V to +12V DC, and supply current up to few amperes.

An embedded system consists of many different components that can operate from a wide range of power supply. But some components, such as Analog-to-Digital Converters (ADCs), require a constant voltage supply to provide an accurate output because they need a reference voltage for converting the analog signal to digital count. A device, known as voltage regulator, is used for this purpose. It’s job is to convert a range of input DC voltages to a constant output voltage. Besides, a voltage regulator also minimizes the power supply noise and provide a sort of protection for the embedded system from any possible damages due to fluctuating input voltages. The bottom line is that including a voltage regulator in your design is always good.

Types of voltage regulators
1. Linear regulators: Linear regulators use at least one active component (like transistor) and require a higher input voltage than the output. They are small, cheap, easy to implement, provide clean output voltage with low noise, and therefore are very popular. However, they generates a lot of waste heat (note that the difference of input and output voltage is dropped across the regulator) that must be dissipated with bulky heatsinks. So, in terms of efficiency they are not a good choice, specially for battery-powered embedded system. Furthermore, they can only step a voltage down and cannot boost the input voltage.

2. Switching Regulators: Unlike linear regulators, switching regulators can step up (boost), step down (buck), or invert the input voltage. A switching regulator works by transferring energy in discrete packets from the input voltage source to the output. This is accomplished with the help of an electrical switch (usually MOSFET) and a controller which regulates the rate at which energy is transferred to the output. They use an inductor or a capacitor as an energy-storing element in order to transfer energy from the input to the output. Since the energy is delivered as required they waste less power, and are very efficient than linear regulators. However, their drawback are they require more components (that makes them expensive), take up more space, and are complex circuits to design. That’s why they are not popular among hobbyists. Besides, the high switching frequency in the circuit generates far more noise than linear regulators.

LM78xx Voltage Regulators
There are hundreds of voltage regulators available. The most commonly used are LM78xx series linear regulators manufactured by several companies like Fairchild, Semelab, and ST Microelectronics. They typically come in a TO-220 package, and have a metallic attachment point for a heatsink. The part number designates the output voltage. For example, LM7805 provides a 5 V regulated output, while LM7809 provides a regulated 9 V output. They can provide an output current up to 1 Amp, and have overload and short-circuit protection features.

The figure below shows how to use a LM7805 to get a regulated +5 V power supply. Decoupling capacitors (nominally between 1 uF and 47 uF) are used to filter input and output voltages, and they also help in removing any momentary glitches in the power source. The input DC voltage for LM7805 is obtained by rectifying the low-voltage AC output from a step-down transformer using a diode-bridge rectifier.

Also read: Regulated power supply for breadboard

Getting ready for the first lab

This is to be followed after you have successfully completed the following steps:

Basic setup on the breadboard

As mentioned before all the experimental circuits will be constructed on the breadboard because it is easy to modify the circuit and correct any wiring error. Figure 1 shows the pin diagrams of PIC16F688. It is a 14-pin microcontroller with a precision internal oscillator. It provides 12 I/O pins with individual direction control, and can drive LEDs directly. 8 out of 12 I/O pins also serve as ADC channels for the internal 10-bit ADC. The various features of PIC16F688 will be discussed later in more detail in following lab sessions. For now, we will look at a simple circuit setup for PIC16F688 on the breadboard that will be used in all the experiments.

Read more

Regulated Power Supply for Your Breadboard

Embedded systems require electric power to operate. Most of the components in them including the processors can operate at a wide range of voltages. For example, the operating voltage range for PIC16F688 is from 2 to 5.5 V. It means you can supply power from three AA size batteries (4.5 V) and it will work just fine as long as the battery voltage doesn’t fall below 2 V. But there are certain applications where you need a regulated constant voltage for safer operation of the embedded system. For instance, any application that uses analog-to-digital converters (ADCs). ADCs require a fixed reference voltage to provide accurate digital count for input analog signal. If the reference voltage is not stable, the ADC output is meaningless. So, today we are going to make a regulated +5V power source for our lab.

An LM7805 linear regulator IC is used for this purpose. It converts a DC input voltage of range 7-25 V to a stable +5 V. It requires just two external capacitors and is very easy to use, as shown below.

The input DC voltage for LM7805 could be obtained from a 9V DC wall adapter that can supply 1 Amp of load current. Actually, 12 to 24 V adapter will work too, but the LM7805 regulator dissipates an extreme amount of heat energy at higher input voltages and, therefore, requires a bulky heat sink. The wall adapter is chosen because it is cheap, easily available (you might already have got a spare one at home), and safe (the high voltage mains AC is isolated). You can solder this circuit on a general purpose prototyping board. Here are some pictures I took of my power supply unit.

I have soldered male header pins (shown above) to +5 V and Gnd terminals so that the power supply unit can be plugged into the breadboard (shown below).

The power supply unit is ready now. Measure the output voltage with a digital multimeter and see how close is it to +5 V.

Recent Entries »