Author Topic: 5v MCU powered from 5-24v  (Read 22623 times)

0 Members and 5 Guests are viewing this topic.

Offline mobbarleyTopic starter

  • Regular Contributor
  • *
  • Posts: 200
  • Country: au
5v MCU powered from 5-24v
« on: October 18, 2010, 10:37:25 am »
I want to run a 5V MCU with an input from 5-25V, whats the best way of doing this?

I only need ~10mA so I was thinking of a series resistor with shunt a regulator but if my calculations are correct the series resistor will be at almost 2W dissipation at 25V - a little high.


 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20033
  • Country: gb
  • 0999
Re: 5v MCU powered from 5-24v
« Reply #1 on: October 18, 2010, 11:12:34 am »
I think you've got the decimal point wrong, I make it 200mW.

Another option is to use a low drop-out regulator and make sure that the circuit will still work when the input voltage is 5V and the regulator is operating in drop-out.

The LM2936Z-5 has a low quiescent current current of 15µA and the drop-out voltage will be just 150mV when the load current is 10mA so with 5V in, the output voltage will be 4.85V which is within the power supply voltage specification of all 5V logic components.
 

Offline saturation

  • Super Contributor
  • ***
  • Posts: 4787
  • Country: us
  • Doveryai, no proveryai
    • NIST
Re: 5v MCU powered from 5-24v
« Reply #2 on: October 18, 2010, 11:15:22 am »
Build a regulator around LM7805 IC, this will accommodate the wide range in Vdcin and give you a Vo= 5Vdc within 4%.
Best Wishes,

 Saturation
 

Offline TheDirty

  • Frequent Contributor
  • **
  • Posts: 440
  • Country: ca
Re: 5v MCU powered from 5-24v
« Reply #3 on: October 18, 2010, 11:54:31 am »
7805 has a dropout of 2V.  That wouldn't work at 5V in.  You need something with a much lower dropout, like Hero999 suggested, or some other way to avoid the dropout as Vin gets close to 5v.  I'm not the best at analog and power.
Mark Higgins
 

Offline migsantiago

  • Frequent Contributor
  • **
  • Posts: 381
  • Country: 00
    • MigSantiago's Web Site
Re: 5v MCU powered from 5-24v
« Reply #4 on: October 18, 2010, 01:30:23 pm »
A step-down switching supply would be enough. I was going to recommend the TL2575 but it only accepts an input from 10V to 40V and you have 5V to 24V.

The easiest choice is a 7805 as the other guys say.  ;) Forgot the dropout voltage.  :-X
« Last Edit: October 18, 2010, 02:20:38 pm by migsantiago »
 

Offline saturation

  • Super Contributor
  • ***
  • Posts: 4787
  • Country: us
  • Doveryai, no proveryai
    • NIST
Re: 5v MCU powered from 5-24v
« Reply #5 on: October 18, 2010, 01:41:16 pm »
you're right, at least 7Vindc.  I stand corrected.

7805 has a dropout of 2V.  That wouldn't work at 5V in.  You need something with a much lower dropout, like Hero999 suggested, or some other way to avoid the dropout as Vin gets close to 5v.  I'm not the best at analog and power.
Best Wishes,

 Saturation
 

Offline scrat

  • Frequent Contributor
  • **
  • Posts: 608
  • Country: it
Re: 5v MCU powered from 5-24v
« Reply #6 on: October 18, 2010, 01:50:02 pm »
If your spec is strict, and you have to obtain (in the worst case) 5V from a 5V- source, then you will need a switching regulator that can even step-up voltage (buck-boost or similar).
Otherwise, if an output voltage of little less than 5V is allowed, what about bypassing an LM7805 or similar with a Schottky diode? The IC regulator will work for high input voltages, while at low values (near to 5V) the diode will provide something above 4.5V, which could be enough.
One machine can do the work of fifty ordinary men. No machine can do the work of one extraordinary man. - Elbert Hubbard
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11712
  • Country: my
  • reassessing directives...
Re: 5v MCU powered from 5-24v
« Reply #7 on: October 18, 2010, 02:00:12 pm »
LM317 input 8V-40V for Vo = 5V
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline Strube09

  • Regular Contributor
  • *
  • Posts: 125
  • Country: 00
Re: 5v MCU powered from 5-24v
« Reply #8 on: October 18, 2010, 02:03:20 pm »
Is the input anywhere from 5-24V?

Or would it be used at certain levels from certain sources? Like 5V wall wart, 9V wall wart, 12 or 24V Automotive?

If so you could set up a comparator circuit that would just say anything less than 5.5V would just pass the supply to the controller and anything greater than 5.5 would pass the voltage through a regulator.

What kind of micro are you using. Microchip has a few high volt chips that have a internal shunt regulator that you could look at if you are using a PIC.
 

Offline scrat

  • Frequent Contributor
  • **
  • Posts: 608
  • Country: it
Re: 5v MCU powered from 5-24v
« Reply #9 on: October 18, 2010, 02:34:58 pm »
If so you could set up a comparator circuit that would just say anything less than 5.5V would just pass the supply to the controller and anything greater than 5.5 would pass the voltage through a regulator.
It ends up that a simple reference(zener?)+opamp+MOSFET could be a good choice. For little currents, series resistance of the MOSFET can have quite low dropout (even a 10 Ohm MOSFET will give 100mV @10mA).
One machine can do the work of fifty ordinary men. No machine can do the work of one extraordinary man. - Elbert Hubbard
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20033
  • Country: gb
  • 0999
Re: 5v MCU powered from 5-24v
« Reply #10 on: October 18, 2010, 06:44:34 pm »
I wouldn't rule out either the LM7805 or LM317 just yes, it depends on the minimum voltage requirements of the PIC circuit. The drop-out voltage depends on the current, for example with an output current of 10mA a typical LM317 will drop-out at 1.5V, not 3V so if the PIC circuit is still fully operational down to 3.5V, it will be fine, otherwise you need a better regulator.
 

Offline RayJones

  • Frequent Contributor
  • **
  • Posts: 490
    • Personal Website
Re: 5v MCU powered from 5-24v
« Reply #11 on: October 18, 2010, 06:50:33 pm »
The obvious answer would be a SEPIC buck/boost switching regulator design.
The not so obvious is the design of these, but SEPIC into Google will get you started.

The efficiency of a SEPIC is not as good as either buck or boost regulator versions, but still is a damn sight better than a shunt regulator @ 24V. ie heat dissipation.

Another possibility depends on how tight your 5V needs to be.
If you use a Low Voltage capable PIC, you could maybe simply use a 7805.
You will probably find the 5V output regulation stops when you get to 7Vish, but the output voltage will still follow the input albeit with a 2V or so difference.
This however definitely falls into ugly design territory.
 

Offline migsantiago

  • Frequent Contributor
  • **
  • Posts: 381
  • Country: 00
    • MigSantiago's Web Site
Re: 5v MCU powered from 5-24v
« Reply #12 on: October 19, 2010, 02:10:42 am »
The obvious answer would be a SEPIC buck/boost switching regulator design.
The not so obvious is the design of these, but SEPIC into Google will get you started.

The efficiency of a SEPIC is not as good as either buck or boost regulator versions, but still is a damn sight better than a shunt regulator @ 24V. ie heat dissipation.

I didn't know that kind of supply. Thanks for mentioning it.
 

Offline slburris

  • Frequent Contributor
  • **
  • Posts: 548
  • Country: us
Re: 5v MCU powered from 5-24v
« Reply #13 on: October 19, 2010, 03:57:15 am »
So let me put in a plug for the design software on the National Semiconductor
site.  You can start a design right on the front page:

http://www.national.com

So I put in the input voltage 5-24 volts, output voltage 5 volts, current 50ma,
and out popped a nice little flyback switcher design using the LM2585, complete
with schematic and a parts list.  See attached PDF for details.

Scott
 

Offline RayJones

  • Frequent Contributor
  • **
  • Posts: 490
    • Personal Website
Re: 5v MCU powered from 5-24v
« Reply #14 on: October 19, 2010, 07:28:35 am »
So let me put in a plug for the design software on the National Semiconductor
site.  You can start a design right on the front page:

http://www.national.com

So I put in the input voltage 5-24 volts, output voltage 5 volts, current 50ma,
and out popped a nice little flyback switcher design using the LM2585, complete
with schematic and a parts list.  See attached PDF for details.

Scott


Gotta love that Design.pdf file.
It even lists the components, especially the transformer.
I admit the magnetics are always my weak point with switcher designs - choice of core windings etc.

 

Offline scrat

  • Frequent Contributor
  • **
  • Posts: 608
  • Country: it
Re: 5v MCU powered from 5-24v
« Reply #15 on: October 19, 2010, 08:45:10 am »
So let me put in a plug for the design software on the National Semiconductor
site.  You can start a design right on the front page:

http://www.national.com

So I put in the input voltage 5-24 volts, output voltage 5 volts, current 50ma,
and out popped a nice little flyback switcher design using the LM2585, complete
with schematic and a parts list.  See attached PDF for details.

Scott


Good shot! I didn't even know how powerful it could be a tool like this.
One machine can do the work of fifty ordinary men. No machine can do the work of one extraordinary man. - Elbert Hubbard
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20033
  • Country: gb
  • 0999
Re: 5v MCU powered from 5-24v
« Reply #16 on: October 19, 2010, 09:58:37 am »
The obvious answer would be a SEPIC buck/boost switching regulator design.
The not so obvious is the design of these, but SEPIC into Google will get you started.

The efficiency of a SEPIC is not as good as either buck or boost regulator versions, but still is a damn sight better than a shunt regulator @ 24V. ie heat dissipation.
Don't you think that's a little overkill for 5V at 10mA from a 24V power source?

Presumably it doesn't need to be low power so I don't see any real benefit of using an SMPs.

Just for educational purposes: an alternative to a SEPIC is to use two switching transistors so it can work both as a buck and as a boost.

http://www.eetimes.com/design/automotive-design/4006655/Linear-regulators-vs-switchers-for-automotive-applications

Quote
Another possibility depends on how tight your 5V needs to be.
If you use a Low Voltage capable PIC, you could maybe simply use a 7805.
That sounds like a good enough idea to me.


Quote
You will probably find the 5V output regulation stops when you get to 7Vish, but the output voltage will still follow the input albeit with a 2V or so difference.
This however definitely falls into ugly design territory.
The dropout voltage will be closer to 1.5V with an output current of only 10mA (see the datasheet http://www.national.com/ds/LM/LM340.pdf) so it should be better than that, if the PIC will work down to 2V, it should be fine down to 3.5V which should be more than enough contingency for a circuit running off a 5V supply. Just make sure the output is well decoupled so ensure it's still stable when regulation is lost.

 

Offline RayJones

  • Frequent Contributor
  • **
  • Posts: 490
    • Personal Website
Re: 5v MCU powered from 5-24v
« Reply #17 on: October 19, 2010, 10:26:30 am »
Yeah a SMPS for 10mA is a bit of overkill. I must admit I skimmed the current requirement.
If you reckon the voltage regulator is the go then there is really no difference to the OP's original desire to use a shunt regulator and a series dropping resistor.

Either way 200mW needs to dissipated, it either going to be the series resistor or the series voltage regulator.
The series voltage regulator will however not regulate once we reach whatever the dropout voltage is.

The shunt regulator will always give a more stable "5V" than a series pass device.
There are some nice TO-92 shunt regulators. I encountered some in a, dare I say it, SMPS I recently repaired. http://www.fairchildsemi.com/ds/KA%2FKA431.pdf is the devices I came across.

A simple 4V7 zener would maybe all that is needed and an appropriate sized resistor value, but the varying zener current would be somewhat of an issue for a stable Vout over the specified range.
The KA431 would eat it for breakfast.

 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20033
  • Country: gb
  • 0999
Re: 5v MCU powered from 5-24v
« Reply #18 on: October 19, 2010, 11:19:09 am »
The advantage of a series pass device is that it uses less current when the output current falls, a shunt just uses the same amount of power regardless. In this case though, the LM7805 has a quiescent current of 6mA and the requirement is 10mA so I agree, use the (LM/TL/KA)431.
 

Offline TheDirty

  • Frequent Contributor
  • **
  • Posts: 440
  • Country: ca
Re: 5v MCU powered from 5-24v
« Reply #19 on: October 19, 2010, 12:19:19 pm »
Another thread that can't actually give any final answers because the OP never returns to answer any questions regarding their actual design rules.
Mark Higgins
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11712
  • Country: my
  • reassessing directives...
Re: 5v MCU powered from 5-24v
« Reply #20 on: October 19, 2010, 04:40:43 pm »
so we just talking to ourself.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20033
  • Country: gb
  • 0999
Re: 5v MCU powered from 5-24v
« Reply #21 on: October 19, 2010, 05:09:44 pm »
I think we should be more patient. We've only waited just over a day for the original poster, give it a few days, then we can start complaining. It annoys me when people ask questions on forums then whine when no one responds within a day - let's not be like that.
 

Offline TheDirty

  • Frequent Contributor
  • **
  • Posts: 440
  • Country: ca
Re: 5v MCU powered from 5-24v
« Reply #22 on: October 19, 2010, 05:27:20 pm »
I think we should be more patient. We've only waited just over a day for the original poster, give it a few days, then we can start complaining.

Thought the post date was earlier than that, but I was looking at the join date.
Mark Higgins
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11712
  • Country: my
  • reassessing directives...
Re: 5v MCU powered from 5-24v
« Reply #23 on: October 19, 2010, 06:45:55 pm »
I think we should be more patient. We've only waited just over a day for the original poster, give it a few days, then we can start complaining. It annoys me when people ask questions on forums then whine when no one responds within a day - let's not be like that.
ok ok! ok "pa" ;) i'm following you!
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline mobbarleyTopic starter

  • Regular Contributor
  • *
  • Posts: 200
  • Country: au
Re: 5v MCU powered from 5-24v
« Reply #24 on: October 20, 2010, 11:47:28 am »
i'm here i'm here  :)

A lot of suggestions - I should have started out by mentioning that I had looked into a sepic / etc but I am really aiming for a tiny pcb that works first time - efficiency is not really a concern as it will be wall-powered from the device it is plugged into.

I thought the drop out of even an LDO would be around a volt so I started looking at a shunt regulator etc. However from the look of some data sheets I should be able to get around 4.8v out from a 5v source - this is close enough to not need any bypass mechanism.

All that and everything handled by an IC + small capacitor which is great for my small footprint of ~2 sq.inches.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf