Difference between revisions of "RPi 5V PSU construction"

From eLinux.org
Jump to: navigation, search
m (A 5V power supply for the Raspberry Pi - How To)
m (more details on this topic)
Line 1: Line 1:
 +
Back to the [[R-Pi Hub|Hub]].
 +
[[Category:RaspberryPi]]
 +
 
== A 5V power supply for the Raspberry Pi - How To ==
 
== A 5V power supply for the Raspberry Pi - How To ==
  
Line 5: Line 8:
  
  
I had problems with a cheap 5V/1A adapter from Ebay too (freezing, no LAN, etc.) ...
+
I had problems with a cheap 5V/1A adapter from Ebay too (freezing, no LAN, etc.) ... The adaptor could not provide enough power. It had 5.0xV unloaded, but with RaspberryPi connected I've measured 4.78V and less - dropping to 4.5V on TP1 and TP2.<br />
 
 
 
<gallery>
 
<gallery>
 
File:ebay_cheap_5V_adaptor1.jpg|Cheap PSU
 
File:ebay_cheap_5V_adaptor1.jpg|Cheap PSU
Line 12: Line 14:
 
</gallery>
 
</gallery>
  
So I decided to make my own PSU with the popular 7805 - 5V/1A regulator.
+
So instead of looking for another PSU (or cell phone charger), I decided to make my own PSU with the popular 7805 - 5V/1A regulator.
  
  
Line 19: Line 21:
 
[[File:PSU_7805_v01.jpg|none]]
 
[[File:PSU_7805_v01.jpg|none]]
  
The resistors R1 and R2 serve as adjustment of the output voltage. The formula is:  ''V out = V fixed + { R2 [ (V fixed/R1) + I standby] }'', where ''V fixed=5V'' and ''I standby=V fixed/R1'' (or just use 2.5mA). I calculated for resistors that I had at home, but for best results R1 should be about 470ohm to 1k. Value of C3 is not critical, I recommend 100-470uF. Same for C4, where for every 1A drawn, use 1000uF of capacity (and add some reserve). Don't forget to put C1 and C2 as close as possible to the regulator. And a heatsink for the regulator is necessary too.
+
The resistors R1 and R2 serve as adjustment of the output voltage. The formula is:  ''V out = V fixed + { R2 [ (V fixed/R1) + I standby] }'', where ''V fixed=5V'' and ''I standby=V fixed/R1'' (or just use 2.5mA). I calculated for resistors that I had at home, but for best results R1 should be about 470ohm to 1k. Remember that resistors have some tolerance, always measure. Value of C3 is not critical, I recommend 100-470uF. Same for C4, where for every 1A drawn, use 1000uF of capacity (and add some reserve). Don't forget to put C1 and C2 as close as possible to the regulator. And a heatsink for the regulator is necessary too.
  
 
I've used an old 9.5V/1500mA power supply from an printer as the source for this regulator, so no transformer and rectifier etc. was needed in my case. And it works just fine :)
 
I've used an old 9.5V/1500mA power supply from an printer as the source for this regulator, so no transformer and rectifier etc. was needed in my case. And it works just fine :)
  
  
'''Here is a schematic of a complete PSU including all components:'''
+
'''Here is a schematic of a complete PSU including all components:'''<br />
 
+
(a suggestion, with better filtering and protection)
(with better filtering and protection)
 
  
 
[[File:PSU_7805_v02.jpg|none]]
 
[[File:PSU_7805_v02.jpg|none]]
  
Starting from left, we have a transformer (protected by a fuse - F1) supplying about 8-12V AC at 2A (use what you have at home or what is cheaper to buy). Next is a rectifier (or 4 diodes / >1A) with caps (C7-C10, for filtering). Now we should have approx. <AC voltage> x 1.41 - so if we have a 9V transformer, it will be about 12.69V. The 7805 needs at least 2V more on the input than on the output (I use >3V to be sure) for stable regulation, and it can be up to 35V. Main filtering is ensured by C4 (use at least 1000uF for each 1A drawn), another filtering after the regulator is C3 (100-470uF). C1-C6 serve the 7805 for stable function and HF filtering. R1 and R2 adjust the voltage to 5.25V. D1 and D2 are for protection. A transil is used for over-voltage protection on the output, a 5V8 (5.8V reverse standoff voltage and approx. 6.2V breakdown voltage) - use P6KE6.8A or BZW06-5V8. For operation signaling a LED with R3 is used. You may use another fuse - F2 on the output.
+
Starting from left, we have a transformer (protected by a fuse - F1) supplying about 8-12V AC at 2A (use what you have at home or what is cheaper to buy). Next is a rectifier (or 4 diodes / >1A) with caps (C7-C10, for filtering). Now we should have approx. <AC voltage> x 1.41 - so if we have a 9V transformer, it will be about 12.69V. The 7805 needs at least 2V more on the input than on the output (I use >3V to be sure) for stable regulation, and it can be up to 35V. Main filtering is ensured by C4 (use at least 1000uF for each 1A drawn), another filtering after the regulator is C3 (100-470uF). C1-C6 serve the 7805 for stable function and HF filtering. R1 and R2 adjust the voltage to 5.25V. D1 and D2 are for protection. A transil is used for over-voltage (peaks) protection on the output, a 5V8 type (5.8V reverse standoff voltage and approx. 6.2V breakdown voltage) - use P6KE6.8A or BZW06-5V8. For operation signaling a LED coupled with R3 is used. You may use another fuse - F2 on the output.
  
You also may simplify this circuit by leaving out C7-C10, C5, C6, D1, D2, LED and R3, F2 (and the transil, if you don't want any protection).
+
This is a rather fancy circuit, you may simplify it if you like - by leaving out C7-C10, C5, C6, D1, D2, LED and R3, F2 (and the transil, if you don't want any protection). Your choice ;)
  
  
Line 44: Line 45:
 
For more info on the 7805 regulator, [http://www.google.com/search?q=7805+datasheet google the datasheet] and see the following resources.
 
For more info on the 7805 regulator, [http://www.google.com/search?q=7805+datasheet google the datasheet] and see the following resources.
  
Resource links:  
+
<u>Resource links:</u><br />
[http://www.rason.org/Projects/regulator/regulator.htm The Adjustable Voltage Regulator], [http://www.circuitstoday.com/variable-power-supply-using-7805 Variable power supply using 7805]
+
[http://www.rason.org/Projects/regulator/regulator.htm The Adjustable Voltage Regulator],<br />
 +
[http://www.circuitstoday.com/variable-power-supply-using-7805 Variable power supply using 7805]
 +
 
 +
 
 +
=== The testing prototype ===
 +
This is my testing prototype of this PSU, as on the first schematic. It's made of "what was found in the drawer". I've used an old 7805 regulator in TO3 package, C3 was taken from some broken mainboard, C4 is left out (it's not necessary, because the circuit is powered by a stable power supply from some old printer). The PSU supplies stable 5.25V and i have 5.82V on TP1-TP2. My RaspberryPi works OK now :)<br />
 +
///pictures will be added soon///<br />
 +
I will make another PSU (for permanent operation) later - new 7805 in TO-220 package, nice heatsink, 1k resistor for R1 and a small pot for R2, new "fresh" caps and a transil, usb connector on PCB ... and put it in some case.
  
  
 
~#Pinoccio
 
~#Pinoccio
 +
 +
----
 +
Back to the [[R-Pi Hub|Hub]].

Revision as of 16:07, 29 July 2012

Back to the Hub.

A 5V power supply for the Raspberry Pi - How To

Due to various problems with the power supply for the RaspberryPi, a home made PSU might be a solution for some of you. You will need some experience with construction of electronic circuits, appropriate tools and a multimeter.


I had problems with a cheap 5V/1A adapter from Ebay too (freezing, no LAN, etc.) ... The adaptor could not provide enough power. It had 5.0xV unloaded, but with RaspberryPi connected I've measured 4.78V and less - dropping to 4.5V on TP1 and TP2.

So instead of looking for another PSU (or cell phone charger), I decided to make my own PSU with the popular 7805 - 5V/1A regulator.


The basic idea is shown on this schematic:

PSU 7805 v01.jpg

The resistors R1 and R2 serve as adjustment of the output voltage. The formula is: V out = V fixed + { R2 [ (V fixed/R1) + I standby] }, where V fixed=5V and I standby=V fixed/R1 (or just use 2.5mA). I calculated for resistors that I had at home, but for best results R1 should be about 470ohm to 1k. Remember that resistors have some tolerance, always measure. Value of C3 is not critical, I recommend 100-470uF. Same for C4, where for every 1A drawn, use 1000uF of capacity (and add some reserve). Don't forget to put C1 and C2 as close as possible to the regulator. And a heatsink for the regulator is necessary too.

I've used an old 9.5V/1500mA power supply from an printer as the source for this regulator, so no transformer and rectifier etc. was needed in my case. And it works just fine :)


Here is a schematic of a complete PSU including all components:
(a suggestion, with better filtering and protection)

PSU 7805 v02.jpg

Starting from left, we have a transformer (protected by a fuse - F1) supplying about 8-12V AC at 2A (use what you have at home or what is cheaper to buy). Next is a rectifier (or 4 diodes / >1A) with caps (C7-C10, for filtering). Now we should have approx. <AC voltage> x 1.41 - so if we have a 9V transformer, it will be about 12.69V. The 7805 needs at least 2V more on the input than on the output (I use >3V to be sure) for stable regulation, and it can be up to 35V. Main filtering is ensured by C4 (use at least 1000uF for each 1A drawn), another filtering after the regulator is C3 (100-470uF). C1-C6 serve the 7805 for stable function and HF filtering. R1 and R2 adjust the voltage to 5.25V. D1 and D2 are for protection. A transil is used for over-voltage (peaks) protection on the output, a 5V8 type (5.8V reverse standoff voltage and approx. 6.2V breakdown voltage) - use P6KE6.8A or BZW06-5V8. For operation signaling a LED coupled with R3 is used. You may use another fuse - F2 on the output.

This is a rather fancy circuit, you may simplify it if you like - by leaving out C7-C10, C5, C6, D1, D2, LED and R3, F2 (and the transil, if you don't want any protection). Your choice ;)


Also if you prefer to fine-tune the output voltage, you may replace R2 with a small pot (trimmer) as shown here:

PSU 7805 v03.jpg

With this values (R1=1k, R2=100) adjustment from 5V to approx. 5.75V is possible.


For more info on the 7805 regulator, google the datasheet and see the following resources.

Resource links:
The Adjustable Voltage Regulator,
Variable power supply using 7805


The testing prototype

This is my testing prototype of this PSU, as on the first schematic. It's made of "what was found in the drawer". I've used an old 7805 regulator in TO3 package, C3 was taken from some broken mainboard, C4 is left out (it's not necessary, because the circuit is powered by a stable power supply from some old printer). The PSU supplies stable 5.25V and i have 5.82V on TP1-TP2. My RaspberryPi works OK now :)
///pictures will be added soon///
I will make another PSU (for permanent operation) later - new 7805 in TO-220 package, nice heatsink, 1k resistor for R1 and a small pot for R2, new "fresh" caps and a transil, usb connector on PCB ... and put it in some case.


~#Pinoccio


Back to the Hub.