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 | Resistivity at 20 °C (Ω·m) | What it means for you |
|---|---|---|
| Silver | 1.59 × 10⁻⁸ | The best conductor in the table |
| Copper | 1.72 × 10⁻⁸ | Almost as good as silver |
| Aluminium | 2.65 × 10⁻⁸ | A good conductor |
| Nichrome | 100 × 10⁻⁸ | About 58 times copper: a metal that resists on purpose |
| Carbon (pure) | 3.5 × 10⁻⁵ | Listed as a semiconductor, far more resistive than any metal |
| Glass | 10⁹ to 10¹⁴ | An insulator |
| Hard rubber | 10¹³ to 10¹⁶ | An insulator |
- 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 | Said | Value in ohms | Where you meet it |
|---|---|---|---|
| 220 Ω | 220 ohms | 220 | Small series resistors |
| 4.7 kΩ | 4.7 kilohms | 4,700 | Pull-up resistors |
| 10 kΩ | 10 kilohms | 10,000 | Knobs, sensor dividers, pull-ups |
| 1 MΩ | 1 megohm | 1,000,000 | A light sensor in the dark |
- 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:
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
Area
the radius is 0.25 mm, or 0.00025 m. A = π × 0.00025² = 1.96 × 10⁻⁷ m².
- 2
Copper
R = 1.72 × 10⁻⁸ × 1 ÷ 1.96 × 10⁻⁷ = about 0.088 Ω.
- 3
Nichrome
R = 100 × 10⁻⁸ × 1 ÷ 1.96 × 10⁻⁷ = about 5.1 Ω.
- 4
Double the length
of the copper wire and its resistance doubles, to about 0.18 Ω.
- 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:
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 currentSparkFun'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 | Current, I = 5 ÷ R | Heat made, P = 5 × I | Safe with a ¼ W resistor? |
|---|---|---|---|
| 100 Ω | 50 mA | 0.25 W | Only just: right at the limit |
| 1 kΩ | 5 mA | 25 mW | Yes |
| 10 kΩ | 0.5 mA | 2.5 mW | Yes |
| 100 kΩ | 0.05 mA | 0.25 mW | Yes |
- 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.

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 | How it works | A typical example |
|---|---|---|
| Limit current | Sits in series and caps the current through Ohm's law | An LED on 9 V with about 720 Ω in series |
| Divide a voltage | Two in series share the supply in proportion | 1.7 kΩ and 3.3 kΩ turn 5 V into 3.3 V |
| Pull a pin up or down | A weak link to the supply or ground, so a pin never floats | About 10 kΩ for a push button |
| Sense the world | The resistance changes with light or heat | A light-dependent resistor or a thermistor |
- 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:
Vout = Vin × R2 ÷ (R1 + R2)
Example: 5 V × 3.3 kΩ ÷ (1.7 kΩ + 3.3 kΩ) = 3.3 VThat 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 | Its resistance changes with | What it looks like | On the MakerBuddy board |
|---|---|---|---|
| Fixed, through-hole | Nothing | A small body with coloured bands and two wire legs | Two, beside socket 26 and beside the light sensor |
| Fixed, surface-mount | Nothing | A tiny black block printed with a number code | Several, on the black ESP32 DevKit |
| Variable (potentiometer or trimmer) | Turning a knob | Three legs and a knob or slot | The knob marked 34-Potentio |
| Light-dependent (LDR) | Light | A disc with a wavy track on top | The light sensor marked 35-LDR |
| Thermistor | Temperature | Usually hidden inside a sensor | Inside the plug-in DHT11 |
- 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 | Digit | Multiplier | Tolerance |
|---|---|---|---|
| Black | 0 | × 1 | — |
| Brown | 1 | × 10 | ±1% |
| Red | 2 | × 100 | ±2% |
| Orange | 3 | × 1,000 | — |
| Yellow | 4 | × 10,000 | — |
| Green | 5 | × 100,000 | ±0.5% |
| Blue | 6 | × 1,000,000 | ±0.25% |
| Violet | 7 | × 10,000,000 | ±0.1% |
| Grey | 8 | × 100,000,000 | ±0.05% |
| White | 9 | × 1,000,000,000 | — |
| Gold | — | — | ±5% |
| Silver | — | — | ±10% |
- 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Ω.

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
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
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
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 | Kind | Value | Its job | What it protects or prevents | Lesson |
|---|---|---|---|---|---|
| Beside socket 26 | Fixed | 4.7 kΩ | Pull-up for the DS18B20 probe's data wire | Stops the wire floating, and keeps the current small when the probe pulls the wire low | Lesson 11 |
| Beside 35-LDR | Fixed | 10 kΩ | Partner in the light sensor's voltage divider | Turns the light into a voltage, and keeps the current small in bright light | Lesson 7 |
| 35-LDR, the light sensor | Light-dependent | Over 1 MΩ dark, a few hundred ohms bright | The sensor itself | — | Lesson 7 |
| 34-Potentio, an orange trimmer printed 103 | Variable | 10 kΩ | Turns your twist into a voltage | Its whole track always sits between the supply and ground, so no turn makes a short | Lesson 9 |
| Inside the ESP32, out of sight | Internal pull-up | About 45 kΩ | Holds pin 5 HIGH until you press the button | Stops a press from shorting 3.3 V to ground | Lesson 6 |
| On the black DevKit, tiny blocks printed 103, 102 or 472 | Fixed, surface-mount | 10 kΩ, 1 kΩ, 4.7 kΩ | The DevKit's own circuits | — | — |
- 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.
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
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
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
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
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
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
- SparkFun: Voltage, Current, Resistance, and Ohm's Law (opens in a new tab)
- SparkFun: Resistors (opens in a new tab)
- SparkFun: Pull-up Resistors (opens in a new tab)
- SparkFun: How to Use a Multimeter (opens in a new tab)
- OpenStax College Physics 2e: 20.3 Resistance and Resistivity (opens in a new tab)
- NIST Guide to the SI, Chapter 4: The Two Classes of SI Units and the SI Prefixes (opens in a new tab)
- Espressif: ESP32 Series datasheet (opens in a new tab)
- Espressif: ESP-IDF GPIO and RTC GPIO reference for the ESP32 (opens in a new tab)
- Espressif: ESP32 hardware design guidelines, schematic checklist (opens in a new tab)
- DS18B20 Programmable Resolution 1-Wire Digital Thermometer data sheet (SparkFun copy) (opens in a new tab)





