Review of electronics basics and measurement

Connect, measure, check: electronics basics through real components and hands-on experiments

Arduino Electronics
Measurement

In this workshop we will review the most important electronics basics through short questions, real components and hands-on measurements. We won’t just learn definitions: we will build a simple electric circuit, measure a battery and resistors, and learn how a multimeter becomes a tool for checking your own circuit.

The goal is that after the workshop we can recognise basic electronic components, explain what they do, and safely measure voltage, resistance and current. This is important preparation for future Arduino projects, sensors, automation and building our own electronic devices.

We work like engineers

A good electronics engineer doesn't connect parts at random and doesn't guess when something doesn't work. First they look at the schematic, then they check the connections and find the problem by measuring.

What will we review?

Electronic circuits can look very different: from a single LED to an Arduino device with sensors, a display, a motor and a program. Yet many of them are based on the same basic concepts.

In this workshop we will review:

  • What a closed circuit is.
  • What voltage, current, resistance and power are.
  • How a battery, wires, a resistor, an LED, a push button and a capacitor work.
  • How to recognise components by their symbol, shape, markings and legs.
  • How to use a universal measuring instrument, or multimeter, safely.
  • How to measure voltage, resistance and current.
  • How to roughly calculate the power of a simple circuit.
  • Why some components can be connected either way round, while others have polarity.
  • Why an Arduino pin isn’t used as a power source for every device.

A simple electric circuit

For an electronic device to work, it needs a closed path through which current can flow.

In the simplest example we use:

  • A power source – a battery or another low-voltage power supply.
  • Conductors – wires that connect the parts.
  • A load – a component that converts energy into light, sound, heat or movement.
  • Control – a push button, switch, transistor or Arduino that decides when the circuit will work.

A simple LED circuit can look like this:

Electric circuit

The battery provides the energy, the wires create the path, the resistor limits the current, and the LED converts part of the energy into light.

If the path is broken, the LED won’t light up. If we turn the LED the wrong way round, it usually won’t light up either. If we connect it without a resistor, too much current can flow through it and the LED can be damaged.

Voltage, current, resistance and power

To work with electronics, we need to know four basic quantities.

QuantitySymbolUnitWhat it tells us
VoltageUvolt [V]How big the difference in electric potential between two points is
CurrentIampere [A]How much electric charge flows through the circuit
ResistanceRohm [Ω]How much a component limits the flow of current
PowerPwatt [W]How quickly electrical energy is converted into light, heat, sound or movement

For simple direct current (DC) circuits we use Ohm’s law:

\[ U = I \times R \]

From it we can also calculate the current:

\[ I = \frac{U}{R} \]

Power is calculated with this formula:

\[ P = U \times I \]

This means that a higher voltage or a higher current usually means more power. Part of that power can become light in an LED, sound in a buzzer, movement in a motor or heat in a resistor.

Important: more power means more heat

A component that uses or conducts more energy can get hot. That is why higher-power resistors are often physically bigger, and more powerful transistors, MOSFETs and regulators often have a metal tab or a heatsink.

The multimeter

A universal measuring instrument, often called a multimeter, is used to measure electrical quantities. In this workshop we will use it to measure:

  • The DC voltage of a battery.
  • The resistance of a resistor.
  • The continuity of a wire or a connection.
  • The current through a simple LED circuit.
  • The approximate power, using the measured voltage and current.

Before measuring, we always check:

  • That the probes are undamaged.
  • That the black probe is in the COM socket.
  • That the red probe is in the correct socket.
  • That the instrument’s dial is set to the correct function.
  • Whether we are measuring voltage, resistance or current.
  • Whether the power should be on or off, depending on the type of measurement.
What do we measure?Black probeRed probeMarking on the instrumentHow do we connect the instrument?
VoltageCOMVΩV⎓In parallel, across the source or component
ResistanceCOMVΩΩAcross the component, with no power
ContinuityCOMVΩspeaker or diode symbolAcross the wire or connection, with no power
CurrentCOMmA or 10AA⎓ or mA⎓In series, as part of the circuit

Measuring voltage

Voltage is measured in parallel. This means that we touch the probes to the two points between which we want to find the voltage difference.

To measure a 9 V battery:

  • We plug the black probe into COM.
  • We plug the red probe into VΩ.
  • We set the instrument to DC voltage, V⎓.
  • If the instrument doesn’t have auto-ranging, we choose a range higher than 9 V, for example 20 V.
  • We touch the black probe to the minus of the battery.
  • We touch the red probe to the plus of the battery.
  • We read the measured value.

A battery marked 9 V doesn’t have to show exactly 9.00 V. A new battery may show a little more, and a used one less. Also, a battery with no load may show a good voltage, but its voltage can drop considerably when it tries to power a motor or another device that draws more current.

Measuring voltage:

Measuring voltage

Measuring resistance

Resistance is measured only when the circuit has no power. It is best to measure a resistor that isn’t connected in a working circuit.

To measure a resistor:

  • We switch off and disconnect the power.
  • We plug the black probe into COM.
  • We plug the red probe into VΩ.
  • We set the instrument to Ω.
  • We touch one probe to one leg of the resistor and the other probe to the other leg.
  • We read the value and compare it with the colour bands on the resistor.

Resistors have a tolerance, so the measured value doesn’t have to be exactly the same as the nominal value. For example, a resistor marked 1 kΩ may measure a little less or a little more than 1000 Ω.

We don't measure resistance on a powered circuit

Before measuring resistance, we must switch off the power. If the resistor is connected in parallel with other parts, the instrument may show the wrong value, because it measures the whole path between the probes, not just the resistor we want to check.

Instructions for digital multimeters specifically say that the circuit’s power should be disconnected before measuring resistance, continuity, diodes or capacitance.

Measuring current

Current isn’t measured the same way as voltage.

When measuring voltage, the multimeter looks at two points in the circuit. When measuring current, the multimeter has to become part of the path the current flows through. That is why current is measured in series.

Measuring the current through an LED circuit:

Measuring current

To measure the current through an LED circuit:

  • We switch off the power.
  • We break one part of the circuit’s series path.
  • We plug the black probe into COM.
  • We plug the red probe into the mA or 10A socket, depending on the expected current and the instrument’s markings.
  • We set the instrument to DC current, A⎓ or mA⎓.
  • We use the probes to bridge the gap we made in the circuit.
  • We switch on the power and read the current.
  • We switch off the power.
  • After measuring, we put the red probe back in the VΩ socket.

The most important rule for measuring current

We never connect a multimeter set to measure current directly between the plus and minus of a battery. This can create a short circuit, drain the battery or blow the fuse in the instrument.

When measuring current, the instrument is connected in series, and the power is switched off before the instrument is connected into the circuit.

Measuring power

Most multimeters don’t measure power directly. For a simple DC circuit, we can calculate the power from the measured voltage and current:

\[ P = U \times I \]

If the battery voltage is about 9 V and the measured current through the LED circuit is about 20 mA (0.020 A), the total power of the circuit is:

\[ P = 9 [V] \times 0.020 [A] = 0.18 [W] = 180 [mW] \]

The power in a circuit is shared between the components. The resistor turns part of the energy into heat, and the LED turns part of the energy into light and heat. That is why, when designing a circuit, we look not only at the resistance value but also at the resistor’s power rating.

Components we use

In Arduino projects we use various components. Some are used for input, some for output, and some protect or control larger loads.

ComponentHow to recognise it?What is it for?Does it have polarity?
ResistorSmall cylinder with coloured bandsLimits current and divides voltageNo
LEDClear or coloured body, two legsLight indicator or effectYes
Ordinary diodeSmall cylindrical or glass body with a bandLets current through mainly in one directionYes
Electrolytic capacitorCylindrical body marked with capacitance and voltageStores energy and stabilises the power supplyYes
Ceramic capacitorSmall disc or rectangular componentFilters out interference and stabilises the circuitUsually not
Push buttonSmall mechanical switchDigital input: pressed or not pressedNo
PotentiometerRotary knob with three terminalsVariable analogue inputNo
Photoresistor (LDR)Round disc with a visible wavy trackChanges its resistance with the amount of lightNo
TransistorSmall body with three legsElectronic switch or amplifierYes
MOSFETThree legs, often a bigger body or a moduleControls more powerful DC loadsYes
BuzzerSmall cylinder, often marked with a + signMakes soundOften yes
Servo motorCase with a shaft and three wiresMoves to a set positionYes
DC motorTwo wires and a shaftProduces continuous rotationDirection depends on polarity

You can see the symbols for these components here: Electronic components, symbols and diagrams.

Resistors and power

A 1/4 W resistor is often enough for LEDs and simple Arduino circuits. Resistors that can handle more power are usually bigger, because they have to give off more heat to their surroundings safely.

resistor power ratings
A bigger resistor isn’t necessarily better. We need to choose a resistor with the right value and a high enough power rating for the particular circuit.

LEDs and polarity

An LED is a diode, which means it has to be connected the right way round.

LED

The longer leg is usually the anode and goes towards the more positive voltage.

The shorter leg is usually the cathode and goes towards minus.

The flat side of the LED’s body usually marks the cathode.

An LED always needs a resistor or another suitable current-limiting circuit.

Electrolytic capacitors

An electrolytic capacitor has polarity. On its body, a stripe with minus symbols usually marks the negative side, and on versions with straight legs the shorter leg is usually the negative one.

capacitors
On a capacitor we can read at least two important values:

  • The capacitance, for example 100 µF.
  • The maximum allowed voltage, for example 16 V.

A capacitor marked 100 µF 16 V can be used in a circuit up to 16 V, but we must not connect it to a higher voltage. We also must not connect it with reversed polarity.

Arduino: inputs and outputs

The Arduino is a microcontroller: a small board that can read information from its surroundings and control electronic devices.

Arduino
Components that send information to the Arduino are called inputs:

  • Push button
  • Potentiometer
  • Photoresistor (LDR)
  • Temperature sensor
  • Distance sensor
  • Switch

Components that the Arduino sends commands to are called outputs:

  • LED
  • Buzzer
  • Display
  • Servo motor
  • Motor driver
  • Lighting effect
  • Relay or MOSFET module for a low-voltage load

Arduino pins can be set as inputs or outputs. An analogue input can read a changing voltage level, for example the signal from a potentiometer or a light sensor, while a digital input usually recognises two states: HIGH and LOW.

An Arduino pin isn't a power supply for everything

We can control an LED with an Arduino pin if we use a correctly chosen resistor. A motor, servo, relay, electromagnet or a more powerful LED strip often needs more current than an Arduino pin can safely supply. For devices like these we use a suitable transistor, MOSFET, motor driver or a separate power supply.

A little quiz

1. Which four basic parts must a simple electric circuit have for an LED to light up safely?
We need a power source, conductors (wires), a load such as an LED, and a closed path back to the source. An LED also needs a resistor to limit the current.
2. What is voltage and what unit is it measured in?
Voltage describes the difference in electric potential that drives current through the circuit. It is measured in volts, symbol V.
3. What is current and what unit is it measured in?
Current describes how much electric charge flows through part of the circuit. It is measured in amperes, symbol A. In small Arduino circuits we often use milliamperes, mA.
4. What does a resistor do?
A resistor limits the current in a circuit. With an LED, it stops too much current from flowing through it, which could damage it.
5. What unit is resistance measured in?
Resistance is measured in ohms, and the unit symbol is Ω.
6. How is a multimeter connected when we measure the voltage of a battery?
Voltage is measured in parallel: the black probe is in the COM socket, the red one in the VΩ socket, and we touch the probes to the minus and plus of the battery. We set the instrument to DC voltage, V⎓.
7. Can we measure resistance on a circuit that is connected to a battery or USB power?
No. Before measuring resistance, we switch off and disconnect the power. Otherwise the measurement can be wrong, and the instrument or the circuit can be damaged.
8. How is a multimeter connected when we measure the current through an LED?
Current is measured in series. We switch off the power, break one part of the current’s path and bridge that gap with the multimeter. We set the instrument to A⎓ or mA⎓ and plug the red probe into the appropriate mA or 10A socket.
9. What can happen if we connect a multimeter set to measure current directly between the plus and minus of a battery?
A short circuit can happen. The fuse in the instrument can blow, the wire can get hot or the battery can go flat quickly. That is why current is only measured in series, through the circuit.
10. How do we calculate electrical power in a simple DC circuit?
We calculate power with the formula P = U · I. U is the voltage in volts, I is the current in amperes, and the result is the power in watts, W.
11. Why is a 5 W resistor usually physically bigger than a 1/4 W resistor?
A 5 W resistor can safely turn more electrical energy into heat. That is why it is physically bigger and gives off heat to its surroundings more easily.
12. How can we recognise the polarity of an LED?
The longer leg of the LED is usually the anode and goes towards the more positive voltage, and the shorter leg is the cathode and goes towards minus. The flat side of the body also usually marks the cathode.
13. How do we recognise the polarity of an electrolytic capacitor?
An electrolytic capacitor usually has a stripe with a minus sign on the negative side. The longer leg is often the positive one, but we always check the marking on the component itself first.
14. Why don't we connect a motor or a servo directly to an Arduino digital pin?
Motors, servos and similar devices can need much more current than an Arduino pin can safely supply. For them we use a suitable driver, transistor or MOSFET and a suitable power supply.
15. What is the difference between a push button and a potentiometer as an Arduino input?
A push button usually gives a digital state: pressed or not pressed. A potentiometer gives a changing analogue voltage that the Arduino can read as many different values.
16. What do you do if a component, battery or wire gets hot, smokes or smells of burning?
I stop work immediately, switch off the power if it is safe to do so, don’t touch the hot part unless I need to, and call the leader. The circuit isn’t switched on again until the cause has been checked.

What did we learn?

  • Today we reviewed that an electronic circuit isn’t just a collection of wires and components. For it to work safely and predictably, we need to know where the energy comes from, which path it takes and what each component does.
  • We learned that a simple electric circuit needs a power source, conductors, a load and a closed path back to the source. In an LED circuit, the resistor isn’t an unimportant extra: it limits the current and protects the LED.
  • We reviewed the four basic electrical quantities:
    • Voltage U is measured in volts [𝑉] and describes the difference in electric potential between two points.
    • Current I is measured in amperes [𝐴], often in milliamperes [𝑚𝐴], and tells us how much electric charge flows through part of the circuit.
    • Resistance R is measured in ohms [Ω] and limits the flow of current.
    • Power P is measured in watts [𝑊] and tells us how quickly electrical energy is converted into light, sound, heat or movement.
  • We used the formulas of Ohm’s law and the formula for calculating power.
  • We also learned how to use a multimeter correctly to measure:
    • voltage: in parallel, between two points
    • resistance: across the component; the power must be off
    • continuity: across a wire or connection; the power must be off
    • current: in series, as part of the circuit
      • Measuring current has a special rule: we switch off the power, break the circuit, insert the multimeter into the gap, and only then switch the power on. After measuring, we put the red probe back in the VΩ socket. Official safety instructions for multimeters also stress that current is measured in series and that resistance is not measured on a live circuit.
  • We also got to know the basic components we will use in Arduino projects:
    • A resistor limits current.
    • An LED converts electrical energy into light and has polarity.
    • A push button and a switch give digital information: pressed or not pressed.
    • A potentiometer and a photoresistor can give a changing, analogue value.
    • An electrolytic capacitor stores energy and must be connected with the correct polarity.
    • A diode lets current through mainly in one direction.
    • A transistor and a MOSFET let a small signal control a larger load.
    • A buzzer makes sound.
    • A servo and a DC motor convert electrical energy into movement.
  • We also saw that the physical appearance of a component often tells us something about its limits. Components that can handle more power are often bigger, have thicker legs, a metal tab or a heatsink, or sit on a separate module.
  • With the Arduino, we distinguish between inputs and outputs:
    • Inputs send information to the Arduino: a push button, potentiometer, photoresistor or sensor.
    • Outputs carry out the Arduino’s commands: an LED, buzzer, display, servo or motor driver module.
    • The Arduino’s analogue inputs can read changing voltage values, while the digital pins can be set as inputs or outputs.

The most important message of the workshop

We don't connect things at random. First we look at the schematic, then we check the power supply, polarity and connections, and then we measure. When something doesn't work, we change one thing at a time.

In the next workshops we will build on these basics: the Arduino will read push buttons and sensors, and then control LEDs, sound, displays and other parts of our projects.