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.
- Parts
- ₹2,365
- Build
- 14 weeks
- Board
- Arduino Uno
- Objectives
- 5
Block diagram
- Voltage sensorSenses the supply waveform
- Current sensorSenses the load current
- Zero-crossing comparatorsTurn both waves into square edges
- Arduino UnoTimes the phase shift and picks capacitors
- Relays and capacitor bankAdd reactive power
- LCDShows PF before and after
- Cloud dashboardStores readings, plots trends and sends alerts+
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.
- To publish readings over MQTT and show them on a live dashboard with threshold alerts.
Parts and specifications
- Arduino Uno R3 (CH340 clone)ATmega328P 16 MHz, 32 KB flash, 2 KB SRAM, 5 V logic, 6 analog inputs (10-bit), 6 PWM pins₹450Buy
- ZMPT101B AC voltage sensorIsolating voltage transformer up to 250 V AC, analog output centred at VCC/2, trimmer for gain₹180Buy
- ACS712 current sensor (20 A)Hall effect, 100 mV/A for the 20 A version, output centred at 2.5 V, 2.1 kV isolation₹150Buy
- 5 V relay module (4 channel)Four 10 A 250 V AC relays, opto inputs, separate JD-VCC for coil supply₹220Buy
- × 3Motor-run capacitors 2.5, 4 and 8 µF 440 V AC₹360
- Inductive test load (ceiling fan or 40 W tube choke)₹300
- × 3Bleeder resistors 220 kΩ 2 W₹15
- 16×2 LCD with I²C backpackHD44780, PCF8574 at 0x27 or 0x3F, 5 V, contrast trimmer on the back₹220Buy
- Closed box, fuse and MCB₹450
Total about ₹2,365 at typical online prices. Tap a part for its pinout and datasheet notes.
Design calculations
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.
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.
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).
Steps of 2.5, 4 and 8 µF give seven combinations up to 14.5 µF.
Pin map
| Signal | Pin or connection |
|---|---|
| Voltage zero-cross (LM393 from ZMPT101B) | D2 (INT0) |
| Current zero-cross (LM393 from ACS712) | D3 (INT1) |
| ZMPT101B / ACS712 analog | A0 / A1 (for RMS) |
| Capacitor relays C1 / C2 / C3 | D5 / D6 / D7 |
| LCD | A4 / A5 |
Firmware outline
- Time voltage and current zero crossings with interrupts and micros(); average 20 cycles.
- Compute φ, PF and whether current lags or leads.
- Compute Vrms, Irms, P and Q; pick the capacitor combination closest to the needed var without leading.
- Switch relays one at a time with 1 s delay (caps discharge between steps), then re-measure.
- Show PF before and after, and current saved.
Test plan
| Test | Expected result |
|---|---|
| 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) |
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.
Make it yours
One or two upgrades for a mini project, two to four for a major one.
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.
