14 Components in Systems: Passive and Active Contracts
14.1 Start With the Decision
A floating input can switch an actuator without a command. Pull resistors and grounding keep that interface safe.
14.2 Route Overview
This is part 3 of 3. Review Component Architecture: Capacitors and Selection for the preceding evidence.
14.3 Learning Objectives
- Distinguish passive and active component roles at an IoT interface.
- Size pull resistors, conductors, and insulation from electrical limits.
14.4 Chapter Roadmap
- Passive vs Active Components
- Floating Input and Pull Resistor Contracts
- Concept Relationships
- Try It Yourself
- Key Takeaway
- See Also
- Review: Match the Concepts
- Review: Put It in Order
- Common Pitfalls
- PCB Substrate Insulation Limits
- Conductor vs Insulation Rating
- Wire Gauge for Actuators
- PCB Ground Contact in Enclosure
- Label the Diagram
- What’s Next?
- Code Challenge
- Floating Inputs and Pull Resistors
- Summary
The big picture: Electronic components fall into two categories based on energy behavior: passive components (resistors, capacitors, inductors) can only consume or store energy, while active components (transistors, diodes, ICs) can control current flow and amplify signals by using external power.
Step-by-step breakdown:
-
Resistors: Convert electrical energy to heat following P = I²R - Real example: 220Ω resistor limiting 15mA LED current dissipates P = (0.015)² × 220 = 0.05W as heat, well within its 0.25W power rating and staying cool to touch
-
Capacitors: Store energy in electric field (E = ½CV²), releasing it during voltage dips to stabilize power supplies - Real example: 100µF capacitor at 5V stores 1.25mJ, supplementing the regulator output during brief ESP32 Wi-Fi transmission current spikes (~200mA bursts lasting 1-2 ms)
-
Transistors: Use small control signal to switch or amplify large currents - Real example: A 3.3V GPIO driving an NPN BJT base through a 1kΩ resistor (Ib = (3.3V - 0.7V) / 1kΩ = 2.6mA base current, 8.6mW input power) controls a 12V motor at 200mA collector current (2.4W output power), providing roughly 280x power gain. MOSFETs achieve even higher ratios since their gate draws near-zero DC current
Why this matters: Passive components set voltage/current levels and filter noise, while active components make decisions and drive loads. Every IoT circuit combines both: passives condition signals, actives process and amplify them.
You have now seen the chapter at three scales: individual parts, device subsystems, and material classes. The remaining sections connect those ideas to the surrounding electronics module and give you review tasks to check whether the distinctions hold.
14.5 Floating Input and Pull Resistor Contracts
14.5.1 Start Simple
Imagine a button input that randomly changes state when no one touches it. The pin is not making a decision; it is floating because nothing defines the idle voltage strongly enough. Start by choosing the default state, the pull resistor value, and the leakage or edge-speed evidence that proves the input will stay there.
14.5.2 Learning Objectives
After this page, you should be able to:
- Explain why high-impedance CMOS inputs become undefined when left floating.
- Choose pull-up or pull-down resistors to give logic inputs a safe default state.
- Balance pull-resistor strength against current draw, edge speed, leakage, and noise immunity.
- Diagnose floating-input symptoms such as random logic readings, oscillation, and excess current.
- Explain how mid-level CMOS inputs create shoot-through current and how pulls stop it.
14.5.3 Why Materials Come First
Conductors, Insulators, and Semiconductors introduces charge flow, insulation, semiconductor control, and the passive/active component families used in IoT circuits. This page turns one material fact into a board-level contract: insulated CMOS gates draw almost no input current, so they also need an explicit path to a known voltage whenever the node would otherwise float.
Use it when a button input reads randomly, an unused MCU pin changes state by itself, a shared line needs an idle level, a board draws unexpected sleep current, or a pull resistor must be sized from current, capacitance, leakage, and noise constraints.
14.5.4 Overview: A Floating Input Is an Undefined Node
The gate of a CMOS logic input sits behind a thin insulating oxide, so the input is enormously high impedance — it senses voltage but draws almost no current (gigaohms, mostly capacitance). That is wonderful for not loading a signal, but it has a sharp edge: if you leave the input unconnected (floating), nothing defines its voltage. Stray charge, coupled noise, and nearby switching set it at random, so it can read HIGH and LOW unpredictably and even oscillate.
A pull-up resistor (to the supply) or pull-down resistor (to ground) gives the node a defined default level while remaining weak enough that an active driver can still override it. It is the bridge between "insulated, undefined" and "conductively tied to a known level."
Think of the pull resistor as a contract for every moment when no active circuit is driving the node. A push button is open most of the time, an unused MCU pin may never be driven, and an open-drain bus releases the wire between pulses. In all three cases the input needs a quiet answer before the real event arrives: idle HIGH, idle LOW, or whatever the protocol calls inactive. Without that answer, the node is an antenna and a tiny capacitor, not a logic signal.
Inspect this evidence before proceeding: the same resistor symbol can protect, sense, condition, or calibrate, so the circuit role—not the component name—explains why a pull resistor cures a floating input. Locate that role in Figure 14.1 before comparing strong and weak pull values.
In Figure 14.1, the CONDITIONING panel explicitly pairs “Pull-up/pull-down” with “Ensures clean logic levels for MCU”; its I2C: 4.7k pull-ups example shows the same idle-level contract on an open-drain bus. Contrast that with PROTECTION, where 220–330 Ω limits LED current, and SENSING, where a thermistor or LDR changes resistance with the environment. A GPIO pull resistor belongs to conditioning because it gives the high-impedance node a defined rail when no driver is active; the next sizing step decides how firmly and how quickly it does so.
High-Z input
Behind an insulating gate oxide: senses voltage, draws almost no current.
Floating = undefined
Unconnected, noise sets the level; the input reads randomly and may oscillate.
Pull-up
Weak resistor to Vcc — default HIGH until something pulls it LOW.
Pull-down
Weak resistor to GND — default LOW until something drives it HIGH.
The direction is a design choice, not a magic property of the input. Choose a pull-up when the normal inactive state should read HIGH, such as a button that shorts the pin to ground when pressed. Choose a pull-down when the normal inactive state should read LOW, such as a jumper or sensor output that drives HIGH only when present. Then verify the active driver can comfortably sink or source the pull current when it asserts the opposite state.
14.5.4.1 Overview Knowledge Check
14.5.5 Practitioner: Sizing a Pull Resistor
Pull-resistor value is a balance. Too strong (small resistance) wastes current whenever a driver pulls the opposite way — a continuous I = Vcc / R flows — and can exceed what a driver is rated to sink. Too weak (large resistance) means the pull current is tiny, so the node charges its own capacitance slowly (giving soft, slow edges) and is more easily disturbed by leakage and noise.
Start from the two worst cases. In the active state, calculate the current through the pull and compare it with the switch contact, transistor, or GPIO sink/source rating. In the idle state, compare the pull current with all leakage paths that can pull the node the wrong way: input leakage, board contamination, cable leakage, ESD devices, or an unpowered peripheral. A pull that is only a few times larger than the leakage uncertainty may pass in the lab and fail in humidity, heat, or sleep mode.
| Pull resistor | Good | Bad |
|---|---|---|
| Strong (e.g., 1 kΩ) | Fast edges, noise-robust, firm level | More current wasted when driven the other way (Vcc/R); heavier sink load |
| Weak (e.g., 100 kΩ) | Very low current | Slow rise/fall through node capacitance; more sensitive to leakage and noise |
Worked example — a button with a pull-up. A push button connects a 3.3 V input to ground when pressed, with a 10 kΩ pull-up to 3.3 V. Idle (button open): the pull-up holds the input at 3.3 V (HIGH) and draws essentially no current. Pressed: the button ties the node to ground (LOW) and the pull-up now passes 3.3 V / 10 kΩ = 0.33 mA to ground — small and harmless. Many microcontrollers offer configurable internal pull-ups (typically tens of kΩ) that remove the external part for exactly this job.
Now check speed. The pull resistor and the node capacitance make a simple RC edge: a larger resistor or longer cable charges more slowly. For a human button, even a slow microsecond-scale edge is usually fine because software debouncing dominates. For a shared open-drain interrupt, reset, or low-speed bus, the release edge may be part of a timing budget, so the pull must be strong enough to reach a valid logic threshold before the next sample. If low sleep current matters, document why an internal weak pull is acceptable or why the stronger external pull is worth the current.
14.5.5.1 Practitioner Knowledge Check
14.5.6 Under the Hood: Why a Floating CMOS Input Runs Hot
A CMOS input stage drives a complementary pair: a p-channel transistor to the supply and an n-channel to ground. At a clean HIGH or LOW, exactly one is fully on and the other fully off, so no current flows straight through. But a floating input can drift to a mid-level voltage, where both transistors are partly on at once, opening a conducting path from supply to ground through the pair. That shoot-through current wastes power and heats the chip, on top of leaving the logic state indeterminate. Tying the input to a defined level with a pull resistor turns one transistor fully off and closes that path — the concrete reason datasheets insist unused CMOS inputs must never be left floating.
The mid-level problem is separate from ordinary input leakage. Leakage is tiny current into or out of the input pin; shoot-through is current inside the input buffer after the floating voltage lands between the LOW and HIGH thresholds. A meter may show the external pin is not connected to anything, but the silicon still sees a voltage that asks both devices to conduct. The symptom can be random interrupts, high sleep current, EMI sensitivity, or a board that behaves differently when a hand, cable, or oscilloscope probe is nearby.
The same high-impedance idea reappears as a deliberate third state: a tri-state or open-drain output can be released to high-impedance so several devices can share one wire. A shared line like that also needs a pull resistor to define its idle level whenever every driver has let go — the same defined-vs-floating principle, now on the output side.
Open-drain buses make the sizing trade visible. Any device can pull the line LOW strongly, but the pull-up is the only thing that returns the line HIGH after release. Too weak a pull-up gives slow rising edges and late HIGH recognition; too strong a pull-up makes every LOW bit burn more current and may exceed a small device's sink-current limit. Schmitt-trigger inputs can add hysteresis so slow or noisy edges do not chatter, but they do not replace the pull. They still need the node to be biased toward a real idle level.
14.5.6.1 Under-the-Hood Knowledge Check
14.6 Concept Relationships
This chapter connects to other IoT electronics topics:
| Related Concept | Chapter Link | Relationship |
|---|---|---|
| Semiconductors | Semiconductors and Doping | N-type and P-type materials enable transistors |
| Circuit Analysis | Electricity Fundamentals | Ohm’s law applies to resistors, capacitors add impedance |
| Sensor Interfaces | Sensor Circuits | Resistor dividers and capacitor filters condition sensor signals |
| Power Supply | Power Management | Capacitors smooth voltage, inductors store energy in DC-DC converters |
14.7 Try It Yourself
Challenge: Build a Visual Resistor Color Code Decoder
Objective: Create a physical reference tool to quickly identify resistor values without looking up tables.
Materials Needed:
- Index card or cardboard (10cm × 15cm)
- Colored markers or pencils (10 colors: black, brown, red, orange, yellow, green, blue, violet, gray, white)
- Ruler and pen
Steps:
- Draw 4 colored bands on the card representing a resistor
- Create a color-to-digit reference: Black=0, Brown=1, Red=2, Orange=3, Yellow=4, Green=5, Blue=6, Violet=7, Gray=8, White=9
- Write multiplier column: Gold=×0.1, Black=×1, Brown=×10, Red=×100, Orange=×1k, Yellow=×10k, Green=×100k, Blue=×1M
- Add tolerance row: Gold=±5%, Silver=±10%, None=±20%
- Practice decoding: Brown-Black-Red-Gold = 10 × 100Ω ± 5% = 1kΩ
Solution Examples:
- Yellow-Violet-Orange-Gold = 47 × 1000Ω ± 5% = 47kΩ (common pull-up resistor)
- Brown-Black-Brown-Gold = 10 × 10Ω ± 5% = 100Ω (common gate resistor)
- Red-Red-Red-Gold = 22 × 100Ω ± 5% = 2.2kΩ (common current limiting)
Expected Observation: After decoding 10-15 resistors, you’ll memorize common values and recognize patterns instantly. Most IoT circuits use E12 series values (10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82).
Every IoT device uses all three material types: conductors (copper traces and wires) carry current between components, semiconductors (chips and ICs) actively control and process signals, and insulators (board substrate and casings) prevent unwanted current flow. Understanding this classification is the first step toward designing reliable electronic circuits.
14.8 See Also
Component Selection Resources:
Follow these connections in order: Transistor Selection Guide - Choose the right switching device. Capacitor Types Decision Framework - When to use ceramic vs electrolytic; Power Dissipation Calculations - Calculate resistor wattage ratings.
Circuit Design Patterns:
Follow these connections in order: Voltage Dividers - Resistive signal conditioning; Decoupling Capacitors - Power supply noise filtering; Pull-up/Pull-down Resistors - Define logic levels.
14.9 Review: Match the Concepts
14.10 Review: Put It in Order
Common Pitfalls
FR4 PCB substrate has a surface resistance of approximately 10^12 ohm per square — high enough to be treated as insulating for normal circuits. However, moisture absorption, flux residue, and PCB contamination can drop surface resistance to megaohm or kilohm levels on high-impedance circuits (ADC inputs, electrometers). Always clean PCB flux residue and use conformal coating in humid environments.
A wire rated for 10 A continuous current refers to the conductor’s heating limit, not the insulation’s voltage limit. The same wire may have insulation rated for only 300 V. Using 10 A rated wire in a 240 V AC circuit without verifying the insulation voltage rating can result in insulation breakdown and short circuits.
Resistance of copper wire increases with length and decreases with cross-section (gauge). AWG 28 signal wire (0.08 mm^2) carrying 2 A for a motor creates a voltage drop of 0.5 V per meter — enough to affect motor performance. Use AWG 22-18 wire for motor power runs and calculate voltage drop for all power wiring longer than 30 cm.
Metal enclosures provide EMI shielding only if the PCB ground plane is connected to the enclosure at one point. Multiple ground connections between PCB and enclosure create ground loops that can introduce 50/60 Hz noise into sensitive circuits. Connect the PCB ground to the enclosure at exactly one point, and use insulating standoffs elsewhere.
14.11 What’s Next?
Now that you can classify materials by conductivity and select the right passive and active components, you are ready to explore how semiconductors are engineered at the atomic level:
| Next Chapter | What You Will Learn | Link |
|---|---|---|
| Semiconductors and Doping | N-type and P-type materials, PN junctions, diodes, and rectification | Semiconductors and Doping |
| Transistor Selection Guide | BJT vs MOSFET, logic-level switching, and gate driver circuits | Transistor Selection Guide |
| Electronics Introduction | Overview of the full electronics module and learning path | Electronics Introduction |
| Electricity Fundamentals | Voltage, current, resistance, and Ohm’s Law as the basis for all circuit analysis | Electricity Fundamentals |
| Sensor Circuits and Signals | How resistor dividers, op-amp stages, and filters condition real sensor outputs | Sensor Circuits |
14.12 Floating Inputs and Pull Resistors
The material and component sections above explain why conductors carry current, insulators isolate nodes, and semiconductor gates can sense voltage with extremely little input current. In a real IoT circuit, that high-impedance behavior creates a common review question: is every logic input tied to a defined state when no active driver is present?
For the layered engineering checks, continue to Floating Input and Pull Resistor Contracts. It works through undefined CMOS inputs, pull-up and pull-down sizing, leakage and edge-speed trade-offs, and the shoot-through current that makes floating inputs unreliable and wasteful.
14.13 Summary
This chapter explains how conductors, insulators, and semiconductors differ by resistivity and controllable conductivity. Material choice affects wiring, isolation, leakage, sensing behavior, and the reliability of IoT circuits.
14.14 Continue Your Route
This final part closes the route from Passive vs Active Components through Summary. Return to Component Architecture: Capacitors and Selection or continue from the electronics module index.
