2 How Electricity Works
2.1 Start Simple
Imagine an LED that sometimes turns on and sometimes stays dark. Before blaming the program, check the loop: source, load, return path, current limit, and a voltage you can measure across the part. Start with one safe path that works before adding sensors, radios, or firmware decisions.
Overview: What Electricity Must Explain
Electricity fundamentals give an IoT designer a way to reason about whether a circuit can power, protect, measure, and communicate safely. The core ideas are voltage, current, resistance, power, grounding, and the closed path that lets charge move through a load and back to its source.
The practical claim is not just "the board turns on." The practical claim is that every load has the right voltage, the expected current path, enough power margin, a shared reference where needed, and measurement evidence that matches the design.
This is the beginner model to keep while debugging. A voltage value is always between two nodes, a current value belongs to a path through a component, a resistance value only explains behavior under the right conditions, and a power value tells you what the battery, regulator, package, or enclosure must survive. Treat those quantities as separate evidence, then connect them with Ohm's Law and measured data.
If you only need the intuition, this layer is enough: voltage pushes, current flows, resistance limits, power heats and drains sources, ground is the reference, and measurement proves the circuit.
The Four Quantities Beginners Must Separate
Voltage
Electrical potential difference between two points. It is measured across components and usually referenced to ground.
Current
Charge flow through a path. It is measured in series with the load and must return to the source.
Resistance
Opposition to current. It is useful for limiting current, setting dividers, sensing conditions, and protecting pins.
Power
Energy use per time. It determines battery drain, heat, regulator load, and component power ratings.
Beginner Rules Of Thumb
- A circuit needs a complete path from source, through load, and back to the source.
- Voltage is measured between two points, not at a point in isolation.
- Current through a microcontroller pin must stay below the pin and package limits.
- Ohm's Law is for resistive behavior; diodes, motors, capacitors, and radios need additional checks.
- Power ratings matter because excessive current or voltage drop becomes heat.
- Measurement should match the real wiring, firmware state, and supply used in deployment.
Overview Knowledge Check
Practitioner: Build A Circuit Review Ledger
A practical electronics review should produce a small ledger for the circuit. The ledger does not replace a schematic, but it makes the important assumptions visible: what each rail supplies, which loads draw current, where the return path runs, which limits protect components, and what measurement proves the design.
The safest workflow is to review voltage, current, resistance, power, and reference behavior before connecting a fragile part. In IoT work, that usually means checking sensor supply range, GPIO voltage compatibility, pull-up values, current limits, regulator heat, battery capability, and the exact measurement setup.
Circuit Review Sequence
- Name the rails. Record source voltage, regulated rails, allowed range, and what each rail powers.
- Trace current paths. Follow current from source through load and back through ground or return wiring.
- Check limiting parts. Confirm resistors, pull-ups, dividers, fuses, protection parts, and component ratings.
- Compute power. Convert voltage and current into heat, battery drain, regulator load, and safe margins.
- Measure the real circuit. Check voltage across loads and current through loads in the actual firmware state.
- Retest after changes. Repeat the ledger when wiring, firmware state, load, source, or environment changes.
Evidence Ledger
Practitioner Knowledge Check
Under The Hood: Why Simple Circuits Still Fail
Ohm's Law and the power law are simple, but the real circuit contains handoffs. A battery hands energy to a regulator. The regulator hands a rail to loads. Loads share ground and signal references. Firmware changes the current state. Measurement tools alter or reveal the circuit. A failure at any handoff can make a correct-looking schematic behave badly.
Use formulas as checks, not as decoration. For a resistor, V = I x R links voltage drop, current, and resistance. For a load, P = V x I links electrical behavior to heat and energy use. When voltages differ, compare power or energy instead of adding currents from different rails.
Debug those handoffs in order. Start at the source and measure the rail at the load while the load is active. Then check the return path, the signal reference, the limiting resistor or driver, and the power dissipated in each stressed part. If a reset, noisy reading, or hot package appears only in one firmware state, that state is part of the circuit evidence.
Handoff Points To Debug
Source to rail
Battery, USB, regulator, cable, switch, fuse, and connector behavior decide whether the rail stays in range under load.
Rail to load
Sensors, radios, relays, LEDs, and processors draw different current in startup, active, transmit, idle, and sleep states.
Signal to reference
Logic levels need a compatible voltage range and a shared reference. Missing ground can make readings random.
Model to measurement
Datasheets and calculations guide the design, but the accepted claim needs measured voltage, current, and temperature evidence.
Debugging Questions
- Is the voltage measured at the load while the load is active?
- Is current measured in the path being reviewed, not across a powered component?
- Does every signal have a valid reference and compatible logic level?
- Can the source and regulator handle peak current, not just average current?
- Does any component dissipate more power than its package and environment can handle?
- Did the measurement cover startup, radio transmit, actuator movement, sleep, and fault conditions?
Under-the-Hood Knowledge Check
2.2 Summary
- Electricity fundamentals connect voltage, current, resistance, power, ground, and closed current paths to IoT hardware behavior.
- A working circuit claim needs measured evidence, not only a schematic or a powered-on board.
- Ohm’s Law helps review resistive current paths, but components such as LEDs, motors, capacitors, radios, and regulators need additional checks.
- Power calculations reveal heat, battery drain, regulator load, and component rating problems.
- Most prototype failures can be traced through source-to-rail, rail-to-load, signal-to-reference, or model-to-measurement handoffs.
Treat every IoT circuit as an evidence path: name the rail, trace the current, check the limits, measure the load, and retest after changes.
2.3 See Also
Electricity Introduction
Build the beginner model for voltage, current, resistance, ground, and circuit flow.
Ohm's Law
Use voltage, current, resistance, and power equations for practical component decisions.
Electricity Common Pitfalls
Review unit mistakes, GPIO overcurrent, voltage drops, heat, grounding, and unsafe assumptions.
Electronics Fundamentals
Connect basic electricity to components, semiconductors, switching, and circuit validation.
