newbie - What's the best way to power the Arduino Uno?

I'm 50 and just decided to learn a little about electronics. Saw a few videos on the arduino and am hooked. I just got my Uno.

Is it safe to attach it to a 9v battery or should I step it down to 5v via breadboard 9v into the 1st leg of a three prong voltage regulator, middle leg to ground last leg would be the 5volts? Right?

or 5v dc regulator plugged into the wall?

9V battery connected to barrel jack, or to Vin/Gnd on the power header, is fine. 9V battery won't last all that lng, ~300mAH capacity powering a board that be drawing 30-40mA.

5V connected to 5V/Gnd on the power header is also good.

Voltage regulators have different pinouts, check the datasheet of yours at www.digikey.com

5V regulator from a wallwart is also good, that's how I power most of my projects.

Perfect. Thanks! Simple things. I taught myself HTML years ago, shouldn't be too difficult to learn C syntax in small bits and pieces.

I'm using an old laptop power supply that I had laying around; 12V/2A DC. It had the correct size connector for the barrel and the correct polarity. The real Arduino Uno has a diode to protect against incorrect polarity; it's often left out in clones (to cut costs).

5V on the barrel will work. But in that case, don't expect 5V on the 5V output pin of the board or on the microcontroller pins that are configured as output (both will be roughly 3V); and be careful in that case with other electronics (connected to an Arduino input) that have (actual) 5V outputs as that will damage the microcontroller.

Note:
There is a voltage regulator on the Uno board that will bring higher voltages down to 5V; so no need to bring it down before if you feed via the barrel or the Vin pin. The voltage regulator is rated for a max current of 1A but I'm not sure if it can handle that without additional cooling.

Even better explanation... I was getting confused. I'm on Power Products Category on Adafruit Industries
which has a wide variety: 5v 10A(I would think this would fry the UNO board), 9v 1A and a slew of lipo batteries. Probably get a lipo when project is finalized.

If the Uno uses 5v and rated at 1A. Right? Then I should get that Wall charger? Don't see one.

How about: USB to 2.1mm Male Barrel Jack Cable [22AWG & 1 meter] : ID 2697 : $2.75 : Adafruit Industries, Unique & fun DIY electronics and kits ? Wait! If I already have to plug the
Uno into the computer to send the data to the chip, can't it get the power from there?

This: (looks like my printer cable) USB Cable - Standard A-B [3 ft/1m] : ID 62 : $2.95 : Adafruit Industries, Unique & fun DIY electronics and kits

marine_hm:
Even better explanation... I was getting confused. I'm on Power Products Category on Adafruit Industries
which has a wide variety: 5v 10A(I would think this would fry the UNO board), 9v 1A and a slew of lipo batteries. Probably get a lipo when project is finalized.

If the Uno uses 5v and rated at 1A. Right? Then I should get that Wall charger? Don't see one.

How about: USB to 2.1mm Male Barrel Jack Cable [22AWG & 1 meter] : ID 2697 : $2.75 : Adafruit Industries, Unique & fun DIY electronics and kits ? Wait! If I already have to plug the
Uno into the computer to send the data to the chip, can't it get the power from there?

This: (looks like my printer cable) USB Cable - Standard A-B [3 ft/1m] : ID 62 : $3.95 : Adafruit Industries, Unique & fun DIY electronics and kits

Yes, the Arduino board will get powered thrugh the USB cable to your computer.

2A, 10A, does not matter, the Uno will only draw the 10s of mA that it needs.
I use these to power a lot of projects,
http://www.dipmicro.com/store/DCA-0510

But I've also used this, with a 5V regulator for '328P power, controlling a transistor that sunk 12V/7A thru LED strips:

The 5V regulator only supplied 10-15mA, doesn't get warm at all.

If you are connected to USB, then 5V power comes from there when nothing else is connected (such as barrel jack, or Vin, or something at the power header).

Hahaha. Problem solved. Printer cable works for power and data transfer.