For your Arduino UNO to start working, it needs one essential thing: power. There are several ways you can power your Arduino.
Via USB Cable
Most frequently, you’ll power it from your computer using a USB cable. Since you also transfer your programs to the Arduino via USB, this is the simplest and most obvious option. This provides your microcontroller with 5 volts.
Make sure you use a USB cable that can transfer data, not just power. A common source of failed program uploads is actually cables that only conduct electricity but don’t transfer data.
With a 9V Battery
Sooner or later, you’ll build projects that you want to operate independently from your computer. Since your Arduino UNO no longer needs the computer once the program is stored on it, you can use a different power source.
For this purpose, the Arduino UNO has another input for a 9-volt battery. All you need is a battery and a suitable cable. You can find this in most starter kits or for a few cents in stores.
One more tip: A power bank can also serve as a mobile power source. In this case, you would again use the USB cable.
Powering Only the Breadboard
You also have the option to operate an electrical circuit on your breadboard without the Arduino. For this, you can use an adapter that you simply plug onto your breadboard and power either via USB or with a 9V battery.
With this adapter, you supply power to the power rails on both sides of the breadboard. With the jumpers on the adapter, you can even switch between 5V and 3.3V, allowing you to power components individually.
By the way, you’ll learn more about the breadboard and how it works in a later lesson.