Step-down converter with low quiescent current ?

810 views
Skip to first unread message

Nick Smith

unread,
Jul 24, 2017, 2:24:01 PM7/24/17
to Sheffield Hackspace
I'm currently using an MP1584-based off-the-shelf module for a stepper motor project, so I can drive it from a single DC source: 12V-24V, etc. and the MP1584 feeds 3.3V to my control logic. This works fine, but it has a 100uA quiescent current which is pretty high since my ESP8266 controller spends most of its time in deep sleep mode, using only 10uA. Plus I don't need the user-adjustable output voltage of the off-the-shelf module, nor the high 3A max output current of the MP1584.

So I'm looking for a suitable replacement, that has:

- input 9? to 30V approx
- output 3.3V at 250mA (perhaps 350-500mA just to be safe)
- under 100uA quiescent current
- available for under £0.25/pc on aliexpress

Apart from some very expensive Linear Technology ICs, the best I've found so far is the MIC5239-3.3:

- input 2.3 to 30V
- output 3.3V at 500mA
- 23mA quiescent current
- available for £0.094/pc

http://www.microchip.com/wwwproducts/en/MIC5239

does that sound like a sensible choice? Any other suggestions, perhaps with an even lower
quiescent current?

Many thanks

Nick Smith

unread,
Jul 24, 2017, 4:49:16 PM7/24/17
to Sheffield Hackspace
Damn! I mixed up the chip I wanted, the MIC5239-3.3 (£1.25) with the MIC5219-3.3 (£0.09) :(

Nick Smith

unread,
Jul 25, 2017, 4:43:27 AM7/25/17
to Sheffield Hackspace
I've had an email suggesting the HT7333-1 which looks perfect :D

- input 5.3 to 30V
- output 3.3V at 250mA
- 2.5uA quiescent current
- only £0.034/pc

Andy Kirby

unread,
Jul 25, 2017, 5:22:48 AM7/25/17
to sheffield-har...@googlegroups.com

OK

Things to consider, that chip is a linear regulator.

Which means that it is a lot less efficient at load, the surplus voltage at the current you are drawing is dumped as heat. So if you had a supply of 12V and were regulating to 3v3 at 100 mA you would be burning 8.7V at 100mA, (0.87 Watts)  as heat.

The Quiescent (unloaded) figure will be lower but the amount of energy you use loaded is a lot more.

Switch modes are a lot more efficient under load.

The reverse is true of a switchmode regulator that particular device is quoted as being better than 90+ % efficient.

Do the same calc and assume 90% effieciency (well below the spec for that chip) and you will quickly see what I mean.

Do similar calcs for you circuits actual sleep current draw and add on the quiescent current for the regulator.

Re the sleep current for your circuit this will alwyas be much more than the MCU's quoted minimum in sleep mode as there is much more current drawn by pullups etc than you MCU's sleep mode quiescent will ever be. SO that figure is very misleading if taken in isolation.

Also consider that often for a switch mode to get proper quiescent (as opposed to just running the load down) you need to put it into sleep or disabled mode. Some devices actually have an enable or sleep pin. Check the Datasheet.

Bear in mind then that you are wasting far more power when under load with a linear regulator than when unloaded, and you circuit quiescent during sleep is going to be a lot higher than you think.

To get a full grip on this if you wanted to do it theoretically before buying you would have to work out a power budget in a spreadsheet and see which one used less power over for say a given 24 hour period.

So for a circuit dropping into sleep mode for 9 seconds in every 10, you would measure with an ammeter the draw during sleep (Or estimate from info you have and the datasheets), and the draw during activity. then do the math. I say use an ammeter because the current draw during sleep is likely to be too low for a bench PSU with inbuilt current metering to accurately show. It is for mine anyway.

Then do the calculations and you will see what I am getting at above.

How much sleep you do versus how mush active time, will bias your design decision towards one technology or the other.

To do it practically build two identical setups and use one each of the power supplies from say a battery pack filled with the batteries from the same batch. Record the voltage profile, or easier still time which one runs out first. This is the one that uses least power overall. The benefit of this method is that as it is an integral of the power drawn, it accurately accounts for the aggregate peak values. Whereas an ammeter will be a sort of average (some are claimed to be RMS, but this can be frequency dependent and RMS only actually works for a pure sine wave)

You could go to the lengths of using an arduino as a recording power meter, Using a shunt resistor and measuring the current draw via the volt drop. But it is a lot of fuss. There again you may like that sort of fuss.

100uA is 0.1mA, so pretty trivial. I wouldn't worry about the difference unless my heliostats were not getting enough power to run.

In trying to optimize things for the sake of it and not quite getting the full implication of a specification you can easily waste more time than a project is worth, and not get the benefit you thought you would. Beware.

Providing your total draw is less than the total power available to drive it, who cares whether it is the ultimate in one little bit of the total spec. Engineering is always a compromise. Part of the challenge in learning engineering is learning to find and accept a compromise.

"These are not the benefits you are looking for" read in an Obi Wan type voice... LOL

You may do this as a hobbyist, at least once to get a feel for what i have said above, you will never do it again. Life is too short. These days having got an intuitive feel for it I only do the above calcs etc if someone is paying me for my time.


Kirbs

--
You received this message because you are subscribed to the Google Groups "Sheffield Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sheffield-hardware-...@googlegroups.com.
To post to this group, send email to sheffield-har...@googlegroups.com.
Visit this group at https://groups.google.com/group/sheffield-hardware-hackers.
For more options, visit https://groups.google.com/d/optout.

-- 
www.kirbyand.co.uk
an...@kirbyand.co.uk

Nick Smith

unread,
Jul 25, 2017, 10:24:41 AM7/25/17
to Sheffield Hackspace, an...@kirbyand.co.uk
Thanks Andy - that has saved me a LOT of wasted time & money!! :D I plead guilty on all counts, m'lord:
  1. Not knowing the difference between linear and switching regulators
  2. Optimising for the sake of it
  3. Focusing on the wrong thing (quiescent/unloaded) rather than what the overall circuit will be doing in day

I don't know if my back of the envelope calculations are correct, but the difference between the MP1584 switching and HT7333-1 linear regulators are dramatic. Assuming a 24V supply to my heliostat, in sleep mode 58 seconds in every minute, active microprocessor + motor drivers 2 seconds in every minute, and WiFi active but no motor drivers 1 minute in every day, I make it (excluding pullup resistors, etc):


average of 3.3mA with MP1584 (70-75% efficient, 100uA quiescent)

average of 15.5mA with HT7333-1 (14% efficient, 2.5uA quiescent)

average of 2.6mA with TPS62177DQCR (87-90% efficient, 4.8uA quiescent)


so I think I'm full circle back to the MP1584 ;) The TI switching regulator is quite a bit more efficient + much lower quiescent current, but the chip is 5x as expensive as the MP1584 for only a 20% improvement in average power usage. With only a 12V input the HT7333-1 still uses ~7.9mA which is over twice the MP1584.

andy

unread,
Jul 25, 2017, 11:38:13 AM7/25/17
to sheffield-har...@googlegroups.com
Goodoh, glad I could be useful for something.

The comparison becomes more dramatic when you add in your pullups etc
and all the usual gubbins you need to make a circuit work.

Simply as the efficiency is a multiplier.

Another thing you have to watch out for with linear regulators is how
much power they can dissipate. As the Vin gets large the amount of heat
you need to dump multiplies up and if the package dissipation plus
heat-sinking is not up to it you cook-off your regulator, tracks and PCB.

Try putting higher (but within spec) voltages into an arduino via the DC
jack, there is a linear regulator on board and see how long you can keep
your finger on the regulator before it burns you.

Linear regulators are cheap and easy, plus very small and have very low
additional component counts, they have their places, but also have their
draw backs.

Where you are doing power efficient projects like solar apps or whatever
(bicycle/wind generator) the greater operational input voltage range and
efficiency of high frequency switch modes are very difficult to beat
over all. Especially where the useful input voltage covers a large
dynamic range.

linear Regs are usually preferred these days, where you have a low noise
(audio, instrumentation etc) circuit you want to supply and the
switching noise would be problematic. In this case they are best used
with enough head room to remove switching noise and or ripple from an
upstream supply where the difference in supply versus linear regulated
supply is minimized to keep the heating and losses down. In this case
the linear reg skimms the noise off the top, but wastes the least power
you can make it do. LDO (Low Drop Out) linear regulators are usually
used for these type of applications

I have used Nuclear Instrumentation (NIM) crates with big linear
supplies in them for low noise applications (electrical noise) but they
are very acoustically noisy from the forced air cooling and the heat
they pump out. These have to be mains powered though and are power hogs.


As ever it is horses and courses, as hobbyists we sometimes need to run
a horse to learn that it is not the best one for the course.


Kirbs






On 25/07/17 15:24, 'Nick Smith' via Sheffield Hackspace wrote:
> Thanks Andy - that has saved me a LOT of wasted time & money!! :D I
> plead guilty on all counts, m'lord:
>
> 1. Not knowing the difference between linear and switching regulators
> 2. Optimising for the sake of it
> 3. Focusing on the wrong thing (quiescent/unloaded) rather than what
> the overall circuit will be doing in day
>
> I don't know if my back of the envelope calculations are correct, but
> the difference between the MP1584 switching and HT7333-1 linear
> regulators are dramatic. Assuming a 24V supply to my heliostat, in sleep
> mode 58 seconds in every minute, active microprocessor + motor drivers 2
> seconds in every minute, and WiFi active but no motor drivers 1 minute
> in every day, I make it (excluding pullup resistors, etc):
>
>
> average of 3.3mA with MP1584 (70-75% efficient, 100uA quiescent)
>
> average of 15.5mA with HT7333-1 (14% efficient, 2.5uA quiescent)
>
> average of 2.6mA with TPS62177DQCR (87-90% efficient, 4.8uA quiescent)
>
>
> so I think I'm full circle back to the MP1584 ;) The TI switching
> regulator is quite a bit more efficient + much lower quiescent current,
> but the chip is 5x as expensive as the MP1584 for only a 20% improvement
> in average power usage. With only a 12V input the HT7333-1 still uses
> ~7.9mA which is over twice the MP1584.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Sheffield Hackspace" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sheffield-hardware-...@googlegroups.com
> <mailto:sheffield-hardware-...@googlegroups.com>.
> To post to this group, send email to
> sheffield-har...@googlegroups.com
> <mailto:sheffield-har...@googlegroups.com>.

andy

unread,
Jul 25, 2017, 11:48:48 AM7/25/17
to sheffield-har...@googlegroups.com
As a side note, if you are using several of the adafruit modules or
similar Chinese ones, many come with linear regulators on board.

Where you can use a common little switch mode unit like the MP1584 it is
worth while taking the linear regulators off and shorting the relevant
pads so they don't waste power unnecessarily.

Have a look through the modules or better still get a schematic.

Low power design, like RF design and digital design can all look like
black arts but most of it is just common sense and fully understanding
the optimization and compromises of that particular electronics type.

Kirbs

Graham Driver

unread,
Jul 27, 2017, 8:17:36 AM7/27/17
to andy, sheffield-har...@googlegroups.com

On the other hand the transient response of the linear is generally better. I send the 5V output of my switcher to the linear - if I have fitted on, if not I don't.  Links on the pcb don't you know.




From: sheffield-har...@googlegroups.com <sheffield-har...@googlegroups.com> on behalf of andy <an...@kirbyand.co.uk>
Sent: 25 July 2017 15:48
To: sheffield-har...@googlegroups.com
Subject: Re: [SHH:6587] Re: Step-down converter with low quiescent current ?
 
To unsubscribe from this group and stop receiving emails from it, send an email to sheffield-hardware-...@googlegroups.com.
To post to this group, send an email to sheffield-har...@googlegroups.com.

Andy Kirby

unread,
Jul 28, 2017, 5:58:36 AM7/28/17
to Graham Driver, sheffield-har...@googlegroups.com

True


I have usually assumed that this is directly related to the switching frequency of the switcher. It has got to be difficult (nay impossible) to compensate for transients that are quicker than the cycle time producing the PWM pulse length for a given single pulse for the switcher.


For this reason and others (component size, ripple handling, the frequency of the pulse train should be well above the band of frequencies for the application or you are just adding noise that is not filterable) I have a preference for switchers that operate at the highest frequency possible given the current common, state of the art, of the components used in them. I don't like to sacrifice efficiency. The compromise thing again.


It is a carry over of having to design and build switchers for instrumentation back in the early nineties. They are horrible things to get right, iterative calculations, hand wound pot core inductors, excessive attention to the spec of component details, layout constraints. etc etc etc. And you still need to tweak the inductors by hand a turn (and a bit) at a time.


The ones I did were running at 4Khz, the energy transfer calculations gave per cycle peak currents that are mind boggling.


4Khz was the highest frequency (above audible) that we could get away with with the cost effective (production design considerations) components of the day.


The whistling pot cores used to drive me nuts. Being hand wound they were not varnish dipped which killed a lot of the whistling.


But fortunately these days we can buy the tiny mpxxxx ones for pence from aliexpress. I just focus on efficiency/load curves and frequency in the specs. Life is way too short.


Kirbs

Andy Kirby

unread,
Aug 6, 2017, 12:45:05 PM8/6/17
to Nick Smith, Sheffield Hackspace

Just to tidy up a last loose end.

I mentioned putting an smpsu into sleep or disabled mode. You need to be careful if it is the only supply to your circuit as you are shutting off power to whatever put it into sleep mode.

Check out the manufacturers data sheet for the smpsu chip/modules we use a lot in projects:-

https://www.monolithicpower.com/Products/Product-Detail/101/Step-down(Buck)/SwitchingRegulators/DC-DCPowerConversion/Converters/MP1584

Pin 2 is an enable signal.

Bearing in mind that if this is the only supply to your circuit, once you pull it low then the switcher will do the minimum quiescent value, which actually looks to be set by the resistive divider between Vin (Pin7), pin 2 and ground.

If you place a small capacitor across R6 in the data sheet and pulse it low with an IO pin. It will shutdown power to whatever it is powering until the RC time constant of R5 and your capacitor, hampered by R6 allows the voltage at pin 2 to rise enough and allows the switcher to startup again.

You could achieve similar for longer periods perhaps by making yourself a monostable circuit to drive pin 2 but you are back at an increased sleep time current draw.

Pin 2 is not broken out on the little boards we use, however it is possible to solder a flying lead onto it or an adjacent connected device pad.

On the face of it this looks a little useless.

But depending on how you write your micro controller code you can use this technique to shut everything off (including your micro-controler) for that period.

You must write your micro controller code though to be "Stateless" ie it comes  up from power-on/reset measures where it is, calculates where it needs to be next, does it, then goes to sleep by pulsing the smpsu en pin low. Or alternatively you use the micro-controlers eeprom memory if it has it (many atmegas do) to store just enough state to carry forward between power off cycles.

This does look like a lot of work, but consider that micros like the ESP rely on a full reset to wake them up from their sleep mode. You have to wire the rest pin to a wakeup pin to get them to work. The coding has to be the same Stateless or minimalist saved state methodology to work with this.


As ever this is a bunch of stuff to play with and get right, whether it is worth the time/effort versus what you get from it is a compromise that you as the project do'er have to make a judgement call on.


In your own case I think you have pretty much worked it all out anyway and have a solution that works. This last little bit is worth keeping in a back pocket for just in case later on. One of plans A, B or C usually pay off, but it is often worth having a plan Z up your sleeve for just in case.


Kirbs

Nick Smith

unread,
Aug 7, 2017, 9:38:58 AM8/7/17
to Sheffield Hackspace, nickco...@googlemail.com, an...@kirbyand.co.uk


Thanks for that advice Andy :)

I've just bought a different design of MP1584-based module, and the power usage with no load is now 20x more efficient (!)

On the right is the module I was using - 4 header holes and a blue LED. It wastes 4.6mA to 12mA with no load and 12V input, depending on output voltage. (The LED doesn't make much difference, as I've tried one of the modules with it removed).

On the left is the far more common version of the module, available from lots of different sellers on ebay/aliexpress. It has 8 header holes and no LED. I've measured 200uA to 600uA with no load and 12V input. Rather better!!!!!

Adrian Godwin

unread,
Aug 7, 2017, 10:08:07 AM8/7/17
to Nick Smith, Sheffield Hackspace, Andy Kirby
Thanks for that comparison. It looks as though the manufacturers of the module on the right have managed to get it to work without a flyback diode - but apparently efficiency suffers.


--
You received this message because you are subscribed to the Google Groups "Sheffield Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sheffield-hardware-hackers+unsub...@googlegroups.com.
To post to this group, send email to sheffield-hardware-hackers@googlegroups.com.

Andy Kirby

unread,
Aug 7, 2017, 10:15:29 AM8/7/17
to Nick Smith, Sheffield Hackspace

Interesting comparison and one to watch out for.

I can definitely confirm all the ones I have bought/used so far have been the one on the left.

I remember having a conversation with nophead, he had bought what he thought to be the same as one of the ones on the left and found the performance poor and the switching frequency low. I wonder if he got one of those on the right by accident.

Just doing a quick comparison of the connections to the chip by eye (going to be error prone as we can not see the back of the board) it looks like the chip on the right has a completely different pinout to the one on the left.  The two connections that jump out are the +in and the wiper contact of the pot. They go to completely different pins.

Looking at the board on the left it has the power Schottky diode I would expect in an SMPSU (SS34) but I can not see a Schottky at all on the board on the right. Leading me to think that if there is one it is stupidly underrated for 2/3A. Or on chip, which is not an MP1584.

http://www.vishay.com/docs/88751/ss32.pdf

This pretty much leads me to think that the device on the right is not actually an MP1584 at all. No idea what it is but certainly not an MP1584.

Well spotted nick and thanks for sharing that. definitely one to watch out for.


Cheers

Kirbs

nop head

unread,
Aug 7, 2017, 11:41:16 AM8/7/17
to Andy Kirby, Nick Smith, Sheffield Hackspace
All mine look like the one in the left. The ones I bought for £2 for 5 on AliExpress all have massive oscillation on the output. E.g. 1.5V pk-pk.

Inline images 1

A couple I bought for IotModules in the UK for about £2 each work fine. I have been unable to spot a difference.

--
You received this message because you are subscribed to the Google Groups "Sheffield Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sheffield-hardware-hackers+unsub...@googlegroups.com.
To post to this group, send email to sheffield-hardware-hackers@googlegroups.com.

Andy Kirby

unread,
Aug 7, 2017, 12:12:39 PM8/7/17
to nop head, Nick Smith, Sheffield Hackspace

Dumb question.

I take it that was with a load on it ??

How did the waveform vary with increased load ??

That is a big ripple.

The switching frequency is set by resistor, wonder if they coped the rest but had the wrong value for the resistor in. Switching at too low a frequency on an inductor chose for higher frequency work will produce ripple but i would expect the waveform to be messier than this one. as the core would be saturating.

The datasheet says that the enable  has to be high or floating, I cant imagine a floating enable being a good idea though and all the piccys in the data sheet show it with pull up of some sort or other. Might be worth checking if the enable is actually floating and pulling it up.


Kirbs

nop head

unread,
Aug 7, 2017, 12:32:03 PM8/7/17
to Andy Kirby, Nick Smith, Sheffield Hackspace
Yes it had a significant resistive load on it. I can't remember but probably about 1A.

It isn't ripple from the switching. It is control loop instability.

I have checked all the resistor and capacitor values. IIRC the inductor was twice the value of the working ones, so I tried two in parallel.

My next step was to swap a chip but I keep using my working ones.

To unsubscribe from this group and stop receiving emails from it, send an email to sheffield-hardware-hackers+unsubsc...@googlegroups.com.

Adrian Godwin

unread,
Aug 9, 2017, 2:24:09 PM8/9/17
to nop head, Andy Kirby, Nick Smith, Sheffield Hackspace

Andy Kirby

unread,
Aug 9, 2017, 3:42:28 PM8/9/17
to Adrian Godwin, nop head, Nick Smith, Sheffield Hackspace

Yes it certainly looks a lot more plausible from the data sheet. Good spot.

https://www.monolithicpower.com/Products/Product-Detail/238/Step-down(Buck)/SwitchingRegulators/DC-DCPowerConversion/Converters/MP2307

Internal Schottky or similar then, although looking at the diagram on the internals there is no schottky it uses an active switch configuration (Totem pole or push/pull). Ug Don't fancy that, good Schottkys are usually as quick as you will get. A lot of efficiency is lost in the switching transitions other wise.

Theres that necessary dead band bit between the push/pull changeover that has to be there to prevent shoot through. Plus the t off of the high side plus the t on of the low side. horrible. Their diagram does not show how they achieved this. So it does need taking with a little bit of a pinch of salt. A straight gate/flip-flop drive as the piccy suggests would give horrible shoot through.

Alternatively where they have dead-band the inductor has no connection for the duration of the dead period.

https://www.maximintegrated.com/en/glossary/definitions.mvp/term/Shoot-Through%20Current/gpk/1040

One of the optional diagrams does show an optional external diode. Which does not look to be on the board in nicks piccy.

Switching frequency is fixed and quite a bit lower: "Fixed 340kHz Frequency". IMHO so long as the components are up to it higher frequency is always better.

The standby or shutdown current is very low, 1 uA or so, (as per the conversation about the enable) but the actual operating current is 1.5mA or so.

Think I prefer the MP1584


Kirbs

nop head

unread,
Aug 9, 2017, 3:51:01 PM8/9/17
to Andy Kirby, Adrian Godwin, Nick Smith, Sheffield Hackspace
Using a MOSFET instead of a diode is known as synchronous rectification. Basically you turn it on when the diode would be conducting. A low RDSon MOSFET can have a much lower voltage drop than a Schottky diode although in this case 0.1R is not very impressive but will drop less than a diode at 3A.

Andy Kirby

unread,
Aug 9, 2017, 3:57:39 PM8/9/17
to nop head, Adrian Godwin, Nick Smith, Sheffield Hackspace

Agreed, but what about the dead band and switching losses. These are significant losses in a switcher.

If transistors were perfect it would be great, but there not.

Mind you I guess this is why the switching frequency is fixed and low. It is a trade off. You know what the dead-band needs to be then and it will not vary by that much.


Kirbs


BTW liked the last couple of posts Nop.

http://hydraraptor.blogspot.co.uk/

Awesomely detailed as ever. Sorry bout the laser diode. A cautionary tale and one to watch out for. I used to think they were more robust than that.

nop head

unread,
Aug 9, 2017, 6:39:01 PM8/9/17
to Andy Kirby, Adrian Godwin, Nick Smith, Sheffield Hackspace
Yes there will be switching losses but with a reasonably fast MOSFET with low RDSon they will be small compared to the huge I * Vf loss in a diode. The myriad of high current low voltage convertors you get surrounding the CPU on a modern PC motherboard use synchronous rectification.

I think laser diodes are the most delicate electronic components I have ever come across. At their nominal power they seem to be right on the limit both electrically and optically, so a moderate overload for a few microseconds will destroy them. Also very ESD sensitive and very hard to protect. Also reverse bias of about the same as the forward drop or a few tens of microamps will destroy them.
Reply all
Reply to author
Forward
0 new messages