How to Get DC from AC Voltage, or How a Diode Works.
To understand how to get DC voltage from AC, we need to figure out how alternating current differs from direct current and how a diode works.

A diode is an electronic component that conducts current in one direction and blocks it in the other. The figure below shows how current flows through a diode.

A diode has two terminals, the cathode and the anode, and there's a simple way to remember whether to connect plus or minus to the cathode. A handy mnemonic: the Anode is where current Arrives and the Cathode is where Current leaves, so we connect plus to the anode and minus to the cathode. Let's see how an AC voltage changes after it passes through a diode.

The oscillogram shows that the diode doesn't pass the negative half-cycles of the AC voltage; this process is called AC rectification. You also need to keep in mind that after rectification the amplitude of the positive half-wave has become smaller by the voltage drop across the diode.

The voltage drop across a diode depends on the current, the temperature and the material it's made of, and is about 0.7V for silicon diodes. Let's look at what happens if we apply a negative voltage to the diode, or a voltage below 0.7V. You can enlarge the picture by clicking on it.
If a negative voltage is applied to the diode, no current flows through it. If a voltage below 0.7V is applied, the diode won't open and no current flows through it either. If a voltage above 0.7V is applied, the voltage drop across a silicon diode will always be about 0.7V.
An important parameter of a diode is the maximum current it can pass, and therefore the maximum power dissipation. The picture below shows the formula relating the current and the diode's power.
At a current of 0.001A and a voltage drop of 0.7V, the diode will dissipate 0.7mW of power.
There's also one interesting peculiarity of connecting diodes in parallel: if you connect 5 of them in parallel, each with a maximum current of 1A, the maximum current through all the diodes won't be 5A.

They will start burning out one after another. This is because no two diodes are identical, so at the same voltage the current through them will differ: some will carry less than 1A, and some, or one, more. That will cause the first diode to fail; when it burns out, the same current is distributed among 4 diodes, and again one or more of them will fail, and so on until they all burn out.
In conclusion, I'd like to say something about a diode's switching speed. Let's take an ordinary rectifier diode (1N4007), which is used where the frequency doesn't exceed 50–60Hz, and apply a 15KHz sine wave to it.

The oscillogram shows that at this frequency the diode starts to pass part of the negative half-wave. This is explained as follows: while current flows, minority carriers accumulate in both regions of the diode. After the polarity of the voltage applied to the diode is reversed, the minority carriers moving toward each other cause a short pulse of reverse current. The duration of this process is called the reverse recovery time, and you can find it in the datasheet. The reverse recovery time depends on the capacitance of the p-n junction. Diodes that work at higher frequencies have a lower p-n junction capacitance and therefore a shorter reverse recovery time.

Let's take a switching diode marked 1N4148 and apply a 100KHz sine wave to it.

The oscillogram shows that there are no negative spikes.
That's probably all I wanted to say about the diode.
Alternating current (AC) is an electric current that changes in magnitude and direction over time or, in a special case, changes in magnitude while keeping its direction in the electrical circuit unchanged.

A diode is an electronic component that conducts current in one direction and blocks it in the other. The figure below shows how current flows through a diode.

A diode has two terminals, the cathode and the anode, and there's a simple way to remember whether to connect plus or minus to the cathode. A handy mnemonic: the Anode is where current Arrives and the Cathode is where Current leaves, so we connect plus to the anode and minus to the cathode. Let's see how an AC voltage changes after it passes through a diode.

The oscillogram shows that the diode doesn't pass the negative half-cycles of the AC voltage; this process is called AC rectification. You also need to keep in mind that after rectification the amplitude of the positive half-wave has become smaller by the voltage drop across the diode.

The voltage drop across a diode depends on the current, the temperature and the material it's made of, and is about 0.7V for silicon diodes. Let's look at what happens if we apply a negative voltage to the diode, or a voltage below 0.7V. You can enlarge the picture by clicking on it.
If a negative voltage is applied to the diode, no current flows through it. If a voltage below 0.7V is applied, the diode won't open and no current flows through it either. If a voltage above 0.7V is applied, the voltage drop across a silicon diode will always be about 0.7V.
An important parameter of a diode is the maximum current it can pass, and therefore the maximum power dissipation. The picture below shows the formula relating the current and the diode's power.
At a current of 0.001A and a voltage drop of 0.7V, the diode will dissipate 0.7mW of power.
There's also one interesting peculiarity of connecting diodes in parallel: if you connect 5 of them in parallel, each with a maximum current of 1A, the maximum current through all the diodes won't be 5A.

They will start burning out one after another. This is because no two diodes are identical, so at the same voltage the current through them will differ: some will carry less than 1A, and some, or one, more. That will cause the first diode to fail; when it burns out, the same current is distributed among 4 diodes, and again one or more of them will fail, and so on until they all burn out.
In conclusion, I'd like to say something about a diode's switching speed. Let's take an ordinary rectifier diode (1N4007), which is used where the frequency doesn't exceed 50–60Hz, and apply a 15KHz sine wave to it.

The oscillogram shows that at this frequency the diode starts to pass part of the negative half-wave. This is explained as follows: while current flows, minority carriers accumulate in both regions of the diode. After the polarity of the voltage applied to the diode is reversed, the minority carriers moving toward each other cause a short pulse of reverse current. The duration of this process is called the reverse recovery time, and you can find it in the datasheet. The reverse recovery time depends on the capacitance of the p-n junction. Diodes that work at higher frequencies have a lower p-n junction capacitance and therefore a shorter reverse recovery time.

Let's take a switching diode marked 1N4148 and apply a 100KHz sine wave to it.

The oscillogram shows that there are no negative spikes.
That's probably all I wanted to say about the diode.

