Labs / Basics · Beginner · 20 min
Ohm's law
Verify V = I x R and see how power is dissipated.
Engineering instrumentation: This lab includes an instrument-style virtual test setup and parameter-driven waveform. For physical measurements, use the Practical Bench.
Parts
- Breadboard
- ESP32 or 5 V supply
- Resistors 100, 220, 470, 1k
- Multimeter
- LED
Steps
- Connect 220 ohm resistor in series with the LED.
- Set the supply to 5 V and measure the voltage across the resistor.
- Measure current with the meter in series.
- Repeat for 100, 470 and 1k and compare with the simulation.
Safety: check polarity and power off before changing the circuit.
ESP32 code (Arduino IDE)
const int PIN=34;\nvoid setup(){ Serial.begin(115200); }\nvoid loop(){ int raw=analogRead(PIN); float v=raw*3.3/4095;\n Serial.println(v); delay(200); }Viva questions
Why does current fall when R increases?
Because I = V / R. For the same voltage, a larger resistance allows less current.
What is the power in a 220 ohm resistor at 5 V?
P = V squared / R = 25 / 220, about 114 mW.
Can a 1/4 W resistor handle it?
Yes, 114 mW is below 250 mW.