5

I have been working on a circuit to power a Raspberry Pi and servo(s) from a single power source. The diagram below shows the basic configuration, although the 'AA battery' is actually two 18650s.

The screw terminal on the right of the image connects the DC-DC converter (set at 5v) output to the pi microUSB port.

This appears to work correctly and I can use the camera and servo(s) at the same time without the pi crashing.

This works:

Power supply OK

What I wanted to do was power the pi directly through the pins, so that I don't need the cable to the microUSB power socket.

When i tried to do this I found that running the servo would cause a crash on the Pi.

I have tried a couple of configurations, shown below. Either where all the negative terminals are linked, or supplying the power directly to the 5v and GND pins without a ground link to the battery (except through the converter of course).

Both of these fail:

Pi crashes here Pi also crashes here

I assume this is because of the spike when running the servo, and that there is a circuit in the microUSB connection that helps mitigate this.

What can I do to allow the pi to be powered directly from the pins without running in to this problem? Ideally I'd like to keep this working with a single power source.

Thanks!

2 Answers2

1

just throw a bunch of capacitors on the input of the pi (between 5v and GND)

0

Question

Setup - LiPo 18650 x 2 + DC/DC regulator PSU for Rpi, camera, and servo motor

Problem - RPi crashes when motor runs

Question - How to do the power wiring to reduce spikes?

Answer

My answer is very long. Let me begin with some references and photos.

Power Ground, Signal Ground, Grounding/Wiring Suggestions

/ to continue, ...

References

Using LiPo Power Bank to supply Rpi

Using Huge By Pass Cap to Reduce Spikes

Rpi PWM GPIO to Control Servo Motors

Shorting Rpi Pins Causes Fatal PMIC Failure - hackaday 2019jun12

Appendices

Appendix A - Lipo Power Bank Based Rpi PSU

lipo power bank based Rpi PSU

Appendix B - PWM signal grounding suggestion

pwm signal grounding

tlfong01
  • 4,847
  • 3
  • 12
  • 24