Electronics & Circuits · Study deck

IoT Electricity: Kirchhoff Analysis and Diagnostics

Series and parallel reductions explain many circuits, but a real IoT board still has branches and loops whose currents and voltage drops must be proven.

Voltage Vera is your guide for this deck.

electricity
Voltage Vera, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: The Sensor Squad was going to build their very first LED circuit. "First, we need a resistor," said the microcontroller, holding up a tiny striped cylinder. "Without it, Lila could get hurt!".
  • Explain: If the rest of the 3.3V rail stayed continuously active, the same table gives roughly 19.5 hours; longer runtimes require the MCU, sensor, and indicator loads to sleep too.
  • Explain: Passive components (resistors, capacitors, inductors) shape every IoT circuit: resistors limit current and create voltage dividers, capacitors filter noise and store energy, and inductors enable efficient power conversion.
iotclass.org

Major section

Deep dive: Kirchhoff Laws in IoT

Current cannot appear or disappear -- it must flow somewhere.

  • Every volt the battery provides must be "used up" by components in the loop.
  • A standard 1/8 W (0.125 W) resistor is sufficient.
  • Problem found by KVL: The regulator cannot maintain 3.3V output when the battery drops below 4.3V.

Why it matters

Duty-cycling it (heat 30s, read, sleep 270s) would reduce average heater current to 15 mA.

iotclass.org

Major section

Deep dive: Kirchhoff Laws in IoT (continued)

Step 3: Apply KVL to Check Regulator Headroom: The LDO regulator needs a minimum dropout voltage of 1.0V (AMS1117 datasheet).

  • A LiPo spends most of its discharge curve between 3.5-3.8V, so the LDO will drop out frequently.
  • If the rest of the 3.3V rail stayed continuously active, the same table gives roughly 19.5 hours; longer runtimes require the MCU, sensor, and indicator loads to sleep too.
  • Duty-cycling it (heat 30s, read, sleep 270s) would reduce average heater current to 15 mA.
iotclass.org

Major section

Key Takeaway from Kirchhoff's Laws

KCL answered: "Can my regulator handle the total current?" (92.4 mA -- yes, AMS1117 supports up to 1A).

  • These two laws catch problems that Ohm's Law alone cannot: KCL catches overcurrent on shared rails, and KVL catches voltage headroom failures in multi-component loops.
iotclass.org

Major section

Key Takeaway

Passive components (resistors, capacitors, inductors) shape every IoT circuit: resistors limit current and create voltage dividers, capacitors filter noise and store energy, and inductors enable efficient power conversion.

  • The power budget calculation (average current = sum of duty-cycle-weighted component currents) is the single most important analysis for battery-powered IoT deployments.
iotclass.org

Major section

For Kids: Meet the Sensor Squad!

Temperature Terry and friends learn about building real circuits!: Temperature Terry was excited -- today was Build Day!

  • The Sensor Squad was going to build their very first LED circuit. "First, we need a resistor," said the microcontroller, holding up a tiny striped cylinder. "Without it, Lila could get hurt!".
iotclass.org

Major section

For Kids: Meet the Sensor Squad! (continued)

The resistor is like a speed bump that slows the electricity down to a safe amount.".

  • the battery was ready to power everything. "I have 9 volts of energy!" she announced proudly.
  • Max did some quick math: "Lila needs about 2 volts, so the resistor needs to handle 7 volts.
  • That's how EVERY LED in your toys, phones, and smart home gadgets works!".
iotclass.org

Major section

Chapter Summary

Electricity is the foundation of all IoT systems, driven by the flow of electrons through conductors.

  • Understanding the relationship between voltage (electrical "pressure"), current (flow rate), and resistance (opposition to flow) through Ohm's Law (V = I × R) is essential for designing and troubleshooting IoT circuits.

Key terms

Series configurations
Series configurations are useful for voltage division and cumulative resistance, while parallel configurations provide redundancy and current distribution.

Why it matters

Understanding these principles enables proper component selection and circuit design.

iotclass.org

Major section

Chapter Summary (continued)

Real-world circuits combine these components to condition sensor signals, filter noise, store energy, and protect sensitive electronics.

  • Circuit configurations significantly impact system behavior: series circuits share current but divide voltage, while parallel circuits share voltage but divide current.
  • Series configurations are useful for voltage division and cumulative resistance, while parallel configurations provide redundancy and current distribution.
  • Safety margins (typically 2×) prevent component failure and ensure long-term reliability in IoT deployments.
iotclass.org

Major section

LED Resistor Current Error

Many beginners size LED resistors for the maximum rated current (20 mA) because it is listed prominently in the datasheet.

  • At 20 mA, LEDs are near their thermal limits and consume unnecessary power.

Numbers to remember

20 mAAt 20 mA, LEDs are near their thermal limits
iotclass.org

Major section

2. Voltage Divider Loading Error

When a load (ADC input, voltmeter, next stage circuit) is connected to the voltage divider output, it appears in parallel with R2 and changes the voltage.

  • If the load resistance is comparable to R2, the output voltage drops significantly below the calculated value.
iotclass.org

Major section

Battery Rated vs Usable Capacity

Devices with brownout reset voltages of 2.8-3.0 V stop working before the battery is fully discharged.

  • Usable capacity is typically 80-90% of rated capacity.

Numbers to remember

80-90%Usable capacity is typically 80-90% of rated capacity.
iotclass.org

Major section

Reverse Diode Voltage Drop

A 3.3 V system with a diode sees 2.6-3.0 V at the circuit.

  • For 3.3 V logic that requires VCC > 2.7 V minimum, this can bring the supply dangerously close to the minimum operating voltage.

Numbers to remember

3.3 VFor 3.3 V logic that requires VCC > 2.7 V minimum
> 2.7 VFor 3.3 V logic that requires VCC > 2.7 V minimum
iotclass.org

Deck summary

Key takeaways

Current cannot appear or disappear -- it must flow somewhere.

  • Step 3: Apply KVL to Check Regulator Headroom: The LDO regulator needs a minimum dropout voltage of 1.0V (AMS1117 datasheet).
  • KCL answered: "Can my regulator handle the total current?" (92.4 mA -- yes, AMS1117 supports up to 1A).
  • Passive components (resistors, capacitors, inductors) shape every IoT circuit: resistors limit current and create voltage dividers, capacitors filter noise and store energy, and inductors enable efficient power conversion.
  • Temperature Terry and friends learn about building real circuits!: Temperature Terry was excited -- today was Build Day!
iotclass.org

Retrieval practice

Recall check 1 of 3

Voltage Vera says: answer from memory, then check your reasoning.

Q1A circuit has 12V voltage and 4Ω resistance. What is the current?

A3A
B48A
C8A
D16A
Show answer

Answer: A Answer: A) 3A $$ \begin{aligned} I &= \frac{V}{R} \\ &= \frac{12V}{4\Omega} \\ &= 3A \end{aligned} $$.

Q2You need to limit current to 20mA for a 2V LED powered by a 5V supply. What resistor value?

A100Ω
B150Ω
C220Ω
D330Ω
Show answer

Answer: B Answer: B) 150Ω $$ \begin{aligned} R &= \frac{V_{supply} - V_{LED}}{I} \\ &= \frac{5V - 2V}{0.02A} \\ &= 150\Omega \end{aligned} $$ In practice, use 150Ω or the nearest standard value (220Ω).

Q3Two 1kΩ resistors are connected in parallel. What is the total resistance?

A2kΩ
B1kΩ
C500Ω
D250Ω
Show answer

Answer: C see answers page

iotclass.org

Retrieval practice

Recall check 2 of 3

Voltage Vera says: answer from memory, then check your reasoning.

Q4An IoT sensor draws 2mA continuously from a 1000mAh battery. How long will the battery last?

A50 hours
B200 hours
C500 hours
D2000 hours
Show answer

Answer: C Answer: C) 500 hours $$ \begin{aligned} Battery\ Life &= \frac{Battery\ Capacity}{Current\ Draw} \\ &= \frac{1000mAh}{2mA} \\ &= 500\ hours \end{aligned} $$ This equals approximately 21 days.

Q5In conventional current flow notation used in circuit analysis, current flows:

AFrom negative to positive
BFrom positive to negative
CIn both directions simultaneously
DOnly in AC circuits
Show answer

Answer: B Answer: B) From positive to negative By convention , current flows from positive (+) to negative (-), even though electrons physically flow from negative to positive.

iotclass.org

Retrieval practice

Recall check 3 of 3

Voltage Vera says: answer from memory, then check your reasoning.

Q6Place each electricity pattern where it lives so you can protect components, scale measurements, and predict battery runtime.

ALED current limiting resistor
BVoltage divider
CPull-up resistor
DPower budget estimate
Show answer

Answer: A Separate protection and logic bias, measurement scaling, and energy budgeting so you can choose the right electrical pattern for each design decision.

iotclass.org

Print reference

Answers 1 of 3

Answer key.

  1. A · Answer: A) 3A $$ \begin{aligned} I &= \frac{V}{R} \\ &= \frac{12V}{4\Omega} \\ &= 3A \end{aligned} $$.
  2. B · Answer: B) 150Ω $$ \begin{aligned} R &= \frac{V_{supply} - V_{LED}}{I} \\ &= \frac{5V - 2V}{0.02A} \\ &= 150\Omega \end{aligned} $$ In practice, use 150Ω or the nearest standard value (220Ω).
iotclass.org

Print reference

Answers 2 of 3

Answer key.

  1. C · Answer: C) 500Ω For parallel resistors: $$ \begin{aligned} \frac{1}{R_{total}} &= \frac{1}{R_1} + \frac{1}{R_2} \\ &= \frac{1}{1k\Omega} + \frac{1}{1k\Omega} \\ &= \frac{2}{1k\Omega} \end{aligned} $$ Therefore: $$ \begin{aligned} R_{total} &= \frac{1k\Omega}{2} \\ &= 500\Omega \end{aligned} $$ For identical resistors in parallel: $$ \begin{aligned} R_{total} &= \frac{R}{n} \end{aligned} $$ where n is the number of resistors.
iotclass.org

Print reference

Answers 3 of 3

Answer key.

  1. C · Answer: C) 500 hours $$ \begin{aligned} Battery\ Life &= \frac{Battery\ Capacity}{Current\ Draw} \\ &= \frac{1000mAh}{2mA} \\ &= 500\ hours \end{aligned} $$ This equals approximately 21 days.
  2. B · Answer: B) From positive to negative By convention , current flows from positive (+) to negative (-), even though electrons physically flow from negative to positive.
  3. A · Separate protection and logic bias, measurement scaling, and energy budgeting so you can choose the right electrical pattern for each design decision.
iotclass.org