Indice
- 2.1 What Is Electricity?
- 2.2 What Is Voltage?
- 2.3 What Is Electric Current?
- 2.4 What Is an Electric Circuit?
- 2.5 Voltage, Current and Resistance
- 2.6 Resistors: What They Are and How to Read Them
- 2.7 Electric Power and the Power Formula (P = V × I)
- 2.8 What Are Electronic Components?
- 2.9 What Is a Diode and How Does It Work?
- 2.10 What Is an LED and How Do You Connect It to Arduino?
- 2.11 Series and Parallel Circuits: What’s the Difference?
- 2.12 Power Supply and Ground: What Is GND?
- Coming Up in the Next Chapter...
2.1 What Is Electricity?
Electricity is a physical phenomenon that comes from the presence and movement of electric charge.
To understand what electricity actually is, let’s start with the matter all around us. Everything we see and touch is made of atoms. Atoms, in turn, are made up of even smaller particles, including protons, neutrons and electrons.
Protons carry a positive electric charge, electrons carry a negative charge, and neutrons have no charge at all.
In an atom, the positive charge of the protons and the negative charge of the electrons normally cancel each other out, so the atom is neutral overall.
Electrons are especially important when we talk about electricity, because in some materials they can move more easily from one atom to another. When a group of charges moves in an orderly way through a material, you get a flow of electric current.
Conductors and Insulators
Not all materials let electric charge move with the same ease.
Materials in which charge can move relatively easily are called electrical conductors. The most common ones are metals, such as:
- copper;
- aluminium (aluminum in the US);
- iron;
- silver.
Copper, in particular, is very often used in electrical wires and cables because it’s a good conductor and lets current flow easily.
Other materials strongly resist the movement of electric charge. These are called insulators. Examples include:
- plastic;
- rubber;
- glass;
- ceramic.
That’s why electrical cables are normally made of a conductive material, which lets the current through, covered with an insulating material, which helps protect people and prevents unwanted contact.
It’s worth remembering, though, that no material is a perfect insulator or a perfect conductor in every situation. A material’s ability to conduct electricity also depends on the conditions it’s in, such as temperature and the voltage applied. For now, we can simply think of metals as good conductors, and of materials like plastic and rubber as good insulators.
Electric Charge and Movement
At this point we can separate two concepts that we’ll keep coming across in electronics:
electric charge and electric current are not the same thing.
Electric charge is a property of matter, while electric current describes the orderly movement of electric charge.
We can use a simple water analogy.
Imagine a pipe full of water. The water in the pipe can be compared to electric charge, while the water flowing through the pipe can be compared to electric current.
To get water flowing, there has to be a difference in pressure between two points in the pipe. In the same way, in an electric circuit, a difference in electric potential, commonly called voltage, can set electric charge in motion.
This comparison will stay with us for the rest of the chapter and will help us understand more easily what voltage, current and resistance mean.
From Electricity to Electronics
When we use electricity to build devices that can process signals, control currents or carry out specific functions, we enter the field of electronics.
An electronic circuit can be made up of several different components, such as resistors, diodes, LEDs, transistors and integrated circuits (ICs, or “chips”), connected together in the right way.
In our case, we’ll use these principles to build circuits that interact with Arduino.
For example, a sensor can turn a physical quantity, such as light or temperature, into an electrical signal. Arduino can read this signal, process it using the program, and control a device such as an LED or a motor.
So we can think of electricity as one of the fundamental building blocks that allow our electronic devices to sense, process and produce signals and actions.

2.2 What Is Voltage?
We’ve seen that electric current is linked to the movement of electric charge. But what makes that charge move in the first place?
To answer that question, we need to introduce the concept of voltage.
Voltage, also called potential difference, is the difference in electrical energy between two points in a circuit. This difference can set electric charge in motion, and so allow current to flow.
Voltage is measured in volts (V).
A simple way to understand this is to go back to our water analogy.
Imagine a pipe connecting two tanks placed at different heights. Water tends to flow from the higher tank to the lower one, because of the difference in pressure and height between the two points.
In the same way, in an electric circuit, a potential difference between two points can “push” electric charge and make current flow.
So we can sum up the analogy like this:
Voltage → the “push” that can set charge in motion
Current → the movement of the charge
The analogy isn’t perfect, but it’s useful for building a first intuition of the two concepts.
Where Does Voltage Come From?
To get a voltage, you need to create a potential difference between two points.
A very common example is the battery. A battery creates a potential difference between its two terminals, normally marked with a + symbol and a − symbol.
A 1.5 V battery, for example, has a potential difference of about 1.5 volts between its two terminals.
If we connect the two terminals through a suitable circuit, the potential difference can make the charge move, and so make electric current flow.
It’s important to remember, though, that voltage is not current.
You can have a voltage between two points even when no current is flowing. For example, a disconnected battery still has a voltage across its terminals, but there’s no closed path through which a significant current could flow.
Voltage in a Circuit
Voltage is always measured between two points.
For example, when we say that an Arduino output is at 5 V, we’re implicitly saying that there’s a potential difference of 5 volts between that point and a reference point, normally GND (short for ground).
This concept will be very important when we start building our own circuits, because electronic components are connected between points that can be at different voltages.
So let’s remember:
- Voltage → potential difference between two points
- Unit of measurement → volt (V)
- Effect → can set electric charge in motion and allow current to flow
In the next section we’ll look more closely at what electric current is, how it’s measured, and how voltage and current are related.
2.3 What Is Electric Current?
We’ve seen that a potential difference, or voltage, can set electric charge in motion.
The orderly movement of electric charge through a conductor is called electric current.
So we can think of current as the amount of electric charge passing a given point in the circuit over time.
Electric current is measured in amperes (A), often shortened to amps.
To understand this better, let’s go back to the water analogy.
Imagine water flowing inside a pipe. The amount of water passing a given section of the pipe every second can be compared to electric current.
In this analogy:
- Voltage → the “push” that can make the water move
- Current → the amount of water flowing through the pipe
- Resistance → the obstacle that makes it harder for the water to pass
This analogy helps us tell apart two concepts that are often confused: having a voltage doesn’t necessarily mean having a current.
For example, a battery can have a voltage across its terminals even when it isn’t connected to any circuit. In that case there’s no complete path through which a significant current could flow.
If we do connect the battery’s terminals through a circuit, the voltage can set the charge in motion, and so make current flow.
What Does Current Depend On?
The amount of current flowing in a circuit depends on several factors. Two of the most important are the applied voltage and the resistance of the circuit.
If the resistance stays the same, increasing the voltage generally increases the current too.
Conversely, if the voltage stays the same, increasing the resistance decreases the current.
We’ll describe this relationship precisely later on, through Ohm’s law.
Direct Current and Alternating Current
Electric current can come in different forms.
Direct current, abbreviated to DC (Direct Current), is a current that keeps flowing in the same direction over time. It’s the type of current you find, for example, in battery-powered circuits and in Arduino boards.
Alternating current, abbreviated to AC (Alternating Current), periodically changes direction. It’s the type of current normally supplied by the mains electricity in our homes (known as household power or line power in the US).
In this course we’ll mainly work with direct current, because it’s what most of the circuits we’ll build with Arduino use.
So let’s remember:
- Electric current → orderly movement of electric charge
- Unit of measurement → ampere (A)
- Voltage → can set charge in motion
- Resistance → opposes the flow of current
In the next sections we’ll see how these concepts come together inside an electric circuit, and how resistance affects the amount of current that can flow.

2.4 What Is an Electric Circuit?
We’ve seen that voltage can set electric charge in motion, and that the movement of that charge through a conductor is electric current. For current to flow, though, we need to create a path along which the charge can move.
This path is called an electric circuit.
An electric circuit is a set of components connected together so as to create a complete path for the current. A circuit can be very simple, like one made up of a battery, a switch and a light bulb, or very complex, like the one inside a computer or an Arduino board.
The Elements of a Circuit
A simple electric circuit is generally made up of a few basic elements:
- a power source, which supplies electrical energy to the circuit, such as a battery or a power supply;
- conductors (wires), which connect the various components together;
- one or more components, which use or control the electrical energy, such as light bulbs, resistors, LEDs or motors;
- optionally, a switch, which lets you open or close the circuit.
Imagine, for example, a battery connected to a light bulb with two wires. When the connection forms a complete path, current can flow through the bulb and it lights up.
If we break one of the connections, the path is no longer complete and the current can’t flow.
Open Circuit and Closed Circuit
So we can tell apart two basic situations.
A closed circuit is a circuit in which there’s a complete path through which current can flow.
An open circuit is a circuit in which the path is broken and current can’t flow.
A switch works in exactly this way: when it’s closed, it completes the path of the circuit; when it’s open, it breaks the path.
We can sum up the concept very simply:
Closed circuit → complete path → current can flow
Open circuit → broken path → current can’t flow
The Circuit as a Path for Current
We can link this concept to the water analogy we’ve used in the previous sections.
Imagine a system of pipes connected together and full of water. If the path is complete, the water can circulate through the system. If the pipe is cut, the water can no longer make the full trip around.
In the same way, in an electric circuit there has to be a continuous conductive path for current to flow.
It’s important to remember, though, that current isn’t simply “used up” by the components. The components of the circuit use or transform electrical energy, while the electric charge keeps circulating around the circuit.
For example, a light bulb turns part of the electrical energy into light and heat, while an electric motor turns it mainly into mechanical energy.
Arduino Circuits
When we start working with Arduino, we’ll build lots of small electric circuits.
For example, we’ll be able to connect an LED to one of Arduino’s digital outputs (also called digital pins) through a resistor. When the program sets the output to the right state, the conditions for current to flow are created and the LED can light up.
In other cases we’ll connect a sensor to Arduino. Here the circuit lets the sensor work and give Arduino an electrical signal that the microcontroller can read and process.
So we can think of an electric circuit as the physical connection that lets our devices make use of electrical energy and signals.
In the next sections we’ll introduce a fundamental component of electronic circuits, the resistor, and we’ll see how it affects the amount of current that can flow in the circuit.

2.5 Voltage, Current and Resistance
We’ve seen that voltage can set electric charge in motion and so make a current flow. We’ve also seen that current can only flow if there’s a complete conductive path. But what determines how much current can flow in a circuit? One of the main factors is electrical resistance.
Electrical resistance describes how hard it is for electric charge to get through a material or a component. The higher the resistance, the harder it is for current to pass, for the same applied voltage.
Resistance is measured in ohms, represented by the symbol Ω.
Let’s go back to the water analogy. Imagine water flowing through two pipes: one very wide and one very narrow. Under the same conditions, the water will find it harder to flow through the narrow pipe.
In the same way, we can think of electrical resistance as a kind of obstacle to the flow of current.
So we can sum up the analogy like this:
- Voltage → the “push”
- Current → the flow
- Resistance → the obstacle to the flow
This analogy is useful for building a first intuition, even though real electric circuits behave in a more complex way than a simple plumbing system.
The Relationship Between Voltage, Current and Resistance
Voltage, current and resistance aren’t independent of each other. In a simple resistive circuit they’re linked by a very important relationship called Ohm’s law.
Ohm’s law can be written as this formula:
V = R × I
where:
- V is the voltage, measured in volts (V);
- R is the resistance, measured in ohms (Ω);
- I is the current, measured in amperes (A).
From this formula we can also work out the other two relationships:
I = V / R
R = V / I
The formula I = V / R tells us something very important: for the same voltage, increasing the resistance decreases the current, while decreasing the resistance increases the current.
For example, if we connect a 1,000 Ω resistor to a voltage of 5 V, the theoretical current flowing through the resistor is:
I = 5 V / 1,000 Ω = 0.005 A
that is:
I = 5 mA
where mA stands for milliamps (milliamperes).
Why Does This Matter for Arduino?
The relationship between voltage, current and resistance will be fundamental in all our Arduino projects.
When we connect an electronic component, it won’t be enough to know what voltage we have available. We’ll also need to think about how much current can flow in the circuit.
For example, an LED shouldn’t normally be connected straight to a voltage source without a current-limiting resistor. The resistor’s job is to control the current flowing through the LED and keep it within a safe value.
That’s why understanding the relationship between voltage, current and resistance is essential before we start building our first electronic circuits.

2.6 Resistors: What They Are and How to Read Them
A resistor is one of the most widely used electronic components. Its main job is to limit and control the current flowing in a circuit.
The Value of a Resistor
The value of a resistor is measured in ohms (Ω). You’ll often see multiples too, such as the kilohm (kΩ):
1 kΩ = 1,000 Ω
For example, you can find resistors of 220 Ω, 1 kΩ or 10 kΩ.
For the same applied voltage, a resistor with a higher value lets less current through. This relationship is described by Ohm’s law:
V = R × I
When current flows through a resistor, a potential difference appears across its terminals. This is called the voltage drop.
Resistors in Arduino Circuits
In our Arduino projects, resistors are especially important for protecting electronic components.
For example, when we connect an LED to a digital output, we normally use a resistor in series to limit the current and avoid damaging the LED.
The value of the resistor depends on the voltage of the circuit and on the characteristics of the component connected to it. In simple LED circuits, values such as 220 Ω or 330 Ω are often used.
How to Read a Resistor’s Value
Traditional resistors often have coloured bands (colored bands in the US) that let you identify their value and their tolerance, which is the possible difference between the nominal value and the real one.
You don’t need to memorise the colour code straight away (memorize the color code in the US), but it’s useful to know that these bands are how you can tell what a resistor’s value is.
Resistors are therefore essential components for controlling current and protecting the other elements of the circuit.
In the next section we’ll look at electric power, and see why some components, such as resistors, can get hot while they’re working.

2.7 Electric Power and the Power Formula (P = V × I)
We’ve seen that voltage, current and resistance are all present in electric circuits. Another important concept is electric power, which tells us how much energy a component transforms or uses in a given amount of time.
Electric power is measured in watts (W).
Put simply, power tells us how quickly a device uses or transforms electrical energy. For example, a 60 W light bulb uses energy faster than a 10 W bulb when both are working under their intended conditions.
The Power Formula
Electric power can be calculated with this formula:
P = V × I
where:
- P = power, measured in watts (W);
- V = voltage, measured in volts (V);
- I = current, measured in amperes (A).
For example, if a component works at 5 V and a current of 0.1 A flows through it, its power is:
P = 5 × 0.1 = 0.5 W
Why Does Power Matter in Our Circuits?
Knowing the power matters because every electronic component can only work properly within certain limits.
If a component has to dissipate more power than it can handle, it can overheat and get damaged.
This will become especially important when we talk about motors, power supplies and batteries, which can need much more energy than the simple LEDs and sensors we’ll use in our first experiments.
So let’s remember:
- Voltage → volts (V)
- Current → amperes (A)
- Resistance → ohms (Ω)
- Power → watts (W)
2.8 What Are Electronic Components?
An electronic component is an element used to build a circuit and carry out a specific function.
In the circuits we’ll build with Arduino, we’ll come across lots of different components, each with its own characteristics and job.
Some of the most common are:
- resistors, used to limit and control current;
- diodes, which let current flow mainly in one direction only;
- LEDs, which are special diodes that can give off light;
- capacitors, used to temporarily store electric charge;
- transistors, used, among other things, to control or amplify electrical signals;
- integrated circuits (ICs, or “chips”), which contain lots of electronic components inside them and can perform more complex functions.
You don’t need to know how all of these components work right away. We’ll introduce them gradually over the course, focusing each time on the ones we need for our projects.
Electrical Symbols
When you need to draw a circuit on paper or in electronic design software, you don’t normally draw the components as they actually look.
Each component is represented by an electrical symbol.
For example, a resistor has its own specific symbol, and so do an LED, a battery and a switch.
Symbols let us represent a circuit in a way that’s simple, tidy and easy to understand, whatever the physical shape of the components used.
A drawing that uses these symbols is called a circuit diagram (also known as a schematic in the US).
Learning to read a circuit diagram will be very important, because it lets us understand how the components should be connected before we even build the circuit physically.
In the next sections we’ll start getting to know some of the components we’ll use most often. The first will be the diode, a fundamental component that also helps us understand how LEDs work.
2.9 What Is a Diode and How Does It Work?
A diode is an electronic component that lets electric current flow mainly in one direction only.
You can think of it, in simple terms, as a kind of one-way valve that lets current through in one direction and blocks it in the opposite direction.
Diode Polarity
A diode has two terminals:
- Anode (A)
- Cathode (K)
A diode has to be connected the right way round, respecting its polarity.
When the anode is at a higher potential than the cathode, the diode can let current through. This condition is called forward bias.
If instead the cathode is at a higher potential than the anode, the diode is in reverse bias and normally blocks the current.
To remember it more easily:
Anode → where the current enters
Cathode → where the current leaves
On common diodes with a cylindrical body, the cathode is normally marked by a coloured stripe (colored stripe in the US) on the body of the component.
What Is a Diode Used For?
Diodes are used in lots of applications, for example to control the direction of current, to protect circuits, or to convert alternating current into direct current.
There are many different types of diode, each designed for a specific job.
One of the most important for our projects is the LED, which stands for Light Emitting Diode, that is, a diode that emits light.
An LED keeps the basic characteristics of a diode, but it can also emit light when current flows through it in the right direction.
In the next section we’ll see how an LED works, how to tell the anode from the cathode, and why we need a resistor to connect it properly to Arduino.

2.10 What Is an LED and How Do You Connect It to Arduino?
An LED (Light Emitting Diode) is a special type of diode that emits light when electric current flows through it in the right direction.
Like all diodes, an LED has a polarity, so it has to be connected the right way round. Its two terminals are:
- Anode (A) → positive terminal;
- Cathode (K) → negative terminal.
On most common LEDs, the longer leg is usually the anode, while the shorter one is the cathode. There’s also often a flat edge on the body of the LED that helps you spot the cathode side. It’s important to respect the polarity: if the LED is connected backwards, it normally won’t light up.
Why Do We Need a Resistor?
An LED can’t be connected straight to a voltage source without thinking about the current flowing through it.
If the current is too high, the LED can get damaged.
That’s why, in our circuits, we’ll use a resistor in series with the LED. The resistor’s job is to limit the current and protect the component.
A typical connection can be represented like this:
Arduino → Resistor → LED → GND
The value of the resistor depends on the available voltage and on the characteristics of the LED. In simple Arduino circuits, values such as 220 Ω or 330 Ω are often used.
LEDs and Arduino
The LED is especially useful in our first experiments because it turns an electrical signal into an effect that’s easy to see.
For example, an Arduino program can set a digital output so that it powers the LED and turns it on. By changing the program, we can also make it turn off, blink or follow a particular sequence.
The LED is therefore a first example of how Arduino can:
run a program → control an output → produce a physical action.
In the next experiments we’ll use this simple circuit to start understanding how Arduino’s digital outputs work in practice.

2.11 Series and Parallel Circuits: What’s the Difference?
When we connect several components in a circuit, we can arrange them in two main ways: in series or in parallel.
Series Connection
In a series connection, the components are connected one after the other, and the current has to pass through all of them along the same path.
For example:
Arduino → Resistor → LED → GND
In a series connection, the same current flows through all the components, while the voltage is shared out between them.
If the path is broken at any point, the current can no longer flow.
This type of connection is very common in our Arduino circuits, for example when we use a resistor to limit the current flowing through an LED.
Parallel Connection
In a parallel connection, two or more components are connected to the same two points in the circuit, creating different paths for the current.
In this case, the voltage across the components is the same, while the current is split between the different paths.
In our first Arduino projects we’ll use parallel connections less often, but it’s still important to recognise them (recognize in the US), because they’re very common in electronic circuits.
So let’s remember:
Series → a single path for the current
Parallel → several paths for the current
Knowing the difference between these two types of connection will come in handy when we start building circuits on the breadboard.

2.12 Power Supply and Ground: What Is GND?
To work, every electronic circuit needs a power source that supplies the energy its components need.
Power can come, for example, from a battery, from a power supply or, in the case of Arduino, even from the USB port connected to a computer.
Every power source is mainly defined by its voltage, expressed in volts (V). In Arduino circuits we’ll often come across voltages such as 5 V and 3.3 V.
GND
In electronic circuits we very often see the symbol or abbreviation GND, short for Ground (also called earth in the UK).
GND is an electrical reference point against which the voltages at all the other points in the circuit are measured.
On Arduino, GND is normally used as the common reference for the various components connected to the board.
For example, when we say that an Arduino output is at 5 V, we mean a voltage of 5 V relative to GND.
That’s why it’s very important for the components in a circuit to share the same ground reference properly (a common ground) when they need to communicate electrically with each other.
Power and Polarity
When we connect a power source, we have to pay attention to polarity.
In a simple direct current circuit there’s normally a positive terminal (+) and a negative one (−). Connecting a component with the wrong polarity can stop it from working or, in some cases, damage it.
This is especially important for components like LEDs, diodes, batteries and some electronic modules.
So let’s remember:
Power supply → provides energy to the circuit
Voltage → the potential difference between two points
GND → the common reference of the circuit
Polarity → shows the correct way to connect a component
These concepts will be fundamental when we start building our own circuits with Arduino. We’ll need to learn to recognise (recognize in the US) the power, GND, input and output connections, always paying attention to the voltage the different components require.
With this, we’ve covered the main concepts of electricity and electronics that we need for our first hands-on experiments. In the next chapter we’ll get to know Arduino, its board and its main connections more closely.
Coming Up in the Next Chapter...
Now that you know the basic building blocks of electronics (voltage, current, resistance and the main components), it’s time to start giving them instructions.
In Chapter 3 - What Is Programming? Basic Concepts for Beginners you’ll find out what programming is and how to turn an idea into a precise sequence of actions. We’ll look at what algorithms and sequential logic are, learn to represent them with flowcharts, and move from the flowchart to pseudocode and then to a real program.
We’ll tell apart the three building blocks of every program: sequence, decisions (if / else) and loops (for / while). Then we’ll step into the Arduino development environment (the Arduino IDE) and understand the basic structure of a sketch: setup() and loop().
By the end of the next chapter, you’ll be ready to make your first LED blink using code.
If you’re curious to see where this journey will take us, have a look at the page Beginner's Guide to Robotics with Arduino: there you’ll find the full contents list, from the first chapter to the final project, and you can choose whether to carry on in order or go back and review a topic.
If you’ve found this course useful and would like to explore other robotics or hobby electronics projects, you can keep reading by visiting the other content in the Electronics and Robotics section of the site, where you’ll find plenty more practical guides and step-by-step explanations.
I’d like to point out that some of the images in the course were generated by artificial intelligence (AI), and I apologise for any inaccuracies they may contain. The course itself was also written with the help of AI, but the structure is the result of my own experience: I’m a retired programmer and, over the course of my career, I’ve taught several courses. So I chose the topics, organised the whole structure of the course and reviewed the text myself.
I care a great deal about the quality and originality of the content I publish. That’s why I’d prefer it not to be copied or republished elsewhere. If you think this guide could be useful to other people, though, I’ll be really happy if you share the link to the page: it’s the right way to spread the information and to support the work behind every article.
Thank you
Luciano (Capitan Farloc)

English (United Kingdom)
Italiano (Italia)