Chương 4 1 Code MATLAB mô phỏng đặc tính của biến áp áp điện

Một phần của tài liệu THIẾT KẾ ỨNG DỤNG CỦA BIẾN ÁP ÁP ĐIỆN (Trang 25 - 32)

điện

Vin = 5; %Dien ap vao bien ap

%Thong so bien ap

Rm = 1.33; %Dien tro dac trung ton hao co

Lr = 0.66e-3; %Dien cam noi tiep dau vao

Cr = 3.925e-9; %Dien dung noi tiep dau vao

n = 32; %Ty so truyen co ly tuong

Cin = 105e-9; %Dien dung dau vao PT

Co = 20e-12; %Dien dung dau ra PT

f = [90000:200:110000]; %Dai tan so tai khao sat

logaR =[0:0.1:9]; Ro = 10.^logaR;

[X,Y] = meshgrid(f,Ro); %Lenh tao luoi ve do thi

%Tinh cac thong so

omega = 2*pi.*X; %Tan so goc

R1o = Y./(n*n); %R'o

C1o = (n*n)*Co; %C'o

R2o = R1o./(1+(omega*C1o.*R1o).^2); %R"o

C2o = C1o.*((1+(omega*C1o.*R1o).^2)./(omega*C1o.*R1o).^2); %C"o

A = C1o/Cr; %A omega_rs= 1/sqrt(Lr*Cr); %omega frs = omega_rs/(2*pi); Q = omega_rs*Co*Y; Qm = 1/(omega_rs*Cr*Rm); f1 = X./frs; K1 = (1 - A*(f1.*f1 - 1) + Rm./R1o); K2 =((omega_rs./omega).*(A./Q).*(f1.^2-1)+ f1.*A/Qm); K = K1.^2 + K2.^2; %Y

%e = R2o(:,51)./(R2o(:,51)+Rm)*100; %Hieu suat bien ap

e = R2o./(R2o+Rm)*100; %Hieu suat bien ap

close all; %Xoa cac hinh hien tai

surf(X,logaR,n2); %Do thi he so bien ap

xlabel('TAN SO HOAT DONG [Hz]'); ylabel('Log10(R)');

zlabel('HE SO BIEN AP'); view(10,10);

figure;

surf(X,logaR,Po); %Do thi cong suat dau ra

xlabel('TAN SO HOAT DONG [Hz]'); ylabel('Log10(R)');

zlabel('CONG SUAT DAU RA [W]'); view(10,10);

figure; plot(logaR,e) surf(X,logaR,e);

xlabel('TAN SO HOAT DONG [Hz]'); ylabel('Log10(R)'); (adsbygoogle = window.adsbygoogle || []).push({});

zlabel('HIEU SUAT BIEN AP [%]');

view(10,10); %Dieu chinh goc nhin

e = R2o./(R2o+Rm)*100; %Hieu suat bien apmax_n2

max_n2 = max(n2'); max_Po = max(Po'); max_e = max(e');

plot(logaR,max_n2./16,'--','LineWidth',2.5); hold on;

legend('He so bien ap','Cong suat','Hieu suat');

Chương 5 2. Code điều khiển vòng hở

// Dieu khien vong ho ta dung 1 chuong trinh rat don gian xuat xung PWM co tan so xac

//dinh de cap vao bien ap ap dien

void main(void) {

tanso=103700; // hz

// Just sit and loop forever:

pwm_chan1(tanso,40) ; delay_ms(2000); while(1);

}

Chương 6 3. Code điều khiển vòng kín

#include"DSP281x_Device.h"

#include"DSP281x_Examples.h"

#define T_1 50000// Hang so thu nhat cua bo loc (us)

#define T_2 5000// Hang so thu hai cua bo loc (us)

#define U_b 5//(V)

#define K_015000 // (Don vi nay s-1*V-1) He so cua DCO

#define f_0 90000// Tan so lam viec trung tam cua DCO - Hz

Uint32 f=91000; // Bien luu tan so lam viec cua PLL

Uint32 T_lech =0; Uint32 goclechpha =0; Uint32 T_lech_percent =75; Uint32 T_lech_rect =90; // do

int duty =45;// thoi gian ns

Uint32 T=0 ; // chu ki cua U1

Uint32 T_cross=0;// thoi gian lech pha giua 2 tin hieu ngat

float Uf_cur=0.1;

signedint Q=0;// gia tri Q

float T_pos=0.0,T_neg=0.0;//(us) (adsbygoogle = window.adsbygoogle || []).push({});

int flag_phase=0; // Co bao da lay duoc T_cross

int flag=0;// Co bao toi chu ki tinh toan moi

Uint32 count=0;

// Prototype statements for functions found within this file.

interrupt void XINT_1_ISR(void);// ISR1 xac dinh xung len cua U1

interrupt void XINT_2_ISR(void);// ISR2 xac dinh xung len cua U2

void SPLL(void);

void Get_phase_dif(void);

void Update_PT_In(void);

void delay_ms(long ms)

{

DELAY_US(ms*1000);

}

void pwm_chan1(Uint32 tansoHz,int duty100)

{

EvaRegs.T1PR=75000000/tansoHz;

EvaRegs.CMPR1 =75000000/tansoHz * duty100 /100 ;

}

void Gpio_select(void);

void main() { T=1000000000/f; pwm_chan1(f,duty); delay_ms(100); while(1) { if(flag_phase==1) {

Update_PT_In();

flag_phase=0;

}

} }

void SPLL(void)// tinh toan

{ T_lech=T*(360-T_lech_rect)/360; T_cross+=T_lech; while(T_cross>=T) { T_cross-=T; }

//Tinh toan cho PFD

if(T_cross<T/2)// U se som pha so voi I, can giam tan so xuong

{

T_neg=T_cross; T_pos=0; (adsbygoogle = window.adsbygoogle || []).push({});

}

else// U tre pha so voi I, can tang tan so len

{

T_neg=0;

T_pos=T-T_cross;

}

//tinh toan cho bo loc

if(T_pos >0)

{

Uc_cur = Uc_pre + (float)(U_b - Uc_pre) * T_pos / (T_1 + T_2);

Uf_cur = Uc_cur + T_pos * T_2 * ((float)U_b-Uc_cur)/(T * (T_1 + T_2));

Uc_cur = Uc_pre * (1- ((float)T_neg / (T_1 + T_2)));

Uf_cur = Uc_cur * (1- ((float)T_2 * T_neg/(T * (T_1 + T_2))));

} else { Uc_cur = Uc_pre; Uf_cur = Uc_cur; }

// Tinh toan cho DCO

f=f_0+K_0*Uf_cur;

T=1000000000/f;

// update cac gia tri tinh toan cho lan tinh toan tiep theo

Uc_pre=Uc_cur; Uf_pre=Uf_cur;

[1]. Đỗ Mạnh Cường, “Piezoelectric Transformer Integration Posibility in High Power Density Applications”, Technische Universitat Dresden, 2008.

[2]. Gregory Ivensky, Isaac Zafrany and Shmuel Ben-Yaakov, “Generic operation characteristics of piezoelectric transformers”, IEEE Trans. Power Electron, vol. 17, Nov. 2002, pp. 1049-1057

[3]. Eddy Wells, “Comparing magnetic and piezoelectric transformer approaches in CCFL applications”, Texas Instruments Incorporated, 2005.

[4]. Alfredo Vázquez Carazo, “50 years of Piezoelectric Transformers. Trends in the technology”, Department of R&D Engineering, Face Electronics, 2004.

[5]. Bronstein, S., and Ben-Yaakov, S., “Design Considerations for Achieving ZVS in a Half Bridge Inverter that Drives a Piezoelectric Transformer with No Series Inductor”, Power Electronics Specialists Conference, 02. 2002 IEEE 33rd Annual, 2002.

[6]. Lin C. H., Lu Y., Lo Y. K., Pai K. J. and Wang Y. Y., “Inductor less piezoelectric transformer electronic ballast for linear flourescent lamp”, Applied Power

Electronics Conference and Exposition, APEC 2001. Sixteenth Annual IEEE, 2001.

[7]. Ben-Yaakove, S., Ivensky, G., “Drivers and Rectifiers for Piezoelectric Elements”, IEEE Power Electronics Specialist Conference, PESC-2005, 2005.

[8]. Chang-Hua Lin, Ying-Chi Chen, Ying Lu, “DPLL Technique Applied to Backlight Module for Eliminating Temperature Effect in Piezoelectric Transformer”, Dept. of Computer and Communication Engineering, St. John's University, 2005.

[9]. E. Dailago and A. Danioni, “Resonance frequency tracking control for piezoelectric transformer DC-DC converter”, ELECTRONICS LETTERS - October 2001.

[10]. Võ Minh Chính, Phạm Quốc Hải, Trần Trọng Minh, Điện tử công suất, Nhà xuất bản khoa học kĩ thuật, 2005. (adsbygoogle = window.adsbygoogle || []).push({});

[11]. Roland E. Best, Phase-Locked Loops - Design, Simulation, and Applications, McGraw-Hill, 1999.

[12]. J. Díaz, J.A. Martín-Ramos, M.J. Prieto and F. Nuño, “A Double-Closed Loop DC/DC Converter Based On A Piezoelectric Transformer”, GIJON-ASTURIAS- SPAIN, 1999.

[13]. Spectrum Digital Incorporated, “eZdspTM F2812 Technical Reference”, September 2003.

Manual”, TI,2007.

[15]. Nguyễn Phùng Khoang, MATLAB & SIMULINK dành cho kĩ sư điều khiển tự động, Nhà xuất bản khoa học kĩ thuật, 2001.

[16]. Nguyễn Trinh Đường, Lê Hải Sâm, Lương Ngọc Hải và Nguyễn Quốc Cường, Điện tử tương tự, Nhà xuất bản giáo dục, 2007.

Một phần của tài liệu THIẾT KẾ ỨNG DỤNG CỦA BIẾN ÁP ÁP ĐIỆN (Trang 25 - 32)