Electronic – How to use an adjustable LDO regulator to power devices with USB that usually use AA/AAA batteries (or should I)

battery-operatedpotentiometerresistorsusbvoltage-regulator

I want to use USB to power devices designed to work with one, two, or three AA/AAA batteries. Three seems to be the trickiest, because it involves dropping the voltage only ~0.5 V from 5±0.25 V to 4.5 V.

After reading around (my electronics knowledge is extremely rusty), it seems an adjustable low dropout (LDO) regulator is the way to go (but please correct me if I'm wrong). The best option locally available seems to be an NCV59302, and because I'm expecting to draw 1A max @ 4.5 V, its ~175mV dropout voltage @ 1A should mean I can get 4.5 V as long as the USB power is > 4.675 V.

However I'm not exactly sure how to get it working correctly. The data sheet is here, and my interpretation of the instructions is illustrated in the circuit diagram below. The thing I'm most unclear about is the resistors, though I'm aware I could have made other major mistakes. Someone has already asked here about the resistors for an NCP59302, a very similar component (I'm not sure what the difference between the NCV & NCP is), but after reading the answers I'm still not sure which resistors will work. Nor am I 100% sure about any of the components or wiring.

NCV59302 trial circuit

  • R1 is a 500 Ω potentiometer, unspecified wattage rating (does it matter? I assume this only has to carry the 100-350 nA "Adjust Pin Bias Current")
  • R2 is a 180 Ω 2 Watt wire wound resistor

The formula given in the data sheet to determine the output voltage is:

$$V_{OUT} = 1.24 V × (1 + R_1/R_2) + I_{ADJ} × R_1$$

IADJ is typically 100 nA and can be up to 350 nA, but this makes a negligible difference to VOUT. From what I can tell, with R2 as a 180 Ω resistor, this would output 1.5 V, 3 V, and 4.5 V when the R1 500 Ω potentiometer was set to ~37.7 Ω, 255.5 Ω, and 473.2 Ω respectively. Or am I missing something?

As for the other components:

  • CIN is a 1 μF 50V electrolytic capacitor
  • COUT is a 47 μF ±20% 6.3V X5R dielectric SMD ceramic multilayer capacitor (it would cost me the same to get a 100 μF model with the same specs if there is some advantage)

I guess the most important question is: if I wired all this up as in the circuit diagram above, should it work? Or have I made a mistake?

Thanks a lot in advance.

Best Answer

The circuit as shown will work. Remember though that it's a linear regulator, which means that the voltage is dropped by turning excess energy into heat. At 4.5V the drop is small, but if you're dropping to 1.5V (3.5V drop) at 500mA (you shouldn't expect to draw more from USB) then you'll have to deal with 1.75W of heat. The amount of heat that the IC you linked can dissipate depends on the PCB design (did you mean to link a surface mount component?), but in any case 1.75W would be the upper end of what you could expect a TO-220 package component to dissipate. I'd probably use a heat sink or ensure that my load wasn't drawing as much current.

Resistor selection basically doesn't matter. The two aspects that you need to normally consider when selecting resistors are the power rating (1/4W, 1/2W etc) and the tolerance (1%, 5%, 10%). The power rating isn't important in this case (see below) and because you've got a manually adjustable potentiometer the tolerance really isn't important either. Almost any resistor of approximately the right value would do for \$R_2\$.

Both resistors can be low wattage ones. As you've said, the \$I_{ADJ}\$ current is negligible and can be completely ignored. There will also be a current flow through the two resistors from the output voltage to ground, which you can calculate with Ohm's law (\$V=IR\$). In all cases this will be about 7mA.

The capacitors are there for filtering/ripple reduction purposes and their characteristics aren't too important. If they're approximately the same as those suggested in the datasheet (and the voltage rating is above what they'll see) then there shouldn't be any issues.

Your calculations seem to correct. This is just a basic voltage divider calculation. The regulator adjusts the output voltage until it sees 1.24V on ADJ. You can confirm that your calculations are correct with the equation given on wikipedia:

$$V_{div} = V_{in} \times \frac{R_2}{R_1+R_2}$$

Where \$V_{div}\$ is 1.24V, \$V_{in}\$ is your target voltage and you want to solve for \$R_1\$.

$$R1 = \frac{V_{in} \times R_2 - V_{div} \times R_2}{V_{div}}$$

for the 4.5V case therefore:

$$R1 = \frac{4.5 \times 180 - 1.24 \times 180}{1.24} = 473 \Omega.$$

There's inherent variability in electronics which mean that whatever values you calculate won't be exactly right when you wire it up. Wire it up, connect the output to a volt meter and adjust the potentiometer until you have the right voltage.