Skip to content
MakerBuddy

What Is Resistance? And What a Resistor Actually Does

Resistance is how strongly something slows an electric current, measured in ohms. Learn what a resistor actually does, how to read its value, and where every resistor sits on the MakerBuddy board.

By the MakerBuddy teamPublished 20 min read

A large blue resistor with yellow, violet, black, brown and brown bands sits in a copper wire loop with a 5 V supply, while a hose that narrows in the middle shows how resistance slows a flow, beside an Ω badge, a light sensor and an orange knob printed 103.
A large blue resistor with yellow, violet, black, brown and brown bands sits in a copper wire loop with a 5 V supply, while a hose that narrows in the middle shows how resistance slows a flow, beside an Ω badge, a light sensor and an orange knob printed 103.

What is resistance? Resistance is how strongly something opposes the flow of electric current. It is measured in ohms, written with the Greek letter omega, Ω. A copper wire has very little resistance, so current flows through it easily. Rubber has a huge resistance, so almost no current gets through. SparkFun's guide to voltage, current, resistance and Ohm's law (opens in a new tab) defines one ohm as the resistance between two points where 1 volt pushes 1 amp of current.

A resistor is a small part made to have one set resistance. Its main job fits in one line: resistors limit current. They also split voltages, hold microcontroller pins steady and turn light or heat into a reading.

Below you will learn what sets resistance, how to read a resistor's value, and what every resistor on the MakerBuddy IoT Kit does. New to circuits? The guide to electronics for beginners puts resistance in order with eleven other first ideas.

Resistance in plain words: the water hose picture

Electric current is a flow of charge. As it moves through a material, the material gets in its way, and some energy turns into heat. Resistance measures how much it gets in the way.

Electricity is invisible, so teachers often picture it as water. In SparkFun's water picture (opens in a new tab), voltage is the water pressure, current is how much water flows, and resistance is how narrow the hose is. A narrow hose resists the flow. At the same pressure, less water gets through it than through a wide hose. Our guides to what voltage is and what electric current is cover the other two parts of the picture.

Every material has some resistance at room temperature, but the amounts are wildly different. Physicists compare materials with a number called resistivity, which belongs to the material itself, whatever its shape.

Material
Silver
Resistivity at 20 °C (Ω·m)
1.59 × 10⁻⁸
What it means for you
The best conductor in the table
Material
Copper
Resistivity at 20 °C (Ω·m)
1.72 × 10⁻⁸
What it means for you
Almost as good as silver
Material
Aluminium
Resistivity at 20 °C (Ω·m)
2.65 × 10⁻⁸
What it means for you
A good conductor
Material
Nichrome
Resistivity at 20 °C (Ω·m)
100 × 10⁻⁸
What it means for you
About 58 times copper: a metal that resists on purpose
Material
Carbon (pure)
Resistivity at 20 °C (Ω·m)
3.5 × 10⁻⁵
What it means for you
Listed as a semiconductor, far more resistive than any metal
Material
Glass
Resistivity at 20 °C (Ω·m)
10⁹ to 10¹⁴
What it means for you
An insulator
Material
Hard rubber
Resistivity at 20 °C (Ω·m)
10¹³ to 10¹⁶
What it means for you
An insulator

Table note: values from Table 20.1 of OpenStax College Physics 2e, Resistance and Resistivity (opens in a new tab). The "58 times" is 100 ÷ 1.72.

From copper to hard rubber the resistivity jumps by more than twenty powers of ten. That gap is why a plastic-coated copper wire works: the current flows along the copper and stays inside the plastic.

The ohm: the unit of resistance

The unit of resistance is the ohm, named after Georg Ohm, whom SparkFun's Ohm's law tutorial (opens in a new tab) describes as a Bavarian scientist who studied electricity. In the SI system, one ohm is one volt per ampere. The NIST guide to SI units (opens in a new tab) lists it as Ω = V/A.

Resistors in student projects range from a few ohms to millions of ohms, so you use the same prefixes as for metres and grams.

Written
220 Ω
Said
220 ohms
Value in ohms
220
Where you meet it
Small series resistors
Written
4.7 kΩ
Said
4.7 kilohms
Value in ohms
4,700
Where you meet it
Pull-up resistors
Written
10 kΩ
Said
10 kilohms
Value in ohms
10,000
Where you meet it
Knobs, sensor dividers, pull-ups
Written
1 MΩ
Said
1 megohm
Value in ohms
1,000,000
Where you meet it
A light sensor in the dark

Table note: kilo means 10³ and mega means 10⁶, as listed by NIST (opens in a new tab).

What decides how much resistance something has

Four things set the resistance of a wire or any other conductor: what it is made of, how long it is, how thick it is and how hot it is. OpenStax (opens in a new tab) puts the first three into one formula:

text
R = ρ × L ÷ A

R = resistance in ohms (Ω)
ρ = resistivity of the material in ohm-metres (Ω·m), the Greek letter rho
L = length in metres (m)
A = cross-sectional area in square metres (m²)

Resistance goes up in step with length, and down as the wire gets thicker. A longer hose is harder to push water through. A wider hose is easier.

Worked example: one metre of copper wire vs one metre of nichrome

Take two wires, each 1 m long and 0.5 mm across.

  1. 1

    Area

    the radius is 0.25 mm, or 0.00025 m. A = π × 0.00025² = 1.96 × 10⁻⁷ m².

  2. 2

    Copper

    R = 1.72 × 10⁻⁸ × 1 ÷ 1.96 × 10⁻⁷ = about 0.088 Ω.

  3. 3

    Nichrome

    R = 100 × 10⁻⁸ × 1 ÷ 1.96 × 10⁻⁷ = about 5.1 Ω.

  4. 4

    Double the length

    of the copper wire and its resistance doubles, to about 0.18 Ω.

  5. 5

    Double its thickness

    to 1 mm and the area grows four times, so the resistance falls to a quarter, about 0.022 Ω.

The copper wire's resistance is so small that you can usually ignore it in a short project. The nichrome wire, same size, resists about 58 times more.

Temperature matters as well. OpenStax (opens in a new tab) explains that the resistivity of conductors rises as they get hotter, and gives copper a temperature coefficient of 3.9 × 10⁻³ per °C. Warm that copper wire from 20 °C to 70 °C and its resistance rises by 1 + 0.0039 × 50 = 1.195 times, about a fifth more.

Ohm's law: how resistance sets the current

Voltage, current and resistance are tied together by Ohm's law:

text
V = I × R      voltage (volts) = current (amps) × resistance (ohms)
I = V ÷ R      the current you get from a voltage and a resistance
R = V ÷ I      the resistance you need for a chosen current

SparkFun's Ohm's law tutorial (opens in a new tab) shows it with its hose: 1 volt across 1 ohm gives 1 amp, and the same 1 volt across a narrower 2 ohms gives only 0.5 amps. More resistance, same push, less flow. The guide to Ohm's law with real examples goes further.

The table below puts the same 5 V, the voltage of a USB cable, across four different resistors. Power, the heat each resistor makes, is P = V × I.

Resistor
100 Ω
Current, I = 5 ÷ R
50 mA
Heat made, P = 5 × I
0.25 W
Safe with a ¼ W resistor?
Only just: right at the limit
Resistor
1 kΩ
Current, I = 5 ÷ R
5 mA
Heat made, P = 5 × I
25 mW
Safe with a ¼ W resistor?
Yes
Resistor
10 kΩ
Current, I = 5 ÷ R
0.5 mA
Heat made, P = 5 × I
2.5 mW
Safe with a ¼ W resistor?
Yes
Resistor
100 kΩ
Current, I = 5 ÷ R
0.05 mA
Heat made, P = 5 × I
0.25 mW
Safe with a ¼ W resistor?
Yes

Table note: calculated with Ohm's law. SparkFun's resistor tutorial (opens in a new tab) says standard through-hole resistors usually come with ¼ W or ½ W ratings.

Each step up in resistance cuts the current by ten. That is the one-line answer again: a resistor limits current. Every resistor also has a power rating, and SparkFun (opens in a new tab) warns that going over it makes heat, which can lead to smoke and even fire. So a 100 Ω resistor on 5 V needs a ½ W part, or a bigger resistance.

The same 5 V USB supply drawn four times, each loop through a different resistor: 100 Ω gives 50 mA, 1 kΩ gives 5 mA, 10 kΩ gives 0.5 mA and 100 kΩ gives 0.05 mA. The current arrows get thinner with each step, because ten times the resistance means a tenth of the current.
The same 5 V USB supply drawn four times, each loop through a different resistor: 100 Ω gives 50 mA, 1 kΩ gives 5 mA, 10 kΩ gives 0.5 mA and 100 kΩ gives 0.05 mA. The current arrows get thinner with each step, because ten times the resistance means a tenth of the current.

What a resistor actually does: four everyday jobs

Why do we need resistors? Because many parts would be damaged or would not work without a set amount of resistance in the right place. Almost every resistor you meet does one of four jobs.

Job
Limit current
How it works
Sits in series and caps the current through Ohm's law
A typical example
An LED on 9 V with about 720 Ω in series
Job
Divide a voltage
How it works
Two in series share the supply in proportion
A typical example
1.7 kΩ and 3.3 kΩ turn 5 V into 3.3 V
Job
Pull a pin up or down
How it works
A weak link to the supply or ground, so a pin never floats
A typical example
About 10 kΩ for a push button
Job
Sense the world
How it works
The resistance changes with light or heat
A typical example
A light-dependent resistor or a thermistor

Table note: the LED, divider and 10 kΩ examples are from SparkFun's resistor tutorial (opens in a new tab) and pull-up tutorial (opens in a new tab).

Limiting current

An LED is the classic case. It has almost no resistance of its own once it lights, so without help it takes far too much current. SparkFun's Ohm's law tutorial (opens in a new tab) works it out: with no resistor you get as much current as the battery can deliver. Its resistor tutorial (opens in a new tab) gives the fix: a red LED drops about 1.8 V, so on 9 V you need (9 − 1.8) ÷ 0.010 = 720 Ω for 10 mA. It also says basic LEDs usually take at most about 20 mA.

In Lesson 4 you switch and dim the board's blue LED from the dashboard, with no wiring. When you later wire a loose LED of your own, give it a series resistor. The guide to how LEDs work and why they need a resistor walks through the sum for different colours.

Dividing a voltage

Put two resistors in series and the supply voltage is shared between them, the bigger share going to the bigger resistor. The point between them gives a smaller voltage:

text
Vout = Vin × R2 ÷ (R1 + R2)
Example: 5 V × 3.3 kΩ ÷ (1.7 kΩ + 3.3 kΩ) = 3.3 V

That example is from SparkFun's resistor tutorial (opens in a new tab). Swap one resistor for a sensor whose resistance changes, and the output voltage follows the sensor. The guide to the voltage divider formula and its sensor uses goes deeper, and series and parallel circuits explains why the voltage splits.

Pulling a pin up or down

A microcontroller input that is connected to nothing is called floating, and its reading wanders. SparkFun's pull-up tutorial (opens in a new tab) explains the cure: a resistor from the pin to the supply holds it HIGH, and a button to ground pulls it LOW when pressed. The guide to pull-up and pull-down resistors compares the two.

Sensing the world

Some resistors change on purpose. A light-dependent resistor (LDR) falls in resistance as light gets brighter. Lesson 7 says it can be over 1 megohm in the dark and as low as a few hundred ohms in bright light. A thermistor changes with temperature, and Lesson 10 explains that there is one inside the DHT11 sensor.

Types of resistors: fixed, variable and sensing

Type
Fixed, through-hole
Its resistance changes with
Nothing
What it looks like
A small body with coloured bands and two wire legs
On the MakerBuddy board
Two, beside socket 26 and beside the light sensor
Type
Fixed, surface-mount
Its resistance changes with
Nothing
What it looks like
A tiny black block printed with a number code
On the MakerBuddy board
Several, on the black ESP32 DevKit
Type
Variable (potentiometer or trimmer)
Its resistance changes with
Turning a knob
What it looks like
Three legs and a knob or slot
On the MakerBuddy board
The knob marked 34-Potentio
Type
Light-dependent (LDR)
Its resistance changes with
Light
What it looks like
A disc with a wavy track on top
On the MakerBuddy board
The light sensor marked 35-LDR
Type
Thermistor
Its resistance changes with
Temperature
What it looks like
Usually hidden inside a sensor
On the MakerBuddy board
Inside the plug-in DHT11

A potentiometer, or pot, is the odd one out because it has three connections. Lesson 9 explains that turning the knob moves a wiper along the resistance, which changes the voltage it gives out. The guide to what a potentiometer is and how it works covers the inside.

How to read a resistor's value: colour bands and number codes

Through-hole resistors carry coloured bands instead of printed numbers. Each colour stands for a digit, and one band is a multiplier.

Colour
Black
Digit
0
Multiplier
× 1
Tolerance
—
Colour
Brown
Digit
1
Multiplier
× 10
Tolerance
±1%
Colour
Red
Digit
2
Multiplier
× 100
Tolerance
±2%
Colour
Orange
Digit
3
Multiplier
× 1,000
Tolerance
—
Colour
Yellow
Digit
4
Multiplier
× 10,000
Tolerance
—
Colour
Green
Digit
5
Multiplier
× 100,000
Tolerance
±0.5%
Colour
Blue
Digit
6
Multiplier
× 1,000,000
Tolerance
±0.25%
Colour
Violet
Digit
7
Multiplier
× 10,000,000
Tolerance
±0.1%
Colour
Grey
Digit
8
Multiplier
× 100,000,000
Tolerance
±0.05%
Colour
White
Digit
9
Multiplier
× 1,000,000,000
Tolerance
—
Colour
Gold
Digit
—
Multiplier
—
Tolerance
±5%
Colour
Silver
Digit
—
Multiplier
—
Tolerance
±10%

Table note: from the colour code calculator in SparkFun's resistor tutorial (opens in a new tab).

A four-band resistor has two digit bands, a multiplier and a tolerance band. A five-band resistor adds a third digit band before the multiplier. SparkFun's (opens in a new tab) tip for finding the start: the tolerance band is often set apart from the others, and is usually gold or silver. Start reading from the other end.

Tolerance says how far the real value may be from the printed one. SparkFun's (opens in a new tab) example: a 1 kΩ resistor with 5% tolerance could be anywhere from 0.95 kΩ to 1.05 kΩ.

The board's two blue five-band resistors, enlarged and read left to right: yellow, violet, black, brown, brown decodes as 4, 7, 0, × 10, ±1% = 4.7 kΩ beside socket 26, and brown, black, black, red, brown decodes as 1, 0, 0, × 100, ±1% = 10 kΩ beside the light sensor. A warning notes that the 10 kΩ read from the wrong end gives 120 Ω.
The board's two blue five-band resistors, enlarged and read left to right: yellow, violet, black, brown, brown decodes as 4, 7, 0, × 10, ±1% = 4.7 kΩ beside socket 26, and brown, black, black, red, brown decodes as 1, 0, 0, × 100, ±1% = 10 kΩ beside the light sensor. A warning notes that the 10 kΩ read from the wrong end gives 120 Ω.

Worked example: decode the board's resistors

The MakerBuddy board has two blue five-band resistors. On the purple and green boards we checked, the bands read like this.

  1. 1

    Beside socket 26

    yellow, violet, black, brown, brown. The digits are 4, 7 and 0, so 470. The brown multiplier is × 10, giving 4,700 Ω, or 4.7 kΩ. The last brown band means ±1%, so the real value lies between 4,653 Ω and 4,747 Ω.

  2. 2

    Beside the light sensor

    brown, black, black, red, brown. The digits are 1, 0 and 0, so 100. The red multiplier is × 100, giving 10,000 Ω, or 10 kΩ, again ±1%. That is 9,900 Ω to 10,100 Ω.

  3. 3

    The trap

    read the second one from the wrong end and you get brown, red, black, black, brown: 120 × 1 = 120 Ω. Both ends are brown, so the colours alone do not tell you where to start. A multimeter settles it in seconds.

Surface-mount resistors and trimmers use a printed number code instead. SparkFun's resistor tutorial (opens in a new tab) explains the three-digit version: the first two numbers are the first two digits of the value, and the last number says how many zeros follow. Its example is 104, which is 10 followed by four zeros: 100 kΩ. By the same rule:

  • 103 is 10 followed by three zeros: 10,000 Ω, or 10 kΩ. The board's knob is printed 103.
  • 102 is 1,000 Ω, or 1 kΩ.
  • 472 is 4,700 Ω, or 4.7 kΩ.

The guide to reading any resistor colour code in 10 seconds has more practice.

Every resistor on the MakerBuddy board, and what each one protects

The MakerBuddy IoT Kit V1.0 is a learning board that carries a 30-pin ESP32 DevKit and runs on 5 V from a micro-USB cable. It comes in purple or green, and both colours are the same board. Lesson 2 is the board tour, and the technical details list every part with its pin.

An honest note first: not every resistor protects something. Most set a voltage or hold a pin steady. Three also keep a current small that could otherwise be large.

Where to look
Beside socket 26
Kind
Fixed
Value
4.7 kΩ
Its job
Pull-up for the DS18B20 probe's data wire
What it protects or prevents
Stops the wire floating, and keeps the current small when the probe pulls the wire low
Lesson
Lesson 11
Where to look
Beside 35-LDR
Kind
Fixed
Value
10 kΩ
Its job
Partner in the light sensor's voltage divider
What it protects or prevents
Turns the light into a voltage, and keeps the current small in bright light
Lesson
Lesson 7
Where to look
35-LDR, the light sensor
Kind
Light-dependent
Value
Over 1 MΩ dark, a few hundred ohms bright
Its job
The sensor itself
What it protects or prevents
—
Lesson
Lesson 7
Where to look
34-Potentio, an orange trimmer printed 103
Kind
Variable
Value
10 kΩ
Its job
Turns your twist into a voltage
What it protects or prevents
Its whole track always sits between the supply and ground, so no turn makes a short
Lesson
Lesson 9
Where to look
Inside the ESP32, out of sight
Kind
Internal pull-up
Value
About 45 kΩ
Its job
Holds pin 5 HIGH until you press the button
What it protects or prevents
Stops a press from shorting 3.3 V to ground
Lesson
Lesson 6
Where to look
On the black DevKit, tiny blocks printed 103, 102 or 472
Kind
Fixed, surface-mount
Value
10 kΩ, 1 kΩ, 4.7 kΩ
Its job
The DevKit's own circuits
What it protects or prevents
—
Lesson
—

The 4.7 kΩ pull-up beside socket 26

The DS18B20 waterproof probe plugs into the socket marked 26 and talks over a single data wire, which Lesson 11 calls the One-Wire protocol. The probe can pull that wire low, but it cannot push it high. The DS18B20 datasheet (opens in a new tab) says its data pin is open drain, that the bus needs a pull-up resistor of approximately 5 kΩ, and that the bus sits high when idle. Its wiring diagrams draw a 4.7 kΩ part, the same value the board uses.

So the resistor does the pushing up. When the probe pulls the wire low, the resistor is all that sits between the supply and ground. The same datasheet (opens in a new tab) gives the probe a supply range of 3.0 V to 5.5 V. Across that range, Ohm's law keeps the current between 3.0 ÷ 4,700 = 0.64 mA and 5.5 ÷ 4,700 = 1.2 mA. Swap the resistor for a plain wire and every low bit would be a short circuit.

The 10 kΩ partner beside the light sensor

A microcontroller pin cannot measure resistance. It measures voltage. So the light sensor sits in a voltage divider: the LDR on the supply side, the 10 kΩ resistor on the ground side, and pin 35 reading the point between them. Lesson 7 gives the result in one line: more light, lower resistance, higher voltage reading.

Once a second, the MakerBuddy firmware takes four readings of pin 35, averages them and scales the 0 to 4,095 result to the 0 to 100 shown on the Light Level card. Without the 10 kΩ resistor, the reading would not follow the light.

In bright light the LDR can drop to a few hundred ohms. With 300 Ω on top and 10 kΩ below, the pin sits at 10,000 ÷ 10,300 = 0.97 of the supply, while the 10 kΩ keeps the current small. The guide to how an LDR works has a full table of light levels and readings.

The 10 kΩ knob, printed 103

The knob is a trimmer potentiometer. Its two outer legs connect across the supply and ground, and its wiper goes to pin 34. Lesson 9 explains that on the V1.0 board the knob runs from 5 V, and that near the end of its turn the voltage is too high for the converter, so the reading stays at its top value.

The whole 10 kΩ track always sits between 5 V and ground, wherever the knob points. So the current through it is always 5 ÷ 10,000 = 0.5 mA, and the heat is 5 × 0.0005 = 2.5 mW. No turn of the knob can make a short.

The tiny resistors on the ESP32 DevKit

With a magnifier, the DevKit we photographed shows tiny blocks printed 103, 102 or 472: 10 kΩ, 1 kΩ and 4.7 kΩ. Other DevKits may differ. Espressif's hardware design guidelines (opens in a new tab) show typical jobs for such resistors: an RC delay on the enable pin, usually 10 kΩ with 1 µF, and a recommended pull-up on GPIO0, a pin that helps pick the boot mode.

Worked example: what the button's pull-up protects

The push button has no resistor on the board. The MakerBuddy firmware switches on the ESP32's built-in pull-up for pin 5 with Arduino's INPUT_PULLUP mode, and Lesson 6 explains the result: the card shows Pressed when the pin is LOW. The ESP32 datasheet (opens in a new tab) gives that pull-up a typical value of 45 kΩ, and the chip's pins work at 3.3 V.

  1. 1

    Button up.

    The pull-up connects pin 5 to 3.3 V. The input draws almost no current, so almost no voltage is lost across the resistor. The pin reads HIGH.

  2. 2

    Button pressed.

    The button joins pin 5 to ground. Now the 45 kΩ resistor sits straight across 3.3 V and ground.

  3. 3

    The current.

    I = V ÷ R = 3.3 ÷ 45,000 = 0.000073 A, or 73 µA. The same datasheet gives the internal pull-up's drive strength as about 75 µA, so the sum agrees.

  4. 4

    The heat.

    P = V × I = 3.3 × 0.000073 = 0.00024 W, a quarter of a milliwatt.

  5. 5

    Without the resistor.

    Replace it with a plain wire of, say, 0.1 Ω, and Ohm's law asks for 3.3 ÷ 0.1 = 33 A. No real supply can give that. This is the short circuit that SparkFun's pull-up tutorial (opens in a new tab) warns about.

So the pull-up does two jobs at once. It tells the pin which way to read, and it turns what would be a short into a tiny, harmless current.

The button on pin 5 with the 45 kΩ pull-up inside the ESP32: with the button up no current flows and the pin reads HIGH at 3.3 V; with it pressed 73 µA flows through the resistor and button to ground and the pin reads LOW. A faded inset shows a 0.1 Ω plain wire in the resistor's place: 3.3 ÷ 0.1 = 33 A, a short circuit.
The button on pin 5 with the 45 kΩ pull-up inside the ESP32: with the button up no current flows and the pin reads HIGH at 3.3 V; with it pressed 73 µA flows through the resistor and button to ground and the pin reads LOW. A faded inset shows a 0.1 Ω plain wire in the resistor's place: 3.3 ÷ 0.1 = 33 A, a short circuit.

A 30-minute resistor hunt for class or home

This short activity fits after Lesson 2. It needs one board per pair, the dashboard, and a magnifier if you have one.

  1. 1

    Look, unplugged (5 minutes).

    With the USB cable out, find the two blue resistors and the orange knob. Sort every resistor-like part into fixed, variable or sensing.

  2. 2

    Decode (10 minutes).

    Use the colour table to read both blue resistors. Write each value and its ±1% range. Then decode the 103 on the knob and any codes you can read on the DevKit.

  3. 3

    Watch resistance change (10 minutes).

    Plug in and open the dashboard. Cover the light sensor with your hand, then shine a torch on it, and watch the Light Level card. Turn the knob slowly with a fingertip and watch the Potentiometer card. Both cards update about every 2 seconds, so move slowly.

  4. 4

    Press the button (2 minutes).

    Hold it for about 3 seconds and watch the Push Button card. Never hold it for more than 10 seconds: that erases the saved Wi-Fi and restarts the board in setup mode, as Lesson 6 explains.

  5. 5

    Explain (3 minutes).

    Each pair names one resistor that protects something and says what it stops.

Keep meters off the powered board. If you have a multimeter, practise on loose resistors instead, as our beginner's guide to using a multimeter shows.

Common resistor mistakes, with symptoms, causes and fixes

Measuring a resistor while it is in a circuit

Symptom: the meter shows a value well below the printed one. Cause: the other parts on the board form extra paths for the meter's current. SparkFun's multimeter guide (opens in a new tab) warns that the surrounding components can greatly affect the reading. Fix: measure loose resistors, or ones with at least one leg free, and never on a powered circuit.

Expecting the exact printed value

Symptom: a "10 kΩ" resistor reads 9.7 kΩ, and you think it is faulty. Cause: tolerance. SparkFun's multimeter guide (opens in a new tab) notes that a 10 kΩ resistor with 5% tolerance can be anywhere from 9.5 kΩ to 10.5 kΩ, and that temperature affects the reading too. Fix: compare with the tolerance range, not the exact number.

Mixing up Ω, kΩ and MΩ

Symptom: a pull-up resistor gets hot when you press the button. Cause: you fitted 4.7 Ω instead of 4.7 kΩ. On 3.3 V that lets 3.3 ÷ 4.7 = 0.7 A flow, and makes about 2.3 W of heat, nine times a ¼ W rating. Fix: say the prefix out loud as you read it, and check the multiplier band twice.

Leaving an input pin floating

Symptom: in your own sketch, a button reads pressed and released at random. Cause: no pull-up, so the pin floats. Fix: use INPUT_PULLUP, or fit a 10 kΩ pull-up. On the ESP32, GPIO 34 to 39 are the exception: Espressif's GPIO reference (opens in a new tab) says they are input only and have no software pull-up or pull-down, so a button there needs an external resistor. Remember that uploading your own sketch replaces the MakerBuddy firmware until you put it back, as the documentation explains.

FAQ

Why do we need resistors?

Resistors limit current, so parts such as LEDs do not take more than they can handle. They also split voltages so sensors can be read, and hold microcontroller pins at a steady HIGH or LOW. Without them, many circuits would be shorts, or would read at random.

What is the unit of resistance?

The unit of resistance is the ohm, written Ω. One ohm is the resistance that lets 1 volt push 1 amp of current, so NIST (opens in a new tab) lists it as volts per ampere. Larger values use kilohms (kΩ, thousands of ohms) and megohms (MΩ, millions of ohms).

What is the opposite of resistance?

Conductance, which says how easily current flows. It is one divided by the resistance and is measured in siemens (S), which NIST (opens in a new tab) lists as A/V. A 10 kΩ resistor has a conductance of 0.0001 S, or 0.1 mS.

Can current flow without resistance?

Yes, in a superconductor. Some materials lose all their resistance when cooled far enough; OpenStax (opens in a new tab) gives mercury as an example, below about 4.2 K. Every ordinary wire at room temperature has some resistance, even if it is tiny.

How do you test a resistor with a multimeter?

Take the resistor out of the circuit, or make sure the circuit is unpowered. Set the meter to a resistance range above the value you expect, such as 20 kΩ, and touch the probes to the two legs. Compare the reading with the printed value and its tolerance range.

What is the difference between resistance and resistivity?

Resistivity belongs to a material: copper always has the same resistivity at a given temperature. Resistance belongs to one object, and depends on its material, length, thickness and temperature. A long thin copper wire has more resistance than a short thick one, though both have the same resistivity.

How can you explain resistance to kids?

Picture water in a hose. The water pressure is the voltage, the water flowing is the current, and resistance is how narrow the hose is. Squeeze the hose and less water flows. A resistor is a deliberately narrow bit of hose that stops too much current rushing through. Our MakerBuddy blog has more electronics ideas explained this way, and if your class wants boards to try them on, see what comes in each MakerBuddy kit.

Sources

Keep reading

Electronics Basics

Analog vs Digital Signals: The Difference Every Maker Should Know

An analog signal can take any value in a range; a digital signal has a fixed set of values, usually just HIGH and LOW. See the two side by side, how a microcontroller reads each, and every sensor in a student kit sorted into one group or the other.

20 min read

Electronics Basics

What Is Current? Electric Current, Amps and Why It Matters

Electric current is the flow of charge around a circuit, measured in amps. Learn what an amp is, AC vs DC, the currents you meet every day, and why a tiny chip pin needs help to run a relay or a motor.

20 min read

Electronics Basics

What Is a Potentiometer and How Does It Work?

A potentiometer is a resistor with a sliding contact that turns the position of a knob into a voltage. This guide explains its three pins, the main types, how a microcontroller reads one and how the MakerBuddy knob steers a servo with no code.

20 min read

Learn with MakerBuddy

32 free lessons, one kit, no wiring to start.

Every part in these guides has its own lesson. Read them free, or get a kit for your class.