-
Notifications
You must be signed in to change notification settings - Fork 1
/
CONSTANTS.m
104 lines (85 loc) · 2.54 KB
/
CONSTANTS.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
% This script contains all physical constants and specifications for the
% SLS 3-D Printer
% Start with a clean slate
% Erase entire Matlab environment
clear all;
%%%%%%%%%%%%%%%%%%%%%%
% Physical Constants %
%%%%%%%%%%%%%%%%%%%%%%
G = 9.81; % m/s^2
FtPerM = 3.28; % ft / m
RadPerDeg = pi/180; % rad / deg
DegPerRad = 180/pi; % deg / rad
RadPSecPerRPM = pi/30; % (rad/s) / rpm
Big = 1e6; % General purpose large number
Sml = 1e-6; % General purpose small number
%%%%%%%%%%%%%%%%%%
% Specifications %
%%%%%%%%%%%%%%%%%%
% Simulation Execution Time
TotalTime = 20; % (s)
% Amplifier
R1 = 2.2; % (Mohm)
R2 = 5.9; % (ohm)
C = 16; % (uF)
L = 120; % (mH)
% Sensor
SensV = 5; % Min/Max sensor outpout voltage (V)
SensAng = 180; % Min/Max sensor angle (deg)
% Geometry
Height = 200; % Height above build plate (mm)
LinkR1 = 16; % Inner radius of wrist frame (mm)
LinkR2 = 22; % Outer radius of wrist frame (mm)
LinkD = 5; % Depth of wrist frame (mm)
LinkOff = 9; % Distance from motor face to centre (mm)
% Material & Spring Constant
RhoAl = 2.7; % Density of 6061 Al (g/cm^3)
SpringK = 7; % (mNm/rev)
% Coeff of static friction
% Amount of torque required to set a body in motion which has a given
% amount of radial force being applied to it (usually due to gravity)
uSF = 700; % (um) = (uNm/N)
% Joint Limit
JntLim = 60; % Q1 only (deg)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Indices into MotorParam Vector for Maxon motors %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Values at Nominal Voltage
NomV = 1;
NoLoadSpd = 2;
NoLoadCurr = 3;
NomSpd = 4;
NomTorque = 5;
NomCurr = 6;
StallTorque = 7;
StallCurr = 8;
MaxEff = 9;
% Characteristics
TermR = 10;
TermL = 11;
TorqueK = 12;
SpdK = 13;
SpdTorqueGrad = 14;
MechTimeK = 15;
RotJ = 16;
% Thermal Data
ThermRhous = 17;
ThermRwind = 18;
ThermTCwind = 19;
ThermTCmot = 20;
AmbTemp = 21;
MaxTemp = 22;
% Mechanical Data
MaxSpdBall = 23;
AxialPlayBall = 24;
RadPlayBall = 25;
MaxAxLdBall = 26;
MaxFBall = 27;
MaxRadLdBall = 28;
% Other Specifications
NoPolePair = 29;
NoCommSeg = 30;
Weight = 31;
% Physical Dimensions
OuterDiam = 32;
Length = 33;