element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 26 replies
  • Answers 2 answers
  • Subscribers 660 subscribers
  • Views 10693 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
Parents
  • 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
  • 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
  • gpolder
    0 gpolder over 3 years ago in reply to robogary

    thanks for the thorough test, anyway it is clear that you loose a lot of voltage over the Dupont jumpers.

    Note that the official 3A Raspberry Pi power supply uses 18 AWG cable.

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

    18 AWG would do the job for sure. I've had to make my own cables for wire sizes that big using Mate-N-Lock pins and hot glue as a homemade connector housing to keep pin separation & keep the sockets straight on the pins. It does look like an ugly hack job tho.  Please share if you find a nice solution for terminating 18 or 16 AWG wires into the GPIO header. 

    I also considered the standard GPIO ribbon cable, usually at 28 AWG. The case against them is the users dont often feed 5V to the RPI , the pins are used to source 5V for sensor use.  The 40 pin connector tho allows for a good mechanical fit. I'll have to give them a look too, do more measurements to check on voltage drop using multiple conductors in parallel, 2 for 5V and 2 for GND, on both the GPIO ribbon.

    I also need to the load measurements while the RPI is running code, for sure that also has impact.

    At the end, its mostly curiosity, a bigger wire size ultimately the simple answer, as long as it is mechanically stable and has some covering that keeps pins from shorting together. 

    Some of the smaller boards like Zero and Pico can likely get by with a smaller 5V feeder wire size. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • anniel747
    anniel747 over 3 years ago in reply to robogary
    This reply was deleted.
    • Cancel
    • Cancel
  • colporteur
    0 colporteur over 3 years ago in reply to robogary

    image

    In the past, if larger gauge wire was used, I would solder the wire to a 2.54 pin. You can crimp it but it can make a mess of the insulation on the wire depending on how thick it is. I then heat shrink to protect the pin. It has worked for me and since I don't have another solution, I will use it again.. This will be the first power connection I have done using this method. I have always managed to make the PS work. This project doesn't afford me a PS.

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

    these connectors are 1A per pin, so with two 5V input pins you have 2A max.

    I would propose to buy an official raspberry pi 4 power supply, cut the wire with the cable and throw away the power supply.

    They are really cheap, price is comparable to a bare cable:

    Buy Now

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

    I was thinking the same. But colporteur wrote in the first post that there's no room for the USB connector in his design.

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

    ok, you are right, forgot about that, I was more thinking for a solution for my own project Sweat smile

    On the other hand he is not using a Pi 4, so in that case it could work with proper pin headers and wiring.

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

    much appreciate the input just the same.

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

    Found these adapter cables on Amazon, sez 16 AWG, I have my doubts on that .....but here is a link to have a look https://www.amazon.com/Jienk-Terminal-Connector-Extension-Screwdriver/dp/B096RQNN8C/ref=sr_1_3?crid=1R8PJRO6AT2FN&keywords=Screw%2BTerminal%2BBlock%2BConnector%2Bto%2BUSB%2BC&qid=1649344174&s=electronics&sprefix=screw%2Bterminal%2Bblock%2Bconnector%2Bto%2Busb%2Bc%2Celectronics%2C132&sr=1-3&th=1

    Another option to backfeeding GPIO with 5V. 

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

    Looks interesting, much appreciated. I have been doing some reading about power supplies and their impacts on Pi4s. 16gauge is a step up from the typical 18 found in some power supplies. I have added it to an Amazon wish list for the next time I place an order.

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

    Looks interesting, much appreciated. I have been doing some reading about power supplies and their impacts on Pi4s. 16gauge is a step up from the typical 18 found in some power supplies. I have added it to an Amazon wish list for the next time I place an order.

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

    The RPI4 uses the USB-C connector, the link is for that adapter. The RPi 3 uses a micro USB.   https://www.amazon.com/gp/product/B07PJYVH12/ref=ox_sc_act_title_2?smid=A3MDC9KUHU6B27&psc=1

    There are a variety of these adapters depending on the USB type. 

    I'm starting to really like the idea of powering a project this way. It makes it easy to unplug the upstream battery, interlocking & buck power supply, and plug in the AC power supply when doing the project development & debugging.   

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject 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