Maximum Demand Electrical < UPDATED — 2027 >

| Priority | Load Type | Action at demand > limit | |----------|-----------|--------------------------| | 1 (low) | Water heater | Shed first | | 2 | HVAC – stage 2 | Shed second | | 3 (high) | Lighting, critical | Never shed | | Signal | Source | Use | |--------|--------|-----| | Energy pulses (kWh) | Utility meter / CT + energy IC | Calculate delta per sub‑interval | | Voltage, Current | Power quality meter | Compute kVA if PF varies | | Relay outputs | PLC / MCU | Load shedding control | | Real‑time clock | RTC / NTP | Timestamp peaks |

Demand = (kWh_last_15min) / 0.25 To avoid storing raw energy every second, break window into N sub‑intervals.

return demand_kw When demand approaches limit, shed non‑critical loads. maximum demand electrical

Demand (kW) = (Energy consumed over window T) / (T in hours) Example for 15‑min window (0.25 hours):

def demand_control(self, demand_kw, limit_kw): if demand_kw >= limit_kw: self.shed_level(2) # shed all non‑critical loads elif demand_kw >= limit_kw * 0.95: self.shed_level(1) # shed first stage loads elif demand_kw < limit_kw * 0.85: self.restore_level(1) if demand_kw < limit_kw * 0.70: self.restore_level(2) | Priority | Load Type | Action at

Two‑stage shedding + restoration.

// POST /api/max_demand/config

CREATE TABLE md_log ( id INTEGER PRIMARY KEY, timestamp DATETIME, demand_kw REAL, peak_flag BOOLEAN ); CREATE TABLE md_config ( param TEXT PRIMARY KEY, value REAL ); -- e.g., ('limit_kw', 150.0), ('warning_pct', 80.0), ('window_min', 15)

Previous
Previous

What is 3D Music? The Science and Purpose

Next
Next

How To Make 3D Sound: Step-By-Step