Introduction - If you have any usage issues, please Google them yourself
Source code for Power factor regulator driver, using at mega micro_controller.
This device can calculate the power factor of the load then command to switch the capacitors to regulate the power factor.