| home | builders | Search |
| builders ➜ Power Supply and Backup ➜ Robust power for Raspberry PI ➜ 5.2 V Regulator |
| The Raspberry PIs are most happy with 5.2 V power feed via the USB input to the Raspberry PI. They are also most happy with a glitch free uninteruppted 5.2V. Even a 1/1000th of a second glitch to below 5V seems to lead to SDcard corruption. The solution, since we're running on 12V (mostly) for the radios, is to take the 12V and regulate it down to 5.2V, and then to back-up the 12V source. The cheap way to get 5.2V from 12V is to use off-the-shelf 12V to 5.2V devices that are made in Asia. These can be from $2 to $16. Amazon B07N3QT628 The ideal solution would have screw terminals for power input, and a USB connector for power output. We were able to buy such a device for several years but the manufacturar, DROK, revised the model a couple of years ago with one whose USB output, while still variable, is disabled by default when power is applied to the inputs to the device. It requires a menu operation to turn the power on. This is not useful to us. There are several off the shelf boards available from hundreds of random name-changing vendors via Amazon, eBay, Aliexpress, that are specified to take 12-15V or wider and regulate it down to a variable output including 5.2V and put it out on screw terminals or solder pads. In all cases we now have to find a connection into the Raspberry PI. Again, USB input to the PI is most convenient. |
This is the elusive discontinued DROK USB-output variable supply
It's key feature is the built-in always-on USB power output connector.
Beware that the new DROK USB output regulator has a default-off USB output. The key visible difference between the models is the good model has a 4 digit LED display and the new (bad) model has an LCD display. |
|
Plug the USB cable into the Raspberry PI.
Refer to this diagram for test points on the Raspberry PI: Use the V-O-M in ohms setting to check which wire is ground by measuring the resistance from the ground pin on the Raspberry PI's 40 pin expansion header to each of the 4 wires.. The lowest resistance should be nearly 0 ohms and that will be the ground wire. Solder the discovered ground wire to the regulator's -V terminal on the OUTPUT side of the regulator card. (or tin and screw the wire to the output) Use the V-O-M to find the 5 V wire, again by measuring ohms to the Raspberry PI's 40 pin header. Solder or screw the 5 V wire to the supply at the +V terminal on the OUTPUT side of the regulator card. After the wire cools where you soldered, move the heat shrink over the stripped end of the wire and shrink it to cover the unused two wires on the USB cable. |
|
| You will want the USB wire from your regulator to the PI to be really short. 6 inches is a good length. If longer, the voltage at the PI will vary with processor or accessory load. During PI operation using the desktop display, you could see a lightning bolt on the upper right of the display during boot, and that would indicate you are under-volts. |
|
You should definitely use a V-O-M when setting the regulator's output voltage and do not have the USB cable plugged into the Raspberry PI until you have set the regulator's output voltage.
Beware that the multi-turn potentiometers may only have a useful range in the middle of the 10 or 20 turn mechanical range.
That means that you may be turning the pot counterclockwise, i.e. down, several full turns before the output moves at all.
This is probably because the output range is 30 volts or so, but it won't affect the output until the adjusted-voltage is less than the input voltage, which in this case is going to be around 12 V.
There is a small LED above each button that indicates whether you are seeing the INPUT (left) or the OUTPUT (right LED) voltage on the display.
Using a small flat head screwdriver, turn the multi-turn pot counterclockwise.
Pay attention to the voltage.
It won't change at all at first.
When you hit the critical range, it moves rather quickly.
That will do.