0
\$\begingroup\$

I have planned a (quite complex) controller for a project based on a Raspberry Pi (web UI, logging, camera framegrabbing/video processing, LTE uplink), i2c sensors (assortment of environment sensors), an Arduino (for the i2c stuff that I am too lazy to write Pi-compatible code for) and a couple USB modules, and to add to the mix some components controlled using 12V relays - leading to three power levels: 3V3 (for some of the i2c stuff), 5V (Arduino, Pi, USB modules) and 12V (the stuff behind the relays). As power inputs I have the availability of 3x 5V via the microcontroller inputs and 12V, while 3V3 at the moment is coming off the RPi board and I'm not sure if I don't want to go above the 50mA limit there in the future.

Now, before I design a carrier PCB for the stuff that's basically one of a hellfire of breadboards and cables I'd also like to make the project portable and (at least for 10-20 min) uninterrupted from power failure, so I need a power management solution (preferrably already as an integrated IC?) that provides:

  1. the ability to accept voltage from any of the inputs including all inputs be powered at the same time, including especially that there is no "reverse powering" - meaning that, if the microcontrollers are attached as slaves to an USB hub, that supplying power on the Arduino USB should not put power on the 5V rail of the USB input of the Raspberry Pi, thus providing power to the other devices attached to the hub of the Pi

  2. a battery management solution (I'm open for anything battery-related that's not lead-acid batteries and takes care that the battery doesn't go above limits in charge/discharge currents or temperature)

  3. safe handling of 12V in cars which can be anything from 6V or lower during engine start or way above 100V shortly after load shedding - I don't want to fry the project like I once did with a wifi router

  4. stable high quality power (=neither the Pi nor its SD card should corrupt)

  5. at least outputs of 12V@2A cont./6A peak (=motor startup) and 5V@5A cont.

  6. if possible, short-circuit resistant to prevent my own clumsiness from blowing up the battery.

Naive me would solve this by putting a diode on each 5V input to prevent reverse powering, put a 12V-5V DC/DC step-down regulator to the 12V input, then join all the 5V rails together, use this as supply for a 20.000 mAh power bank capable of pass-through powering, and from its output power the 5V rails of the microcontrollers, a 5V-3V3 DC/DC step-down regulator for the I2C sensors and a 5V-12V DC/DC boost converter for the motors. That would however prevent me from catching the "no supply voltage, operating on battery" mode in one of the microcontrollers.

Is this enough or can I do better by doing all the power management by myself? If yes, how? Unfortunately I'm better at programming than at designing circuits.

\$\endgroup\$
  • 1
    \$\begingroup\$ I think this is a bit too broad as it is written; also, asking for advice on how to do it better could be seen as too subjective. I would rewrite the question with (1) your requirements (2) a block diagram / schematic of your proposed solution and (3) a request to review your solution. This limits the scope of the question to your design and will likely fit better. \$\endgroup\$ – Adam Lawrence Jul 23 at 19:29
  • \$\begingroup\$ Well the requirements are already in the text, but I can surely give you a schematic - upload it to imgur, I guess? \$\endgroup\$ – Skynet Jul 23 at 19:36
  • 1
    \$\begingroup\$ @Skynet - Hi, "I can surely give you a schematic" Yes, please. I see that you're trying to describe everything in the text. However since there's currently no diagram which you can refer to and talk about "5V rail 1" (or whatever), and we can't see these various power rails, it's difficult for readers to know if they have formed the correct "mental schematic". "upload it to imgur, I guess?" Just edit the question, hit Ctrl+G and in the pop-up box, click "Browse" and browse to the image on your local filesystem (assuming the image is there). Max filesize is around 2MB (IIRC). Thanks. \$\endgroup\$ – SamGibson Jul 23 at 22:25
  • 1
    \$\begingroup\$ This site tends to punish disorganized questions. Having everything well-organized will improve the chances of people considering your issue. Your initial post started with some requirements, then talked a bit about your plan to implement it, then more requirements, then more solution ideas - it's a little disjointed. Again I'm just speaking for the "mob" who sometimes eviscerates questions. \$\endgroup\$ – Adam Lawrence Jul 24 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.