Electrical – Use of a bulk capacitor with a 5V MCU controlled motor circuit

capacitordc motormicrocontroller

I have a circuit as such that will ultimately be used for a remote controlled race car:

Remote Control Race Car Circuit

I have a 5V power regulator (SMPS) to take 4 AA batteries to 5V. With this, I will power a Raspberry Pi, a DC brush motor, and a Servomotor. The construction of this circuit will be pretty modular, as the regulator, the Pi, the H Bridge circuit are all their own self contained components, and of course plus two motors – I will primarily be connecting leads together.

The race car will ultimately weigh 2 – 3 pounds, no more than 5.

My questions are:

  1. If I can count on my power regulator to have a filter capacitor to keep the voltage ripple to a minimum, do I need a bulk capacitor additionally for a 5V circuit?
  2. Do I gain advantage in having one bulk capacitor adjacent to each motor? Or would one be sufficient?
  3. Granted that this is a 5V circuit, how do I choose the capacitance for my bulk capacitor(s)?

Best Answer

You need at least to know how much supply ripple your different components will tolerate. This is your starting point.

Then I would draw an equivalent circuit of your power distribution network and the main load (the motor as an inductor in series with a resistor and a switch)

schematic

simulate this circuit – Schematic created using CircuitLab

You will need to approximate/measure the L and R values for the cables going to the H-Bridge and other parts. Do a transient simulation where you open the switch after the motor has reached maximum current. You should see a large oscillation at the voltage input to the R-Pi. Adjust C2 and C3 to reduce it to acceptable levels.

If you cannot measure the inductances, try approximating them using an online calculator.