2024-03-25 10:01:56 +01:00
|
|
|
%% Clear Workspace and Close figures
|
|
|
|
clear; close all; clc;
|
|
|
|
|
|
|
|
%% Intialize Laplace variable
|
|
|
|
s = zpk('s');
|
|
|
|
|
|
|
|
%% Path for functions, data and scripts
|
|
|
|
addpath('./mat/'); % Path for data
|
|
|
|
|
|
|
|
%% Colors for the figures
|
|
|
|
colors = colororder;
|
|
|
|
|
|
|
|
% Measurement Results
|
2024-04-06 00:33:37 +02:00
|
|
|
% The specified flexible beam thickness (gap) is $250\,\mu m$.
|
|
|
|
% Four gaps are measured for each flexible joints (2 in the $x$ direction and 2 in the $y$ direction).
|
|
|
|
% The "beam thickness" is then estimated to be the mean between the gaps measured on opposite sides.
|
2024-03-25 10:01:56 +01:00
|
|
|
|
2024-04-06 00:33:37 +02:00
|
|
|
% An histogram of the measured beam thicknesses is shown in Figure ref:fig:test_joints_size_hist.
|
|
|
|
% The measured thickness is less thant the specified value of $250\,\mu m$, but this optical method may not be very accurate as the estimated gap can depend on the lighting of the part and of its proper alignment.
|
2024-03-25 10:01:56 +01:00
|
|
|
|
2024-04-06 00:33:37 +02:00
|
|
|
% However, what is more important than the true value of the thickness is the consistency between all the flexible joints.
|
2024-03-25 10:01:56 +01:00
|
|
|
|
|
|
|
|
2024-04-06 00:33:37 +02:00
|
|
|
%% Measured gap for the 16 flexible joints
|
2024-03-25 10:01:56 +01:00
|
|
|
meas_flex = [[223, 226, 224, 214];
|
|
|
|
[229, 231, 237, 224];
|
|
|
|
[234, 230, 239, 231];
|
|
|
|
[233, 227, 229, 232];
|
|
|
|
[225, 212, 228, 228];
|
|
|
|
[220, 221, 224, 220];
|
|
|
|
[206, 207, 228, 226];
|
|
|
|
[230, 224, 224, 223];
|
|
|
|
[223, 231, 228, 233];
|
|
|
|
[228, 230, 235, 231];
|
|
|
|
[197, 207, 211, 204];
|
|
|
|
[227, 226, 225, 226];
|
|
|
|
[215, 228, 231, 220];
|
|
|
|
[216, 224, 224, 221];
|
|
|
|
[209, 214, 220, 221];
|
|
|
|
[213, 210, 230, 229]];
|
|
|
|
|
2024-04-06 00:33:37 +02:00
|
|
|
%% Histogram of the measured gap
|
2024-03-25 10:01:56 +01:00
|
|
|
figure;
|
2024-04-06 00:33:37 +02:00
|
|
|
hold on;
|
2024-03-25 10:01:56 +01:00
|
|
|
histogram([(meas_flex(:,1)+meas_flex(:,2))/2,(meas_flex(:,3)+meas_flex(:,4))/2], 7)
|
2024-04-06 00:33:37 +02:00
|
|
|
hold off;
|
|
|
|
xlabel("Measured beam thickness [$\mu m$]");
|
|
|
|
xticks([200, 205, 210, 215, 220, 225, 230, 235])
|
2024-03-25 10:01:56 +01:00
|
|
|
|
|
|
|
%% Save beam sizes
|
|
|
|
save('./mat/flex_meas_dim.mat', 'meas_flex');
|