Calculation of capacitor value for PFC using Arduino By this Arduino project you can find out the capacitor value needed for PFC (Power Factor Correction) using arduino without any mathematical process. Following image show you the value given by arduino and the value given by the PFC app. that available for Android in google play for free. both give me the same value. Then i connect a capacitor with value given by arduino and the PF become unity When no load connected When the load is resistive Parts list: Arduino board Energy meter module Pzem-004t LCD 16x2 with I2C adapter board Connecting wires Wiring: Video: Code: #include "math.h" #include <Wire.h> #include <LiquidCrystal_I2C.h> #include <SoftwareSerial.h> // Arduino IDE <1.6.6 #include <PZEM004T.h> LiquidCrystal_I2C lcd(0x27,16,2); PZEM004T pzem(2,3); // (RX,TX) connect to TX,RX of PZEM IPAddress ip(192,168,1,1); void setup() { Serial.begin(9600); pzem.setAddress(ip); ...