Subversion Repositories Electronics.Rangefider

Rev

Rev 1 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 florent_ba 1
function ireverse = vishay_temd5080x01(wavelength_nm, wcm2)
2
% TEMD5080X01 photodiode crude model
3
% Source phase noise is not modelled
4
% Active area is : 7.7mm²
5
 
6
%datasheet info
7
ira_1mwcm2 = 60e-6;
8
current_gain = ira_1mwcm2/1e-3; %A/(W*cm^-2)
9
 
10
%approximate photodiode bandwidth, use of linear interpolation
11
rsr = [0.3 0.4 0.6 0.8 0.9 1 0.6 0.4 0.18];
12
lambda_nm = [400 450 550 720 800 940 1030 1050 1100];
13
%wvli = 400:1:1100;
14
%figure(1)
15
%plot(wvli, interp1(lambda_nm, rsr, wvli));
16
 
17
attenuation = interp1(lambda_nm, rsr, wavelength_nm);
18
fprintf("photodiode attenuation : %f\n", attenuation);
19
 
20
ireverse = current_gain*wcm2*attenuation;
21
 
22
end