This page (revision-30) was last changed on 2019-12-23 04:14 by Murray Altheim

This page was created on 2019-12-23 01:01 by Murray Altheim

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
30 2019-12-23 04:14 31 bytes Murray Altheim to previous
29 2019-12-23 04:12 6 KB Murray Altheim to previous | to last
28 2019-12-23 04:10 6 KB Murray Altheim to previous | to last
27 2019-12-23 03:55 4 KB Murray Altheim to previous | to last
26 2019-12-23 03:54 4 KB Murray Altheim to previous | to last
25 2019-12-23 03:52 4 KB Murray Altheim to previous | to last
24 2019-12-23 03:48 4 KB Murray Altheim to previous | to last
23 2019-12-23 03:43 4 KB Murray Altheim to previous | to last
22 2019-12-23 03:39 4 KB Murray Altheim to previous | to last
21 2019-12-23 03:38 4 KB Murray Altheim to previous | to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 changed 79 lines
%%alias Aliased from [Power Supply Unit|PowerSupplyUnit] and [PSU] %%
When you're working on your robot you'll likely want to plug it into a wall socket rather than run it from batteries. For that you'll need a reliable __USB Power Supply__ with enough current capacity to run your
processor (e.g., [Raspberry Pi]), your [sensors], [motors] and any other accessories (such as displays).
We'll focus on the [Raspberry Pi] since it generally requires more power than other [microcomputers/microcontrollers|microcontrollers].
!! How Much Power?
[{Image src='USBPowerSupplies/nuclear.jpg' alt='serious power' align='right' class='imgFloatRight'}]
There are a number of companies providing USB Power Supplies specifically for the Raspberry Pi. Each of the
different Pi models has differing power requirements (see below), with recommended PSU (Power Supply Unit) current capacities ranging from 700mA for the Model A to 3 amps for the Pi 4, but these numbers don't include sensors or motors.
Since you're building a robot, not an alarm clock, at very least a __3 amp supply__ is probably recommended. With sensors and motors you may need something even bigger. You may need to add up the estimated power consumption of all your components and add a bit extra for safety. Or use a very large power supply and actually measure the power consumption using a multimeter while your robot is running.
[Jaycar|Vendors] sell a ''[Mean Well 70W 5V 14A Power Supply|https://www.jaycar.co.nz/mean-well-70w-5v-14a-power-supply/p/MP3289]'' that actually __delivers__ 70 watts: 5 volts at 14 amps for NZ$54.90. It's not as pretty as the Apple unit but as a bench power supply it looks pretty good. Here's the specs:
* Full range 85~264VAC input 
* Withstand 300VAC surge input for 5 seconds 
* High efficiency, long life and high reliability 
* Operates from -30°C to 70°C under air convection without a fan 
* Extremely low no load power consumption 
* Complete protective functions 
* Power on LED indicator 
* 5G anti-vibration capability 
* Complies with international safety standards.  
* 100% full load burn-in test 
* 3 year warranty 
* Input Frequency: 47-63Hz 
* Cold Start Inrush Current: 50A
Rather impressive.
\\
%%small
|| Product || Recommended PSU Current || Maximum USB peripheral draw || Typical bare-board consumption
| Raspberry Pi Model A+ | 700mA | 500mA | 180mA
| Raspberry Pi Zero W | 1.2mA | Limited by components | 150mA
| Raspberry Pi 3 Model B+ | 2.5A | 1.2A | 500mA
| Raspberry Pi 4 Model B | 3.0mA | 1.2mA | 600mA
%%
The above is a portion of the table from the [Raspberry Pi FAQ|https://www.raspberrypi.org/documentation/faqs/#pi-power].
!! Dishonest Advertising?
The problem is, the companies selling these units are not always very honest about the power ratings of their
products. Apple seems to be the worst: they sell two adapters (listed as the ''Apple 87W USB-C Power Adapter'' and the ''96W USB-C Power Adapter'') that are likely the most expensive on the market and are not showing their output ratings in watts but seemingly their power ''requirements'', i.e, not what they __deliver__ but what they __use__. Of course it says nothing about this on the box. It's 87 watts, right? [{Image src='USBPowerSupplies/5w-adapter-thumb.png' link='https://support.apple.com/library/content/dam/edam/applecare/images/en_US/accessories/Adapters/5w-adapter-tech-spec.png' caption='Apple 5 watt USB adapter' alt='Apple 5 watt USB adapter' align='right' class='imgFloatRight'}]
Apple is really relying on the ignorance of its customers here.
I made the mistake of buying the 87 watt unit for NZ$120 (wow!), opening the box and finding in fine grey print on the adapter a confusing bunch of different amperage ratings at voltages, but at 5 volts the unit delivers 5 volts at 3 amps (i.e., 3000 mA or milliamps). It says this nowhere on the box; I had to unpack the unit and read the 0.8mm light grey text, then return it to the store.
[{Image src='USBPowerSupplies/12w-adapter-thumb.png' link='https://support.apple.com/library/content/dam/edam/applecare/images/en_US/accessories/Adapters/12w-adapter-tech-spec.png' caption='Apple 12 watt USB adapter' alt='Apple 12 watt USB adapter' align='left' class='imgFloatLeft'}] To give you an idea of how far this is off from that advertised 87 watt promise, delivering 87 watts at 5 volts it should be delivering __17.4 amps__. Apple's unit is clearly using 87 watts to deliver 15 watts (3 amps at 5 volts) of power. You can check this yourself by using an online [Watts to Amps Calculator|https://www.rapidtables.com/calc/electric/Watt_to_Amp_Calculator.html] or [Amps to Watts Calculator|https://www.rapidtables.com/calc/electric/Amp_to_Watt_Calculator.html].
What's strange is that Apple has delivered honest reporting on its other units. Their tiny 5 watt unit delivers 5 volts at 1 amp. Their 12 watt unit delivers 5.2 volts at 2.4 amps. They provide technical specification for these smaller models, but the "Tech Specs" for the 96 watt model just says "USB C". What gives?
This is where having a bit of your own knowledge is good. These are the two pertinent formulas:
{{{
amps = watts ÷ volts
watts = amps × volts
}}}
If the Raspberry Pi people say your Pi needs 3 amps, that's not how much power the adapter is __using__ (including power wasted through conversion, heat, etc.), it's how much it's required to __deliver__.
Some of the units I've found say they supply 3 amps but over two separate USB connections, or say they deliver 3.1 amps but have two USB sockets, so is that 3.1 amps for the whole unit or only 1.55 amps per socket? It's hard to tell when vendors aren't honest. I've got [a 3SixT USB charger|https://www.3sixtgear.com/product/power/wall-chargers/dualusb-wallcharger-48a-black/] that has this on the bottom:
{{{
Input: AC 100-240V~, 50/60Hz 0.8A Max
USB 1 Output: 5V = 2.4A Max
USB 2 Output: 5V = 2.4A Max
}}}
Of course, on the box it said it was a "4.8A" unit, but it only delivers 2.4 amps ''per USB socket'', which won't do if I need 3 amps (I use it for the 8" monitor for my Pi). At least it on their packaging and their website this was clear. I've another USB charger that has two sockets and says it delivers 3.1A, but doesn't say if that's for the whole unit or per socket. As it's slightly smaller than the 3SixT adapter I'm guessing the whole unit.
It's a tricky business, and rather difficult to figure out. If your power supply is running hot or your Raspberry Pi resets sometimes due to a brownout (the voltage may dip below 5 volts if the adapter can't supply the necessary amperage), your power supply is probably not big enough.
----
[{Tag Hardware}]
[{SET alias='PowerSupplies'}]