Hello,
i'm having problems with the control algorithm for a step up converter.
i have this project with consist i designing and buid a step up , and insted of using big capacitor to reduce the ripple after the rectification , we are asked to build a software (in C language, we are using a arduino for the taks) that when the Vout is lower than Vref it will increase the duty cicle and when Vout is higher it will drecrease the duty cile to mantain a stable output.
the ripple i have to compensate is aprox 10V at 100hz.
i've tryed the simples algorithms like
e=yr-y
u=Dref+Kp*e
but it didnt worked.
if anyone who have experience in this area could help me out i will be very gratefull
In attachement i send the code I wrote so far, with definition of timers, ADC readings, and serial port (the latter using the Arduino functions)
i'm having problems with the control algorithm for a step up converter.
i have this project with consist i designing and buid a step up , and insted of using big capacitor to reduce the ripple after the rectification , we are asked to build a software (in C language, we are using a arduino for the taks) that when the Vout is lower than Vref it will increase the duty cicle and when Vout is higher it will drecrease the duty cile to mantain a stable output.
the ripple i have to compensate is aprox 10V at 100hz.
i've tryed the simples algorithms like
e=yr-y
u=Dref+Kp*e
but it didnt worked.
if anyone who have experience in this area could help me out i will be very gratefull
In attachement i send the code I wrote so far, with definition of timers, ADC readings, and serial port (the latter using the Arduino functions)
Attachments
-
2.1 KB Views: 16