2
\$\begingroup\$

Background

This is a follow up to an earlier question I asked - I have an ATmega2560 running a number of sensors and servos. There are two separate SMPSs running off a single 12V battery, one generating 3.3V for the ATmega and the digital stuff, one generating 5V for the servos. When measuring current consumption at the battery (only place I can easily splice in), I see a baseline of about 3mA @ 12V until the servo kicks in, then consumption varies from about 50mA to as much as 200 (@ 12V). When the servo kicks in, I see something like this:

enter image description here

And then when it's shutting down, I see something like this before it stops:

enter image description here

Accompanied by a low rumbling noise coming from the servo, with it vibrating, but not moving.

The SMPS is a TI TPS562200, rated for 2A, with an inductor rated for 3.1A. I recorded the scope reading above running this from 8xAAA batteries in series. The servo has a 470uF electrolytic cap next to it.

Regulator circuit + layout:

enter image description here

enter image description here

Servo driver (I've played with different cap values from what's there)

enter image description here

Question

Is the voltage drop at startup a concern, or normal servo behavior? Is the second waveform the servo trying to reach a position it can't get to? I'm starting to think that because the waveform seems to be fairly well-formed, which makes me think it's some sort of sampling/adjustment/seeking action going on.

\$\endgroup\$
10
  • 2
    \$\begingroup\$ You need a bigger cap. \$\endgroup\$ Oct 6, 2014 at 3:41
  • \$\begingroup\$ How big should it be? \$\endgroup\$
    – kolosy
    Oct 6, 2014 at 3:41
  • \$\begingroup\$ As a guesstimate I'd say 2200uF or more. \$\endgroup\$ Oct 6, 2014 at 3:44
  • \$\begingroup\$ stop using terrible batteries as well, the current output of AAA batteries, especially in series (it's just whatever one can handle) rather than having some extra in parallel. Your batteries have internal resistance and drop voltage when under load. Get something more powerful, and if you go lithium ion it will most likely be smaller in dimensions as well. And of course, a nice big 1,000uf capacitor per servo at the supply pins. \$\endgroup\$
    – KyranF
    Oct 6, 2014 at 4:31
  • 1
    \$\begingroup\$ This is called INRUSH CURRENT \$\endgroup\$
    – Passerby
    Oct 6, 2014 at 4:54

1 Answer 1

2
\$\begingroup\$

You have several things to worry about in this setup. A schematic of what you have exactly would have helped to target the advice more to the exact problem, but here goes:

First of all, you may not necessarily need insanely large capacitance, but you need capacitance with a low ESR (Equivalent Series Resistance). If your 470uF capacitor has a large resistance the regulation of the buck converter will improve and the peak current capacity of the capacitor will increase, solving the problem from two ends. That's not to say you may not need a higher value if you don't want a dip at all.

Secondly, you need a low ESR capacitor on the input of each converter stage as well, to make up for resistance in batteries and/or wiring, so the converter has a local store of energy to pull from when the output suddenly needs 1 or 2 ampere for the motor's cold start.

From the datasheet I expect the response of the regulator to be quite sharp, so it should be searched in the capacitors first. If you cannot get or afford a very low ESR capacitor, you can combine two or three lower value capacitors, as their ESR will be used in parallel and as such the total ESR of the capacitor-group will be much lower.

The second picture does seem to show a retry/restart of the motor and the regulator's response to that transient current. It's likely the servo has a little margin when the power to the motor falls off. More advanced servos are better tuned to prevent from showing behaviour like this.

\$\endgroup\$
4
  • \$\begingroup\$ You have to be somewhat careful, some regulators can become unstable with capacitors that have too low ESR. It's common in linear regulators, not sure about switching regs. \$\endgroup\$ Oct 6, 2014 at 8:59
  • \$\begingroup\$ @ConnorWolf This regulator has a variable off time and fixed on time, in effect allowing it to run purely on capacitance with no reliance on resistance, so it should be okay. With respect to linear you are right, more often than not (I'd estimate 75/25) they don't like them. \$\endgroup\$
    – Asmyldof
    Oct 6, 2014 at 10:18
  • \$\begingroup\$ @Asmyldof I have low ESR MLCC caps on the regulator itself. I've updated the post for reference. I guess a corollary of my original question is - should I care about the voltage drop? Is it stressing/diminishing useful life of either the servo or the regulator? \$\endgroup\$
    – kolosy
    Oct 6, 2014 at 14:36
  • 2
    \$\begingroup\$ @kolosy It may have a small influence on the servo's efficiency, if the regulator doesn't get hot due to input side deficiencies (causing lower mosfet conduction or other such issues) it should not have any noticeable long-term effect. You could as an experiment add 200 to 300uF extra to the input to see if that helps significantly or not, but if nothing gets too warm to touch during a stress test (as much stop&go movements per minute you can make during a reasonable time), you can assume reasonable operation. (lapses in attention during stress tests may cause damage!) \$\endgroup\$
    – Asmyldof
    Oct 6, 2014 at 16:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.