This skill should be used when the user asks how a circuit works or how to choose its parts, such as passives, filters, pull-ups, decoupling, diodes, transistors, MOSFETs, op-amps, ADC front ends, regulators, battery charging, relays or motors, or how to measure and debug on the bench. It explains the circuit with formulas, defaults and part choices. Load it before explaining or sizing a circuit, even for a short question, because its formulas and defaults are sourced.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Electronics Fundamentals?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/gkochievi-electronics-fundamentals)
---
name: electronics-fundamentals
description: This skill should be used when the user asks how a circuit works or how to choose its parts, such as passives, filters, pull-ups, decoupling, diodes, transistors, MOSFETs, op-amps, ADC front ends, regulators, battery charging, relays or motors, or how to measure and debug on the bench. It explains the circuit with formulas, defaults and part choices. Load it before explaining or sizing a circuit, even for a short question, because its formulas and defaults are sourced.
user-invocable: false
---
# Electronics fundamentals
Circuit-level design: what each part does, how to size it, which part to pick and how to check it on the bench. `pcb-design` covers how the circuit becomes copper; `microcontrollers` and `peripherals` cover specific chips and modules. Use this skill whenever a schematic block is drawn, a part value is chosen or a circuit misbehaves.
## How to work
1. **State the operating conditions first:** supply range (minimum, typical, maximum, transients), load current (average and peak), ambient temperature range, signal levels and speeds. Size every part at the worst corner, not at typical.
2. **Calculate, then pick.** Write the formula and the numbers in the design notes or the netlist `Note` (`R = (5.0 − 2.1) / 0.010 = 290 Ω → 300 Ω`). A value without its calculation cannot be reviewed.
3. **Derate.** Resistors at 50 % power, MLCCs for DC bias, electrolytics for temperature, ferrite beads at 20 % of rated current, MOSFETs with hot RDS(on), semiconductors with TJ computed at the hot ambient. Tables are in the references.
4. **Check the part's real datasheet curve,** not the headline: MLCC capacitance at DC bias, MOSFET RDS(on) at the actual VGS, LDO dropout at peak current, op-amp input common-mode range, diode leakage when hot.
5. **Think about start-up, shutdown and faults:** what every output does while the MCU is in reset, what happens on reverse polarity, a shorted load, a brown-out, an unplugged sensor, a stalled motor.
6. **Verify on the bench** with the bring-up procedure in `references/measurement-and-debug.md` and log the measured values.
## Defaults that catch most mistakes
**Passives**
- 1 % thick-film resistors by default; C0G for timing, filters and crystal loads; X7R / X5R for decoupling; never Y5V / Z5U.
- Small MLCCs lose most of their capacitance at DC bias: read the bias curve or go up a case size.
- Crystal load capacitors: C = 2 × (CL − Cstray), Cstray 3–5 pF.
- I2C pull-ups at 3.3 V: 4.7 kΩ for 100 kHz, 2.2 kΩ for 400 kHz on short buses; check Rp(min) and Rp(max) and count the pull-ups already on modules.
- A ferrite bead feeding a low-ESR capacitor is an LC filter that can peak; damp it or leave it out.
**Semiconductors**
- From a 3.3 V GPIO, choose a MOSFET with RDS(on) specified at VGS ≤ 2.5 V (AO3400A class), and fit 10–100 kΩ gate to source so the load stays off during reset.
- Every inductive load switched by one transistor gets a flyback path (diode, or diode plus Zener / TVS for fast release); the switch is rated for supply plus clamp voltage.
- TJ = TA + P × θJA at the hot ambient; a SOT-23 FET on a modest pad handles about 0.3–0.5 W.
- Check SOT-23 and TO-92 pinouts per manufacturer; they differ for the same part number.
- Mains loads: zero-cross opto-triac driving a power TRIAC, laid out under `pcb-design/references/protection-and-mains-safety.md`.
**Analog**
- For every op-amp check input common-mode range, output swing at the real load and supply range; on 3.3 V use an RRIO CMOS part, not an LM358.
- Comparators (not op-amps) drive logic; add hysteresis to slow or noisy inputs.
- Every ADC input gets an anti-alias RC and a source impedance the ADC can sample; make sensor measurements ratiometric to the ADC reference.
- Protect every off-board analog input with a series resistor and a clamp.
**Digital interfaces**
- Check VOH > VIH and VOL < VIL in both directions with margin. A 3.3 V output does not reliably drive 5 V CMOS (use HCT / AHCT or a translator); ESP32-family and RP2040 pins are not 5 V tolerant.
- I2C stays on the board (bus buffer or RS-485 / CAN beyond about 1 m); RS-485 and CAN use 120 Ω twisted pair terminated at both ends only.
- ESD protection at every pin that leaves the enclosure, before the signal reaches anything else.
**Power and batteries**
- Budget average current (battery life) and peak current (regulator and cell ratings) separately; list every always-on microamp in sleep.
- LDO only when (Vin − Vout) × I fits the package and dropout holds at peak current and minimum input; otherwise a buck. No AMS1117 on battery boards.
- Li-ion: 4.20 V charge, no charging below 0 °C, protection IC on every bare cell, never series cells without balancing.
- USB-C sink: one 5.1 kΩ per CC pin, never back-feed VBUS.
**Motors and actuators**
- Size supply, driver and fuse for stall current (V / R winding). Use MOSFET H-bridges (DRV8833, DRV8871, TB6612FNG), not L298N / L293D.
- Bulk capacitance at every motor driver; motor current returns to the supply on its own copper.
- WS2812-class LEDs: up to 60 mA each, 5 V data levels, series resistor in the data line, bulk capacitor at the strip, power injection.
**Bring-up**
- First power-up always through a current-limited supply; measure rail-to-ground resistance first; one block at a time; log every value; keep one known-good board for comparison.
These defaults summarise the references; where a reference gives conditions or disagreeing sources, follow the reference.
## References
| File | Use for |
|---|---|
| `references/passives-and-rlc.md` | resistor, capacitor, inductor, bead, crystal and potentiometer choice; derating; RC, LC and RLC circuits with numbers; dividers; decoupling theory; pull-ups; selection table for common jobs |
| `references/semiconductors.md` | diodes, LEDs, BJTs, MOSFETs, load switches, ideal diodes, flyback, half- and H-bridges, IGBTs, TRIACs and opto-triacs, optocouplers, SSRs, level shifting, transistor arrays, thermal calculation, jellybean parts |
| `references/analog-and-opamps.md` | op-amp configurations, single supply, offset, GBW and slew, capacitive loads, comparators, active filters, references, in-amps and bridges, current sensing, ADC front ends, DACs and PWM filters, 4–20 mA, thermistors and RTDs, noise |
| `references/digital-interfaces.md` | logic levels, output types, I2C, SPI, UART, RS-232, RS-485, CAN, 1-Wire, USB 2.0, I2S / PDM, SD, Ethernet, shift registers and expanders, level translation, ESD, cable length |
| `references/power-and-batteries.md` | power budget, LDOs, switching topologies, buck design, battery chemistries, charging, protection and BMS, power path, fuel gauges, low-power MCU design, USB power and PD, supercapacitor backup, power-tree template |
| `references/motors-and-actuators.md` | brushed, brushless and stepper motors and their drivers, servos, relays, solenoids and valves, buzzers and vibration motors, fans, LEDs and LED strips, motor power and grounding, encoders, driver selection |
| `references/measurement-and-debug.md` | multimeter, scope, logic analyser and supply use; bring-up procedure; common faults; low-power measurement; EMC pre-compliance; debugging decision table |
## Related skills
- `pcb-design`: layout of these circuits (trace widths, hot loops, protection, mains spacing).
- `microcontrollers`: the MCU's own minimum circuit, pins and boot straps.
- `peripherals`: displays, sensors, radios, storage and audio parts.
- `embedded-firmware`: the firmware side of debouncing, ADC filtering, PWM and power management (`embedded-firmware/references/motor-control-firmware.md` for motor drive firmware).
- `circuit-simulation`: check a filter, op-amp stage, regulator or switching circuit in ngspice, with tolerance corners and E-series values.
- With the Engineering plugin: `/engineering:debug` for a structured fault hunt on the bench, `/engineering:testing-strategy` for the bring-up and production test plan.
## Next step
When this is done, say what comes next: `engineering-calculators` for the number, `circuit-simulation` to prove the circuit, then `kicad-generator` to put it on the board.