This instructable show how to change parts inside a small power supply to chnage the output voltage to suite your needs.
For DIY project I needed a stabilized voltage of exactly 7V dc and about 100 mA. Looking around my parts collection I found a small dc power supply from an old mobile phone that was unused.
The power supply had written 5,2V and 150mA written on it. That looked fine only the voltage needed to be pushed up a little bit until it was 7V.
Step 1: Reverse engineering
BE CAREFUL! THE PARTS MAY STILL CONTAIN HIGH VOLTAGES IF TEARING APART SHORT AFTER USAGE!
It was easy to tear the power supply a part. It only had one screw that kept the case together.
After opening the case a small circuit board fell out ... containing just a few parts.
It is a simple switching power supply. The stabilization of the output voltage is done using a TL431. This is a shunt regulator with a refence voltage and an input pin to adjust the output voltage. The data sheet of this device can be found on the internet. I located the resistors that are responsible to set the output voltage. They are named R10 and R14 on the pcb. I took the values of them and put them in the calculation formula that is written in the data sheet.
Vo=Vref*(1+R10/R14) . Using R10=5.1kOhm and R14=4.7kOhm the Result is exactly 5.2V as it is written on the power supply.