Is it possible to calculate time constant and DC gain for RC circuit
조회 수: 12 (최근 30일)
이전 댓글 표시
Hi,
is it possible to to calculate time constant and DC gain for a given RC circuit?
I have here this matlab code and I want to calculate tau and K. How can I find here tau and K?
I have found this calculator here for tau:
https://www.digikey.com/en/resources/conversion-calculators/conversion-calculator-time-constant
I am not sure if I can calculatetau in this way. Or do I have to set up the transfer function of a RC circuit
to calculate the DC gain?
%% RC - Lowpass Unit Step Response in Time Domain
% Define Parameters
R = 1000; % Resistance in Ohm
C = 0.0001; % Capacitance in Farad
K = ?; % DC gain
tau = ?; % Time constant in s
par_RC_lowpass = [K tau ];
% Calculate Unit Step Response
t = 0:0.01:10* tau; % Time vector in s
y = unit_step_PT1 ( par_RC_lowpass , t);
% Plot Unit Step Response
plot ([0 0 t(end )] ,[0 1 1], 'k--',t,y,'k-')
axis ([t(1) t(end ) min(y) 1.1* max(y)])
h_xlabel = xlabel ({ '$t$ \,/\ ,s'});
set ( h_xlabel ,'Interpreter','latex');
h_ylabel = ylabel ({'$u(t)$\,/\ ,V'});
set ( h_ylabel ,'Interpreter','latex');
grid on
댓글 수: 0
답변 (1개)
Mathieu NOE
2021년 6월 14일
hello
a simple RC circuit like the one shown above
has tau = RC and DC gain =1 (assuming Vout = voltage accross C and Vin = voltage accross R + C
this is obvious if you write the electrical equations
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Power Converters에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!