← all lessons
The Promise + Safety · #1 of 20

Safety & Tools

ESD, LiPo Hazards, Multimeter Basics

Why it matters

Electronics can hurt you (burns, shocks) and hurt your components (ESD, overcurrent). Learn the rules before you touch anything.

The idea

ESD (Electrostatic Discharge)

Your body builds up static charge (walking on carpet, removing a sweater). When you touch a component, \ that charge can destroy sensitive ICs instantly — even if you don't feel a shock.
        <strong>Rules:</strong>
        <ul>
          <li>Touch a grounded metal surface before handling components</li>
          <li>Work on an anti-static mat if possible</li>
          <li>Store ICs in anti-static bags</li>
        </ul>

        <h3>LiPo Battery Hazards</h3>
        Lithium polymer batteries are <strong>dangerous</strong> if mishandled:
        <ul>
          <li><strong>Never</strong> short-circuit (can cause fire)</li>
          <li><strong>Never</strong> overcharge (use a proper charger)</li>
          <li><strong>Never</strong> puncture or crush</li>
          <li>If a battery swells, stop using it immediately</li>
        </ul>

        <h3>Current Limiting</h3>
        GPIO pins can only source/sink ~40mA on ESP32. Driving motors, LEDs, or other loads directly can \
        <strong>damage the chip</strong>. Always use transistors/MOSFETs or driver ICs for high-current loads.

        <h3>Multimeter Basics</h3>
        Your multimeter is your best friend:
        <ul>
          <li><strong>Voltage mode</strong>: Measure voltage across components (parallel)</li>
          <li><strong>Current mode</strong>: Measure current through a circuit (series, break the circuit)</li>
          <li><strong>Resistance mode</strong>: Measure resistor values (power off!)</li>
          <li><strong>Continuity mode</strong>: Check if wires are connected (beeps)</li>
        </ul>

        <h3>Wiring Discipline</h3>
        Messy wiring causes bugs:
        <ul>
          <li>Use color coding (red = power, black = ground)</li>
          <li>Keep wires short to reduce noise</li>
          <li>Double-check connections before powering on</li>
          <li>Use a breadboard power supply with current limiting</li>
        </ul>

Demo

Safety is about habits, not demos. Review this lesson before every lab session.

Key takeaways

Going deeper

Professional labs use ESD wrist straps connected to ground. For hobby projects, touching a grounded metal surface (like a computer case) before handling components is usually sufficient. For LiPo safety, always use a protection circuit (DW01) and a proper charger (TP4056).

Math details

Power dissipation in a component:
  P = I² × R  (for resistors)
  P = V × I   (general)

Example: GPIO driving LED with 220Ω resistor at 3.3V:
  I = V / R = 3.3V / 220Ω = 15mA
  P_resistor = I² × R = (0.015A)² × 220Ω = 0.0495W (safe)
  P_LED = V × I = ~2V × 15mA = 0.03W (check LED rating)

ESP32 GPIO max: ~40mA source, ~28mA sink

Implementation

Essential Tools

Safety Checklist

  1. Discharge static before handling components
  2. Verify power supply voltage before connecting
  3. Check for short circuits with multimeter continuity mode
  4. Use current-limiting power supply when possible
  5. Never leave LiPo batteries unattended while charging