Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I want to power a prototyping kit for an 8 pin picaxe micro-controller with a 9v battery (the board itself requires a 5v input).

I have the following regulator: https://www.sparkfun.com/products/107

On the 3rd page of the data sheet says that for that 5v regulator, the min voltage is 7 and the max voltage is 25 (input).

data-sheet: https://www.sparkfun.com/datasheets/Components/LM7805.pdf

However, in the comments section of the first link,a few people said that it is not a good idea to use this regulator to reliably drop voltage from 9v to 5v.

Questions: What do you think? Does that voltage regulator fit my expectations?

What would happen if I find that 5v battery and connect the 5v battery to the voltage regulator? What voltage would it output?

Thanks so much!

share|improve this question
If you have a 5V battery, you don't use a regulator. – Kaz Sep 22 '12 at 7:40

6 Answers

up vote 6 down vote accepted

The regulator will work perfectly if you keep within the datasheet specs. If you supply it with less than 7V it will lose regulation.

Things to be aware of are that if you supply power with a 9V battery and try and draw too much current, the battery voltage will eventually sag below the 7V required (this is likely what was happening to the first commentor)

Also, the higher your input voltage, the more power is dissipated in the regulator so you may need a heatsink. There are many answers on here that go through all this. To tell you whether you would need one we would need to know how much current you are planning on drawing from it at what input voltage.
If it's 9V, then assuming a maximum ambient temperature of 50°C, a maximum operating temp of 125°C:

(125 - 50) / 19 = 3.95W maximum.
at 9V:
3.95W / (9V - 5V) = ~1A maximum

If it's just the microcontroller you are powering though, then it's almost certainly no problem. As we can see over an amp would be needed to needed to reach maximum operating temperature (even if reached, it's unlikely to break - it will just shut down) Your kit will probably only draw a few milliamps, maybe up to 100mA with all pins driving heavyish loads.

share|improve this answer
Thx =) yeah, the only thing I'm going to be powering off this is the micro-controller for now (it's for the same proto-board that you answered [electronics.stackexchange.com/questions/41810/…). – stackOverFlew Sep 20 '12 at 23:01
Ah right, that should have no problems at all. – Oli Glaser Sep 20 '12 at 23:09

The LM7805's a fairly standard linear regulator. What that means is that it has a transistor inside it that effectively acts as a big variable resistor, connected in series with the circuit you're powering, whose resistance is continuously adjusted so that the output voltage is 5V. Now like any resistor, this produces heat, and the amount of heat produced is equal to the current through the regulator times the voltage drop across it. So higher input voltages mean it can handle less current before it overheats.

One quirk of linear regulators is that there's a minimum voltage drop across them called the dropout voltage. If your input voltage isn't higher than the output voltage by at least that amount the regulator "drops out" of regulation and the output voltage tracks the input voltage minus the dropout voltage. Since its dropout voltage is about 2 volts, if you put 5 volts in you could expect to get about 3 volts out. The LM7805's old as the hills and there are a whole bunch of "low drop out" regulators with dropout voltages in the low hundreds of millivolts, though even they require an input voltage higher than the output voltage. A lot of them are surface-mount parts unfortunately.

share|improve this answer

You need at least 7 V since the dropout is typically 2 V. Since that is typical, it may be more and you may need more than 7 V.

9 V to 5 V is 4 V. That times the current is the power lost in the regulator. If that is too high the part may stop working or get very hot.

A 5 V input to the regulator might get you 3 V out. It definitely won't get you 5 V out.

share|improve this answer
Wish I could have accepted both as your answer deals more completely with the second question. Thanks a lot! – stackOverFlew Sep 20 '12 at 22:58

If you're running off batteries, don't waste energy with a regulator. Maybe the board will run off three or four AA batteries in series.

The people who made the 5V board probably thought about power dissipation, which is why they made it run off 5V rather than 9V. But, here you are, trying to us 9V to drive a heater (which also puts out 5V for the board as a side effect).

Although regulators provide a fixed voltage, the main reason for their use is that they eliminate the power supply ripple from rectified AC that filter capacitors alone are not able to remove. Regulators do this actively: they contain a feedback-based amplifier which amplifies a reference voltage (e.g. provided by a temperature-stable Zener) and monitors the amplified output voltage, adjusting the gain so that it is ruler flat over time.

So they are used even for circuits that could run off a range of voltages perfectly well: a flat, ripple free voltage is often more important than a particular, precise voltage value (though the latter is undeniably also important sometimes!).

Since you're running off batteries, you do not have power supply ripple, and so the only reason for using a regulator would be that you're overly concerned with running the board off 5.0 volts, which may be completely unnecessary.

share|improve this answer
A look at the picaxe web site tends to confirm what I wrote. Quote: "All the latest (M2 and X2) PICAXE parts can be run at 3V, 4.5V or 5V. Most people generally use 4.5V from a 3xAA cell battery pack. There is no need to build special interfacing circuits to run with 3V parts like GPS or XBee modules - simply run the PICAXE at 3V as well." Source: picaxe.com/What-is-PICAXE/PICAXE-Pinouts – Kaz Sep 22 '12 at 8:16

If you want to get more use out of the battery just use a LDO (Low drop out regulator)

share|improve this answer
3  
I don't quite get how this works. If you have 9 volts in, 5 volts out, and a linear regulator, won't the loss always be exactly the same, regardless of regulator type/model etc.? With efficiency being ~5/9 = 55.55%? LDO or not, it still has to drop the voltage somewhere. – exscape Sep 21 '12 at 7:37
1  
that is true, it's just that a LDO can operate to closer to teh output voltage. So you can run the battery down more before the regulator stops regulating. For example: using a 7805 your battery starts at 9 and runs to 7 before dropping out. And LDO with say 0.3 Volts of headroom the battery starts at 9 and runs to 5.3 V before loosing regulation. That doesn't mean that you get 3.7/2 X more power out as the battery can be non-linear. It does mean that you will get more power out. But you're right same amount of power scrubbed [I*(Vin-Vout)] – rawbrawb Sep 21 '12 at 15:51

Whatever you do, don't use 4 batteries in series. I understand the picaxe m/c is very fussy about voltage and anything over 5v will fry it for breakfast.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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