Active Power Factor Correction

i wanna create an active power factor correction.
my aim is to have the same output current as i use function generator. hoping to do the coding for microcontroller to program the mosfet driver of the boost converter to control the ON/ OFF pwm.
and also control mosfet with mosfet driver from boost converter to produce PWM (pulse voltage waveform)and current wave form that when ON the waveform increased linearly and OFF the waveform decreased linearly.

but currently i am not sure how to code on the microcontroller to on/off the mosfet driver for mosfet, any guidance for coding of active power factor correction?

I really have no clue what you're trying to do...

Function generator?

What are you really trying to do? What kind of load are you trying to drive? You can't control voltage & current at the same time. Ohm's Law says voltage & current are related by impedance.

"Power Factor" usually relates to the phase difference between the current and voltage in a capacitive or inductive circuit, but I have a feeling that's not what you're talking about... In a resistive circuit the power factor is 1.0 (Power = Voltage X Current).

Active power factor correction....

Is your system inductive or capacitive? Frequency? Why does it matter?

Usually for power factor correction you just need to add an inductor or capacitor to the overal system compensate the other, what's with the mosfet?

Power companies don't track your power factor if your residential :wink:

my task is to do an active power factor correction.
So i need to program the arduino microcontroller to my boost converter (there is mosfet driver in my boost converter where my microcontroller will need to control the mosfet driver for the duty cycle.)

Try again.

What boost controller? Does it have a manual or a datasheet?

What are you driving? Normal household mains 110V/240V or something else?

So i need to program the arduino microcontroller to my boost converter (there is mosfet driver in my boost converter where my microcontroller will need to control the mosfet driver for the duty cycle.)

That is nothing to do with power factor correction.

Power factor correction would involve switching capacitors in and out of the supply.

Cross-post - thread locked.

Answers please to the thread in Micro controllers.