What you will learn
  • Distinguish a microcontroller from a complete computer.
  • Identify power, ground, digital and analog connections.
  • Explain how an Arduino sketch reaches the board.
  • Choose a safe starting power arrangement.
  • Describe one input–decision–output system.

A small controller with one main job

Imagine a desk light that turns on when you press a button. The button produces an electrical signal, a program decides what that signal means, and an output changes the light. An Arduino board gives you accessible connections for building this chain.

Arduino is an ecosystem of boards, programming tools, libraries and learning materials. A microcontroller is the chip that executes your program and controls electrical connections. The board adds practical support such as a USB connector, power circuitry and labelled sockets. The board and the chip are related, but they are not the same object.

This series uses the Arduino Uno R3, whose main microcontroller is an ATmega328P. Other Arduino boards can use different processors and electrical voltages. A tutorial written for an Uno R3 should never be assumed electrically compatible with every board that has Arduino in its name. Check the official Uno R3 documentation when comparing your board.

A Raspberry Pi computer usually loads an operating system and runs several applications. Our Uno normally runs one uploaded program, repeatedly, with limited memory. That limitation is often useful: a small controller can respond predictably to a switch without needing a desktop session. It is not a suitable place to run a large language model.

Pins are electrical connections

A pin is a connection between the controller and another circuit. An input reads a signal; an output changes a signal. Those descriptions refer to the controller’s perspective. A sensor sends information into the controller, while an LED receives an output from it.

Digital signals represent a small set of states, usually LOW and HIGH. On the Uno R3 the board’s logic operates at 5 V, although the exact voltage thresholds for recognizing a state are specified electrically. A HIGH output is not an unlimited power supply. A motor can require far more current than a pin can provide.

An analog input measures voltage over a range and converts it into a number. The Uno R3 has six labelled analog input pins, A0 through A5. A varying voltage from a sensor can therefore become a sequence of measurements. Measuring a voltage does not automatically tell you a temperature or distance: that interpretation depends on the sensor.

GND means ground, the shared reference from which circuit voltages are measured. Several devices communicating electrically usually need a common reference. Do not confuse a pin labelled 5V, which is a power connection, with a digital pin whose signal happens to be HIGH.

From text to physical behavior

An Arduino program is usually called a sketch. You write it in the Arduino IDE, an application that helps edit, compile and upload programs. Compilation translates source code into instructions that the board’s processor can run. Uploading transfers those instructions to the board.

The usual sketch contains two functions. setup() runs once after startup or reset. loop() runs repeatedly afterward. A function is a named collection of instructions; you will meet these two in the blink lesson before needing to design your own.

The USB cable can carry both data and power. Some cables provide power only, so a board can light up yet fail to appear as a programming device. Once a sketch has been uploaded, it remains stored when power is removed. Reconnecting suitable power starts it again.

You do not need to learn an entire programming language before starting. Arduino sketches use C/C++ conventions, and this series explains the necessary pieces as you use them. A standard Uno R3 does not normally run Python; later, a Python program on a computer can send it commands through USB.

Prepare the board safely

For the first lessons, power the Uno only through its USB connector. Keep external supplies and the barrel jack unused. Place the board on a clean nonconductive surface and disconnect USB before attaching or moving wires. A loose metal object across power and ground can cause a short circuit.

Use the board drawing to locate its reset button, USB connector, GND sockets, digital pins and analog pins. The onboard LED marked L gives us a first output without any external wiring. Its existing resistor and connection are part of the board design.

Install the Arduino IDE from Arduino’s official software page. In its board selector, choose Arduino Uno and the port that appears when you connect the board. Menu labels can change between IDE releases; record your IDE and board package versions in your project notes. Do not select an Uno R4 because its name looks newer.

ComponentPurpose
Arduino Uno R3Reference microcontroller board
Data-capable USB A-to-B cable, or suitable host adapterProgramming and initial power
Computer with Arduino IDEWrite and upload sketches
Nonconductive work surfaceKeep exposed connections away from metal

Worked example: plan a desk reminder

Suppose a button should turn an LED on while it is held. The input is the button state, the decision is whether that state means pressed, and the output is the LED state. No machine learning is needed because you can write the rule directly.

Before building, write two expected cases: released means off; pressed means on. Add a third question: what should happen when a wire comes loose? This habit turns an attractive project idea into behavior you can test. We will build the button version after learning basic electronics.

A board’s successful upload is not proof that an attached circuit is correct. Software can ask for a signal on the wrong pin, and a correctly selected pin can connect to a reversed LED. Keeping the program, wiring and expected behavior as separate things makes troubleshooting much less mysterious.

Button → Uno input → Program rule → Uno output → LED

Important terms

Microcontroller
A chip containing a processor, memory and peripheral circuits for control tasks.
Sketch
An Arduino program.
IDE
An application for editing, compiling and uploading programs.
Input
A connection or value that brings information into a system.
Output
A connection or action through which a system affects something else.
Ground
The shared reference used to compare electrical voltages.

Mini project: Make a board map

  1. Open the Uno R3 pinout and sketch the board’s outline.
  2. Mark USB, RESET, GND, 5V, D13 and A0 without connecting anything.
  3. Connect USB only and identify the power indicator without assuming its state proves communication works.
  4. Find the board and port selectors in the IDE. Record the exact board name and selected port.
  5. Explain the desk-reminder input, rule and output to someone else. Finish when you can point to each relevant board connection.

Common mistakes and debugging

  • Buying by the word Arduino alone: check the exact board revision and logic voltage before following wiring.
  • Assuming a lit power indicator means the cable carries data: try a known data cable if no port appears.
  • Using a GPIO pin as a motor supply: motors require an appropriate driver and power source.
  • Expecting the board to understand a project description: it executes the instructions in the uploaded program.

Independent challenge

Design a paper-only plant reminder with one sensor and one indicator. State what the sensor actually measures, the decision rule and one situation where the rule could mislead you.

Check your understanding: 10 questions

  1. What is the difference between a board and its microcontroller?

  2. Does an analog input directly measure temperature?

  3. Which function repeats in a typical Arduino sketch?

  4. Why can a USB cable power a board but fail to upload?

  5. Does a basic button-controlled LED require AI?

  6. In your own words, what does “Microcontroller” mean?

  7. In your own words, what does “Sketch” mean?

  8. In your own words, what does “IDE” mean?

  9. In your own words, what does “Input” mean?

  10. In your own words, what does “Output” mean?

Quiz answers

Reveal all 10 answers after your attempt
  1. The microcontroller executes the program; the board adds connections, power support and other useful components.
  2. No. It measures voltage, which a sensor-specific relationship may convert into temperature.
  3. loop(); setup() runs once after startup or reset.
  4. It may be a power-only cable without data connections.
  5. No. A direct programmed rule is enough.
  6. A chip containing a processor, memory and peripheral circuits for control tasks.
  7. An Arduino program.
  8. An application for editing, compiling and uploading programs.
  9. A connection or value that brings information into a system.
  10. A connection or action through which a system affects something else.

Summary

An Arduino board connects a small program to electrical inputs and outputs. Start by identifying your exact board, using USB power and understanding the intended behavior before wiring.

Continue learning

ARD02 uses the onboard LED to make the edit, compile, upload and observe cycle visible.

Choose a connected learning path

Sources and further reading

Prepared 2026-09-18. Editorial draft; primary documentation consulted. Hardware build not bench-tested; code has not been executed on the reference board.

GO DEEPER

Extra reading & source documents

Optional reading alongside the lessons. These sources do not add to your course lesson count.

Explore the AI model guides →