Regulated Voltage Circuit

2 minute read

The wall socket in your house gives you 110 to 240V, depending on your physical location in the world. Embedded systems typically use much lower voltages. Also the current you get from the wall socket is typically AC (Alternating Current). Embedded systems typically use DC (Direct Current). They are also much more susceptible to glitches in their power supply.

Therefore it is important to have a very stable power supply to hook up your designs. There are basically two ways to get your systems powered: batteries and via an adapter, connected to the electric grid.

The 5V Circuit

The circuit below shows somewhat the default circuit you’ll set up when designing something around a processor (of course one requiring 5V).

It consists of a 9V source, typically from an adapter plugged into the an electric wall socket which is routed through an LM7805 regulator. This regulator will bring down the voltage to 5V and try to ease out the ripples in the voltage.

By itself, this could be considered enough, but the regulator is not perfect. The circuit provides some extras: first of all a diode (D0) is added to avoid wrongly oriented currents, causing havoc on our circuits. Next comes a switch to more easily control the status of the design. At the end we also add a LED (protected by a resistor), simply to have a visual indication that everything is ok.

These are all additions to make our lives easier and are not mandatory. The two capacitors on the other hand are, although also not required, a good thing to add to the design. They each bridge one side of the circuit, a 100 μF on the 9V side and a 10 μF on the 5V side. When all goes well, they charge until full and then when ripples occur and the voltage drops, they kick in and discharge, easing out the ripples even further.

Laying things out on a breadboard and adding a switch …


To avoid dismantling the connector on the adapter, I’ve added a barrel jack. This allows me to simply plug in the connector from the adapter.

The 3V Circuit 

While designing my first mote, I wanted to use a LIPO battery of 3.7V with 1400mAh. My design required 3.3V, so I had to create a drop. With a little help from a friend, I found the MCP1700, which perfectly fitted my requirements.

The Boxed Version

As this is the first basic building block, I thought it might be a good idea to actually build this in a small and boxed form factor, as a default power source for my embedded projects. It’s small and simple and allows me to start experimenting with transferring such a design from the breadboard to a PCB. Besides that it is also a good excuse to design an enclosure and print it using my new 3D Printer ;-)

This first building block is called XT0F-001 and it’s the first component from my XT0F family of components. On its page, details about the actual implementation are collected in more detail.