1798 lines
78 KiB
Org Mode
1798 lines
78 KiB
Org Mode
#+TITLE: Nano-Hexapod - Test Bench
|
|
:DRAWER:
|
|
#+LANGUAGE: en
|
|
#+EMAIL: dehaeze.thomas@gmail.com
|
|
#+AUTHOR: Dehaeze Thomas
|
|
|
|
#+HTML_LINK_HOME: ../index.html
|
|
#+HTML_LINK_UP: ../index.html
|
|
|
|
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="https://research.tdehaeze.xyz/css/style.css"/>
|
|
#+HTML_HEAD: <script type="text/javascript" src="https://research.tdehaeze.xyz/js/script.js"></script>
|
|
|
|
#+BIND: org-latex-image-default-option "scale=1"
|
|
#+BIND: org-latex-image-default-width ""
|
|
|
|
#+LaTeX_CLASS: scrreprt
|
|
#+LaTeX_CLASS_OPTIONS: [a4paper, 10pt, DIV=12, parskip=full, bibliography=totoc]
|
|
#+LATEX_HEADER: \input{preamble.tex}
|
|
#+LATEX_HEADER_EXTRA: \input{preamble_extra.tex}
|
|
#+LATEX_HEADER_EXTRA: \bibliography{test-bench-nano-hexapod.bib}
|
|
|
|
#+BIND: org-latex-bib-compiler "biber"
|
|
|
|
#+PROPERTY: header-args:matlab :session *MATLAB*
|
|
#+PROPERTY: header-args:matlab+ :comments org
|
|
#+PROPERTY: header-args:matlab+ :exports none
|
|
#+PROPERTY: header-args:matlab+ :results none
|
|
#+PROPERTY: header-args:matlab+ :eval no-export
|
|
#+PROPERTY: header-args:matlab+ :noweb yes
|
|
#+PROPERTY: header-args:matlab+ :mkdirp yes
|
|
#+PROPERTY: header-args:matlab+ :output-dir figs
|
|
#+PROPERTY: header-args:matlab+ :tangle no
|
|
|
|
#+PROPERTY: header-args:latex :headers '("\\usepackage{tikz}" "\\usepackage{import}" "\\import{$HOME/Cloud/tikz/org/}{config.tex}")
|
|
#+PROPERTY: header-args:latex+ :imagemagick t :fit yes
|
|
#+PROPERTY: header-args:latex+ :iminoptions -scale 100% -density 150
|
|
#+PROPERTY: header-args:latex+ :imoutoptions -quality 100
|
|
#+PROPERTY: header-args:latex+ :results file raw replace
|
|
#+PROPERTY: header-args:latex+ :buffer no
|
|
#+PROPERTY: header-args:latex+ :tangle no
|
|
#+PROPERTY: header-args:latex+ :eval no-export
|
|
#+PROPERTY: header-args:latex+ :exports results
|
|
#+PROPERTY: header-args:latex+ :mkdirp yes
|
|
#+PROPERTY: header-args:latex+ :output-dir figs
|
|
#+PROPERTY: header-args:latex+ :post pdf2svg(file=*this*, ext="png")
|
|
:END:
|
|
|
|
#+begin_export html
|
|
<hr>
|
|
<p>This report is also available as a <a href="./test-bench-nano-hexapod.pdf">pdf</a>.</p>
|
|
<hr>
|
|
#+end_export
|
|
|
|
#+latex: \clearpage
|
|
|
|
* Build :noexport:
|
|
#+NAME: startblock
|
|
#+BEGIN_SRC emacs-lisp :results none :tangle no
|
|
(add-to-list 'org-latex-classes
|
|
'("scrreprt"
|
|
"\\documentclass{scrreprt}"
|
|
("\\chapter{%s}" . "\\chapter*{%s}")
|
|
("\\section{%s}" . "\\section*{%s}")
|
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
|
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
|
))
|
|
|
|
|
|
;; Remove automatic org heading labels
|
|
(defun my-latex-filter-removeOrgAutoLabels (text backend info)
|
|
"Org-mode automatically generates labels for headings despite explicit use of `#+LABEL`. This filter forcibly removes all automatically generated org-labels in headings."
|
|
(when (org-export-derived-backend-p backend 'latex)
|
|
(replace-regexp-in-string "\\\\label{sec:org[a-f0-9]+}\n" "" text)))
|
|
(add-to-list 'org-export-filter-headline-functions
|
|
'my-latex-filter-removeOrgAutoLabels)
|
|
|
|
;; Remove all org comments in the output LaTeX file
|
|
(defun delete-org-comments (backend)
|
|
(loop for comment in (reverse (org-element-map (org-element-parse-buffer)
|
|
'comment 'identity))
|
|
do
|
|
(setf (buffer-substring (org-element-property :begin comment)
|
|
(org-element-property :end comment))
|
|
"")))
|
|
(add-hook 'org-export-before-processing-hook 'delete-org-comments)
|
|
|
|
;; Use no package by default
|
|
(setq org-latex-packages-alist nil)
|
|
(setq org-latex-default-packages-alist nil)
|
|
|
|
;; Do not include the subtitle inside the title
|
|
(setq org-latex-subtitle-separate t)
|
|
(setq org-latex-subtitle-format "\\subtitle{%s}")
|
|
|
|
(setq org-export-before-parsing-hook '(org-ref-glossary-before-parsing
|
|
org-ref-acronyms-before-parsing))
|
|
#+END_SRC
|
|
|
|
* Notes :noexport:
|
|
|
|
Prefix is =test_nhexa=
|
|
|
|
Add these documents:
|
|
- [X] [[file:~/Cloud/work-projects/ID31-NASS/matlab/nass-nano-hexapod-assembly/nass-nano-hexapod-assembly.org][nass-nano-hexapod-assembly]]
|
|
- [X] [[file:~/Cloud/work-projects/ID31-NASS/matlab/test-bench-vibration-table/vibration-table.org][test-bench-vibration-table]]
|
|
- [ ] *Use corrected APA parameters in the initialization script*
|
|
|
|
|
|
Suspended table EPDM: ID00/test_bench/table_dyn
|
|
*Goal of this test bench*:
|
|
- Properly mount the nano-hexapod
|
|
- Verify all is working
|
|
- Tune the complete nano-hexapod model
|
|
*Basic outline*:
|
|
1. [ ] Mounting procedure
|
|
- [ ] Goal
|
|
- [ ] Procedure
|
|
- [ ] Results
|
|
2. [ ] Suspended table:
|
|
- [ ] Goal: identify dynamics of the nano-hexapod not coupled with the outside world
|
|
- [ ] Experimental modal analysis (first mode at 700 Hz => rigid body in Simscape))
|
|
- [ ] Simscape model of the table, comparison of the obtained modes
|
|
3. [ ] Simscape model of the Nano-Hexapod? (Maybe already presented in second chapter, maybe this [[file:~/Cloud/work-projects/ID31-NASS/phd-thesis-chapters/B6-nass-design/nass-design.org::+TITLE: Nano Hexapod - Obtained Design][document]])
|
|
Yes, but now the model is updated with the tuned models of the APA, Flexible joints, etc..
|
|
4. [ ] Nano-Hexapod Dynamics
|
|
- Identified dynamics
|
|
- Comparison with the simscape model
|
|
- Effect of the payload mass
|
|
|
|
Maybe the rest is not so interesting here as it will be presented again in the next sections.
|
|
- Robust Integral Force Feedback (LAC)
|
|
- High Authority Controller HAC
|
|
- Decoupling Strategy
|
|
|
|
** TODO [#C] See if the FEM in Simscape can model the struts modes
|
|
** TODO [#C] Add nice pictures
|
|
|
|
[[file:~/Cloud/pictures/work/nano-hexapod/vibration-table]]
|
|
|
|
** TODO [#B] If possible, correlate the modal analysis with FEM
|
|
|
|
This could just be used to show that experimental measure of the flexible mode of the top plate has been done:
|
|
- [X] *This test was made using encoder fixed to the struts, is it relevant to put it here?*
|
|
- [ ] Also compare with the FEM
|
|
- [[file:/home/thomas/Cloud/work-projects/ID31-NASS/nass-fem/Assembly 20201020/Modal t=0.50mm]]
|
|
- [[file:/home/thomas/Cloud/work-projects/ID31-NASS/nass-fem/GitLab_nass-fem/dynamic-modal/assy-hexapod-20201022/t_0.25mm]]
|
|
- [[file:/home/thomas/Cloud/work-projects/ID31-NASS/nass-fem/GitLab_nass-fem/dynamic-modal/assy-hexapod-20201022/t_0.5mm]]
|
|
- [[file:/home/thomas/Cloud/work-projects/ID31-NASS/nass-fem/GitLab_nass-fem/plateau-superelement]]
|
|
|
|
** DONE [#B] Proper analysis of the identified dynamics
|
|
CLOSED: [2024-10-28 Mon 11:13]
|
|
|
|
- [ ] Top plate flexible modes (2 modes)
|
|
- [ ] Modes of the encoder supports
|
|
- [ ] ...
|
|
|
|
** TODO [#C] Remove un-used matlab scripts and src files
|
|
|
|
** DONE [#B] Make nice subfigures for identified modes
|
|
CLOSED: [2024-10-27 Sun 15:58] SCHEDULED: <2024-10-26 Sat>
|
|
|
|
Maybe try to do similar thing as for the micro station: [[file:~/Cloud/work-projects/ID31-NASS/phd-thesis-chapters/A3-micro-station-modal-analysis/mode_shapes-gif-to-jpg/gen_mode_1.sh]]
|
|
|
|
- [X] Table: 6 rigid body modes + 3 flexible modes
|
|
[[file:figs/modal-analysis-table]]
|
|
- [X] Nano hexapod: 6 rigid body modes + 2 flexible modes
|
|
[[file:figs/modal-analysis-hexapod]]
|
|
|
|
** DONE [#A] Update the default APA parameters to have good match
|
|
CLOSED: [2024-10-26 Sat 15:25]
|
|
|
|
initializeNanoHexapodFinal
|
|
|
|
#+begin_src matlab
|
|
args.actuator_k (6,1) double {mustBeNumeric, mustBePositive} = ones(6,1)*380000
|
|
args.actuator_ke (6,1) double {mustBeNumeric, mustBePositive} = ones(6,1)*4952605
|
|
args.actuator_ka (6,1) double {mustBeNumeric, mustBePositive} = ones(6,1)*2476302
|
|
args.actuator_c (6,1) double {mustBeNumeric, mustBePositive} = ones(6,1)*20
|
|
args.actuator_ce (6,1) double {mustBeNumeric, mustBePositive} = ones(6,1)*200
|
|
args.actuator_ca (6,1) double {mustBeNumeric, mustBePositive} = ones(6,1)*100
|
|
#+end_src
|
|
|
|
#+begin_src matlab
|
|
%% Actuator gain [N/V]
|
|
if all(args.actuator_Ga == 0)
|
|
switch args.actuator_type
|
|
case '2dof'
|
|
nano_hexapod.actuator.Ga = ones(6,1)*(-2.5796);
|
|
case 'flexible frame'
|
|
nano_hexapod.actuator.Ga = ones(6,1); % TODO
|
|
case 'flexible'
|
|
nano_hexapod.actuator.Ga = ones(6,1)*23.2;
|
|
end
|
|
else
|
|
nano_hexapod.actuator.Ga = args.actuator_Ga; % Actuator gain [N/V]
|
|
end
|
|
|
|
%% Sensor gain [V/m]
|
|
if all(args.actuator_Gs == 0)
|
|
switch args.actuator_type
|
|
case '2dof'
|
|
nano_hexapod.actuator.Gs = ones(6,1)*466664;
|
|
case 'flexible frame'
|
|
nano_hexapod.actuator.Gs = ones(6,1); % TODO
|
|
case 'flexible'
|
|
nano_hexapod.actuator.Gs = ones(6,1)*(-4898341);
|
|
end
|
|
else
|
|
nano_hexapod.actuator.Gs = args.actuator_Gs; % Sensor gain [V/m]
|
|
end
|
|
|
|
#+end_src
|
|
|
|
** DONE [#A] Check why the model has more damping now
|
|
CLOSED: [2024-10-26 Sat 15:26]
|
|
|
|
- Probably because damping on the FJ bench was overestimated (the damping linked to the suspended mass was maybe underestimated)
|
|
|
|
** DONE [#A] Determine how to manage the Simscape model of the hexapod
|
|
CLOSED: [2024-10-26 Sat 15:26]
|
|
|
|
- git submodule?
|
|
- Maybe just copy paste the directory as it will not change a lot now
|
|
|
|
* Introduction :ignore:
|
|
|
|
In the previous section, all the struts were mounted and individually characterized.
|
|
Now the nano-hexapod is assembled using a mounting procedure described in Section ref:sec:test_nhexa_mounting.
|
|
|
|
In order to identify the dynamics of the nano-hexapod, a special suspended table is developed which consists of a stiff "optical breadboard" suspended on top of four soft springs.
|
|
The Nano-Hexapod is then fixed on top of the suspended table, such that its dynamics is not affected by complex dynamics except from the suspension modes of the table that can be well characterized and modelled (Section ref:sec:test_nhexa_table).
|
|
|
|
The obtained nano-hexapod dynamics is analyzed in Section ref:sec:test_nhexa_dynamics, and compared with the Simscape model in Section ref:sec:test_nhexa_model.
|
|
|
|
* Nano-Hexapod Assembly Procedure
|
|
<<sec:test_nhexa_mounting>>
|
|
The assembly of the nano-hexapod is quite critical to both avoid additional stress in the flexible joints (that would result in a loss of stroke) and for the precise determination of the Jacobian matrix.
|
|
The goal is to fix the six struts to the two nano-hexapod plates (shown in Figure ref:fig:test_nhexa_nano_hexapod_plates) while the two plates are parallel, aligned vertically, and such that all the flexible joints do not experience any stress.
|
|
Do to so, a precisely machined mounting tool (Figure ref:fig:test_nhexa_center_part_hexapod_mounting) is used to position the two nano-hexapod plates during the assembly procedure.
|
|
|
|
#+name: fig:test_nhexa_received_parts
|
|
#+caption: Received Nano-Hexapod plates (\subref{fig:test_nhexa_nano_hexapod_plates}) and mounting tool used to position the two plates during assembly (\subref{fig:test_nhexa_center_part_hexapod_mounting})
|
|
#+attr_latex: :options [htbp]
|
|
#+begin_figure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_nano_hexapod_plates}Received top and bottom plates}
|
|
#+attr_latex: :options {0.59\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_org: :width 800px
|
|
#+attr_latex: :height 4cm
|
|
[[file:figs/test_nhexa_nano_hexapod_plates.jpg]]
|
|
#+end_subfigure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_center_part_hexapod_mounting}Mounting tool}
|
|
#+attr_latex: :options {0.39\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_org: :width 800px
|
|
#+attr_latex: :height 4cm
|
|
[[file:figs/test_nhexa_center_part_hexapod_mounting.jpg]]
|
|
#+end_subfigure
|
|
#+end_figure
|
|
|
|
The mechanical tolerances of the received plates are checked using a FARO arm[fn:1] (Figure ref:fig:test_nhexa_plates_tolerances) and are found to comply with the requirements[fn:2].
|
|
The same is done for the mounting tool[fn:3]
|
|
The two plates are then fixed to the mounting tool as shown in Figure ref:fig:test_nhexa_mounting_tool_hexapod_top_view.
|
|
The main goal of this "mounting tool" is to position the flexible joint interfaces (the "V" shapes) of both plates such that a cylinder can rest on the 4 flat interfaces at the same time.
|
|
|
|
#+name: fig:test_nhexa_dimensional_check
|
|
#+caption: A Faro arm is used to dimensionally check the received parts (\subref{fig:test_nhexa_plates_tolerances}) and after mounting the two plates with the mounting part (\subref{fig:test_nhexa_mounting_tool_hexapod_top_view})
|
|
#+attr_latex: :options [htbp]
|
|
#+begin_figure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_plates_tolerances}Dimensional check of the bottom plate}
|
|
#+attr_latex: :options {0.49\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_org: :width 800px
|
|
#+attr_latex: :width 0.95\linewidth
|
|
[[file:figs/test_nhexa_plates_tolerances.jpg]]
|
|
#+end_subfigure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_mounting_tool_hexapod_top_view}Wanted coaxiality between interfaces}
|
|
#+attr_latex: :options {0.49\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_org: :width 800px
|
|
#+attr_latex: :width 0.95\linewidth
|
|
[[file:figs/test_nhexa_mounting_tool_hexapod_top_view.png]]
|
|
#+end_subfigure
|
|
#+end_figure
|
|
|
|
The quality of the positioning can be estimated by measuring the "straightness" of the top and bottom "V" interfaces.
|
|
This corresponds to the diameter of the smallest cylinder that contains all points of the measured axis.
|
|
This is again done using the FARO arm, and the results for all the six struts are summarized in Table ref:tab:measured_straightness.
|
|
The straightness is found to be better than $15\,\mu m$ for all the struts[fn:4], which is sufficiently good to not induce significant stress of the flexible joint during the assembly.
|
|
|
|
#+name: tab:measured_straightness
|
|
#+caption: Measured straightness between the two "V" for the six struts. These measurements are performed two times for each strut.
|
|
#+attr_latex: :environment tabularx :width 0.35\linewidth :align Xcc
|
|
#+attr_latex: :center t :booktabs t
|
|
| *Strut* | *Meas 1* | *Meas 2* |
|
|
|---------+--------------+--------------|
|
|
| 1 | $7\,\mu m$ | $3\, \mu m$ |
|
|
| 2 | $11\, \mu m$ | $11\, \mu m$ |
|
|
| 3 | $15\, \mu m$ | $14\, \mu m$ |
|
|
| 4 | $6\, \mu m$ | $6\, \mu m$ |
|
|
| 5 | $7\, \mu m$ | $5\, \mu m$ |
|
|
| 6 | $6\, \mu m$ | $7\, \mu m$ |
|
|
|
|
The encoder rulers and heads are then fixed to the top and bottom plates respectively (Figure ref:fig:test_nhexa_mount_encoder).
|
|
The encoder heads are then aligned to maximize the received contrast.
|
|
|
|
# 1. Fix the bottom plate with the cylindrical tool
|
|
# 2. Put the top plate on the granite
|
|
# 3. Put the cylindrical tool and bottom plate on top of the top plate (Figure ref:fig:test_nhexa_mounting_tool_hexapod_bot_view).
|
|
# This position the bottom plate with respect to the top plate in X, Y, Z, Rx, Ry
|
|
# 4. Put the pin to position/fix the Rz.
|
|
# Now the two plates should be position and clamped together
|
|
# 5. Verify the coaxiality between the flexible joint interfaces
|
|
# 6. Fix the 6 encoder heads and rulers
|
|
# 7. Fix the 6 struts
|
|
# 8. Remove the pin and the mounting spacer
|
|
|
|
#+name: fig:test_nhexa_mount_encoder
|
|
#+caption: Mounting of the encoders to the Nano-hexapod. The rulers are fixed to the top plate (\subref{fig:test_nhexa_mount_encoder_rulers}) while the encoders heads are fixed to the botom plate (\subref{fig:test_nhexa_mount_encoder_heads})
|
|
#+attr_latex: :options [htbp]
|
|
#+begin_figure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_mount_encoder_rulers}Encoder rulers}
|
|
#+attr_latex: :options {0.49\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_org: :width 800px
|
|
#+attr_latex: :width 0.95\linewidth
|
|
[[file:figs/test_nhexa_mount_encoder_rulers.jpg]]
|
|
#+end_subfigure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_mount_encoder_heads}Encoder heads}
|
|
#+attr_latex: :options {0.49\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_org: :width 800px
|
|
#+attr_latex: :width 0.95\linewidth
|
|
[[file:figs/test_nhexa_mount_encoder_heads.jpg]]
|
|
#+end_subfigure
|
|
#+end_figure
|
|
|
|
The six struts are then fixed to the bottom and top plates one by one.
|
|
First the top flexible joint is fixed such that its flat reference surface is in contact with the top plate.
|
|
This is to precisely known the position of the flexible joint with respect to the top plate.
|
|
Then the bottom flexible joint is fixed.
|
|
After all six struts are mounted, the mounting tool (Figure ref:fig:test_nhexa_center_part_hexapod_mounting) can be disassembled, and the fully mounted nano-hexapod as shown in Figure ref:fig:test_nhexa_nano_hexapod_mounted is obtained.
|
|
|
|
#+name: fig:test_nhexa_nano_hexapod_mounted
|
|
#+caption: Mounted Nano-Hexapod
|
|
#+attr_org: :width 800px
|
|
#+attr_latex: :width \linewidth
|
|
[[file:figs/test_nhexa_mounted_hexapod.jpg]]
|
|
|
|
* Suspended Table
|
|
:PROPERTIES:
|
|
:header-args:matlab+: :tangle matlab/test_nhexa_1_suspended_table.m
|
|
:END:
|
|
<<sec:test_nhexa_table>>
|
|
** Introduction
|
|
|
|
When a dynamical system is fixed to a support (such as a granite or an optical table), its dynamics will couple to the support dynamics.
|
|
This may results in additional modes appearing in the system dynamics, which are difficult to predict and model.
|
|
Two prevent this issue, strategy adopted here is to mount the nano-hexapod on top a suspended table with low frequency suspension modes.
|
|
|
|
In such a case, the modes of the suspended table are chosen to be at much lower frequency than those of the nano-hexapod such that they are well decoupled.
|
|
An other key advantage is that the suspension modes of the suspended table can be easily modelled using Simscape.
|
|
Therefore, the measured dynamics of the nano-hexapod on top of the suspended table can be compared to a simscape model representing the same experimental conditions.
|
|
The model of the Nano-Hexapod can thus be precisely tuned to match the measured dynamics.
|
|
|
|
The developed suspended table is presented in Section ref:ssec:test_nhexa_table_setup.
|
|
The modal analysis of the table is done in ref:ssec:test_nhexa_table_identification.
|
|
Finally, the Simscape model representing the suspended table is tuned to match the measured modes (Section ref:ssec:test_nhexa_table_model).
|
|
|
|
** Matlab Init :noexport:ignore:
|
|
#+begin_src matlab
|
|
%% test_nhexa_table.m
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :exports none :results silent :noweb yes :var current_dir=(file-name-directory buffer-file-name)
|
|
<<matlab-dir>>
|
|
#+end_src
|
|
|
|
#+begin_src matlab :exports none :results silent :noweb yes
|
|
<<matlab-init>>
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :noweb yes
|
|
<<m-init-path>>
|
|
#+end_src
|
|
|
|
#+begin_src matlab :eval no :noweb yes
|
|
<<m-init-path-tangle>>
|
|
#+end_src
|
|
|
|
#+begin_src matlab :noweb yes
|
|
<<m-init-simscape>>
|
|
#+end_src
|
|
|
|
#+begin_src matlab :noweb yes
|
|
<<m-init-other>>
|
|
#+end_src
|
|
|
|
** Experimental Setup
|
|
<<ssec:test_nhexa_table_setup>>
|
|
|
|
The design of the suspended table is quite straightforward.
|
|
First, an optical table with high frequency flexible mode was selected[fn:5].
|
|
Then, four springs[fn:6] were selected with low enough spring rate such that the suspension modes are below 10Hz.
|
|
Finally, some interface elements were designed, and mechanical lateral mechanical stops were added (Figure ref:fig:test_nhexa_suspended_table_cad).
|
|
|
|
#+name: fig:test_nhexa_suspended_table_cad
|
|
#+caption: CAD View of the vibration table. Purple cylinders are representing the soft springs.
|
|
#+attr_latex: :width 0.7\linewidth
|
|
[[file:figs/test_nhexa_suspended_table_cad.jpg]]
|
|
|
|
** Modal analysis of the suspended table
|
|
<<ssec:test_nhexa_table_identification>>
|
|
|
|
In order to perform a modal analysis of the suspended table, a total of 15 3-axis accelerometers[fn:7] were fixed to the breadboard.
|
|
Using an instrumented hammer, the first 9 modes could be identified and are summarized in Table ref:tab:test_nhexa_suspended_table_modes.
|
|
The first 6 modes are suspension modes (i.e. rigid body mode of the breadboard) and are located below 10Hz.
|
|
The next modes are flexible modes of the breadboard as shown in Figure ref:fig:test_nhexa_table_flexible_modes, and located above 700Hz.
|
|
|
|
#+attr_latex: :options [t]{0.45\linewidth}
|
|
#+begin_minipage
|
|
#+name: fig:test_nhexa_suspended_table
|
|
#+caption: Mounted suspended table. Only 1 or the 15 accelerometer is mounted on top
|
|
#+attr_latex: :width 0.99\linewidth :float nil
|
|
[[file:figs/test_nhexa_suspended_table.jpg]]
|
|
#+end_minipage
|
|
\hfill
|
|
#+attr_latex: :options [b]{0.45\linewidth}
|
|
#+begin_minipage
|
|
#+begin_scriptsize
|
|
#+name: tab:test_nhexa_suspended_table_modes
|
|
#+caption: Obtained modes of the suspended table
|
|
#+attr_latex: :environment tabularx :width 0.9\linewidth :placement [b] :align clX
|
|
#+attr_latex: :booktabs t :float nil :center t
|
|
#+RESULTS:
|
|
| *Modes* | *Frequency* | *Description* |
|
|
|---------+-------------+------------------|
|
|
| 1,2 | 1.3 Hz | X-Y translations |
|
|
| 3 | 2.0 Hz | Z rotation |
|
|
| 4 | 6.9 Hz | Z translation |
|
|
| 5,6 | 9.5 Hz | X-Y rotations |
|
|
|---------+-------------+------------------|
|
|
| 7 | 701 Hz | "Membrane" Mode |
|
|
| 8 | 989 Hz | Complex mode |
|
|
| 9 | 1025 Hz | Complex mode |
|
|
#+end_scriptsize
|
|
#+end_minipage
|
|
|
|
|
|
#+name: fig:test_nhexa_table_flexible_modes
|
|
#+caption: Three identified flexible modes of the suspended table
|
|
#+attr_latex: :options [htbp]
|
|
#+begin_figure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_table_flexible_mode_1}Flexible mode at 701Hz}
|
|
#+attr_latex: :options {\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_latex: :width \linewidth
|
|
[[file:figs/test_nhexa_table_flexible_mode_1.jpg]]
|
|
#+end_subfigure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_table_flexible_mode_2}Flexible mode at 989Hz}
|
|
#+attr_latex: :options {\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_latex: :width \linewidth
|
|
[[file:figs/test_nhexa_table_flexible_mode_2.jpg]]
|
|
#+end_subfigure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_table_flexible_mode_3}Flexible mode at 1025Hz}
|
|
#+attr_latex: :options {\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_latex: :width \linewidth
|
|
[[file:figs/test_nhexa_table_flexible_mode_3.jpg]]
|
|
#+end_subfigure
|
|
#+end_figure
|
|
|
|
** Simscape Model of the suspended table
|
|
<<ssec:test_nhexa_table_model>>
|
|
|
|
The Simscape model of the suspended table simply consists of two solid bodies connected by 4 springs.
|
|
The 4 springs are here modelled with "bushing joints" that have stiffness and damping properties in x, y and z directions.
|
|
The 3D representation of the model is displayed in Figure ref:fig:test_nhexa_suspended_table_simscape where the 4 "bushing joints" are represented by the blue cylinders.
|
|
|
|
#+name: fig:test_nhexa_suspended_table_simscape
|
|
#+caption: 3D representation of the simscape model
|
|
#+attr_latex: :width 0.8\linewidth
|
|
[[file:figs/test_nhexa_suspended_table_simscape.png]]
|
|
|
|
The model order is 12, and it represents the 6 suspension modes.
|
|
The inertia properties of the parts are set from the geometry and material densities.
|
|
The stiffness of the springs was initially set from the datasheet nominal value of $17.8\,N/mm$ and then reduced down to $14\,N/mm$ to better match the measured suspension modes.
|
|
The stiffness of the springs in the horizontal plane is set at $0.5\,N/mm$.
|
|
The obtained suspension modes of the simscape model are compared with the measured ones in Table ref:tab:test_nhexa_suspended_table_simscape_modes.
|
|
|
|
#+begin_src matlab
|
|
%% Configure Simscape Model
|
|
table_type = 'Suspended'; % On top of vibration table
|
|
device_type = 'None'; % No device on the vibration table
|
|
payload_num = 0; % No Payload
|
|
|
|
%% Input/Output definition
|
|
clear io; io_i = 1;
|
|
io(io_i) = linio([mdl, '/F'], 1, 'openinput'); io_i = io_i + 1;
|
|
io(io_i) = linio([mdl, '/F_v'], 1, 'openoutput'); io_i = io_i + 1;
|
|
|
|
%% Run the linearization
|
|
G = linearize(mdl, io);
|
|
G.InputName = {'Fx', 'Fy', 'Fz', 'Mx', 'My', 'Mz'};
|
|
G.OutputName = {'Vdx', 'Vdy', 'Vdz', 'Vrx', 'Vry', 'Vrz'};
|
|
|
|
%% Compute the resonance frequencies
|
|
ws = eig(G.A);
|
|
ws = ws(imag(ws) > 0);
|
|
#+end_src
|
|
|
|
#+name: tab:test_nhexa_suspended_table_simscape_modes
|
|
#+caption: Comparison of the identified suspension modes with the Simscape model and measured experimentally
|
|
#+attr_latex: :environment tabularx :width 0.6\linewidth :align Xcccc
|
|
#+attr_latex: :center t :booktabs t
|
|
| Directions | $D_x$, $D_y$ | $R_z$ | $D_z$ | $R_x$, $R_y$ |
|
|
|--------------+--------------+--------+--------+--------------|
|
|
| Experimental | 1.3 Hz | 2.0 Hz | 6.9 Hz | 9.5 Hz |
|
|
| Simscape | 1.3 Hz | 1.8 Hz | 6.8 Hz | 9.5 Hz |
|
|
|
|
** Conclusion
|
|
:PROPERTIES:
|
|
:UNNUMBERED: t
|
|
:END:
|
|
|
|
In this section, a suspended table with low frequency suspension modes and high frequency flexible modes was presented.
|
|
This suspended table will be used in Section ref:sec:test_nhexa_dynamics for dynamical identification of the Nano-Hexapod.
|
|
The objective is to be able to accurately identify the dynamics of the nano-hexapod, isolated from complex support dynamics.
|
|
The key point of this strategy is to be able to accurately model the suspended table.
|
|
|
|
To do so, a modal analysis of the suspended table was performed in Section ref:ssec:test_nhexa_table_identification, validating the low frequency suspension modes and high frequency flexible modes.
|
|
Then, a multi-body model of this suspended table was tuned to match with the measurements (Section ref:ssec:test_nhexa_table_model).
|
|
|
|
* Nano-Hexapod Measured Dynamics
|
|
:PROPERTIES:
|
|
:header-args:matlab+: :tangle matlab/test_nhexa_2_dynamics.m
|
|
:END:
|
|
<<sec:test_nhexa_dynamics>>
|
|
|
|
** Introduction :ignore:
|
|
|
|
The Nano-Hexapod is then mounted on top of the suspended table as shown in Figure ref:fig:test_nhexa_hexa_suspended_table.
|
|
All the instrumentation (Speedgoat with ADC, DAC, piezoelectric voltage amplifiers and digital interfaces for the encoder) are setup and connected to the nano-hexapod using many cables.
|
|
|
|
#+name: fig:test_nhexa_hexa_suspended_table
|
|
#+caption: Mounted Nano-Hexapod on top of the suspended table
|
|
#+attr_latex: :width 0.7\linewidth
|
|
[[file:figs/test_nhexa_hexa_suspended_table.jpg]]
|
|
|
|
A modal analysis of the nano-hexapod is first performed in Section ref:ssec:test_nhexa_enc_struts_modal_analysis.
|
|
It will be used to better understand the measured dynamics from actuators to sensors.
|
|
|
|
A block diagram schematic of the (open-loop) system is shown in Figure ref:fig:test_nhexa_nano_hexapod_signals.
|
|
The transfer function from controlled signals $\mathbf{u}$ to the force sensors voltages $\mathbf{V}_s$ and to the encoders measured displacements $\mathbf{d}_e$ are identified in Section ref:ssec:test_nhexa_identification.
|
|
The effect of the payload mass on the dynamics is studied in Section ref:ssec:test_nhexa_added_mass.
|
|
|
|
#+begin_src latex :file test_nhexa_nano_hexapod_signals.pdf
|
|
\definecolor{instrumentation}{rgb}{0, 0.447, 0.741}
|
|
\definecolor{mechanics}{rgb}{0.8500, 0.325, 0.098}
|
|
|
|
\begin{tikzpicture}
|
|
% Blocs
|
|
\node[block={4.0cm}{3.0cm}, fill=mechanics!20!white] (nano_hexapod) {Mechanics};
|
|
\coordinate[] (inputF) at (nano_hexapod.west);
|
|
\coordinate[] (outputL) at ($(nano_hexapod.south east)!0.8!(nano_hexapod.north east)$);
|
|
\coordinate[] (outputF) at ($(nano_hexapod.south east)!0.2!(nano_hexapod.north east)$);
|
|
|
|
\node[block, left= 0.8 of inputF, fill=instrumentation!20!white, align=center] (F_stack) {\tiny Actuator \\ \tiny stacks};
|
|
\node[block, left= 0.8 of F_stack, fill=instrumentation!20!white] (PD200) {PD200};
|
|
\node[DAC, left= 0.8 of PD200, fill=instrumentation!20!white] (F_DAC) {DAC};
|
|
\node[block, right=0.8 of outputF, fill=instrumentation!20!white, align=center] (Fm_stack){\tiny Sensor \\ \tiny stack};
|
|
\node[ADC, right=0.8 of Fm_stack,fill=instrumentation!20!white] (Fm_ADC) {ADC};
|
|
\node[block, right=0.8 of outputL, fill=instrumentation!20!white] (encoder) {\tiny Encoder};
|
|
|
|
% Connections and labels
|
|
\draw[->] ($(F_DAC.west)+(-0.8,0)$) node[above right]{$\mathbf{u}$} node[below right]{$[V]$} -- node[sloped]{$/$} (F_DAC.west);
|
|
\draw[->] (F_DAC.east) -- node[midway, above]{$\tilde{\mathbf{u}}$}node[midway, below]{$[V]$} (PD200.west);
|
|
\draw[->] (PD200.east) -- node[midway, above]{$\mathbf{u}_a$}node[midway, below]{$[V]$} (F_stack.west);
|
|
\draw[->] (F_stack.east) -- (inputF) node[above left]{$\mathbf{\tau}$}node[below left]{$[N]$};
|
|
|
|
\draw[->] (outputF) -- (Fm_stack.west) node[above left]{$\mathbf{\epsilon}$} node[below left]{$[m]$};
|
|
\draw[->] (Fm_stack.east) -- node[midway, above]{$\tilde{\mathbf{V}}_s$}node[midway, below]{$[V]$} (Fm_ADC.west);
|
|
\draw[->] (Fm_ADC.east) -- node[sloped]{$/$} ++(0.8, 0)coordinate(end) node[above left]{$\mathbf{V}_s$}node[below left]{$[V]$};
|
|
|
|
\draw[->] (outputL) -- (encoder.west) node[above left]{$\mathbf{d}_e$} node[below left]{$[m]$};
|
|
\draw[->] (encoder.east) -- node[sloped]{$/$} (encoder-|end) node[above left]{$\mathbf{d}_{e}$}node[below left]{$[m]$};
|
|
|
|
% Nano-Hexapod
|
|
\begin{scope}[on background layer]
|
|
\node[fit={(F_stack.west|-nano_hexapod.south) (Fm_stack.east|-nano_hexapod.north)}, fill=black!20!white, draw, inner sep=2pt] (system) {};
|
|
\node[above] at (system.north) {Nano-Hexapod};
|
|
\end{scope}
|
|
\end{tikzpicture}
|
|
#+end_src
|
|
|
|
#+name: fig:test_nhexa_nano_hexapod_signals
|
|
#+caption: Block diagram of the system. Command signal generated by the speedgoat is $\mathbf{u}$, the measured dignals are $\mathbf{d}_{e}$ and $\mathbf{V}_s$. Units are indicated in square brackets.
|
|
#+attr_latex: :scale 1
|
|
#+RESULTS:
|
|
[[file:figs/test_nhexa_nano_hexapod_signals.png]]
|
|
|
|
** Matlab Init :noexport:ignore:
|
|
#+begin_src matlab
|
|
%% test_nhexa_dynamics.m
|
|
% Identification of the nano-hexapod dynamics from u to dL and to Vs
|
|
% Encoders are fixed to the plates
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :exports none :results silent :noweb yes :var current_dir=(file-name-directory buffer-file-name)
|
|
<<matlab-dir>>
|
|
#+end_src
|
|
|
|
#+begin_src matlab :exports none :results silent :noweb yes
|
|
<<matlab-init>>
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :noweb yes
|
|
<<m-init-path>>
|
|
#+end_src
|
|
|
|
#+begin_src matlab :eval no :noweb yes
|
|
<<m-init-path-tangle>>
|
|
#+end_src
|
|
|
|
#+begin_src matlab :noweb yes
|
|
<<m-init-other>>
|
|
#+end_src
|
|
|
|
** Modal analysis
|
|
<<ssec:test_nhexa_enc_struts_modal_analysis>>
|
|
|
|
In order to ease the future analysis of the measured plant dynamics, a basic modal analysis of the nano-hexapod is performed.
|
|
Five 3-axis accelerometers are fixed on the top platform of the nano-hexapod (Figure ref:fig:test_nhexa_modal_analysis) and the top platform is excited using an instrumented hammer.
|
|
|
|
#+name: fig:test_nhexa_modal_analysis
|
|
#+caption: Five accelerometers fixed on top of the nano-hexapod to perform a modal analysis
|
|
#+attr_latex: :width 0.7\linewidth
|
|
[[file:figs/test_nhexa_modal_analysis.jpg]]
|
|
|
|
Between 100Hz and 200Hz, 6 suspension modes (i.e. rigid body modes of the top platform) are identified.
|
|
At around 700Hz, two flexible modes of the top plate are observed (see Figure ref:fig:test_nhexa_hexa_flexible_modes).
|
|
These modes are summarized in Table ref:tab:test_nhexa_hexa_modal_modes_list.
|
|
|
|
#+name: tab:test_nhexa_hexa_modal_modes_list
|
|
#+caption: Description of the identified modes of the Nano-Hexapod
|
|
#+attr_latex: :environment tabularx :width 0.7\linewidth :align ccX
|
|
#+attr_latex: :center t :booktabs t
|
|
| *Mode* | *Frequency* | *Description* |
|
|
|--------+-------------+----------------------------------------------|
|
|
| 1 | 120 Hz | Suspension Mode: Y-translation |
|
|
| 2 | 120 Hz | Suspension Mode: X-translation |
|
|
| 3 | 145 Hz | Suspension Mode: Z-translation |
|
|
| 4 | 165 Hz | Suspension Mode: Y-rotation |
|
|
| 5 | 165 Hz | Suspension Mode: X-rotation |
|
|
| 6 | 190 Hz | Suspension Mode: Z-rotation |
|
|
| 7 | 692 Hz | (flexible) Membrane mode of the top platform |
|
|
| 8 | 709 Hz | Second flexible mode of the top platform |
|
|
|
|
#+name: fig:test_nhexa_hexa_flexible_modes
|
|
#+caption: Two identified flexible modes of the top plate of the Nano-Hexapod
|
|
#+attr_latex: :options [htbp]
|
|
#+begin_figure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_hexa_flexible_mode_1}Flexible mode at 692Hz}
|
|
#+attr_latex: :options {\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_latex: :width \linewidth
|
|
[[file:figs/test_nhexa_hexa_flexible_mode_1.jpg]]
|
|
#+end_subfigure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_hexa_flexible_mode_2}Flexible mode at 709Hz}
|
|
#+attr_latex: :options {\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_latex: :width \linewidth
|
|
[[file:figs/test_nhexa_hexa_flexible_mode_2.jpg]]
|
|
#+end_subfigure
|
|
#+end_figure
|
|
|
|
** Identification of the dynamics
|
|
<<ssec:test_nhexa_identification>>
|
|
|
|
The dynamics of the nano-hexapod from the six command signals ($u_1$ to $u_6$) the six measured displacement by the encoders ($d_{e1}$ to $d_{e6}$) and to the six force sensors ($V_{s1}$ to $V_{s6}$) are identified by generating a low pass filtered white noise for each of the command signals, one by one.
|
|
|
|
The $6 \times 6$ FRF matrix from $\mathbf{u}$ ot $\mathbf{d}_e$ is shown in Figure ref:fig:test_nhexa_identified_frf_de.
|
|
The diagonal terms are displayed using colorful lines, and all the 30 off-diagonal terms are displayed by grey lines.
|
|
|
|
All the six diagonal terms are well superimposed up to at least $1\,kHz$, indicating good manufacturing and mounting uniformity.
|
|
Below the first suspension mode, good decoupling can be observed (the amplitude of the all of off-diagonal terms are $\approx 20$ times smaller than the diagonal terms).
|
|
|
|
From 10Hz up to 1kHz, around 10 resonance frequencies can be observed.
|
|
The first 4 are suspension modes (at 122Hz, 143Hz, 165Hz and 191Hz) which correlate the modes measured during the modal analysis in Section ref:ssec:test_nhexa_enc_struts_modal_analysis.
|
|
Then, three modes at 237Hz, 349Hz and 395Hz are attributed to the internal strut resonances (this will be checked in Section ref:ssec:test_nhexa_comp_model_coupling).
|
|
Except the mode at 237Hz, their amplitude is rather low.
|
|
Two modes at 665Hz and 695Hz are attributed to the flexible modes of the top platform.
|
|
Other modes can be observed above 1kHz, which can be attributed to flexible modes of the encoder supports or to flexible modes of the top platform.
|
|
|
|
Up to at least 1kHz, an alternating pole/zero pattern is observed, which renders the control easier to tune.
|
|
This would not have been the case if the encoders were fixed to the struts.
|
|
|
|
#+begin_src matlab
|
|
%% Load identification data
|
|
load('test_nhexa_identification_data_mass_0.mat', 'data');
|
|
|
|
%% Setup useful variables
|
|
Ts = 1e-4; % Sampling Time [s]
|
|
Nfft = floor(1/Ts); % Number of points for the FFT computation
|
|
win = hanning(Nfft); % Hanning window
|
|
Noverlap = floor(Nfft/2); % Overlap between frequency analysis
|
|
|
|
% And we get the frequency vector
|
|
[~, f] = tfestimate(data{1}.u, data{1}.de, win, Noverlap, Nfft, 1/Ts);
|
|
|
|
%% Transfer function from u to dLm
|
|
G_de = zeros(length(f), 6, 6);
|
|
|
|
for i = 1:6
|
|
G_de(:,:,i) = tfestimate(data{i}.u, data{i}.de, win, Noverlap, Nfft, 1/Ts);
|
|
end
|
|
|
|
%% Transfer function from u to Vs
|
|
G_Vs = zeros(length(f), 6, 6);
|
|
|
|
for i = 1:6
|
|
G_Vs(:,:,i) = tfestimate(data{i}.u, data{i}.Vs, win, Noverlap, Nfft, 1/Ts);
|
|
end
|
|
#+end_src
|
|
|
|
#+begin_src matlab :exports none
|
|
%% Bode plot for the transfer function from u to dLm
|
|
figure;
|
|
tiledlayout(3, 1, 'TileSpacing', 'Compact', 'Padding', 'None');
|
|
|
|
ax1 = nexttile([2,1]);
|
|
hold on;
|
|
for i = 1:5
|
|
for j = i+1:6
|
|
plot(f, abs(G_de(:, i, j)), 'color', [0, 0, 0, 0.2], ...
|
|
'HandleVisibility', 'off');
|
|
end
|
|
end
|
|
for i =1:6
|
|
set(gca,'ColorOrderIndex',i)
|
|
plot(f, abs(G_de(:,i, i)), ...
|
|
'DisplayName', sprintf('$d_{e,%i}/u_%i$', i, i));
|
|
end
|
|
plot(f, abs(G_de(:, 1, 2)), 'color', [0, 0, 0, 0.2], ...
|
|
'DisplayName', '$d_{e,i}/u_j$');
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
ylabel('Amplitude [m/V]'); set(gca, 'XTickLabel',[]);
|
|
ylim([1e-8, 5e-4]);
|
|
leg = legend('location', 'southwest', 'FontSize', 8, 'NumColumns', 4);
|
|
leg.ItemTokenSize(1) = 15;
|
|
|
|
ax2 = nexttile;
|
|
hold on;
|
|
for i =1:6
|
|
set(gca,'ColorOrderIndex',i)
|
|
plot(f, 180/pi*angle(G_de(:,i, i)));
|
|
end
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'lin');
|
|
xlabel('Frequency [Hz]'); ylabel('Phase [deg]');
|
|
hold off;
|
|
yticks(-360:90:360);
|
|
|
|
linkaxes([ax1,ax2],'x');
|
|
xlim([10, 2e3]);
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :exports results :results file replace
|
|
exportFig('figs/test_nhexa_identified_frf_de.pdf', 'width', 'wide', 'height', 600);
|
|
#+end_src
|
|
|
|
#+name: fig:test_nhexa_identified_frf_de
|
|
#+caption: Measured FRF for the transfer function from $\mathbf{u}$ to $\mathbf{d}_e$. The 6 diagonal terms are the colorfull lines (all superimposed), and the 30 off-diagonal terms are the shaded black lines.
|
|
#+RESULTS:
|
|
[[file:figs/test_nhexa_identified_frf_de.png]]
|
|
|
|
|
|
Similarly, the $6 \times 6$ FRF matrix from $\mathbf{u}$ to $\mathbf{V}_s$ is shown in Figure ref:fig:test_nhexa_identified_frf_Vs.
|
|
Alternating poles and zeros is observed up to at least 2kHz, which is a necessary characteristics in order to apply decentralized IFF.
|
|
Similar to what was observed for the encoder outputs, all the "diagonal" terms are well superimposed, indicating that the same controller can be applied for all the struts.
|
|
The first flexible mode of the struts as 235Hz is appearing, and therefore is should be possible to add some damping to this mode using IFF.
|
|
|
|
#+begin_src matlab :exports none
|
|
%% Bode plot of the IFF Plant (transfer function from u to Vs)
|
|
figure;
|
|
tiledlayout(3, 1, 'TileSpacing', 'Compact', 'Padding', 'None');
|
|
|
|
ax1 = nexttile([2,1]);
|
|
hold on;
|
|
for i = 1:5
|
|
for j = i+1:6
|
|
plot(f, abs(G_Vs(:, i, j)), 'color', [0, 0, 0, 0.2], ...
|
|
'HandleVisibility', 'off');
|
|
end
|
|
end
|
|
for i =1:6
|
|
set(gca,'ColorOrderIndex',i)
|
|
plot(f, abs(G_Vs(:,i , i)), ...
|
|
'DisplayName', sprintf('$V_{s%i}/u_%i$', i, i));
|
|
end
|
|
plot(f, abs(G_Vs(:, 1, 2)), 'color', [0, 0, 0, 0.2], ...
|
|
'DisplayName', '$V_{si}/u_j$');
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
ylabel('Amplitude [V/V]'); set(gca, 'XTickLabel',[]);
|
|
leg = legend('location', 'southeast', 'FontSize', 8, 'NumColumns', 4);
|
|
leg.ItemTokenSize(1) = 15;
|
|
ylim([1e-3, 6e1]);
|
|
|
|
ax2 = nexttile;
|
|
hold on;
|
|
for i =1:6
|
|
set(gca,'ColorOrderIndex',i)
|
|
plot(f, 180/pi*angle(G_Vs(:,i, i)));
|
|
end
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'lin');
|
|
xlabel('Frequency [Hz]'); ylabel('Phase [deg]');
|
|
hold off;
|
|
yticks(-360:90:360);
|
|
|
|
linkaxes([ax1,ax2],'x');
|
|
xlim([10, 2e3]);
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :exports results :results file replace
|
|
exportFig('figs/test_nhexa_identified_frf_Vs.pdf', 'width', 'wide', 'height', 600);
|
|
#+end_src
|
|
|
|
#+name: fig:test_nhexa_identified_frf_Vs
|
|
#+caption: Measured FRF for the transfer function from $\mathbf{u}$ to $\mathbf{V}_s$. The 6 diagonal terms are the colorfull lines (all superimposed), and the 30 off-diagonal terms are the shaded black lines.
|
|
#+RESULTS:
|
|
[[file:figs/test_nhexa_identified_frf_Vs.png]]
|
|
|
|
** Effect of payload mass on the dynamics
|
|
<<ssec:test_nhexa_added_mass>>
|
|
|
|
As one major challenge in the control of the NASS is the wanted robustness to change of payload mass, it is necessary to understand how the dynamics of the nano-hexapod changes with a change of payload mass.
|
|
|
|
In order to study this change of dynamics with the payload mass, up to three "cylindrical masses" of $13\,kg$ each can be added for a total of $\approx 40\,kg$.
|
|
These three cylindrical masses on top of the nano-hexapod are shown in Figure ref:fig:test_nhexa_table_mass_3.
|
|
|
|
#+name: fig:test_nhexa_table_mass_3
|
|
#+caption: Picture of the nano-hexapod with the added three cylindrical masses for a total of $\approx 40\,kg$
|
|
#+attr_org: :width 800px
|
|
#+attr_latex: :width 0.8\linewidth
|
|
[[file:figs/test_nhexa_table_mass_3.jpg]]
|
|
|
|
#+begin_src matlab
|
|
%% Load identification Data
|
|
meas_added_mass = {...
|
|
load('test_nhexa_identification_data_mass_0.mat', 'data'), ....
|
|
load('test_nhexa_identification_data_mass_1.mat', 'data'), ....
|
|
load('test_nhexa_identification_data_mass_2.mat', 'data'), ....
|
|
load('test_nhexa_identification_data_mass_3.mat', 'data')};
|
|
|
|
%% Setup useful variables
|
|
Ts = 1e-4; % Sampling Time [s]
|
|
Nfft = floor(1/Ts); % Number of points for the FFT computation
|
|
win = hanning(Nfft); % Hanning window
|
|
Noverlap = floor(Nfft/2); % Overlap between frequency analysis
|
|
|
|
% And we get the frequency vector
|
|
[~, f] = tfestimate(meas_added_mass{1}.data{1}.u, meas_added_mass{1}.data{1}.de, win, Noverlap, Nfft, 1/Ts);
|
|
|
|
G_de = {};
|
|
|
|
for i_mass = [0:3]
|
|
G_de(i_mass+1) = {zeros(length(f), 6, 6)};
|
|
for i_strut = 1:6
|
|
G_de{i_mass+1}(:,:,i_strut) = tfestimate(meas_added_mass{i_mass+1}.data{i_strut}.u, meas_added_mass{i_mass+1}.data{i_strut}.de, win, Noverlap, Nfft, 1/Ts);
|
|
end
|
|
end
|
|
|
|
%% IFF Plant (transfer function from u to Vs)
|
|
G_Vs = {};
|
|
|
|
for i_mass = [0:3]
|
|
G_Vs(i_mass+1) = {zeros(length(f), 6, 6)};
|
|
for i_strut = 1:6
|
|
G_Vs{i_mass+1}(:,:,i_strut) = tfestimate(meas_added_mass{i_mass+1}.data{i_strut}.u, meas_added_mass{i_mass+1}.data{i_strut}.Vs, win, Noverlap, Nfft, 1/Ts);
|
|
end
|
|
end
|
|
#+end_src
|
|
|
|
The identified dynamics are then saved for further use.
|
|
#+begin_src matlab :exports none :tangle no
|
|
save('matlab/mat/test_nhexa_identified_frf_masses.mat', 'f', 'G_Vs', 'G_de')
|
|
#+end_src
|
|
|
|
#+begin_src matlab :eval no
|
|
save('./mat/test_nhexa_identified_frf_masses.mat', 'f', 'G_Vs', 'G_de')
|
|
#+end_src
|
|
|
|
#+begin_src matlab :exports none
|
|
%% Load the identified transfer functions
|
|
frf_ol = load('test_nhexa_identified_frf_masses.mat', 'f', 'G_Vs', 'G_de');
|
|
#+end_src
|
|
|
|
The obtained frequency response functions from actuator signal $u_i$ to the associated encoder $d_{ei}$ for the four payload conditions (no mass, 13kg, 26kg and 39kg) are shown in Figure ref:fig:test_nhexa_identified_frf_de_masses.
|
|
As expected, the frequency of the suspension modes are decreasing with an increase of the payload mass.
|
|
The low frequency gain does not change as it is linked to the stiffness property of the nano-hexapod, and not to its mass property.
|
|
|
|
The frequencies of the two flexible modes of the top plate are first decreased a lot when the first mass is added (from $\approx 700\,Hz$ to $\approx 400\,Hz$).
|
|
This is due to the fact that the added mass is composed of two half cylinders which are not fixed together.
|
|
It therefore adds a lot of mass to the top plate without adding stiffness in one direction.
|
|
When more than one "mass layer" is added, the half cylinders are added with some angles such that rigidity are added in all directions (see how the three mass "layers" are positioned in Figure ref:fig:test_nhexa_table_mass_3).
|
|
In that case, the frequency of these flexible modes are increased.
|
|
In practice, the payload should be one solid body, and no decrease of the frequency of this flexible mode should be observed.
|
|
The apparent amplitude of the flexible mode of the strut at 237Hz becomes smaller as the payload mass is increased.
|
|
|
|
The measured FRF from $u_i$ to $V_{si}$ are shown in Figure ref:fig:test_nhexa_identified_frf_Vs_masses.
|
|
For all the tested payloads, the measured FRF always have alternating poles and zeros, indicating that IFF can be applied in a robust way.
|
|
|
|
#+begin_src matlab :exports none
|
|
%% Bode plot for the transfer function from u to dLm - Several payloads
|
|
masses = [0, 13, 26, 39];
|
|
figure;
|
|
tiledlayout(3, 1, 'TileSpacing', 'Compact', 'Padding', 'None');
|
|
|
|
ax1 = nexttile([2,1]);
|
|
hold on;
|
|
for i_mass = [0:3]
|
|
% Diagonal terms
|
|
plot(frf_ol.f, abs(frf_ol.G_de{i_mass+1}(:,1, 1)), 'color', [colors(i_mass+1,:), 0.5], ...
|
|
'DisplayName', sprintf('$d_{ei}/u_i$ - %i kg', masses(i_mass+1)));
|
|
for i = 2:6
|
|
plot(frf_ol.f, abs(frf_ol.G_de{i_mass+1}(:,i, i)), 'color', [colors(i_mass+1,:), 0.5], ...
|
|
'HandleVisibility', 'off');
|
|
end
|
|
% % Off-Diagonal terms
|
|
% for i = 1:5
|
|
% for j = i+1:6
|
|
% plot(frf_ol.f, abs(frf_ol.G_de{i_mass+1}(:,i,j)), 'color', [colors(i_mass+1,:), 0.2], ...
|
|
% 'HandleVisibility', 'off');
|
|
% end
|
|
% end
|
|
end
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
ylabel('Amplitude [m/V]'); set(gca, 'XTickLabel',[]);
|
|
ylim([1e-8, 5e-4]);
|
|
leg = legend('location', 'southwest', 'FontSize', 8, 'NumColumns', 2);
|
|
leg.ItemTokenSize(1) = 15;
|
|
|
|
ax2 = nexttile;
|
|
hold on;
|
|
for i_mass = [0:3]
|
|
for i =1:6
|
|
plot(frf_ol.f, 180/pi*angle(frf_ol.G_de{i_mass+1}(:,i, i)), 'color', [colors(i_mass+1,:), 0.5]);
|
|
end
|
|
end
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'lin');
|
|
xlabel('Frequency [Hz]'); ylabel('Phase [deg]');
|
|
hold off;
|
|
yticks(-360:90:360);
|
|
ylim([-90, 180])
|
|
|
|
linkaxes([ax1,ax2],'x');
|
|
xlim([10, 2e3]);
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :exports results :results file none
|
|
exportFig('figs/test_nhexa_identified_frf_de_masses.pdf', 'width', 'half', 'height', 600);
|
|
#+end_src
|
|
|
|
#+begin_src matlab :exports none
|
|
%% Bode plot for the transfer function from u to dLm
|
|
figure;
|
|
tiledlayout(3, 1, 'TileSpacing', 'Compact', 'Padding', 'None');
|
|
|
|
ax1 = nexttile([2,1]);
|
|
hold on;
|
|
for i_mass = [0:3]
|
|
% Diagonal terms
|
|
plot(frf_ol.f, abs(frf_ol.G_Vs{i_mass+1}(:,1, 1)), 'color', [colors(i_mass+1,:), 0.5], ...
|
|
'DisplayName', sprintf('$V_{si}/u_i$ - %i kg', masses(i_mass+1)));
|
|
for i = 2:6
|
|
plot(frf_ol.f, abs(frf_ol.G_Vs{i_mass+1}(:,i, i)), 'color', [colors(i_mass+1,:), 0.5], ...
|
|
'HandleVisibility', 'off');
|
|
end
|
|
% % Off-Diagonal terms
|
|
% for i = 1:5
|
|
% for j = i+1:6
|
|
% plot(frf_ol.f, abs(frf_ol.G_Vs{i_mass+1}(:,i,j)), 'color', [colors(i_mass+1,:), 0.2], ...
|
|
% 'HandleVisibility', 'off');
|
|
% end
|
|
% end
|
|
end
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
ylabel('Amplitude [V/V]'); set(gca, 'XTickLabel',[]);
|
|
ylim([1e-2, 1e2]);
|
|
leg = legend('location', 'southeast', 'FontSize', 8, 'NumColumns', 2);
|
|
leg.ItemTokenSize(1) = 15;
|
|
|
|
ax2 = nexttile;
|
|
hold on;
|
|
for i_mass = [0:3]
|
|
for i =1:6
|
|
plot(frf_ol.f, 180/pi*angle(frf_ol.G_Vs{i_mass+1}(:,i, i)), 'color', [colors(i_mass+1,:), 0.5]);
|
|
end
|
|
end
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'lin');
|
|
xlabel('Frequency [Hz]'); ylabel('Phase [deg]');
|
|
hold off;
|
|
yticks(-360:90:360);
|
|
|
|
linkaxes([ax1,ax2],'x');
|
|
xlim([10, 2e3]);
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :exports results :results file none
|
|
exportFig('figs/test_nhexa_identified_frf_Vs_masses.pdf', 'width', 'half', 'height', 600);
|
|
#+end_src
|
|
|
|
#+name: fig:test_struts_mounting
|
|
#+caption: Measured Frequency Response Functions from $u_i$ to $d_{ei}$ (\subref{fig:test_nhexa_identified_frf_de_masses}) and from $u_i$ to $V_{si}$ (\subref{fig:test_nhexa_identified_frf_Vs_masses}) for all 4 payload conditions. Only diagonal terms are shown.
|
|
#+attr_latex: :options [htbp]
|
|
#+begin_figure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_identified_frf_de_masses}$u_i$ to $d_{ei}$}
|
|
#+attr_latex: :options {0.49\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_latex: :width \linewidth
|
|
[[file:figs/test_nhexa_identified_frf_de_masses.png]]
|
|
#+end_subfigure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_identified_frf_Vs_masses}$u_i$ to $V_{si}$}
|
|
#+attr_latex: :options {0.49\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_latex: :width \linewidth
|
|
[[file:figs/test_nhexa_identified_frf_Vs_masses.png]]
|
|
#+end_subfigure
|
|
#+end_figure
|
|
|
|
** Conclusion
|
|
:PROPERTIES:
|
|
:UNNUMBERED: t
|
|
:END:
|
|
|
|
After the Nano-Hexapod was fixed on top of the suspended table, its dynamics was identified.
|
|
|
|
The frequency response functions from the six DAC voltages $\mathbf{u}$ to the six encoders measured displacements $\mathbf{d}_e$ displays alternating complex conjugate poles and complex conjugate zeros up to at least 1kHz.
|
|
At low frequency, the coupling is small, indicating correct assembly of all parts.
|
|
This should enables the design of a decentralized positioning controller based on the encoder for relative positioning purposes.
|
|
The suspension modes and flexible modes measured during the modal analysis (Section ref:ssec:test_nhexa_enc_struts_modal_analysis) are also observed in the dynamics.
|
|
Lot's of other modes are present above 700Hz, which will inevitably limit the achievable bandwidth.
|
|
The observed effect of the payload's mass on the dynamics is quite large, which also represent a complex control challenge.
|
|
|
|
The frequency response functions from the six DAC voltages $\mathbf{u}$ to the six force sensors voltages $\mathbf{V}_s$ all have alternating complex conjugate poles and complex conjugate zeros.
|
|
This indicates that it should be possible to implement decentralized Integral Force Feedback in a robust way.
|
|
This alternating property holds for all the tested payloads.
|
|
|
|
* Nano-Hexapod Model Dynamics
|
|
:PROPERTIES:
|
|
:header-args:matlab+: :tangle matlab/test_nhexa_3_model.m
|
|
:END:
|
|
<<sec:test_nhexa_model>>
|
|
|
|
** Introduction :ignore:
|
|
|
|
In this section, the measured dynamics done in Section ref:sec:test_nhexa_dynamics is compared with the dynamics estimated from the Simscape model.
|
|
The nano-hexapod simscape model is therefore added on top of the vibration table Simscape model as shown in Figure ref:fig:test_nhexa_hexa_simscape.
|
|
|
|
#+name: fig:test_nhexa_hexa_simscape
|
|
#+caption: 3D representation of the simscape model with the nano-hexapod on top of the suspended table. Three mass "layers" are here added
|
|
#+attr_latex: :width 0.8\linewidth
|
|
[[file:figs/test_nhexa_hexa_simscape.png]]
|
|
|
|
The model should exhibit certain characteristics that are verified in this section.
|
|
First, it should match the measured system dynamics from actuators to sensors that were presented in Section ref:sec:test_nhexa_dynamics.
|
|
Both the "direct" terms (Section ref:ssec:test_nhexa_comp_model) and "coupling" terms (Section ref:ssec:test_nhexa_comp_model_coupling) of the Simscape model are compared with the measured dynamics.
|
|
Second, it should also represents how the system dynamics changes when a payload is fixed to the top platform.
|
|
This is checked in Section ref:ssec:test_nhexa_comp_model_masses.
|
|
|
|
** Matlab Init :noexport:ignore:
|
|
#+begin_src matlab
|
|
%% test_nhexa_3_model.m
|
|
% Compare the measured dynamics from u to de and to Vs with the Simscape model
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :exports none :results silent :noweb yes :var current_dir=(file-name-directory buffer-file-name)
|
|
<<matlab-dir>>
|
|
#+end_src
|
|
|
|
#+begin_src matlab :exports none :results silent :noweb yes
|
|
<<matlab-init>>
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :noweb yes
|
|
<<m-init-path>>
|
|
#+end_src
|
|
|
|
#+begin_src matlab :eval no :noweb yes
|
|
<<m-init-path-tangle>>
|
|
#+end_src
|
|
|
|
#+begin_src matlab :noweb yes
|
|
<<m-init-simscape>>
|
|
#+end_src
|
|
|
|
#+begin_src matlab :noweb yes
|
|
<<m-init-other>>
|
|
#+end_src
|
|
|
|
** Extract transfer function matrices from the Simscape Model :noexport:
|
|
#+begin_src matlab
|
|
%% Extract the transfer function matrix from the Simscape model
|
|
% Initialization of the Simscape model
|
|
table_type = 'Suspended'; % On top of vibration table
|
|
device_type = 'Hexapod'; % Nano-Hexapod
|
|
payload_num = 0; % No Payload
|
|
|
|
n_hexapod = initializeNanoHexapodFinal('flex_bot_type', '4dof', ...
|
|
'flex_top_type', '4dof', ...
|
|
'motion_sensor_type', 'plates', ...
|
|
'actuator_type', '2dof');
|
|
|
|
% Identify the FRF matrix from u to [de,Vs]
|
|
clear io; io_i = 1;
|
|
io(io_i) = linio([mdl, '/u'], 1, 'openinput'); io_i = io_i + 1; % Actuator Inputs
|
|
io(io_i) = linio([mdl, '/de'], 1, 'openoutput'); io_i = io_i + 1; % Encoders
|
|
io(io_i) = linio([mdl, '/Vs'], 1, 'openoutput'); io_i = io_i + 1; % Encoders
|
|
|
|
G_de = {};
|
|
G_Vs = {};
|
|
|
|
for i = [0:3]
|
|
payload_num = i; % Change the payload on the nano-hexapod
|
|
G = exp(-s*1e-4)*linearize(mdl, io, 0.0);
|
|
G.InputName = {'u1', 'u2', 'u3', 'u4', 'u5', 'u6'};
|
|
G.OutputName = {'de1', 'de2', 'de3', 'de4', 'de5', 'de6', ...
|
|
'Vs1', 'Vs2', 'Vs3', 'Vs4', 'Vs5', 'Vs6'};
|
|
G_de(i+1) = {G({'de1', 'de2', 'de3', 'de4', 'de5', 'de6'},:)};
|
|
G_Vs(i+1) = {G({'Vs1', 'Vs2', 'Vs3', 'Vs4', 'Vs5', 'Vs6'},:)};
|
|
end
|
|
#+end_src
|
|
|
|
#+begin_src matlab :exports none :tangle no
|
|
% Save the identified plants
|
|
save('matlab/mat/test_nhexa_simscape_masses.mat', 'G_Vs', 'G_de')
|
|
#+end_src
|
|
|
|
#+begin_src matlab :eval no
|
|
% Save the identified plants
|
|
save('./mat/test_nhexa_simscape_masses.mat', 'G_Vs', 'G_de')
|
|
#+end_src
|
|
|
|
#+begin_src matlab
|
|
%% The same identification is performed, but this time with
|
|
% "flexible" model of the APA
|
|
table_type = 'Suspended'; % On top of vibration table
|
|
device_type = 'Hexapod'; % Nano-Hexapod
|
|
payload_num = 0; % No Payload
|
|
|
|
n_hexapod = initializeNanoHexapodFinal('flex_bot_type', '4dof', ...
|
|
'flex_top_type', '4dof', ...
|
|
'motion_sensor_type', 'plates', ...
|
|
'actuator_type', 'flexible');
|
|
|
|
G_de = {};
|
|
G_Vs = {};
|
|
|
|
for i = [0:3]
|
|
payload_num = i; % Change the payload on the nano-hexapod
|
|
G = exp(-s*1e-4)*linearize(mdl, io, 0.0);
|
|
G.InputName = {'u1', 'u2', 'u3', 'u4', 'u5', 'u6'};
|
|
G.OutputName = {'de1', 'de2', 'de3', 'de4', 'de5', 'de6', ...
|
|
'Vs1', 'Vs2', 'Vs3', 'Vs4', 'Vs5', 'Vs6'};
|
|
G_de(i+1) = {G({'de1', 'de2', 'de3', 'de4', 'de5', 'de6'},:)};
|
|
G_Vs(i+1) = {G({'Vs1', 'Vs2', 'Vs3', 'Vs4', 'Vs5', 'Vs6'},:)};
|
|
end
|
|
#+end_src
|
|
|
|
#+begin_src matlab :exports none :tangle no
|
|
% Save the identified plants
|
|
save('matlab/mat/test_nhexa_simscape_flexible_masses.mat', 'G_Vs', 'G_de')
|
|
#+end_src
|
|
|
|
#+begin_src matlab :eval no
|
|
% Save the identified plants
|
|
save('./mat/test_nhexa_simscape_flexible_masses.mat', 'G_Vs', 'G_de')
|
|
#+end_src
|
|
|
|
** Nano-Hexapod model dynamics
|
|
<<ssec:test_nhexa_comp_model>>
|
|
|
|
#+begin_src matlab :exports none
|
|
%% Load Simscape Model and measured FRF
|
|
sim_ol = load('test_nhexa_simscape_masses.mat', 'G_Vs', 'G_de');
|
|
frf_ol = load('test_nhexa_identified_frf_masses.mat', 'f', 'G_Vs', 'G_de');
|
|
#+end_src
|
|
|
|
The Simscape model of the nano-hexapod is first configured with 4-DoF flexible joints, 2-DoF APA and rigid top and bottom platforms.
|
|
The stiffness of the flexible joints are chosen based on the values estimated using the test bench and based on FEM.
|
|
The parameters of the APA model are the ones determined from the test bench of the APA.
|
|
The $6 \times 6$ transfer function matrices from $\mathbf{u}$ to $\mathbf{d}_e$ and from $\mathbf{u}$ to $\mathbf{V}_s$ are extracted then from the Simscape model.
|
|
|
|
A first feature that should be checked is that the model well represents the "direct" terms of the measured FRF matrix.
|
|
To do so, the diagonal terms of the extracted transfer function matrices are compared with the measured FRF in Figure ref:fig:test_nhexa_comp_simscape_diag.
|
|
It can be seen that the 4 suspension modes of the nano-hexapod (at 122Hz, 143Hz, 165Hz and 191Hz) are well modelled.
|
|
The three resonances that were attributed to "internal" flexible modes of the struts (at 237Hz, 349Hz and 395Hz) cannot be seen in the model, which is reasonable as the APA are here modelled as a simple uniaxial 2-DoF system.
|
|
At higher frequencies, no resonances can be seen in the model, as the as the top plate and the encoder supports are modelled as rigid bodies.
|
|
|
|
#+begin_src matlab :exports none
|
|
%% Diagonal elements of the FRF matrix from u to de
|
|
figure;
|
|
tiledlayout(3, 1, 'TileSpacing', 'Compact', 'Padding', 'None');
|
|
|
|
ax1 = nexttile([2,1]);
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{1}(:,1, 1)), 'color', [colors(1,:),0.5], ...
|
|
'DisplayName', '$d_{ei}/u_i$ - FRF')
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_de{1}(1,1), freqs, 'Hz'))), 'color', [colors(2,:),0.5], ...
|
|
'DisplayName', '$d_{ei}/u_i$ - Model')
|
|
for i = 2:6
|
|
plot(frf_ol.f, abs(frf_ol.G_de{1}(:,i, i)), 'color', [colors(1,:),0.5], ...
|
|
'HandleVisibility', 'off');
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_de{1}(i,i), freqs, 'Hz'))), 'color', [colors(2,:),0.5], ...
|
|
'HandleVisibility', 'off');
|
|
end
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
ylabel('Amplitude [m/V]'); set(gca, 'XTickLabel',[]);
|
|
ylim([1e-8, 5e-4]);
|
|
leg = legend('location', 'southwest', 'FontSize', 8, 'NumColumns', 1);
|
|
leg.ItemTokenSize(1) = 15;
|
|
|
|
ax2 = nexttile;
|
|
hold on;
|
|
for i = 1:6
|
|
plot(frf_ol.f, 180/pi*angle(frf_ol.G_de{1}(:,i, i)), 'color', [colors(1,:),0.5]);
|
|
plot(freqs, 180/pi*angle(squeeze(freqresp(sim_ol.G_de{1}(i,i), freqs, 'Hz'))), 'color', [colors(2,:),0.5]);
|
|
end
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'lin');
|
|
ylabel('Phase [deg]'); xlabel('Frequency [Hz]');
|
|
ylim([-180, 180]);
|
|
yticks([-180, -90, 0, 90, 180]);
|
|
|
|
linkaxes([ax1,ax2],'x');
|
|
xlim([freqs(1), freqs(end)]);
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :exports results :results file none
|
|
exportFig('figs/test_nhexa_comp_simscape_de_diag.pdf', 'width', 'half', 'height', 600);
|
|
#+end_src
|
|
|
|
#+begin_src matlab :exports none
|
|
%% Diagonal elements of the FRF matrix from u to Vs
|
|
figure;
|
|
tiledlayout(3, 1, 'TileSpacing', 'Compact', 'Padding', 'None');
|
|
|
|
ax1 = nexttile([2,1]);
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_Vs{1}(:,1, 1)), 'color', [colors(1,:),0.5], ...
|
|
'DisplayName', '$V_{si}/u_i$ - FRF')
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_Vs{1}(1,1), freqs, 'Hz'))), 'color', [colors(2,:), 0.5], ...
|
|
'DisplayName', '$V_{si}/u_i$ - Model')
|
|
for i = 2:6
|
|
plot(frf_ol.f, abs(frf_ol.G_Vs{1}(:,i, i)), 'color', [colors(1,:),0.5], ...
|
|
'HandleVisibility', 'off');
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_Vs{1}(i,i), freqs, 'Hz'))), 'color', [colors(2,:), 0.5], ...
|
|
'HandleVisibility', 'off');
|
|
end
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
ylabel('Amplitude [V/V]'); set(gca, 'XTickLabel',[]);
|
|
legend('location', 'southeast');
|
|
|
|
ax2 = nexttile;
|
|
hold on;
|
|
for i = 1:6
|
|
plot(frf_ol.f, 180/pi*angle(frf_ol.G_Vs{1}(:,i, i)), 'color', [colors(1,:),0.5]);
|
|
plot(freqs, 180/pi*angle(squeeze(freqresp(sim_ol.G_Vs{1}(i,i), freqs, 'Hz'))), 'color', [colors(2,:), 0.5]);
|
|
end
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'lin');
|
|
ylabel('Phase [deg]'); xlabel('Frequency [Hz]');
|
|
ylim([-180, 180]);
|
|
yticks([-180, -90, 0, 90, 180]);
|
|
|
|
linkaxes([ax1,ax2],'x');
|
|
xlim([freqs(1), freqs(end)]);
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :exports results :results file replace
|
|
exportFig('figs/test_nhexa_comp_simscape_Vs_diag.pdf', 'width', 'half', 'height', 600);
|
|
#+end_src
|
|
|
|
#+name: fig:test_nhexa_comp_simscape_diag
|
|
#+caption: Comparison of the diagonal elements (i.e. "direct" terms) of the measured FRF matrix and the identified dynamics from the Simscape model. Both for the dynamics from $u$ to $d_e$ (\subref{fig:test_nhexa_comp_simscape_de_diag}) and from $u$ to $V_s$ (\subref{fig:test_nhexa_comp_simscape_Vs_diag})
|
|
#+attr_latex: :options [htbp]
|
|
#+begin_figure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_comp_simscape_de_diag}from $u$ to $d_e$}
|
|
#+attr_latex: :options {0.49\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_latex: :width 0.95\linewidth
|
|
[[file:figs/test_nhexa_comp_simscape_de_diag.png]]
|
|
#+end_subfigure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_comp_simscape_Vs_diag}from $u$ to $V_s$}
|
|
#+attr_latex: :options {0.49\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_latex: :width 0.95\linewidth
|
|
[[file:figs/test_nhexa_comp_simscape_Vs_diag.png]]
|
|
#+end_subfigure
|
|
#+end_figure
|
|
|
|
** Modelling dynamical coupling
|
|
<<ssec:test_nhexa_comp_model_coupling>>
|
|
|
|
Another wanted feature of the model is that it well represents the coupling in the system as this is often the limiting factor for the control of MIMO systems.
|
|
Instead of comparing the full 36 elements of the $6 \times 6$ FFR matrix from $\mathbf{u}$ to $\mathbf{d}_e$, only the first "column" is compared (Figure ref:fig:test_nhexa_comp_simscape_de_all), which corresponds to the transfer function from the command $u_1$ to the six measured encoder displacements $d_{e1}$ to $d_{e6}$.
|
|
It can be seen that the coupling in the model is well matching the measurements up to the first un-modelled flexible mode at 237Hz.
|
|
Similar results are observed for all the other coupling terms, as well as for the transfer function from $\mathbf{u}$ to $\mathbf{V}_s$.
|
|
|
|
#+begin_src matlab :exports none
|
|
%% Comparison of the plants (encoder output) when tuning the misalignment
|
|
i_input = 1;
|
|
|
|
figure;
|
|
tiledlayout(2, 3, 'TileSpacing', 'tight', 'Padding', 'tight');
|
|
|
|
ax1 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{1}(:, 1, i_input)));
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_de{1}(1, i_input), freqs, 'Hz'))));
|
|
text(54, 4e-4, '$d_{e1}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
set(gca, 'XTickLabel',[]); ylabel('Amplitude [m/V]');
|
|
|
|
ax2 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{1}(:, 2, i_input)));
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_de{1}(2, i_input), freqs, 'Hz'))));
|
|
text(54, 4e-4, '$d_{e2}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
set(gca, 'XTickLabel',[]); set(gca, 'YTickLabel',[]);
|
|
|
|
ax3 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{1}(:, 3, i_input)), ...
|
|
'DisplayName', 'Measurements');
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_de{1}(3, i_input), freqs, 'Hz'))), ...
|
|
'DisplayName', 'Model (2-DoF APA)');
|
|
text(54, 4e-4, '$d_{e3}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
set(gca, 'XTickLabel',[]); set(gca, 'YTickLabel',[]);
|
|
leg = legend('location', 'southwest', 'FontSize', 8, 'NumColumns', 1);
|
|
leg.ItemTokenSize(1) = 15;
|
|
|
|
ax4 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{1}(:, 4, i_input)));
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_de{1}(4, i_input), freqs, 'Hz'))));
|
|
text(54, 4e-4, '$d_{e4}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
xlabel('Frequency [Hz]'); ylabel('Amplitude [m/V]');
|
|
xticks([50, 100, 200, 400])
|
|
|
|
ax5 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{1}(:, 5, i_input)));
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_de{1}(5, i_input), freqs, 'Hz'))));
|
|
text(54, 4e-4, '$d_{e5}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
xlabel('Frequency [Hz]'); set(gca, 'YTickLabel',[]);
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
xticks([50, 100, 200, 400])
|
|
|
|
ax6 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{1}(:, 6, i_input)));
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_de{1}(6, i_input), freqs, 'Hz'))));
|
|
text(54, 4e-4, '$d_{e6}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
xlabel('Frequency [Hz]'); set(gca, 'YTickLabel',[]);
|
|
xticks([50, 100, 200, 400])
|
|
|
|
linkaxes([ax1,ax2,ax3,ax4,ax5,ax6],'xy');
|
|
xlim([50, 5e2]); ylim([1e-8, 5e-4]);
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :exports results :results file replace
|
|
exportFig('figs/test_nhexa_comp_simscape_de_all.pdf', 'width', 'full', 'height', 700);
|
|
#+end_src
|
|
|
|
#+name: fig:test_nhexa_comp_simscape_de_all
|
|
#+caption: Comparison of the measured (in blue) and modelled (in red) frequency transfer functions from the first control signal $u_1$ to the six encoders $d_{e1}$ to $d_{e6}$
|
|
#+RESULTS:
|
|
[[file:figs/test_nhexa_comp_simscape_de_all.png]]
|
|
|
|
The APA300ML are then modelled with a /super-element/ extracted from a FE-software.
|
|
The obtained transfer functions from $u_1$ to the six measured encoder displacements $d_{e1}$ to $d_{e6}$ are compared with the measured FRF in Figure ref:fig:test_nhexa_comp_simscape_de_all_flex.
|
|
While the damping of the suspension modes for the /super-element/ is underestimated (which could be solved by properly tuning the proportional damping coefficients), the flexible modes of the struts at 237Hz and 349Hz are well modelled.
|
|
Even the mode 395Hz can be observed in the model.
|
|
Therefore, if the modes of the struts are to be modelled, the /super-element/ of the APA300ML may be used, at the cost of obtaining a much higher order model.
|
|
|
|
#+begin_src matlab
|
|
%% Load the plant model with Flexible APA
|
|
flex_ol = load('test_nhexa_simscape_flexible_masses.mat', 'G_Vs', 'G_de');
|
|
#+end_src
|
|
|
|
#+begin_src matlab :exports none
|
|
%% Comparison of the plants (encoder output) when tuning the misalignment
|
|
i_input = 1;
|
|
|
|
figure;
|
|
tiledlayout(2, 3, 'TileSpacing', 'tight', 'Padding', 'tight');
|
|
|
|
ax1 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{1}(:, 1, i_input)));
|
|
plot(freqs, abs(squeeze(freqresp(flex_ol.G_de{1}(1, i_input), freqs, 'Hz'))));
|
|
text(54, 4e-4, '$d_{e1}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
set(gca, 'XTickLabel',[]); ylabel('Amplitude [m/V]');
|
|
|
|
ax2 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{1}(:, 2, i_input)));
|
|
plot(freqs, abs(squeeze(freqresp(flex_ol.G_de{1}(2, i_input), freqs, 'Hz'))));
|
|
text(54, 4e-4, '$d_{e2}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
set(gca, 'XTickLabel',[]); set(gca, 'YTickLabel',[]);
|
|
|
|
ax3 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{1}(:, 3, i_input)), ...
|
|
'DisplayName', 'Measurements');
|
|
plot(freqs, abs(squeeze(freqresp(flex_ol.G_de{1}(3, i_input), freqs, 'Hz'))), ...
|
|
'DisplayName', 'Model (Flexible APA)');
|
|
text(54, 4e-4, '$d_{e3}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
set(gca, 'XTickLabel',[]); set(gca, 'YTickLabel',[]);
|
|
leg = legend('location', 'southwest', 'FontSize', 8, 'NumColumns', 1);
|
|
leg.ItemTokenSize(1) = 15;
|
|
|
|
ax4 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{1}(:, 4, i_input)));
|
|
plot(freqs, abs(squeeze(freqresp(flex_ol.G_de{1}(4, i_input), freqs, 'Hz'))));
|
|
text(54, 4e-4, '$d_{e4}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
xlabel('Frequency [Hz]'); ylabel('Amplitude [m/V]');
|
|
xticks([50, 100, 200, 400])
|
|
|
|
ax5 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{1}(:, 5, i_input)));
|
|
plot(freqs, abs(squeeze(freqresp(flex_ol.G_de{1}(5, i_input), freqs, 'Hz'))));
|
|
text(54, 4e-4, '$d_{e5}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
xlabel('Frequency [Hz]'); set(gca, 'YTickLabel',[]);
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
xticks([50, 100, 200, 400])
|
|
|
|
ax6 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{1}(:, 6, i_input)));
|
|
plot(freqs, abs(squeeze(freqresp(flex_ol.G_de{1}(6, i_input), freqs, 'Hz'))));
|
|
text(54, 4e-4, '$d_{e6}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
xlabel('Frequency [Hz]'); set(gca, 'YTickLabel',[]);
|
|
xticks([50, 100, 200, 400])
|
|
|
|
linkaxes([ax1,ax2,ax3,ax4,ax5,ax6],'xy');
|
|
xlim([50, 5e2]); ylim([1e-8, 5e-4]);
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :exports results :results file replace
|
|
exportFig('figs/test_nhexa_comp_simscape_de_all_flex.pdf', 'width', 'full', 'height', 700);
|
|
#+end_src
|
|
|
|
#+name: fig:test_nhexa_comp_simscape_de_all_flex
|
|
#+caption: Comparison of the measured (in blue) and modelled (in red) frequency transfer functions from the first control signal $u_1$ to the six encoders $d_{e1}$ to $d_{e6}$
|
|
#+RESULTS:
|
|
[[file:figs/test_nhexa_comp_simscape_de_all_flex.png]]
|
|
|
|
** Modelling the effect of payload mass
|
|
<<ssec:test_nhexa_comp_model_masses>>
|
|
|
|
Another important characteristics of the model is that it should well represents the dynamics of the system for all considered payloads.
|
|
The model dynamics is therefore compared with the measured dynamics for 4 payloads (no payload, 13kg, 26kg and 39kg) in Figure ref:fig:test_nhexa_comp_simscape_diag_masses.
|
|
The observed shift to lower frequency of the suspension modes with an increased payload mass is well represented by the Simscape model.
|
|
The complex conjugate zeros are also well matching with the experiments both for the encoder outputs (Figure ref:fig:test_nhexa_comp_simscape_de_diag_masses) and the force sensor outputs (Figure ref:fig:test_nhexa_comp_simscape_Vs_diag_masses).
|
|
|
|
Note that the model displays smaller damping that what is observed experimentally for high values of the payload mass.
|
|
One option could be to tune the damping as a function of the mass (similar to what is done with the Rayleigh damping).
|
|
However, as decentralized IFF will be applied, the damping will be brought actively, and the open-loop damping value should have very little impact on the obtained plant.
|
|
|
|
#+begin_src matlab :exports none
|
|
%% Bode plot for the transfer function from u to de
|
|
masses = [0, 13, 26, 39];
|
|
figure;
|
|
tiledlayout(3, 1, 'TileSpacing', 'Compact', 'Padding', 'None');
|
|
|
|
ax1 = nexttile([2,1]);
|
|
hold on;
|
|
for i_mass = [0:3]
|
|
plot(frf_ol.f, abs(frf_ol.G_de{i_mass+1}(:,1, 1)), 'color', [colors(i_mass+1,:), 0.2], ...
|
|
'DisplayName', sprintf('Meas (%i kg)', masses(i_mass+1)));
|
|
for i = 2:6
|
|
plot(frf_ol.f, abs(frf_ol.G_de{i_mass+1}(:,i, i)), 'color', [colors(i_mass+1,:), 0.2], ...
|
|
'HandleVisibility', 'off');
|
|
end
|
|
set(gca, 'ColorOrderIndex', i_mass+1)
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_de{i_mass+1}(1,1), freqs, 'Hz'))), '--', ...
|
|
'DisplayName', 'Simscape');
|
|
end
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
ylabel('Amplitude $d_e/u$ [m/V]'); set(gca, 'XTickLabel',[]);
|
|
ylim([5e-8, 1e-3]);
|
|
leg = legend('location', 'southwest', 'FontSize', 8, 'NumColumns', 2);
|
|
leg.ItemTokenSize(1) = 15;
|
|
|
|
ax2 = nexttile;
|
|
hold on;
|
|
for i_mass = [0:3]
|
|
for i =1:6
|
|
plot(frf_ol.f, 180/pi*angle(frf_ol.G_de{i_mass+1}(:,i, i)), 'color', [colors(i_mass+1,:), 0.2]);
|
|
end
|
|
set(gca, 'ColorOrderIndex', i_mass+1)
|
|
plot(freqs, 180/pi*angle(squeeze(freqresp(sim_ol.G_de{i_mass+1}(1,1), freqs, 'Hz'))), '--');
|
|
end
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'lin');
|
|
xlabel('Frequency [Hz]'); ylabel('Phase [deg]');
|
|
hold off;
|
|
yticks(-360:45:360);
|
|
ylim([-45, 180]);
|
|
|
|
linkaxes([ax1,ax2],'x');
|
|
xlim([20, 2e2]);
|
|
xticks([20, 50, 100, 200])
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :exports results :results file none
|
|
exportFig('figs/test_nhexa_comp_simscape_de_diag_masses.pdf', 'width', 'half', 'height', 600);
|
|
#+end_src
|
|
|
|
#+begin_src matlab :exports none
|
|
%% Bode plot for the transfer function from u to Vs
|
|
masses = [0, 13, 26, 39];
|
|
figure;
|
|
tiledlayout(3, 1, 'TileSpacing', 'Compact', 'Padding', 'None');
|
|
|
|
ax1 = nexttile([2,1]);
|
|
hold on;
|
|
for i_mass = 0:3
|
|
plot(frf_ol.f, abs(frf_ol.G_Vs{i_mass+1}(:,1, 1)), 'color', [colors(i_mass+1,:), 0.2], ...
|
|
'DisplayName', sprintf('Meas (%i kg)', masses(i_mass+1)));
|
|
for i = 2:6
|
|
plot(frf_ol.f, abs(frf_ol.G_Vs{i_mass+1}(:,i, i)), 'color', [colors(i_mass+1,:), 0.2], ...
|
|
'HandleVisibility', 'off');
|
|
end
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_Vs{i_mass+1}(1,1), freqs, 'Hz'))), '--', 'color', colors(i_mass+1,:), ...
|
|
'DisplayName', 'Simscape');
|
|
end
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
ylabel('Amplitude $V_s/u$ [V/V]'); set(gca, 'XTickLabel',[]);
|
|
ylim([1e-3, 1e2]);
|
|
leg = legend('location', 'southeast', 'FontSize', 8, 'NumColumns', 2);
|
|
leg.ItemTokenSize(1) = 15;
|
|
|
|
ax2 = nexttile;
|
|
hold on;
|
|
for i_mass = 0:3
|
|
for i =1:6
|
|
plot(frf_ol.f, 180/pi*angle(frf_ol.G_Vs{i_mass+1}(:,i, i)), 'color', [colors(i_mass+1,:), 0.2]);
|
|
end
|
|
plot(freqs, 180/pi*angle(squeeze(freqresp(sim_ol.G_Vs{i_mass+1}(i,i), freqs, 'Hz'))), '--', 'color', colors(i_mass+1,:));
|
|
end
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'lin');
|
|
xlabel('Frequency [Hz]'); ylabel('Phase [deg]');
|
|
hold off;
|
|
yticks(-360:90:360);
|
|
|
|
linkaxes([ax1,ax2],'x');
|
|
xlim([20, 2e2]);
|
|
xticks([20, 50, 100, 200])
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :exports results :results file none
|
|
exportFig('figs/test_nhexa_comp_simscape_Vs_diag_masses.pdf', 'width', 'half', 'height', 600);
|
|
#+end_src
|
|
|
|
#+name: fig:test_nhexa_comp_simscape_diag_masses
|
|
#+caption: Comparison of the diagonal elements (i.e. "direct" terms) of the measured FRF matrix and the identified dynamics from the Simscape model. Both for the dynamics from $u$ to $d_e$ (\subref{fig:test_nhexa_comp_simscape_de_diag}) and from $u$ to $V_s$ (\subref{fig:test_nhexa_comp_simscape_Vs_diag})
|
|
#+attr_latex: :options [htbp]
|
|
#+begin_figure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_comp_simscape_de_diag_masses}from $u$ to $d_e$}
|
|
#+attr_latex: :options {0.49\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_latex: :width 0.95\linewidth
|
|
[[file:figs/test_nhexa_comp_simscape_de_diag_masses.png]]
|
|
#+end_subfigure
|
|
#+attr_latex: :caption \subcaption{\label{fig:test_nhexa_comp_simscape_Vs_diag_masses}from $u$ to $V_s$}
|
|
#+attr_latex: :options {0.49\textwidth}
|
|
#+begin_subfigure
|
|
#+attr_latex: :width 0.95\linewidth
|
|
[[file:figs/test_nhexa_comp_simscape_Vs_diag_masses.png]]
|
|
#+end_subfigure
|
|
#+end_figure
|
|
|
|
In order to also check if the model well represents the coupling when high payload masses are used, the transfer functions from $u_1$ to $d_{e1}$ to $d_{e6}$ are compared in the case of the 39kg payload in Figure ref:fig:test_nhexa_comp_simscape_de_all_high_mass.
|
|
Excellent match between the experimental coupling and the model coupling is observed.
|
|
The model therefore well represents the system dynamical coupling for different considered payloads.
|
|
|
|
#+begin_src matlab :exports none
|
|
%% Comparison of the plants (encoder output) when tuning the misalignment
|
|
i_input = 1;
|
|
|
|
figure;
|
|
tiledlayout(2, 3, 'TileSpacing', 'tight', 'Padding', 'tight');
|
|
|
|
ax1 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{4}(:, 1, i_input)));
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_de{4}(1, i_input), freqs, 'Hz'))));
|
|
text(12, 4e-4, '$d_{e1}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
set(gca, 'XTickLabel',[]); ylabel('Amplitude [m/V]');
|
|
|
|
ax2 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{4}(:, 2, i_input)));
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_de{4}(2, i_input), freqs, 'Hz'))));
|
|
text(12, 4e-4, '$d_{e2}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
set(gca, 'XTickLabel',[]); set(gca, 'YTickLabel',[]);
|
|
|
|
ax3 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{4}(:, 3, i_input)), ...
|
|
'DisplayName', 'Measurements');
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_de{4}(3, i_input), freqs, 'Hz'))), ...
|
|
'DisplayName', 'Model (2-DoF APA)');
|
|
text(12, 4e-4, '$d_{e3}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
set(gca, 'XTickLabel',[]); set(gca, 'YTickLabel',[]);
|
|
leg = legend('location', 'southwest', 'FontSize', 8, 'NumColumns', 1);
|
|
leg.ItemTokenSize(1) = 15;
|
|
|
|
ax4 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{4}(:, 4, i_input)));
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_de{4}(4, i_input), freqs, 'Hz'))));
|
|
text(12, 4e-4, '$d_{e4}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
xlabel('Frequency [Hz]'); ylabel('Amplitude [m/V]');
|
|
xticks([10, 50, 100, 200, 400])
|
|
|
|
ax5 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{4}(:, 5, i_input)));
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_de{4}(5, i_input), freqs, 'Hz'))));
|
|
text(12, 4e-4, '$d_{e5}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
xlabel('Frequency [Hz]'); set(gca, 'YTickLabel',[]);
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
xticks([10, 50, 100, 200, 400])
|
|
|
|
ax6 = nexttile();
|
|
hold on;
|
|
plot(frf_ol.f, abs(frf_ol.G_de{4}(:, 6, i_input)));
|
|
plot(freqs, abs(squeeze(freqresp(sim_ol.G_de{4}(6, i_input), freqs, 'Hz'))));
|
|
text(12, 4e-4, '$d_{e6}/u_{1}$', 'Horiz','left', 'Vert','top')
|
|
hold off;
|
|
set(gca, 'XScale', 'log'); set(gca, 'YScale', 'log');
|
|
xlabel('Frequency [Hz]'); set(gca, 'YTickLabel',[]);
|
|
xticks([10, 50, 100, 200, 400])
|
|
|
|
linkaxes([ax1,ax2,ax3,ax4,ax5,ax6],'xy');
|
|
xlim([10, 5e2]); ylim([1e-8, 5e-4]);
|
|
#+end_src
|
|
|
|
#+begin_src matlab :tangle no :exports results :results file replace
|
|
exportFig('figs/test_nhexa_comp_simscape_de_all_high_mass.pdf', 'width', 'full', 'height', 700);
|
|
#+end_src
|
|
|
|
#+name: fig:test_nhexa_comp_simscape_de_all_high_mass
|
|
#+caption: Comparison of the measured (in blue) and modelled (in red) frequency transfer functions from the first control signal $u_1$ to the six encoders $d_{e1}$ to $d_{e6}$
|
|
#+RESULTS:
|
|
[[file:figs/test_nhexa_comp_simscape_de_all_high_mass.png]]
|
|
|
|
** Conclusion
|
|
:PROPERTIES:
|
|
:UNNUMBERED: t
|
|
:END:
|
|
|
|
As illustrated in this section, the developed Simscape model accurately represents the suspension modes of the Nano-Hexapod.
|
|
Both FRF matrices from $\mathbf{u}$ to $\mathbf{V}_s$ and from $\mathbf{u}$ to $\mathbf{d}_e$ are well matching with the measurements, even when considering coupling (i.e. off-diagonal) terms, which are very important from a control perspective.
|
|
|
|
At frequency above the suspension modes, the Nano-Hexapod model becomes inaccurate as the flexible modes are not modelled.
|
|
It was shown that modelling the APA300ML using a "super-element" allows to model the internal resonances of the struts.
|
|
The same could be done with the top platform and the encoder supports, but the model order would be higher and may become unpractical for simulation purposes.
|
|
|
|
* Conclusion
|
|
|
|
The goal of this test bench was to obtain an accurate model of the nano-hexapod that can then be included on top of the micro-station model.
|
|
|
|
This strategy was to measure the nano-hexapod in conditions where all factors that could have impacted the nano-hexapod dynamics were taken into account.
|
|
This was done by developing a suspended table with low frequency suspension modes which can be accurately modelled.
|
|
|
|
While the dynamics of the nano-hexapod was indeed impacted by the dynamics of the suspended platform, this impact was also taken into account in the Simscape model, and a good match was obtained.
|
|
|
|
Obtaining a model accurately representing the complex dynamics of the Nano-Hexapod was made possible by the modelling approach used during this work.
|
|
This approach consisted of tuning and validating models of individual components (such as the APA and flexible joints) using dedicated test benches.
|
|
Only then, the different models could be combined to form the Nano-Hexapod dynamical model.
|
|
If a model of the nano-hexapod was developed in one time, it would be difficult to tune all model parameters to match the measured dynamics, or even to know if the model "structure" would be adequate to represents the system dynamics.
|
|
|
|
* Bibliography :ignore:
|
|
#+latex: \printbibliography[heading=bibintoc,title={Bibliography}]
|
|
|
|
* Glossary :ignore:
|
|
[[printglossaries:]]
|
|
|
|
# #+latex: \printglossary[type=\acronymtype]
|
|
# #+latex: \printglossary[type=\glossarytype]
|
|
# #+latex: \printglossary
|
|
|
|
* Helping Functions :noexport:
|
|
** Initialize Path
|
|
#+NAME: m-init-path
|
|
#+BEGIN_SRC matlab
|
|
addpath('./matlab/'); % Path for scripts
|
|
|
|
%% Path for functions, data and scripts
|
|
addpath('./matlab/mat/'); % Path for Computed FRF
|
|
addpath('./matlab/src/'); % Path for functions
|
|
addpath('./matlab/STEPS/'); % Path for STEPS
|
|
addpath('./matlab/subsystems/'); % Path for Subsystems Simulink files
|
|
#+END_SRC
|
|
|
|
#+NAME: m-init-path-tangle
|
|
#+BEGIN_SRC matlab
|
|
%% Path for functions, data and scripts
|
|
addpath('./mat/'); % Path for Data
|
|
addpath('./src/'); % Path for functions
|
|
addpath('./STEPS/'); % Path for STEPS
|
|
addpath('./subsystems/'); % Path for Subsystems Simulink files
|
|
#+END_SRC
|
|
|
|
** Initialize Simscape Model
|
|
#+NAME: m-init-simscape
|
|
#+begin_src matlab
|
|
%% Initialize Parameters for Simscape model
|
|
table_type = 'Rigid'; % On top of vibration table
|
|
device_type = 'None'; % On top of vibration table
|
|
payload_num = 0; % No Payload
|
|
|
|
% Simulink Model name
|
|
mdl = 'test_bench_nano_hexapod';
|
|
#+end_src
|
|
|
|
** Initialize other elements
|
|
#+NAME: m-init-other
|
|
#+BEGIN_SRC matlab
|
|
%% Colors for the figures
|
|
colors = colororder;
|
|
|
|
%% Frequency Vector
|
|
freqs = logspace(log10(10), log10(2e3), 1000);
|
|
#+END_SRC
|
|
|
|
* Footnotes
|
|
|
|
[fn:7]PCB 356B18. Sensitivity is $1\,V/g$, measurement range is $\pm 5\,g$ and bandwidth is $0.5$ to $5\,\text{kHz}$.
|
|
[fn:6]"SZ8005 20 x 044" from Steinel. The spring rate is specified at $17.8\,N/mm$
|
|
[fn:5]The 450 mm x 450 mm x 60 mm Nexus B4545A from Thorlabs.
|
|
[fn:4]As the accuracy of the FARO arm is $\pm 13\,\mu m$, the true straightness is probably better than the values indicated. The limitation of the instrument is here reached.
|
|
[fn:3]The height dimension is better than $40\,\mu m$. The diameter fit of 182g6 and 24g6 with the two plates is verified.
|
|
[fn:2]Location of all the interface surfaces with the flexible joints are checked. The fits (182H7 and 24H8) with the interface element are checked.
|
|
[fn:1]Faro Arm Platinum 4ft, specified accuracy of $\pm 13\mu m$
|