7
$\begingroup$

I have an LM2576 circuit plus an adjuster to adjust the output voltage, for controlling motor speed in a line follower robot. The circuit works great when adjusted to give out low voltages, but when I adjust it to higher voltages for my motors to go faster, it works great for 1-2 minutes, then suddenly cuts down the power and motors start to go extremely slow.

Even when I decrease or increase the output voltage, it won't respond until I turn off the power and turn it back on again. There is something mentioned in the LM2576 datasheet that if we overload the IC it will cut down the power until the load comes lower, so I think it might be a problem with that.

Since this problem has already caused us to lose the competitions with 5+ teams, I would like to solve it for our next competition, so why does our LM2576 circuit suddenly reduce the power?

$\endgroup$
1
  • 3
    $\begingroup$ I assume you are asking for confirmation of your hypothesis. However it would help if you explicitly asked a question. $\endgroup$ Commented Dec 15, 2012 at 17:28

2 Answers 2

12
$\begingroup$

If I were you, I would first (1) read the LM2576 datasheet. I'm assuming you are using a circuit similar to the schematic and PCB layout on page 23 of the LM2576 datasheet. I'm guessing you've tweaked the circuit slightly, replacing the manually-operated pot shown on the schematic for R2, replaced with some sort of microprocessor-controlled thing that frequently changes its effective resistance to make that motor spin faster or slower.

Then I would (2) put my finger on the chip. If it feels so hot that I can't hold my finger on it, I would suspect

  • thermal shutdown.

georgebrindeiro covered this. You'll also want to read p. 18 of the datasheet, the section "Thermal Analysis and Design": "The following procedure must be performed to determine whether or not a heatsink will be required. ...". The typical solution is to add a big heat sink to the chip. Do you see the size of the heatsink on the PCB layout on page 23 of the datasheet?

Next I would (3) take a cheap multimeter, switch it to "Amp" mode, and connect it in-line with the motor leads.

When the output voltage drops (which I measure with my more expensive multimeter), and I hear and see the motors slow down, what does the cheap multimeter say?

Does the cheap multimeter stay pegged at some high current above 3 A (the datasheet says the internal limit will be somewhere between 3.5 A and 7.5 A)? If so, then we almost certainly have:

  • current limiting. The regulator is working as-designed.

The typical solution is to figure out what is pulling so much current, and somehow replace it with something that pulls less current. Perhaps the robot has run into a wall or got stuck in a rut, and the motors have stalled out. Then maybe the controller needs to sense this condition, stop its futile efforts to punch through the wall, and reverse direction.

Sometimes we really need more current than one regulator can supply. Then we must replace that regulator with multiple regulators or higher-current regulators or both. (But not so much current that it immediately melts the wires in the motor).

On the other hand, if the output voltage and the output current drop, then I would (4) connect my more expensive multimeter to the power input pins of the regulator. If that is much lower than I expected, then perhaps:

  • The input voltage is lower than I expected.

When you supply the motors with a higher voltage, they drain the batteries much quicker. Partially-drained batteries have a no-load voltage lower than you might expect from the "nominal" voltage printed on the battery, and loaded batteries have an even lower voltage. I doubt this is your problem, since you imply that if you disconnect the battery and reconnect the same battery, it seems to start working again. The typical solution is to put more batteries in series to increase the actual working voltage.

Next I would (5) try disconnecting the batteries, and powering everything from a high-current grid-powered "power supply" set to the appropriate output voltages. If it seems to run fine off that power supply, but not from batteries, I would suspect:

When you supply the motors with a higher voltage, they pull a higher current. Surprisingly often, the total impedance at the input power pins of switching regulator is so high (bad) that when the regulator turns its internal power switch on, the voltage at its input power pins plummets so low that it's not possible to pull the desired current from that battery. Milliseconds later, when the switch turns off, the battery pulls the voltage back up to some reasonable voltage -- so this problem is difficult to debug with a standard multimeter, but obvious when you have the input power pins connected to an oscilloscope.

The only complete cure is to somehow reduce the total input impedance at the input power pins. Occasionally all you need to do is reduce the wiring impedance -- shorten the wires (reduce the resistance), or bring closer together the PWR and GND wires (reduce the inductance), or both. Occasionally all you need to do is put more capacitance across the power input pins of the regulator. As a battery drains, its effective series resistance increases. In theory, you can always cure this by putting more batteries in parallel to reduce the net ESR of of all the batteries in parallel.

Some people want a very lightweight robot, and so they can't add more batteries, so they can't completely cure the problem. Sometimes they can get adequate performance from the robot by using various "soft-start" or "load-shedding" techniques. Rather than trying to pull a lot of power from the batteries to get up to speed quickly -- more power than the battery can physically supply, and so triggering this unwanted latchup -- we pull somewhat less power from the batteries, slowly ramping up to speed, and applying various "limp mode" and "tired mode" techniques to keep the total power at any one instant low enough that the battery can supply it. (You may be interested in What is the best way to power a large number (27) servos at 5 V? ).

$\endgroup$
5
  • 1
    $\begingroup$ +1 Excellent. You literally said everything (and more) that I was about to write... ;-) $\endgroup$ Commented Dec 16, 2012 at 1:40
  • $\begingroup$ More than I was expecting as an answer:) thx.. $\endgroup$ Commented Dec 16, 2012 at 13:17
  • $\begingroup$ And the thing I want to add is, that I use the circuit the same as the datasheet and with that manual pot and I don't use batteries.. my motors only take up to 2A currents, so I don't think it will be a current limit issue. What I think is that it might be a thermal shutdown issue as you covered already. Anyway I put some 4700uF caps between the input pins and it seemed to have solved the problem partially. $\endgroup$ Commented Dec 16, 2012 at 13:25
  • 1
    $\begingroup$ Just how hot can the LM2576 get before it thermal shutdown kicks in? Might it be beter to feel near it ratger than touch it in the first instance? $\endgroup$
    – Mark Booth
    Commented Dec 21, 2012 at 13:33
  • $\begingroup$ I'd like to see the final diagnosis listed here in the comments (if it was indeed related to thermal shutdown) as well as the modifications that fixed the problem. Problems like this are extremely frustrating, so hopefully it will save someone some trouble down the road. Or at the very least, bring a frantic google search to an end. $\endgroup$
    – Ian
    Commented Dec 24, 2012 at 20:34
5
$\begingroup$

According to the datasheet, there are three possibilities: TTL shutdown, thermal shutdown and current limiting.

From what I looked up, TTL shutdown means simply that you have a pin you can use to cut-off the regulator output current. My guess is that it is pin 5 and you simply grounded it, as seen in the typical application circuit, so that possibility can be eliminated.

Since the circuit works great for 1-2 minutes and then shuts down, my guess is that you are not properly heatsinking and the regulator is going through thermal shutdown.

If the IC isn't feeling hot enough, however, then you can probably assume current limiting. In that case, you have to investigate why your circuit is demanding so much current (probably a flawed design).

$\endgroup$

Your Answer

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

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