Need a nice little 5V regulator? We rather like the very-low-dropout L4931 from ST! This little guy will help you get your 5.5-20V battery or wall adapter down to a nice clean 5V with 2% regulation. Perfect for just about all electronics! This is a TO-92 package version, with up to 300mA current capability, and has internal current limiting + thermal shut-down protection which makes it sturdy and pretty much indestructible - at least electronics-wise (we're pretty sure a hammer might work...)
This regulator has a very low 0.4V linear drop-out, way better than the 780X series' 2V. That means you must give it at least 5.4V to get a clean 5V out. This regulator is often used to get a 9V power supply or battery to get a clean 5V. There is a constant 'quiescent' current draw of 1mA (which increases up to 5mA as you draw 250mA) so it's good for portable and battery-powered projects
This regulator can provide up to 300mA peak as long as you do not overheat the package. The higher your input voltage and output current, the more heat it will generate. Without an extra heatsink, you can burn off up to 0.6W. We like this calculator for determining your heat sink requirements. It's a TO-92 package, so use 200°C/Watt junction-to-air thermal resistance. The wattage of your set up is = (InputVoltage - 5V) * AverageCurrentInAmps. E.g. a 9V battery and 0.2 Amp of average output current means the regulator is burning off (9 - 5)*0.2 = 0.8 Watts! That's too much for the little package, it will overheat. Instead, reduce your average current to 0.1A (for 0.4W) or you could use 4 AA batteries, for 6V in (6-5)*0.2 = 0.2W, both of which would not require a heatsink.
This regulator requires at least 2,2uF electrolytic capacitors on both input and output for stability, 10uF will do the job nicely.