O'Reilly logo

C Programming for Arduino by Julien Bayle

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Arduino, battery, and autonomy

The Arduino boards can supply power in two ways:

  • A USB wire from a computer
  • An external power supply

We already used USB for supplying power to the Arduino since the beginning of the section. This is a pretty nice way to begin (and even to make a great project). This is easy and works for many purposes.

We can also use an external power supply when we need more autonomy and mobility with our Arduino devices.

In any case, we have to keep in mind that both our Arduino and our circuits wired to it need power. Usually, the Arduino consumption is no more than 50mA. Add some LEDs and you'll see the consumption increase.

Let's check some cases of real use.

Classic cases of USB power supplying

Why and when would we use a USB power ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required