Skip to content

Commit 04cff3d

Browse files
committed
update fully
1 parent 9dd6632 commit 04cff3d

25 files changed

+3892
-427
lines changed

Images/Expanded_Irradiance.jpg

55.8 KB
Loading

LED_panel_assembly.SLDDRW

37.2 KB
Binary file not shown.
73.6 KB
Loading

Matlab/LED_irradiance.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
%Function LED_irradiance has 4 inputs and 3 outputs. The 4 inputs are
2+
%position, intensity, length of test area, and apex angle. With these input
3+
%the Irradiance model calcuates the irradiance on the designated surface.
4+
%The ouput is an X,Y meshgrid and surface being the irradiance
15
function [x_surf y_surf surface] = LED_irradiance( position,intensity,length, apex)
2-
36
[x_surf y_surf] = meshgrid(0:length/10:length);
47
M=-1.*(log(2)./log(cosd(apex/2)));
58
position = position + [length./2 length./2 0];
69
R=sqrt((x_surf-position(1)).^2 + (y_surf-position(2)).^2 + position(3).^2);
710
surface = ((position(3).^(M+1)).*intensity)./(R.^(M+3));
811

912
end
13+

Matlab/Sensor_surface.m renamed to Matlab/Spectral_Match_Non_Uniformity.m

Lines changed: 39 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
1+
%Using Values from Spectral_Matchv1, the intensity and flux can be calculated
2+
%interchangeably. This Script places LED lambertian light sources 118mm
3+
%above test area of 2500mm^2.
14
clc;
25
clear;
36
close all;
47

5-
LENGTH = 0.08;
8+
%Assigning test area and distance from
9+
LENGTH = 0.05;
610
AREA = LENGTH.^2;
711
x=0:LENGTH/10:LENGTH;
812
y=0:LENGTH/10:LENGTH;
913
DISTANCE =0.118;
14+
1015
LED_W_Positions = [
11-
0.005 0 DISTANCE;
12-
-0.025 0 DISTANCE;
13-
-0.025 0.025 DISTANCE;
14-
-0.025 -0.025 DISTANCE;
15-
0 0.025 DISTANCE;
16-
0 -0.025 DISTANCE;
17-
0.025 0 DISTANCE;
18-
0.025 0.025 DISTANCE;
19-
0.025 -0.025 DISTANCE
16+
0 0 DISTANCE;
17+
0.035 0 DISTANCE;
18+
0.035 0.035 DISTANCE;
19+
0.035 -0.035 DISTANCE;
20+
-0.035 0.035 DISTANCE;
21+
-0.035 -0.035 DISTANCE;
22+
-0.035 0 DISTANCE;
23+
0 -0.035 DISTANCE;
24+
0 0.035 DISTANCE
2025
];
2126
sum = zeros(length(x),length(x));
2227
for i = 1:9
@@ -37,7 +42,7 @@
3742

3843
% figure(2);
3944
LED_DP_Positions = [
40-
-0.005 0 DISTANCE
45+
-0.00551 0 DISTANCE
4146
];
4247
sumBuffer = zeros(length(x),length(x));
4348
for i = 1:1
@@ -57,10 +62,10 @@
5762

5863
% figure(3);
5964
LED_G_Positions = [
60-
0.020 0.02 DISTANCE;
61-
0.02 -0.02 DISTANCE;
62-
-0.02 0.02 DISTANCE;
63-
-0.02 -0.02 DISTANCE;
65+
0.02183 0.01863 DISTANCE;
66+
0.02183 -0.01863 DISTANCE;
67+
-0.02183 0.01863 DISTANCE;
68+
-0.02183 -0.01863 DISTANCE;
6469
];
6570
sumBuffer = zeros(length(x),length(x));
6671
for i = 1:4
@@ -80,9 +85,9 @@
8085

8186
% figure(4);
8287
LED_R_Positions = [
83-
-0.025 0.02 DISTANCE;
84-
0.025 0.005 DISTANCE;
85-
-0.005 -0.025 DISTANCE;
88+
0.035 -0.01398 DISTANCE;
89+
-0.01207 -0.035 DISTANCE;
90+
-0.035 0.02356 DISTANCE;
8691
];
8792
sumBuffer = zeros(length(x),length(x));
8893
for i = 1:3
@@ -102,10 +107,10 @@
102107

103108
% figure(5);
104109
LED_UV_Positions = [
105-
0.015 0.015 DISTANCE;
106-
0.015 -0.015 DISTANCE;
107-
-0.015 0.015 DISTANCE;
108-
-0.015 -0.015 DISTANCE;
110+
0.01313 0.01313 DISTANCE;
111+
0.01313 -0.01313 DISTANCE;
112+
-0.01313 0.01313 DISTANCE;
113+
-0.01313 -0.01313 DISTANCE;
109114
];
110115
sumBuffer = zeros(length(x),length(x));
111116
for i = 1:3
@@ -125,8 +130,8 @@
125130

126131
% figure(6);
127132
LED_V_Positions = [
128-
-0.015 0.02 DISTANCE;
129-
0.015 -0.02 DISTANCE;
133+
-0.01313 0.02123 DISTANCE;
134+
0.01313 -0.02123 DISTANCE;
130135
];
131136
sumBuffer = zeros(length(x),length(x));
132137
for i = 1:2
@@ -146,9 +151,9 @@
146151

147152
% figure(7);
148153
LED_C_Positions = [
149-
-0.025 -0.005 DISTANCE;
150-
0.005 0.025 DISTANCE;
151-
0.025 -0.02 DISTANCE;
154+
-0.035 -0.00551 DISTANCE;
155+
0.00551 0.035 DISTANCE;
156+
0.035 -0.029 DISTANCE;
152157
];
153158
sumBuffer = zeros(length(x),length(x));
154159
for i = 1:3
@@ -168,7 +173,12 @@
168173

169174
% figure(8);
170175
LED_B_Positions = [
171-
0 -0.005 DISTANCE;
176+
%%
177+
%
178+
% PREFORMATTED
179+
% TEXT
180+
%
181+
0.00551 0 DISTANCE;
172182

173183
];
174184
sumBuffer = zeros(length(x),length(x));
@@ -222,7 +232,7 @@
222232
%circle([LED_C_Positions(:,1);LED_DP_Positions(:,1);LED_G_Positions(:,1);LED_R_Positions(:,1);LED_UV_Positions(:,1);LED_V_Positions(:,1);LED_W_Positions(:,1);LED_B_Positions(:,1)],[LED_C_Positions(:,2);LED_DP_Positions(:,2);LED_G_Positions(:,2);LED_R_Positions(:,2);LED_UV_Positions(:,2);LED_V_Positions(:,2);LED_W_Positions(:,2);LED_B_Positions(:,2)], 0.0198);
223233
hold off
224234
axis equal;
225-
axis([-LENGTH/2 LENGTH/2 -LENGTH/2 LENGTH/2])
235+
axis([-0.07/2 0.07/2 -0.07/2 0.07/2])
226236
legend('Cyan','Deep Blue', 'Green', 'Red', 'UV','Violet','White','Blue');
227237
title('LED Bulb Placement on Panel');
228238
xlabel('X position (m)');

0 commit comments

Comments
 (0)