Built to order

Automatic Load Shedding Controller with Priority-Based Load Switching and Generator Sensing

When the mains fail, a small generator or UPS with limited kVA cannot run everything — this project builds an automatic load shedding controller that detects the source change, drops lower-priority loads in order, and keeps critical loads alive within the generator's capacity. It uses a priority-ordered relay bank, an SCT-013 current transformer to sense generator current, and a 16x2 LCD that shows the live load status. The priority table is configurable and a manual override is always available. Suitable for B.E./B.Tech final-year projects in Electrical and Electronics / E&TC.

Electrical 4-Channel Relay Module16x2 LCD · I2CArduino Uno · ATmega328PArduino IDE · Embedded CSCT-013 current transformer25A AC contactorMains-sensing relay inputPriority-based shedding logicHardware
Automatic Load Shedding Controller with Priority-Based Load Switching and Generator Sensing — project thumbnail preview
More project photos (2)

The problem

Homes, clinics and small workshops that depend on diesel generators or inverters during power cuts face the same frustration: the moment the mains fail, the limited-kVA backup source gets overloaded by every connected appliance, the generator groans, trips, or burns fuel inefficiently. The standard fix is manual — someone runs around switching things off, and the wrong loads stay on. This project automates that judgement: an Arduino-based controller watches the mains and the generator source, measures the actual load current through an SCT-013 clamp-on current transformer, and sheds non-critical loads in a pre-configured priority order before the source overloads. Four load channels are switched through a relay bank, with heavier loads handled via an external contactor, and a 16x2 LCD continuously reports which loads are on, which were shed, and whether the system is on mains, generator or standby. Because every threshold and priority is configurable, the student demonstrates real electrical-system thinking — source capacity, staged tripping, hysteresis and safe reconnection sequencing — rather than a toy demo.

SYSTEM FLOW

6 components 5 connections

Live flow
Drag to explore
100%
sensormains sense relay

Relay input giving the controller a binary mains-present signal.

Follow the working sequence

How it works

  1. A mains-sensing relay input feeds the controller a binary mains-present signal; the SCT-013 current transformer clamps onto the generator/inverter output wire and reports live current to the controller's ADC.
  2. On mains loss, the controller switches to generator mode, reads the configured per-load priorities and the generator's kVA limit from the configuration table.
  3. It compares the measured current against staged thresholds: if the total exceeds the configured limit, load channel 4 (lowest priority) is switched off through the relay bank; if the current is still above the limit after the settle delay, channel 3 is shed, and so on up the priority order.
  4. Each switching action is announced on the 16x2 LCD (for example "L1:ON L2:OFF", "GEN: RUNNING") so the operating state is always visible.
  5. If current stays above the absolute trip threshold beyond the trip delay, the controller latches a fault state and drops all shed-able loads to protect the source.
  6. When the mains-sensing input reports the mains have returned, the controller waits the configured reconnect delay, then re-energizes loads one by one in priority order with a pause between each to control inrush.
  7. The manual override switch at any time hands control to the operator: the automatic logic is paused, loads are switched manually, and the LCD marks the state as manual until the switch is released.

Tech stack:

  • Arduino Uno (ATmega328P) controller
  • 4-channel 5 V relay module board
  • 25 A AC power contactor (heavy loads)
  • SCT-013 clamp-on current transformer
  • 16x2 character LCD with I2C backpack
  • Mains-sensing relay input stage
  • Breadboard / general-purpose PCB wiring
  • Arduino IDE (embedded C)
Parameter Value
Controller Arduino Uno, ATmega328P, 16 MHz (design target)
Switched load channels 4 priority-ordered channels
Relay contacts 10 A, 250 VAC per channel (datasheet value)
Heavy-load stage External 25 A, 220 VAC contactor driven via relay (datasheet value)
Current sensing SCT-013 clamp-on CT, 100 A / 50 mA ratio (datasheet value)
Mains sensing 230 VAC relay input with divider + opto-isolated signal (design target)
Display 16 × 2 character LCD, I2C interface
Source modes Mains, generator/inverter, standby (firmware states)
Shed/reconnect delays Configurable, typical 2–10 s (design target)
Trip-on-overload Configurable threshold + delay, latched fault state
Manual override Hardware selector switch, automatic logic paused
Control power 5 V DC regulated from mains-derived supply (design target)

Project features

  • [Priority-ordered load switching] Four load channels ranked by configurable priority — when demand exceeds the set source capacity, the lowest-priority load is shed first, then the next, until the source stays within its limit.
  • [Generator running sensing] An SCT-013 clamp-on current transformer plus a mains-fail relay input detect whether power is coming from the mains or the generator, so shedding rules only apply under backup power.
  • [Configurable priority table] Priorities, kVA thresholds, shed/reconnect delays and per-channel enable flags are set through the firmware configuration section — no hardware rewiring needed to change the shedding order.
  • [Manual override] A selector switch forces manual mode; each load can then be toggled by hand regardless of the automatic logic, with the LCD flagging manual mode clearly.
  • [16x2 status LCD] Shows per-load ON/OFF state, active source (mains/generator/standby) and the current operating mode at a glance.
  • [Staged reconnect with delay] When the mains return, loads reconnect one by one with a configurable delay between them, avoiding the inrush spike of everything restarting at once.
  • [Trip-on-overload protection] If the measured current stays above the configured limit for the trip delay, all shed-able loads are dropped and the fault state is latched on the LCD until reset.

What is included

  • Controller firmware (Arduino/embedded C) with the configurable priority table
  • Complete wiring diagram with relay/contactor isolation and earthing notes
  • Priority-configuration and threshold-tuning guide
  • SCT-013 current-sensor interfacing and calibration procedure (buyer-run)
  • Project report PDF (background, source-capacity study, architecture, methodology, results)
  • PPT presentation for final review
  • Viva Q&A preparation document (load shedding logic, CT sensing, relay vs contactor, hysteresis, inrush)

Limitations & prerequisites

  • Each relay channel is rated 10 A at 250 VAC (datasheet) — heavier loads must go through the external 25 A contactor, and contactor wiring for mains must be done or verified by a qualified electrician.
  • There is a brief switchover gap when the mains fail; this is a shedding controller, not an uninterruptible power supply — sensitive equipment will see a momentary outage.
  • This is prototype-grade load management, not utility-grade protection — it does not replace MCBs, ELCBs, fuses or certified protection devices.
  • Current thresholds are set by the buyer's calibration procedure during installation; no measured trip accuracy is claimed without that on-site calibration.
  • Shed/reconnect delays are in seconds (design target 2–10 s); fast transient overloads may pass before the controller reacts — it is sized for sustained overloads, not fault-current interruption.
  • Staged thresholds assume resistive/mixed loads typical of homes and small workshops; large motor starting currents need de-rated thresholds, covered in the configuration guide.

Frequently Asked Questions

How does the controller know the generator is overloaded?

The SCT-013 clamp-on current transformer measures the actual current flowing from the generator or inverter output. The firmware compares this against the configured kVA limit and the staged per-priority thresholds, then sheds the lowest-priority load channels one at a time until the measured current falls back within the limit.

What is the difference between this and a normal changeover switch?

A changeover switch only selects the source; it does nothing about capacity. This controller actively manages demand — it detects which source is running, measures the live current, and automatically drops non-critical loads in priority order so the backup source stays within its kVA rating instead of tripping.

Can the priority order be changed after the build?

Yes. Priorities, kVA thresholds, shed and reconnect delays and per-channel enable flags all live in the firmware configuration section. Changing the shedding order needs only a firmware reflash with new values — the hardware wiring stays untouched, and the guide walks through it.

Why are both relays and a contactor used?

The relay module handles up to 10 A per channel at 250 VAC (datasheet rating), which covers lighting, fans and small appliances. A 25 A contactor is added as a heavy-load stage for appliances like water heaters or pumps, driven by one relay channel — the classic relay-to-contactor pattern used in real panels.

What happens when the mains come back?

The mains-sensing input detects the return, the controller waits a configurable delay to confirm the mains are stable, then reconnects the shed loads one by one in priority order with a pause between each. This staged restart avoids the inrush spike of all loads starting simultaneously.

Is this project suitable for a final-year project?

Yes — for Electrical, and Electronics / E&TC programs. It combines source sensing, current measurement, relay/contactor power switching, staged control logic with hysteresis, and honest limitations around protection grading and calibration, which makes a strong viva. Suitable for B.E./B.Tech final-year projects in Electrical and Electronics / E&TC.

Components & software requirements
  • Arduino Uno (ATmega328P) controller
  • 4-channel 5 V relay module board
  • 25 A AC power contactor (heavy loads)
  • SCT-013 clamp-on current transformer
  • 16x2 character LCD with I2C backpack
  • Mains-sensing relay input stage
  • Breadboard / general-purpose PCB wiring
  • Arduino IDE (embedded C)
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and email — the synopsis PDF downloads immediately. We may send occasional project updates; no spam, unsubscribe anytime.

Related guides

All guides

Solar Panel Sizing for Student Projects: Load Calculation, Sun Hours, Battery Backup and Charge Controller Selection

How do you size a solar panel for a project? Audit the load in Wh/day, divide by (peak sun hours × 0.72 derate) for panel watts, size the battery from daily energy × autonomy days ÷ (voltage × depth of discharge), and rate the controller at ≥ panel Isc × 1.25. This guide works every step with a 20 W solar street light example, plus a reusable Python sizing calculator.

Read guide

Reading a Motor Nameplate: Decoding the Codes Every Student Should Know

That small metal plate on every induction motor lists its rated power, voltage, full-load current, speed, duty type, insulation class, IP rating and efficiency class. This guide decodes each field, explains the decisions each number drives — starter type, cable size, overload relay setting — and works through one complete example nameplate end to end.

Read guide

Reading Electrical Single-Line Diagrams: A Student's Guide

You open the panel drawing, and it is one page of straight lines, small circles, squares with crosses in them, and labels like `Q1`, `T2`, `33/0.433 kV`. The senior engineer points at it and says "the incomer trips on earth fault, find it" — and you have no idea which line on the page is even the incomer. That page is a single-line diagram, and learning to read one is the fastest way to stop feeling lost around real electrical panels, substations, and distribution boards. A single-line diagram (SLD) is the electrical engineer's roadmap: it shows how power flows from source to load, which devic

Read guide
Get a quotation