Find a course

Module 1: Getting Started with ArduinoLesson 1 of 1213 min

What Is an Arduino?

Learn what a microcontroller is, how an Arduino differs from a laptop or Raspberry Pi, and tour the pins and parts of an Arduino Uno board.

Step 1 of 11Learn

A tiny computer that does one job forever

Your microwave, washing machine and TV remote each contain a small computer called a microcontroller. It has no screen, no keyboard and no operating system. It runs a single program from the moment it gets power until the moment it loses it: read the buttons, update the display, switch the heater on, repeat.

Arduino is a family of open-source boards that put a microcontroller on a friendly circuit board, plus free software for programming it over USB. It was created in Italy in 2005 for design students who wanted to build interactive projects without an engineering degree. Today it is used in classrooms, art installations, science experiments and quick prototypes in industry.

The classic board is the Arduino Uno. It costs about as much as a pizza, survives beginner mistakes surprisingly well, and has thousands of tutorials and add-on modules. Everything in this course uses the Uno as the example, but the code runs almost unchanged on the Nano, Mega and many compatible boards.

By the end of the course you'll blink LEDs, read buttons and sensors, print data to your computer, dim lights, move a servo and plan a complete project of your own.

Step 2 of 11Compare

Microcontroller board vs. single-board computer vs. laptop

AspectArduino UnoRaspberry PiLaptop
BrainMicrocontroller (ATmega328P on the Uno R3)Multi-core processor running LinuxMulti-core processor running Windows, macOS or Linux
Speed16 MHzOver 1 GHzSeveral GHz
Memory32 KB program, 2 KB working memoryGigabytes of RAMGigabytes of RAM
Boot timeInstant: code runs in a fraction of a secondTens of secondsTens of seconds
Best atReading sensors and switching hardware with precise timingCameras, networking, screens, heavier softwareGeneral computing
Power useTiny; can run for months on batteries with careA few wattsTens of watts

Step 3 of 11Tap to reveal

What people actually build with Arduino

  1. Science and data logging

    Students and researchers log temperature, humidity, light or air quality to an SD card every few minutes for weeks, then graph the results. A board and a sensor cost less than a single commercial logger.

  2. Art and music

    Interactive installations react to visitors with light and sound, and musicians build custom controllers that send notes to a computer when they press pads or bend sensors.

  3. Home and garden

    Plant waterers, mailbox alerts, aquarium lights on a schedule and garage-door reminders are classic first "real" projects.

  4. Assistive technology

    Makers build custom switches, adapted game controllers and simple communication devices tailored to one person's needs, often for a fraction of the cost of commercial versions.

  5. Product prototypes

    Engineers test an idea with an Arduino in an afternoon before designing a custom circuit board for mass production.

Step 4 of 11Practice · Choose one

A student wants a device that checks a soil-moisture sensor every few minutes and switches a small water pump, running for weeks on a battery pack. Which is the better fit?

Step 5 of 11Learn

A tour of the Uno

Hold an Uno with the USB socket on the left and you'll find the same landmarks on every board:

  • USB connector: powers the board at 5 V and carries your program from the computer. It also carries text back and forth for debugging.
  • Power jack: accepts an external supply, usually 7 to 12 V, which an onboard regulator drops to 5 V.
  • Microcontroller: the chip that runs your code. On the Uno R3 it is an ATmega328P running at 16 MHz with 32 KB of flash memory for your program and only 2 KB of SRAM for variables.
  • Digital pins 0 to 13: each can be an output (on or off) or an input (reads high or low). Pins marked with a ~ can also produce PWM, a fast on/off signal used for dimming and speed control.
  • Analog inputs A0 to A5: measure a voltage between 0 and 5 V and turn it into a number.
  • Power header: 5V, 3.3V, GND (ground) and Vin pins for powering small parts.
  • Reset button and a built-in LED on pin 13 labeled L.

Pins 0 and 1 are also used for USB communication, so beginners usually leave them free.

Simplified Arduino Uno board: digital pins along the top, power and analog pins along the bottom, USB and power jack on the leftDigital pins 0-13 (~ = PWM)MicrocontrollerUSBPower jackPower: 3.3V 5V GND VinAnalog A0-A5Reset

Step 6 of 11Note

Step 7 of 11Practice · Match the pairs

Match each part of the Uno to its job.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. Digital pin 7
  2. A0
  3. GND
  4. USB connector
  5. Pin marked ~9

Step 8 of 11Learn

Volts, ground and the 5 V world

Every pin on the Uno works with voltages measured against ground (GND), the 0 V reference. When your code sets a digital pin HIGH, the chip connects it to about 5 V. LOW connects it to about 0 V. When a pin is an input, the chip decides: anything above roughly 3 V counts as HIGH and anything below about 1.5 V counts as LOW.

Two rules protect your board from the start:

  1. Never put more than 5 V on any I/O pin, and never connect a pin directly to GND or 5 V while it is set as an output. A short circuit can destroy that pin in an instant.
  2. Pins are signals, not power supplies. A single pin should supply no more than about 20 mA in normal use (40 mA is the absolute maximum). That's enough for an LED with a resistor, not for a motor, a strip of lights or a speaker driven directly.

Think of a pin as a finger that can press a light switch, not as the power station. Later lessons show how transistors and driver boards let that finger control much bigger loads.

Step 9 of 11Practice · True or false

An Arduino Uno digital pin can safely power a small DC motor directly, as long as the motor is rated for 5 V.

Step 10 of 11Practice · Select all that apply

Which of these are true about the Arduino Uno R3? Select all that apply.

Select all that apply.

Step 11 of 11Practice · Choose one

Why do most beginner projects leave digital pins 0 and 1 unused?