Final-year projects / Power systems

Automatic power factor correction with a capacitor bank

Factories and shops with motors and fans run at low power factor, which raises current, losses and electricity board penalties. A controller that measures power factor and switches in the right capacitors keeps it near unity.

Arduino UnoMajor projectEEE, EIE
UNOVOLTAGCURRENZERO0.29 AFeatured
Parts
₹2,365
Build
14 weeks
Board
Arduino Uno
Objectives
5
Capacitors on mains hold a lethal charge after switching off: fit bleeder resistors, work only with the supply isolated, and keep everything in a closed box checked by your guide.

Block diagram

Inputs
  • VOLTAG
    Voltage sensorSenses the supply waveform
  • CURREN
    Current sensorSenses the load current
  • ZERO
    Zero-crossing comparatorsTurn both waves into square edges
Controller
  • UNO
    Arduino UnoTimes the phase shift and picks capacitors
Outputs
  • ON
    Relays and capacitor bankAdd reactive power
  • 23.4°CLCD
    LCDShows PF before and after
  • CLOUD
    Cloud dashboardStores readings, plots trends and sends alerts+

Objectives

  1. To measure the phase angle between voltage and current from zero crossings.
  2. To compute power factor and the reactive power to cancel.
  3. To switch the best combination of capacitors to bring PF above 0.95 without over-correcting.
  4. To measure current drawn before and after correction.
  5. To publish readings over MQTT and show them on a live dashboard with threshold alerts.

Parts and specifications

Total about ₹2,365 at typical online prices. Tap a part for its pinout and datasheet notes.

Design calculations

Phase angle from time

At 50 Hz one cycle is 20 ms = 360°. Current lagging by 3.2 ms → φ = 3.2 / 20 × 360 = 57.6°, PF = cos 57.6° = 0.54.

Reactive power to cancel

P = V I cos φ. With 230 V and 0.6 A: P = 74.5 W, Q = V I sin φ = 116 var. For PF 0.95, Q target = P × tan(acos 0.95) = 24.5 var, so add 92 var.

Capacitor size

Qc = V² × 2πf × C → C = 92 / (230² × 314) = 5.5 µF. Use 4 µF + 2.5 µF = 6.5 µF (close; avoid over-correcting to leading).

Binary bank

Steps of 2.5, 4 and 8 µF give seven combinations up to 14.5 µF.

Pin map

SignalPin or connection
Voltage zero-cross (LM393 from ZMPT101B)D2 (INT0)
Current zero-cross (LM393 from ACS712)D3 (INT1)
ZMPT101B / ACS712 analogA0 / A1 (for RMS)
Capacitor relays C1 / C2 / C3D5 / D6 / D7
LCDA4 / A5

Firmware outline

  1. Time voltage and current zero crossings with interrupts and micros(); average 20 cycles.
  2. Compute φ, PF and whether current lags or leads.
  3. Compute Vrms, Irms, P and Q; pick the capacitor combination closest to the needed var without leading.
  4. Switch relays one at a time with 1 s delay (caps discharge between steps), then re-measure.
  5. Show PF before and after, and current saved.

Test plan

TestExpected result
Resistive load (bulb)PF ≈ 1, no capacitors
Fan or choke loadPF low, capacitors added, PF > 0.95
Current before and afterSupply current falls
Load removedCapacitors switched out (no leading PF)

These rows start your results table when you plan the project.

Viva practice

Say your answer out loud first, then check. The first 2 answers are free; Maker opens all 5.

1. Why is low PF bad?
2. Why do capacitors fix lagging PF?
3. Why avoid over-correction?
4. Why bleeder resistors?
5. What do industries use?

Make it yours

One or two upgrades for a mini project, two to four for a major one.

Build these first

Datasheets and sources to cite

  • IS 13340 (power capacitors)
  • CEA regulations on power factor
  • Your state electricity board tariff (PF incentive and penalty)

About this project

How much does the automatic power factor correction with a capacitor bank project cost?

About ₹2,365 for the parts in the base list: Arduino Uno R3 (CH340 clone), ZMPT101B AC voltage sensor, ACS712 current sensor (20 A), LM393 dual comparator × 2, 5 V relay module (4 channel), Motor-run capacitors 2.5, 4 and 8 µF 440 V AC × 3, Inductive test load (ceiling fan or 40 W tube choke), Bleeder resistors 220 kΩ 2 W × 3, 16×2 LCD with I²C backpack, Closed box, fuse and MCB.

How long does it take?

About 12 weeks for the base project, built on an Arduino Uno. Each upgrade adds time.

Which branches is it suitable for?

Electrical and Electronics, Instrumentation, as a major project.

Which pins and design calculations does it use?

Voltage zero-cross (LM393 from ZMPT101B) on D2 (INT0); Current zero-cross (LM393 from ACS712) on D3 (INT1); ZMPT101B / ACS712 analog on A0 / A1 (for RMS). Worked calculations on this page: phase angle from time, reactive power to cancel, capacitor size, binary bank.

How do I test it?

Resistive load (bulb): PF ≈ 1, no capacitors. Fan or choke load: PF low, capacitors added, PF > 0.95. Current before and after: Supply current falls. Load removed: Capacitors switched out (no leading PF).

What are the objectives?

To measure the phase angle between voltage and current from zero crossings. To compute power factor and the reactive power to cancel. To switch the best combination of capacitors to bring PF above 0.95 without over-correcting. To measure current drawn before and after correction.