cancel
Showing results for 
Search instead for 
Did you mean: 

How To Write Program For PFC Boost Control using STM32F103C8t6

nilmanivas
Associate II

Dear Sir ,

Kindly Help In Writing Program for PFC Boost Control.

As i have worked on making an power supply with Below Specification Details :
Input Voltage : 1 to 20 VAC(Variable)
Input Current : 3Amps (Constant)
We Require :

Output Voltage : 30VDC
Output Current : 3AMPS


For This we already created a closed loop system of power factor correction with boost controller .
in this we take feedback from output using voltage divider .

 

so i have an request to you kindly any one have solution pls suggest me to do this .

 

regards,

Nilmani

10 REPLIES 10
nilmanivas
Associate II

@Andrew Neil Sir Pls Help Me For Doing This .

So what have you done so far? Where are you stuck?

you're going to need to give a load more details about your hardware.

See: How to write your question to maximize your chances to find a solution

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Peter BENSCH
ST Employee

@nilmanivas 

It will be difficult to help you.

  1. If your specifications are mandatory, your design is not feasible because you only have a maximum of 30W input power available. Even with 100% efficiency, you could only draw a maximum load current of 1A at 30V output.
  2. The STM32F103 is an old MCU based on Cortex-M3 without FPU, which probably does not offer enough computing power to implement a PFC.
  3. Even if the STM32F103C8T6 you have chosen is suitable, it is strongly recommended that you check whether it is an original and not one of the many counterfeits not being supported by STMicroelectronics.

However, you can take a look at X-CUBE-DPOWER to see how a PFC is implemented in similar projects. The AN6096 in particular could be a helpful starting point.

Good luck!

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Dear @Peter BENSCH Sir,

Thank you for your support. I am currently using the STM32F103C6T6 MCU to program a PFC Boost Converter.

This project is quite similar to the reference application you shared AN6096 ; however, the main difference is that I am using the STM32F103C6T6 microcontroller. Therefore, I kindly request your suggestion for any videos, tutorials, or resources that could help me in writing the program.

Additionally, I am using ACS712 (20A) for input current and voltage sensing, and a voltage divider circuit for output voltage sensing.

 

Input Voltage : 1-20VAC Variable 

Input Current:3 Amps Constant 

Output Voltage :30 VDC Constant 

Output Current :3A Constant 

 

I am Waiting For Your Reference .

Regards,

Nilmani

You don't seem to have taken into account any of @Peter BENSCH's points.

 


@nilmanivas wrote:

Input Voltage : 1-20VAC Variable 

Input Current:3 Amps Constant 


So, at the minimum input voltage (1V), you have only 3W of input power;

at the maximum input voltage (20V), you have 60W of input power.

 


@nilmanivas wrote:

Output Voltage :30 VDC Constant 

Output Current :3A Constant 


That's 90W of output power, but you have no more than 60W of input - possibly much less!

 

 


@nilmanivas wrote:

I am using the STM32F103C6T6 microcontroller.


As @Peter BENSCH said, that is likely to be insufficient to the task.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
nilmanivas
Associate II

Dear @Andrew Neil  & @Peter BENSCH Sir,

I am currently working with an input of 30 VAC and 6.5 A, and I would like to achieve an output of 25 VDC With 4 A.

Could you please advise whether this is possible? Additionally, I am aiming for a power factor greater than 0.90, so I would appreciate your guidance on how to achieve this in my setup. 

I am Using Stm32f103c8t6 and stm32g031c6t6 microcontroller for Output Voltage Controlling Using Closed Loop System . Here i have input Current Sensor And Output Voltage Sense.

Best regards,
Nilmani


@nilmanivas wrote:

I am currently working with an input of 30 VAC and 6.5 A, and I would like to achieve an output of 25 VDC With 4 A.


So that's no longer a boost converter - is it?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
nilmanivas
Associate II

pls help me out sir

 

yes sir