Lesson 1 / 128%

Lesson 1

Introduction to Arduino

10 min

Understand what Arduino is, what you can do with it and what hardware to get.

Definition

Arduino is an open-source electronics platform consisting of two elements: a programmable boardequipped with a microcontroller (a tiny computer on a single chip) and free software for writing the programs that control it. It can read information (buttons, sensors) and control components (LEDs, motors, buzzers) to create interactive electronic devices.

What Is Arduino?

Arduino is an open-source platform that makes it easy to create interactive electronic devices. It is based on a small programmable electronic board equipped with amicrocontroller, along with free software for writing the programs that control it.

A microcontroller is a tiny computer on a single chip: it reads information (a button, a temperature sensor...), executes your program, and then controls components (an LED, a motor, a buzzer...). It is the brain of many everyday devices: washing machines, remote controls, toys, thermostats...

The term "open source" means that the board's designs and the software's source code are publicly available. Anyone can study them, modify them, and even build their own version. This is one reason why many compatible boards are available today, often at a lower price than the original board.

Photo: an Arduino Uno board viewed from above, with its main components labeled (USB connector, microcontroller, digital pins, analog pins, power supply).

A Brief History

Arduino was created in Italy in the early 2000s at an interaction design school. The goal was to provide students who were not engineers with an inexpensive, easy-to-use tool for building prototypes of interactive devices. The project then spread around the world, reaching schools, artists, inventors, and hobbyists.

Today, the Arduino family includes many models, from small, compact boards to more powerful boards with wireless connectivity. In this course, we will focus on the Arduino Uno, one of the most widely used and best-documented boards for beginners.

What Can You Build with Arduino?

The possibilities are very diverse. Here are some examples of projects beginners can build after just a few lessons:

  • A miniature traffic light:three LEDs that light up one after another.
  • An automatic night light:an LED that turns on automatically when the room becomes dark.
  • A thermometer:a sensor that displays the temperature on a computer.
  • A parking sensor:an ultrasonic sensor and a buzzer that beeps faster as an obstacle gets closer.
  • A robotic arm:a servo motor that moves according to the position of a potentiometer.

The Principle: Inputs, Processing, Outputs

All Arduino projects follow the same logic.Sensors (inputs) send information to the board, your program processes it, and then the board controls actuators (outputs).

Let's take the example of an automatic night light. The input is a photoresistor that measures the light in the room. The processingis your program, which decides: "If it is dark, turn on the light." The output is an LED that turns on or off depending on that decision. This sequence repeats hundreds of times per second.

Diagram: the cycle of inputs (button, sensor) → Arduino board (program) → outputs (LED, buzzer, motor).

Inputs and Outputs in Detail

To better understand the rest of the course, remember the following vocabulary. You will encounter these terms in almost every lesson:

  • Sensor:a component that measures a physical quantity (light, temperature, distance, a button press...) and converts it into an electrical signal.
  • Actuator:a component that acts on the physical world by producing light, sound, or movement.
  • Digital signal:it has only two states, on or off (HIGHorLOW).
  • Analog signal:it varies continuously, like the value of a potentiometer being turned slowly.

How Does an Arduino Program Work?

An Arduino program is called a sketch. It is written in a language based on C++, but simplified for beginners. Every sketch must contain two functions:

  • setup(): runs only once when the board starts. This is where you initialize the pins and hardware.
  • loop(): runs repeatedly, without stopping, as long as the board is powered. This is where the main logic is located.

You will write your first sketches in a few lessons. For now, simply remember that the board executes your program and continuously repeats the instructions inside the main loop, like a cooking recipe that is repeated over and over again.

Why Choose Arduino as a Beginner?

  • Affordable:a board and a starter kit cost only a few dozen euros.
  • Simple:no advanced knowledge is required. The software and programming language are designed with beginners in mind.
  • Low voltage:the board operates at 5 volts, making it suitable for beginner projects when handled correctly.
  • Huge community:thousands of tutorials, libraries, and projects are available to learn from and adapt.

Required Equipment

To follow this course, the easiest option is to buy astarter kit containing an Arduino Uno (or compatible board), a USB cable, a breadboard, and various components. Here is the list of equipment used throughout the lessons:

  • An Arduino Uno board and its USB cable
  • A breadboard and jumper wires
  • LEDs of different colors and 220-ohm and 10-kilohm resistors
  • Push buttons and a potentiometer
  • A photoresistor (LDR), a TMP36 temperature sensor, and an HC-SR04 ultrasonic sensor
  • A buzzer and a micro servo motor
Photo: all the course components laid out flat and labeled (board, breadboard, LEDs, resistors, buttons, sensors, buzzer, servo motor).

What Is Each Component Used For?

Each item in the kit has a specific role. You will discover them in detail throughout the lessons, but here is a first overview:

  • The breadboard:a board with holes that allows you to connect components without soldering and easily modify your circuit.
  • Resistors:they limit the electric current to protect components, especially LEDs.
  • LEDs:small lights that illuminate when electric current flows through them in the correct direction.
  • Push buttons:they act as inputs, allowing the user to send commands to the board.
  • Sensors:the photoresistor measures light, the TMP36 measures temperature, and the HC-SR04 measures distance using ultrasound.
  • The buzzer and servo motor:they produce sound and controlled movement.

Safety

In this course, everything operates at low voltage and is powered through the USB cable.Never connect your board or circuits directly to mains electricity (a 230 V wall outlet): it is dangerous. Controlling mains-powered devices requires specialized equipment and knowledge that are not covered in this course.

What You Will Learn

You will start with the basics of electricity and electronic components, then install the software and make your first LED blink. Next, you will learn to read buttons and sensors, communicate with your computer, control brightness and motors, and finally complete a full project.

Each lesson follows the same approach: a short explanation, a circuit to build, a program to upload to the board, and an exercise to practice. You will therefore learn bothwiring and programming, two complementary skills.

Key Takeaways

  • Arduino is an open-source platform consisting of a programmable board and free software.
  • Every project follows theinputs, processing, outputs model.
  • A program (sketch) containssetup()(runs once) andloop()(runs repeatedly).
  • This course uses only low-voltagepower supplied through USB, never mains electricity.
  • A starter kit is enough to complete all the lessons.

Exercise

Look around you and write down three electronic devices in your home that respond to an action (a button, a sensor, a remote control...). For each device, identify its input and output.