Smart Home Safety Design

Smart Home Safety Design

NoteKnowledge Check: Smart Home Safety Design

Real-World Scenario:

You’re designing a smart home automation system for a client’s house. The system needs to control a 1500W electric space heater (120V AC, 12.5A) using an ESP32-based controller.

Critical Safety Trade-Offs:

Electrical Isolation: The most critical safety concern is complete galvanic isolation between the low-voltage control circuit (3.3V ESP32) and high-voltage AC load (120V/240V).

Without proper isolation:

  • AC voltage can backfeed into the ESP32, destroying it and potentially energizing the metal enclosure
  • User touching exposed contacts while relay is energized = electric shock (potentially fatal)
  • Improper wire gauge for 12.5A continuous load = overheating leading to fire hazard

Safety Specification Stack:

  1. Relay selection for this worked heater case: A 1.5× planning margin on 12.5 A gives 18.75 A, suggesting a 20 A contact rating; confirm the relay’s rating for the actual load, switching duty, voltage, and applicable installation requirements.
  2. Isolation: Optocoupler isolation between ESP32 and relay coil (2500V isolation typical)
  3. Wiring: Use 12 AWG wire minimum for 12.5A continuous (20A capacity at 75C)
  4. Enclosure: All AC connections must be inside insulated, grounded metal enclosure
  5. Protection: Install 15A fuse or circuit breaker on AC hot wire before relay
  6. Fail-Safe: If ESP32 crashes, relay defaults to OFF (heater disabled)
  7. Compliance: Follow NEC (National Electrical Code) or IEC standards for AC wiring

Always consult a licensed electrician for:

  • Any permanent AC wiring (120V/240V) in walls or buildings
  • Loads >500W or >5A continuous current
  • Outdoor installations or wet locations
  • Commercial, medical, or industrial applications
  • Whenever local electrical codes require permit/inspection
  • If you’re unsure about any aspect of AC safety

DIY acceptable (with proper knowledge):

  • Plug-in relay modules with UL-listed wall adapters
  • Low-voltage DC loads (<50V, <5A)
  • Prototyping and testing with proper isolation

Back to the chapter