Rules | Recent posts | topic RSS | Search | Register  | Log in

Need code to correct duty cycle using PID tuning


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Need code to correct duty cycle using PID tuning
Author Message
praveen_palaparthi



Joined: 15 Feb 2008
Posts: 111
Helped: 1


Post29 Jun 2009 18:15   

Help required experts


Hi friends i am doing single phase sinusoidal PWM inverter using micro controller.I have generated sine wave at output using sine table.My controller is pic 16f886 output frequency is 50Hz,and swicthing frequency is 20Khz and output at no load is 250 volts rms.I used PWM modules in the controller to generate SPWM.

My problem is when i am switching the load of 200W bulb its output voltage is decreasing to 200V rms.How to correct this voltage.Theory says that by changing modulation index Ma=Ar/Ac Ar=peak amplitude of reference wave,Ac peak amplitude of carrier wave,we can get varaible volta ge but how to implement this in code.I mean how to correct(increase or decrease) the duty cycle.I know by using PI tuning we can get but i dont know how to implement i am not getting the logic can anybody help to get the logic.

can anybody give examples code for this to correct duty cycle using PID tuning
Back to top
Google
AdSense
Google Adsense




Post29 Jun 2009 18:15   

Ads




Back to top
bobcat1



Joined: 10 Jul 2002
Posts: 1100
Helped: 46


Post04 Jul 2009 7:52   

Re: Help required experts


HI

You need to sample the output voltage (or current) back into the controller and change the PWM acording to load

All the best

Bobi
Back to top
praveen_palaparthi



Joined: 15 Feb 2008
Posts: 111
Helped: 1


Post06 Jul 2009 13:48   

Re: Help required experts


Hello sir for responding to my post.As u know i am doing sinsuoidal inverter using PIC 167886.How to update my duty cycle.sir can u expain me in details as i am new to this type of project.How to vary the duty cycle according to reference value.......
Back to top
btbass



Joined: 20 Jul 2001
Posts: 1175
Helped: 111
Location: Oberon


Post06 Jul 2009 17:59   

Re: Help required experts


With sinusoidal control you change the amplitude of the sine wave to vary the output voltage.
Download application note AN1017 from Microchip.
This is an application note for driving a brushless motor with a sinewave, but gives the algorythms for changing amplitude.
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Need code to correct duty cycle using PID tuning
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
How to get 1/3 duty cycle from a 50% duty cycle clock? (14)
PID auto tuning code (1)
Differential to Single end convertion, need 50% duty cycle. (4)
PIC Code - PWM (50% Duty Cycle) (4)
PWM duty cycle using PIC (3)
50% duty cycle using 555 timer (6)
Confused...Duty Ratio VS Duty Cycle (2)
Duty cycle to voltage... (10)
need divide by 3 with 50% duty cycle circuit (11)
how to realize duty cycle 50%? (5)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS