element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Exploring alternate methods for providing DC power to Raspberry Pi
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 27 replies
  • Answers 2 answers
  • Subscribers 663 subscribers
  • Views 9830 views
  • Users 0 members are here
  • raspberry pi power
Related

Exploring alternate methods for providing DC power to Raspberry Pi

colporteur
colporteur over 3 years ago

I'm in need of a battery power solution for a Raspberry Pi?

My plan was to use a 5VDC lithium-ion battery connected via the USB micro connector to power the Pi. I have had to rethink this because of extreme space limitations. The power connector on the Pi makes it a difficult fit in the space that I am using.

My next thought was to connect the battery directly to the 5V and GND pins. I seem to recall that this could be used on Pi's. I then stumbled across an article that suggested, if this method is used, the circuit would require a Universal Battery Eliminator Circuit (UBEC). I have no voltage level issues. The battery supply is 5VDC. Unless the UBED offers some protection I'm not aware of, I don't need its capabilities of managing different input voltages. This shook my confidence of using the pins.

What are your thoughts on providing alternate power to a Pi? Can I do it through the pin header? This is my preferred solution. Are there any requirements I need to be aware of to make this an alternate solution?

  • Sign in to reply
  • Cancel
  • anniel747
    0 anniel747 over 3 years ago

    Isn't 5V a bit high for Li-ion?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • colporteur
    0 colporteur over 3 years ago in reply to anniel747

    It is an off-the-shelf 4500ma hour battery with a USB-A connector. I have used it to power a Pi3B+. I seem to recall posting the results of the test on the legacy site. * hours of power come to mind.  Don't quote me on the run time. I documented on the old site so I could find it. Now I can't find it:( The Pi wasn't doing any work so the time before the battery died was pretty long.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • robogary
    0 robogary over 3 years ago

    Pin header is cool, I've done it. I like to use 7.4V or 11.1V LiPos, and an adjustable buck power supply, fed into a diode , then to the Pi header pins.

    The buck PS can be adjusted for 5V + whatever voltage drop you get across the blocking diode. 

    I tend to overdo the battery size mA hr, if you just want to make it thru the track once , a baby size lipo, maybe  wire qty 2 150mAhr 3.7 V in series would do the trick. 

      https://www.etechnophiles.com/rpi-zero-2w-board-layout-pinout-specs-price/

    The DC-DC converter chip doesnt seem to have  significant transient protections built in. 

    imageimage

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • robogary
    0 robogary over 3 years ago in reply to anniel747

    The cells are packaged into whatever volts and mA Hr ratings you may want. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • anniel747
    0 anniel747 over 3 years ago in reply to colporteur

    4500mA/h packaged Li-Ion? If the case there is already a regulator inside.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gpolder
    0 gpolder over 3 years ago in reply to robogary
    robogary said:
    Pin header is cool

    how did you do this, what kind of jumper wires did you use, one pin or 2? a Pi 4 can draw 3A, so the connector should be suitable for that. 

    The Chinese jumper wires from my junk box are certainly not.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • colporteur
    0 colporteur over 3 years ago in reply to gpolder

    GP I would ask the same questions.

    My thoughts would be a wire gauge similar to what is provided in the DC wall wart.

    I appreciate the response but would feel more comfortable with a little engineering background.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • robogary
    0 robogary over 3 years ago in reply to colporteur

    gpolder mentioned a Raspberry Pi 4,which I didnt use. I plan to followup in measuring the RPI 4 load requirements with a NOIR camera, WiFi on, and a keyboard dongle inserted. 

    I plan to repeat the same measurement on a Raspberry Pi 4 with WiFi on, a keyboard dongle, and an RPi  HD camera. I will use cheap chinese jumpers :-)

    The Raspberry Pi 4 schematics ( as well as other schematics) didnt publish the solder run ampacity. If I were to use both 5V pins, I would also expect at the least to use 2 ground points as well. I cant tell by looking if the 5V solder runs are beefy, and if some are beefier than others. 

    You have a RPi Zero 2W, different requirements. I found this article, the author stating a RPi Zero with WiFi only pulls 200mA, but the author also stated seeing other published loads of 300-400 mA. 

    https://robertthewombat.com/power-requirements-for-the-raspberry-pi-zero_w/

     ************** more on the wire itself ***********************

    Referencing this table. https://www.powerstream.com/Wire_Size.htm  

    Definition: ampacity is the current carrying capability of a wire. In other words, how many amps can it transmit? The following chart is a guideline of ampacity or copper wire current carrying capacity following the Handbook of Electronic Tables and Formulas for American Wire Gauge. As you might guess, the rated ampacities are just a rule of thumb. In careful engineering the voltage drop, insulation temperature limit, thickness, thermal conductivity, and air convection and temperature should all be taken into account. The Maximum Amps for Power Transmission uses the 700 circular mils per amp rule, which is very very conservative. The Maximum Amps for Chassis Wiring is also a conservative rating, but is meant for wiring in air, and not in a bundle. For short lengths of wire, such as is used in battery packs you should trade off the resistance and load with size, weight, and flexibility. NOTE: For installations that need to conform to the National Electrical Code, you must use their guidelines. Contact your local electrician to find out what is legal!

    28 AWG is rated for 1.4A in this table. The "Neltron" Flat ribbon cable sold for for GPIO is 28 AWG. 

    26 AWG is rated for 2.2A,

    24 AWG is rated for 3.5A. The Dupont jumpers sold on Amazon are 24 AWG. 

    If your Pi is on a train, it will have loads for the camera & wifi. You'll probably use VPN to setup and connect to the Raspberry Pi thru a PC after the first initial setup. 

    -------------------------------------------------------------------------------------------------------------

    I'm sure with some more internet surfing there will be other helpful information. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • robogary
    0 robogary over 3 years ago in reply to gpolder

    Hi gpolder - seeing is believing  :-)     reminds me of the Journey song - Dont Stop Belivevn'       

    To properly reply to your question on RPI 4, I just did an experiment on a Raspberry Pi 4 ,  I used an adjustable power supply to simulate a battery. Current limit was set to 3.1A in case I screwed up. From the + terminal of the power supply, I wired in a series 3Amp diode, Diode Anode to the + terminal.

    I always use series diodes from a battery or external power supplies since I forget and will plug in a PC, or vicea versa, or both, and end up backfeeding somebody and unintentionally powering sensors & stuff. 

    From the out side of the diode (cathode) I used an alligator jumper, to a cheap chinese Dupont jumper , with a socket end that plugged into GPIO Pin 2.

    I put a voltmeter on GPIO Pin 4 to read the voltage directly at the RPI4.  I also used a single cheapy run of the mill jumper to GPIO 6 GROUND. 

    The RPi 4  has a keyboard dongle installed on one USB port. The RPI 4 also has a NOIR camera installed. 

    On initial bootup, the RPI 4 only drew 100-150mA, and increased as it went . The Power Supply was set for 5.2V ( 5V +  the measured no load Vf drop of the diode was .2V).

     As the RPi 4  continued in bootup, l had to turn up the power supply voltage to compensate for the diode IR drop. I dont think the load was so much the 28 AWG wires were dropping significant volts. 

    The power supply ammeter does dance around a bit, and I'm sure I'd see some higher peak excursions if using a scope on CFB, BUT the largest amps I witnessed was  .6A. in the power supply's screen.    

    This measurement isnt the absolute chart all for everyone's applications, but maybe instills some confidence in colporter that its not that bad. 

    DISCOVERY !  5V at the 5V pin was not enough to boot up reliably. I missed this on my first pass because I didnt have a monitor plugged in.

    My "battery" ended up being 6.6V for 5.3V to 5.5V at the RPI4 GPIO pin, I'd feel better having a better regulated voltage there as well. Its worth a test without the HDMI plug again tho.

    For robots &  roving vehicles, I will tend to use a 7.4 V or 11.1  LIPO batteries, and a buck power supply to feed the 5.x volts, and often several for peripherals power, at 6V (RC receiver), 3V (sensors) 5V (sensors) , 12V (fans if any, some LED drivers,) etc...  

    Where volts were measured

    image. 

    the test setup. I'd like to check to see if the HD camera load makes any difference from the NOIR camera.

    image

    The power supply volts and amps, and the volts read at GPIO4. 

     image

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • robogary
    0 robogary over 3 years ago in reply to robogary

    its still bugging me why I needed 5.5 V onto the 5V GPIO pins.  This is from the RPi4 schematic

    imageimage

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube