52 lines
1.8 KiB
Matlab
52 lines
1.8 KiB
Matlab
%% 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
|
|
% 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.
|
|
|
|
% 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.
|
|
|
|
% However, what is more important than the true value of the thickness is the consistency between all the flexible joints.
|
|
|
|
|
|
%% Measured gap for the 16 flexible joints
|
|
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]];
|
|
|
|
%% Histogram of the measured gap
|
|
figure;
|
|
hold on;
|
|
histogram([(meas_flex(:,1)+meas_flex(:,2))/2,(meas_flex(:,3)+meas_flex(:,4))/2], 7)
|
|
hold off;
|
|
xlabel("Measured beam thickness [$\mu m$]");
|
|
xticks([200, 205, 210, 215, 220, 225, 230, 235])
|
|
|
|
%% Save beam sizes
|
|
save('./mat/flex_meas_dim.mat', 'meas_flex');
|