[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMZYFM6SS710FWBT35NQHN":3,"skill-same:01M7AMZYFM6SS710FWBT35NQHN":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7AMZYFM6SS710FWBT35NQHN","maker-power-electronics-and-io",null,"Use when wiring, powering, or interfacing hardware — the part that stops you destroying things: the power rules and common voltages, batteries and low-power design, the electronics you actually need (Ohm's law, pull-up and pull-down resistors, decoupling, level shifting, current limits), sensors and inputs over I2C, SPI and analog including debouncing, and outputs, motors and actuators with their drivers and back-EMF.","the-vibey-project\u002Fvibey","the-vibey-project","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F329298758?v=4","01M7AJHGZ9722CTJ4JNQZVRH0Q","the vibey project","01M7AJHGZVMG2K7TGXQ6XFHVG3",5,"MIT","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fdiy-kit-dev\u002Fskills\u002Fmaker-power-electronics-and-io\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: maker-power-electronics-and-io\ndescription: \"Use when wiring, powering, or interfacing hardware — the part that stops you destroying things: the power rules and common voltages, batteries and low-power design, the electronics you actually need (Ohm's law, pull-up and pull-down resistors, decoupling, level shifting, current limits), sensors and inputs over I2C, SPI and analog including debouncing, and outputs, motors and actuators with their drivers and back-EMF.\"\n---\n\n# DIY Kit Dev: Power, Electronics, Sensors, and Actuators\n\n> **Part 2 of 5** of the *DIY Kit Dev* reference (plugin `diy-kit-dev`), covering §4–§7. Sibling skills: `maker-boards-and-platforms` (§0–§3), `maker-software-build-and-debug` (§8–§10), `maker-networking-enclosures-and-productization` (§11–§14), `maker-reference` (§15–§20). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §17 → `maker-reference` for the currency snapshot and what goes stale first.\n\n> **How to read this.** Reference for making things, aimed at software engineers who want\n> to build hardware. Deliberately complementary to a professional embedded\u002FIoT reference —\n> **that** covers industrial-grade firmware, RTOS, certification, and fleet management;\n> **this** covers getting a thing working on your desk, and what it takes to make it\n> reliable enough to leave running.\n>\n> Three markers:\n> - **[DURABLE]** — physics, electronics, and build craft. Doesn't expire.\n> - **[VERSIONED]** — boards, chips, prices, ecosystem. Verify.\n> - **[CONTESTED]** — genuine disagreement.\n>\n> **⚠️ GOTCHA** boxes mark the things that destroy hardware, waste weekends, or cause the\n> intermittent fault you'll chase for a month.\n>\n> **The three framings that organize everything below:**\n> 1. **Pick the smallest board that does the job.** The instinct is to reach for a Linux\n>    SBC because it's familiar. **A microcontroller that boots in 50ms, draws 20mA, and\n>    never corrupts an SD card is the right answer far more often than a Pi is** (§1 → `maker-boards-and-platforms`).\n> 2. **⚠️ It's the power supply.** When something works on the bench and fails in the\n>    field, when a board reboots randomly, when Wi-Fi drops under load, when readings\n>    drift — **check power first, second, and third** (§4). This one heuristic will save\n>    you more time than everything else in this document.\n> 3. **The last 10% is 90% of the work.** A breadboard demo is a weekend. **Something that\n>    survives a year in a garage, on a windowsill, or outdoors is a different project** —\n>    enclosure, power, moisture, thermal, watchdog, recovery, and update (§13 → `maker-networking-enclosures-and-productization`). Know which\n>    one you're signing up for.\n\n---\n\n## §4. Power — Read This Section\n\n**[DURABLE] More project failures trace to power than to anything else, and it's rarely\nthe first thing people check.**\n\n### 4.1 The rules\n\n- **⚠️ Amps are pulled, not pushed.** A 5V\u002F3A supply doesn't force 3A into your circuit;\n  the circuit draws what it needs up to that limit. **Undersizing means brownouts, not a\n  clean failure.**\n- **⚠️ Budget for peak, not average.** A Wi-Fi transmit burst, a motor stall, or a servo\n  starting can be **many times** the idle draw — and lasts milliseconds, which is exactly\n  long enough to reset your board and short enough to be invisible on a multimeter.\n- **⚠️ Never power motors or servos from a board's regulator.** This is the single most\n  common beginner destruction. **Separate supply, common ground.**\n- **Decoupling capacitors.** 0.1 µF ceramic next to every IC's power pin, plus bulk\n  electrolytic (100–1000 µF) near motors and LED strips. **⚠️ This fixes a startling\n  proportion of \"random reboot\" and \"flaky sensor\" problems.**\n- **Common ground, always.** Separate supplies must share a ground reference or nothing\n  works and signals float.\n- **⚠️ Wire gauge and voltage drop are real.** Long thin wires to an LED strip cause dim\n  ends and brownouts. Inject power at both ends of a long run.\n- **USB cables are not equal.** ⚠️ **A charge-only or thin cable causes under-voltage that\n  presents as software flakiness.** Suspect the cable early.\n\n### 4.2 Common voltages\n**5V** (USB, most Arduinos, LED strips), **3.3V** (ESP32, Pi GPIO, most modern sensors,\nmost SD cards), **12V** (motors, LED strips, automotive), **LiPo 3.7V nominal** (⚠️ **3.0–4.2V\nacross its range — plan for both ends**).\n\n**⚠️ Level shifting is not optional.** Connecting a 5V output to a 3.3V input destroys the\n3.3V part. A **bidirectional level shifter** or even a resistor divider for one-way\nsignals costs pennies. **A 3.3V output into a 5V input often works** (many 5V parts read\n3.3V as high) — **but check the datasheet rather than assuming.**\n\n### 4.3 Batteries\n**LiPo\u002FLi-ion** — best energy density, needs **protection circuitry and a proper charge\nIC (TP4056 and better)**. **⚠️ Lithium cells are genuinely dangerous when mistreated: never\ncharge unattended on a flammable surface, never puncture, never over-discharge, and never\nuse a cell that has swollen.** This is the one place in hobby electronics where the failure\nmode is fire.\n**18650 cells** — cheap, replaceable, ⚠️ **and the counterfeit rate is enormous** (a\n\"9900mAh\" 18650 does not exist; real cells top out around 3500mAh).\n**LiFePO4** — safer chemistry, lower density, longer life.\n**Alkaline\u002FNiMH** — fine for low-drain, no fire risk.\n**Solar** — needs a charge controller sized for a rainy week, not an average day.\n\n### 4.4 Low-power design\n**[DURABLE] The order of magnitude that matters**: an ESP32 running Wi-Fi continuously\nlasts hours on a small battery; the **same ESP32 in deep sleep, waking briefly to\ntransmit, lasts months.**\n**The techniques**: deep sleep between readings (⚠️ **the dominant lever by far**),\nduty-cycling the radio, powering sensors from a GPIO so they're fully off, cutting\nregulator quiescent current, and **⚠️ measuring actual consumption** — a USB power meter or\na current-sense module tells you in minutes what guessing won't tell you in a week.\n\n---\n\n## §5. The Electronics You Actually Need\n\n**[DURABLE] You don't need an EE degree. You do need these.**\n\n**Ohm's law** (V = IR) and **power** (P = VI). ⚠️ **The one calculation you will use\nconstantly: the LED series resistor.** R = (V_supply − V_forward) \u002F I_desired. A red LED\nat ~2V forward, 20mA, on 5V → (5−2)\u002F0.02 = 150Ω.\n\n**⚠️ LEDs without a current-limiting resistor burn out.** Every time. This is the most\ncommon first mistake.\n\n**Pull-up and pull-down resistors** — ⚠️ **a floating input is not \"low,\" it's random.**\nButtons need a pull-up or pull-down (most MCUs have internal ones — `INPUT_PULLUP`).\n**I²C requires pull-ups on SDA and SCL** — usually 4.7kΩ, and often already on breakout\nboards (⚠️ **which is why chaining many breakouts can over-pull the bus**).\n\n**Transistors and MOSFETs as switches** — when a GPIO pin can't supply enough current\n(⚠️ **which is most of the time — a pin sources tens of milliamps at best**). Use a\n**logic-level MOSFET** for DC loads and a **relay or solid-state relay** for AC.\n\n**⚠️ Flyback diodes.** Any inductive load — motor, relay coil, solenoid — generates a\nlarge reverse voltage spike when switched off that **will destroy your driver\ntransistor**. A diode across the coil is non-negotiable.\n\n**Capacitors** — decoupling (§4.1), smoothing, timing. **Voltage regulators** — linear\n(LM7805, AMS1117: simple, ⚠️ **wastes the difference as heat**) vs. switching\u002Fbuck\n(efficient, slightly noisier).\n\n**The protocols you'll meet**:\n\n| Protocol | Wires | Notes |\n|---|---|---|\n| **GPIO** | 1 | On\u002Foff |\n| **PWM** | 1 | Dimming, servos, motor speed |\n| **ADC** | 1 | Analog in. ⚠️ **Not on Raspberry Pi** |\n| **I²C** | 2 + gnd | Addressed bus, many devices. ⚠️ **Address conflicts are the classic failure** |\n| **SPI** | 4+ | Faster, one chip-select per device |\n| **UART** | 2 + gnd | Serial. ⚠️ **TX→RX, RX→TX — crossed, not straight** |\n| **1-Wire** | 1 + gnd | DS18B20 temperature sensors |\n| **CAN** | 2 | Automotive and robust industrial |\n\n**Tools worth owning**, in order of value: a **multimeter** (⚠️ **non-negotiable, and £20\nis enough**), a decent **soldering iron** with temperature control, **helping hands**,\n**wire strippers**, **flush cutters**, a **USB power meter**, and eventually a\n**logic analyzer** (⚠️ **£10 clones of the Saleae work with the free Sigrok\u002FPulseView\nsoftware and will save you days**) and a **bench power supply with current limiting**.\n\n---\n\n## §6. Sensors and Inputs\n\n**[DURABLE] The categories, with the ones actually worth using:**\n\n| Measuring | Common parts | ⚠️ Notes |\n|---|---|---|\n| **Temp \u002F humidity** | **BME280\u002FBME680** (I²C, also pressure\u002Fgas), DS18B20 (1-Wire, waterproof versions), SHT4x | ⚠️ **Avoid DHT11 — it's cheap and bad.** DHT22 is tolerable; BME280 is better for pennies more |\n| **Motion** | PIR (HC-SR501), mmWave radar (LD2410) | ⚠️ **mmWave detects presence, not just motion** — it sees a stationary person. Big upgrade for room occupancy |\n| **Distance** | HC-SR04 (ultrasonic, cheap, crude), VL53L0X\u002FL1X (laser ToF, precise), LiDAR | Ultrasonic is confused by soft surfaces and angles |\n| **Light** | LDR (crude), BH1750\u002FTSL2591 (calibrated lux) | |\n| **Motion\u002Forientation** | MPU6050 (⚠️ ubiquitous and ageing), BNO085 (⚠️ **on-board sensor fusion — worth the money**), ICM-20948 | Raw IMU data needs fusion; a chip that does it for you saves enormous effort |\n| **Current** | INA219\u002FINA226 (I²C), ACS712 (hall) | For measuring your own power draw (§4.4) |\n| **Air quality** | SGP30\u002FSGP41 (VOC), SCD40\u002F41 (⚠️ **true NDIR CO₂ — accept no \"eCO₂\" substitute**), PMS5003 (particulates) | ⚠️ **\"eCO₂\" from a VOC sensor is an estimate, not a CO₂ measurement** |\n| **Soil moisture** | Capacitive | ⚠️ **Never resistive — it corrodes away in weeks** |\n| **Camera** | Pi Camera Module 3, ESP32-CAM, USB webcam | ESP32-CAM is cheap and fiddly |\n| **RFID\u002FNFC** | RC522, PN532 | |\n| **Input** | Buttons (⚠️ **debounce them**), rotary encoders, capacitive touch, joysticks | Debounce in hardware (RC) or software |\n\n**[DURABLE] The practices that separate working from flaky:**\n- **⚠️ Debounce every mechanical switch.** A button press is electrically several presses.\n- **Filter noisy analog readings** — moving average or an exponential filter. **Raw ADC\n  readings jitter.**\n- **Calibrate.** ⚠️ **Cheap sensors are frequently accurate in relative terms and wrong in\n  absolute ones.** Compare against a known reference before trusting a number.\n- **Read the datasheet for the settling and warm-up time.** Many sensors need seconds to\n  minutes before their first reading means anything — **gas sensors especially.**\n- **Handle the failure case.** ⚠️ **A disconnected sensor often reads a plausible value\n  (0, or full-scale), not an error.** Sanity-check ranges.\n\n---\n\n## §7. Outputs, Motors and Actuators\n\n| Actuator | Notes |\n|---|---|\n| **Servo** | Position control via PWM, 0–180°. ⚠️ **Cheap servos jitter and stall — and a stalling servo draws a lot** (§4.1) |\n| **Continuous-rotation servo** | Speed, not position. Convenient for small robots |\n| **DC motor** | Needs an **H-bridge driver** (L298N is common and inefficient; DRV8833 or TB6612FNG are better). ⚠️ **Never drive from a GPIO** |\n| **Stepper** | Precise positioning. A28YBJ-48 + ULN2003 to learn; **NEMA 17 + A4988\u002FTMC2209** for real work (⚠️ **TMC drivers are near-silent — worth it**) |\n| **Solenoid \u002F relay** | ⚠️ **Flyback diode** (§5). For mains, use a proper relay module or SSR |\n| **LED strips** | **WS2812B\u002FNeoPixel** (one data wire, ⚠️ **timing-critical — an ESP32\u002FPico handles this better than a busy Linux box**), **SK6812** (adds white), **APA102\u002FDotStar** (clocked, easier timing). ⚠️ **Power budget: ~60mA per pixel at full white** — a 300-LED strip can pull 18A |\n| **Displays** | SSD1306 OLED (tiny, cheap, I²C), ST7789\u002FILI9341 TFT (SPI, colour), e-paper (⚠️ **beautiful for low-refresh status displays and zero power when static**), HD44780 character LCD |\n| **Audio** | DFPlayer Mini (MP3 from SD), I²S DACs, piezo buzzers |\n\n> **⚠️ GOTCHA — mains voltage.** If your project switches 120\u002F230V AC, that is a different\n> category of risk from everything else here. **Use a properly enclosed, certified relay\n> module or a commercial smart plug you control over the network** rather than wiring mains\n> onto a breadboard. **If you're not confident, don't** — and in many jurisdictions\n> permanent mains wiring is legally restricted to qualified electricians regardless of your\n> confidence.\n","# DIY Kit Dev: Power, Electronics, Sensors, and Actuators\n\n> **Part 2 of 5** of the *DIY Kit Dev* reference (plugin `diy-kit-dev`), covering §4–§7. Sibling skills: `maker-boards-and-platforms` (§0–§3), `maker-software-build-and-debug` (§8–§10), `maker-networking-enclosures-and-productization` (§11–§14), `maker-reference` (§15–§20). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §17 → `maker-reference` for the currency snapshot and what goes stale first.\n\n> **How to read this.** Reference for making things, aimed at software engineers who want\n> to build hardware. Deliberately complementary to a professional embedded\u002FIoT reference —\n> **that** covers industrial-grade firmware, RTOS, certification, and fleet management;\n> **this** covers getting a thing working on your desk, and what it takes to make it\n> reliable enough to leave running.\n>\n> Three markers:\n> - **[DURABLE]** — physics, electronics, and build craft. Doesn't expire.\n> - **[VERSIONED]** — boards, chips, prices, ecosystem. Verify.\n> - **[CONTESTED]** — genuine disagreement.\n>\n> **⚠️ GOTCHA** boxes mark the things that destroy hardware, waste weekends, or cause the\n> intermittent fault you'll chase for a month.\n>\n> **The three framings that organize everything below:**\n> 1. **Pick the smallest board that does the job.** The instinct is to reach for a Linux\n>    SBC because it's familiar. **A microcontroller that boots in 50ms, draws 20mA, and\n>    never corrupts an SD card is the right answer far more often than a Pi is** (§1 → `maker-boards-and-platforms`).\n> 2. **⚠️ It's the power supply.** When something works on the bench and fails in the\n>    field, when a board reboots randomly, when Wi-Fi drops under load, when readings\n>    drift — **check power first, second, and third** (§4). This one heuristic will save\n>    you more time than everything else in this document.\n> 3. **The last 10% is 90% of the work.** A breadboard demo is a weekend. **Something that\n>    survives a year in a garage, on a windowsill, or outdoors is a different project** —\n>    enclosure, power, moisture, thermal, watchdog, recovery, and update (§13 → `maker-networking-enclosures-and-productization`). Know which\n>    one you're signing up for.\n\n---\n\n## §4. Power — Read This Section\n\n**[DURABLE] More project failures trace to power than to anything else, and it's rarely\nthe first thing people check.**\n\n### 4.1 The rules\n\n- **⚠️ Amps are pulled, not pushed.** A 5V\u002F3A supply doesn't force 3A into your circuit;\n  the circuit draws what it needs up to that limit. **Undersizing means brownouts, not a\n  clean failure.**\n- **⚠️ Budget for peak, not average.** A Wi-Fi transmit burst, a motor stall, or a servo\n  starting can be **many times** the idle draw — and lasts milliseconds, which is exactly\n  long enough to reset your board and short enough to be invisible on a multimeter.\n- **⚠️ Never power motors or servos from a board's regulator.** This is the single most\n  common beginner destruction. **Separate supply, common ground.**\n- **Decoupling capacitors.** 0.1 µF ceramic next to every IC's power pin, plus bulk\n  electrolytic (100–1000 µF) near motors and LED strips. **⚠️ This fixes a startling\n  proportion of \"random reboot\" and \"flaky sensor\" problems.**\n- **Common ground, always.** Separate supplies must share a ground reference or nothing\n  works and signals float.\n- **⚠️ Wire gauge and voltage drop are real.** Long thin wires to an LED strip cause dim\n  ends and brownouts. Inject power at both ends of a long run.\n- **USB cables are not equal.** ⚠️ **A charge-only or thin cable causes under-voltage that\n  presents as software flakiness.** Suspect the cable early.\n\n### 4.2 Common voltages\n**5V** (USB, most Arduinos, LED strips), **3.3V** (ESP32, Pi GPIO, most modern sensors,\nmost SD cards), **12V** (motors, LED strips, automotive), **LiPo 3.7V nominal** (⚠️ **3.0–4.2V\nacross its range — plan for both ends**).\n\n**⚠️ Level shifting is not optional.** Connecting a 5V output to a 3.3V input destroys the\n3.3V part. A **bidirectional level shifter** or even a resistor divider for one-way\nsignals costs pennies. **A 3.3V output into a 5V input often works** (many 5V parts read\n3.3V as high) — **but check the datasheet rather than assuming.**\n\n### 4.3 Batteries\n**LiPo\u002FLi-ion** — best energy density, needs **protection circuitry and a proper charge\nIC (TP4056 and better)**. **⚠️ Lithium cells are genuinely dangerous when mistreated: never\ncharge unattended on a flammable surface, never puncture, never over-discharge, and never\nuse a cell that has swollen.** This is the one place in hobby electronics where the failure\nmode is fire.\n**18650 cells** — cheap, replaceable, ⚠️ **and the counterfeit rate is enormous** (a\n\"9900mAh\" 18650 does not exist; real cells top out around 3500mAh).\n**LiFePO4** — safer chemistry, lower density, longer life.\n**Alkaline\u002FNiMH** — fine for low-drain, no fire risk.\n**Solar** — needs a charge controller sized for a rainy week, not an average day.\n\n### 4.4 Low-power design\n**[DURABLE] The order of magnitude that matters**: an ESP32 running Wi-Fi continuously\nlasts hours on a small battery; the **same ESP32 in deep sleep, waking briefly to\ntransmit, lasts months.**\n**The techniques**: deep sleep between readings (⚠️ **the dominant lever by far**),\nduty-cycling the radio, powering sensors from a GPIO so they're fully off, cutting\nregulator quiescent current, and **⚠️ measuring actual consumption** — a USB power meter or\na current-sense module tells you in minutes what guessing won't tell you in a week.\n\n---\n\n## §5. The Electronics You Actually Need\n\n**[DURABLE] You don't need an EE degree. You do need these.**\n\n**Ohm's law** (V = IR) and **power** (P = VI). ⚠️ **The one calculation you will use\nconstantly: the LED series resistor.** R = (V_supply − V_forward) \u002F I_desired. A red LED\nat ~2V forward, 20mA, on 5V → (5−2)\u002F0.02 = 150Ω.\n\n**⚠️ LEDs without a current-limiting resistor burn out.** Every time. This is the most\ncommon first mistake.\n\n**Pull-up and pull-down resistors** — ⚠️ **a floating input is not \"low,\" it's random.**\nButtons need a pull-up or pull-down (most MCUs have internal ones — `INPUT_PULLUP`).\n**I²C requires pull-ups on SDA and SCL** — usually 4.7kΩ, and often already on breakout\nboards (⚠️ **which is why chaining many breakouts can over-pull the bus**).\n\n**Transistors and MOSFETs as switches** — when a GPIO pin can't supply enough current\n(⚠️ **which is most of the time — a pin sources tens of milliamps at best**). Use a\n**logic-level MOSFET** for DC loads and a **relay or solid-state relay** for AC.\n\n**⚠️ Flyback diodes.** Any inductive load — motor, relay coil, solenoid — generates a\nlarge reverse voltage spike when switched off that **will destroy your driver\ntransistor**. A diode across the coil is non-negotiable.\n\n**Capacitors** — decoupling (§4.1), smoothing, timing. **Voltage regulators** — linear\n(LM7805, AMS1117: simple, ⚠️ **wastes the difference as heat**) vs. switching\u002Fbuck\n(efficient, slightly noisier).\n\n**The protocols you'll meet**:\n\n| Protocol | Wires | Notes |\n|---|---|---|\n| **GPIO** | 1 | On\u002Foff |\n| **PWM** | 1 | Dimming, servos, motor speed |\n| **ADC** | 1 | Analog in. ⚠️ **Not on Raspberry Pi** |\n| **I²C** | 2 + gnd | Addressed bus, many devices. ⚠️ **Address conflicts are the classic failure** |\n| **SPI** | 4+ | Faster, one chip-select per device |\n| **UART** | 2 + gnd | Serial. ⚠️ **TX→RX, RX→TX — crossed, not straight** |\n| **1-Wire** | 1 + gnd | DS18B20 temperature sensors |\n| **CAN** | 2 | Automotive and robust industrial |\n\n**Tools worth owning**, in order of value: a **multimeter** (⚠️ **non-negotiable, and £20\nis enough**), a decent **soldering iron** with temperature control, **helping hands**,\n**wire strippers**, **flush cutters**, a **USB power meter**, and eventually a\n**logic analyzer** (⚠️ **£10 clones of the Saleae work with the free Sigrok\u002FPulseView\nsoftware and will save you days**) and a **bench power supply with current limiting**.\n\n---\n\n## §6. Sensors and Inputs\n\n**[DURABLE] The categories, with the ones actually worth using:**\n\n| Measuring | Common parts | ⚠️ Notes |\n|---|---|---|\n| **Temp \u002F humidity** | **BME280\u002FBME680** (I²C, also pressure\u002Fgas), DS18B20 (1-Wire, waterproof versions), SHT4x | ⚠️ **Avoid DHT11 — it's cheap and bad.** DHT22 is tolerable; BME280 is better for pennies more |\n| **Motion** | PIR (HC-SR501), mmWave radar (LD2410) | ⚠️ **mmWave detects presence, not just motion** — it sees a stationary person. Big upgrade for room occupancy |\n| **Distance** | HC-SR04 (ultrasonic, cheap, crude), VL53L0X\u002FL1X (laser ToF, precise), LiDAR | Ultrasonic is confused by soft surfaces and angles |\n| **Light** | LDR (crude), BH1750\u002FTSL2591 (calibrated lux) | |\n| **Motion\u002Forientation** | MPU6050 (⚠️ ubiquitous and ageing), BNO085 (⚠️ **on-board sensor fusion — worth the money**), ICM-20948 | Raw IMU data needs fusion; a chip that does it for you saves enormous effort |\n| **Current** | INA219\u002FINA226 (I²C), ACS712 (hall) | For measuring your own power draw (§4.4) |\n| **Air quality** | SGP30\u002FSGP41 (VOC), SCD40\u002F41 (⚠️ **true NDIR CO₂ — accept no \"eCO₂\" substitute**), PMS5003 (particulates) | ⚠️ **\"eCO₂\" from a VOC sensor is an estimate, not a CO₂ measurement** |\n| **Soil moisture** | Capacitive | ⚠️ **Never resistive — it corrodes away in weeks** |\n| **Camera** | Pi Camera Module 3, ESP32-CAM, USB webcam | ESP32-CAM is cheap and fiddly |\n| **RFID\u002FNFC** | RC522, PN532 | |\n| **Input** | Buttons (⚠️ **debounce them**), rotary encoders, capacitive touch, joysticks | Debounce in hardware (RC) or software |\n\n**[DURABLE] The practices that separate working from flaky:**\n- **⚠️ Debounce every mechanical switch.** A button press is electrically several presses.\n- **Filter noisy analog readings** — moving average or an exponential filter. **Raw ADC\n  readings jitter.**\n- **Calibrate.** ⚠️ **Cheap sensors are frequently accurate in relative terms and wrong in\n  absolute ones.** Compare against a known reference before trusting a number.\n- **Read the datasheet for the settling and warm-up time.** Many sensors need seconds to\n  minutes before their first reading means anything — **gas sensors especially.**\n- **Handle the failure case.** ⚠️ **A disconnected sensor often reads a plausible value\n  (0, or full-scale), not an error.** Sanity-check ranges.\n\n---\n\n## §7. Outputs, Motors and Actuators\n\n| Actuator | Notes |\n|---|---|\n| **Servo** | Position control via PWM, 0–180°. ⚠️ **Cheap servos jitter and stall — and a stalling servo draws a lot** (§4.1) |\n| **Continuous-rotation servo** | Speed, not position. Convenient for small robots |\n| **DC motor** | Needs an **H-bridge driver** (L298N is common and inefficient; DRV8833 or TB6612FNG are better). ⚠️ **Never drive from a GPIO** |\n| **Stepper** | Precise positioning. A28YBJ-48 + ULN2003 to learn; **NEMA 17 + A4988\u002FTMC2209** for real work (⚠️ **TMC drivers are near-silent — worth it**) |\n| **Solenoid \u002F relay** | ⚠️ **Flyback diode** (§5). For mains, use a proper relay module or SSR |\n| **LED strips** | **WS2812B\u002FNeoPixel** (one data wire, ⚠️ **timing-critical — an ESP32\u002FPico handles this better than a busy Linux box**), **SK6812** (adds white), **APA102\u002FDotStar** (clocked, easier timing). ⚠️ **Power budget: ~60mA per pixel at full white** — a 300-LED strip can pull 18A |\n| **Displays** | SSD1306 OLED (tiny, cheap, I²C), ST7789\u002FILI9341 TFT (SPI, colour), e-paper (⚠️ **beautiful for low-refresh status displays and zero power when static**), HD44780 character LCD |\n| **Audio** | DFPlayer Mini (MP3 from SD), I²S DACs, piezo buzzers |\n\n> **⚠️ GOTCHA — mains voltage.** If your project switches 120\u002F230V AC, that is a different\n> category of risk from everything else here. **Use a properly enclosed, certified relay\n> module or a commercial smart plug you control over the network** rather than wiring mains\n> onto a breadboard. **If you're not confident, don't** — and in many jurisdictions\n> permanent mains wiring is legally restricted to qualified electricians regardless of your\n> confidence.\n",{"name":5,"description":7},"develop","ae32736a1aabddabca5d2c96d665aa0ebc7d8700","src\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fdiy-kit-dev\u002Fskills\u002Fmaker-power-electronics-and-io",3,"https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey","https:\u002F\u002Fthe-vibey-project.github.io\u002Fvibey\u002F","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project","https:\u002F\u002Fvibewithadam.matthewsteinberger.com","freedom for software engineers","2026-11-15 05:47:42",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add the-vibey-project\u002Fvibey --skill maker-power-electronics-and-io",{"tool":40,"command":41},"bunx","bunx skills add the-vibey-project\u002Fvibey --skill maker-power-electronics-and-io",{"tool":43,"command":44},"pnpm","pnpm dlx skills add the-vibey-project\u002Fvibey --skill maker-power-electronics-and-io","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fdiy-kit-dev\u002Fskills\u002Fmaker-power-electronics-and-io\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7AT1FQJAE1FQYAMDTF490Y4","white-paper-writing","Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks \"how should I structure this\" for a long-form document.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fwhite-paper-writing\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AT16BJRJJKK2MASXRZS76G","prose-technical-mechanics","Use when editing or writing prose at a technical\u002Fmechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-technical-mechanics\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AT0W9HT0ZZ9Y287NW99MR3","prose-mechanics","Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate\u002FJamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix \"AI-sounding\" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-mechanics\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AT0KR635JX66X2X6F3E2CP","narrative-structure","Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or \"how should I structure this story\u002Fpitch\u002Fpresentation\" request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fnarrative-structure\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AT0AKGW09NKKZDYBT8VRDE","legal-brief-writing","Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic\u002Fneurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Flegal-brief-writing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AT00VWPS4Q8B5VEMXX9NQT","journal-publishability-criteria","Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs\u002Fpaper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fjournal-publishability-criteria\u002FSKILL.md",[],[]]