% Created 2024-03-27 Wed 16:59
% Intended LaTeX compiler: pdflatex
\documentclass[a4paper, 10pt, DIV=12, parskip=full, bibliography=totoc]{scrreprt}

\input{preamble.tex}
\bibliography{test-bench-struts.bib}
\author{Dehaeze Thomas}
\date{\today}
\title{Test Bench - Nano-Hexapod Struts}
\hypersetup{
 pdfauthor={Dehaeze Thomas},
 pdftitle={Test Bench - Nano-Hexapod Struts},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 29.3 (Org mode 9.7)}, 
 pdflang={English}}
\usepackage{biblatex}

\begin{document}

\maketitle
\tableofcontents

\clearpage
In this document, a test-bench is used to characterize the struts of the nano-hexapod.

Each strut includes (Figure \ref{fig:test_struts_picture_strut}):
\begin{itemize}
\item 2 flexible joints at each ends.
These flexible joints have been characterized in a separate test bench (see \ldots{}).
\item 1 Amplified Piezoelectric Actuator (APA300ML) (described in Section \ldots{}).
Two stacks are used as an actuator and one stack as a (force) sensor.
\item 1 encoder (Renishaw Vionic) that has been characterized in a separate test bench (see \ldots{}).
\end{itemize}

\begin{figure}[htbp]
\centering
\includegraphics[scale=1,width=0.8\linewidth]{figs/test_struts_picture_strut.jpg}
\caption{\label{fig:test_struts_picture_strut}One strut including two flexible joints, an amplified piezoelectric actuator and an encoder}
\end{figure}

Then the struts are mounted (procedure described in Section \ref{sec:test_struts_mounting}), and are fixed to the same measurement bench.
The goals are to:
\begin{itemize}
\item Section \ref{sec:test_struts_dynamical_meas}: Identify the dynamics from the generated DAC voltage to:
\begin{itemize}
\item the sensors stack generated voltage
\item the measured displacement by the encoder
\item the measured displacement by the interferometer (representing encoders that would be fixed to the nano-hexapod's plates instead of the struts)
\end{itemize}
\item Section \ref{sec:test_struts_simscape}: Compare the measurements with the Simscape model of the struts and tune the models
\end{itemize}

The final goal of the work presented in this document is to have an accurate Simscape model of the struts that can then be included in the Simscape model of the nano-hexapod.

\begin{table}[htbp]
\caption{\label{tab:test_struts_section_matlab_code}Report sections and corresponding Matlab files}
\centering
\begin{tabularx}{0.6\linewidth}{lX}
\toprule
\textbf{Sections} & \textbf{Matlab File}\\
\midrule
Section \ref{sec:test_struts_flexible_modes} & \texttt{test\_struts\_1\_flexible\_modes.m}\\
Section \ref{sec:test_struts_dynamical_meas} & \texttt{test\_struts\_2\_dynamical\_meas.m}\\
Section \ref{sec:test_struts_simscape} & \texttt{test\_struts\_3\_simscape\_model.m}\\
\bottomrule
\end{tabularx}
\end{table}
\chapter{Mounting Procedure}
\label{sec:test_struts_mounting}
\section{Mounting Bench}

A mounting bench is used to greatly simply the mounting of the struts as well as ensuring the correct strut length and coaxiality of the flexible joint's interfaces.
This is very important in order to not loose any stroke when the struts will be mounted on the nano-hexapod.

A CAD view of the mounting bench is shown in Figure \ref{fig:test_struts_mounting_bench_first_concept}.

Faro arm\footnote{Faro Arm Platinum 4ft, specified accuracy of \(\pm 13\mu m\)}

\begin{figure}[htbp]
\centering
\includegraphics[scale=1,width=0.6\linewidth]{figs/test_struts_mounting_bench_first_concept.png}
\caption{\label{fig:test_struts_mounting_bench_first_concept}CAD view of the mounting bench}
\end{figure}

The main part of the bench is here to ensure both the correct strut length and strut coaxiality as shown in Figure \ref{fig:test_struts_mounting_step_0}.

\begin{figure}[htbp]
\begin{subfigure}{0.56\textwidth}
\begin{center}
\includegraphics[scale=1,height=4.5cm]{figs/test_struts_mounting_step_0.jpg}
\end{center}
\subcaption{\label{fig:test_struts_mounting_step_0}Useful features of the main mounting element}
\end{subfigure}
\begin{subfigure}{0.43\textwidth}
\begin{center}
\includegraphics[scale=1,height=4.5cm]{figs/test_struts_check_dimensions_bench.jpg}
\end{center}
\subcaption{\label{fig:test_struts_check_dimensions_bench}Dimensional check}
\end{subfigure}
\caption{\label{fig:test_struts_mounting_base_part}Caption\ldots{}, add foot note with Faro arm}
\end{figure}

The tight tolerances of this element has been verified as shown in Figure \ref{fig:test_struts_check_dimensions_bench} and were found to comply with the requirements.

The flexible joints are rigidly fixed to cylindrical tools shown in Figures \ref{fig:test_struts_cylindrical_mounting_part_top} and \ref{fig:test_struts_cylindrical_mounting_part_bot} which are then mounted on the mounting tool shown in Figure \ref{fig:test_struts_mounting_step_0}.
This cylindrical tool is here to protect the flexible joints when tightening the screws and therefore applying large torque.
\section{Mounting Procedure}

\begin{itemize}
\item[{$\square$}] Better explain the mounting procedure
\item[{$\square$}] Speak about the ``locating'' pins that are used to aligned the APA with the two flexible joints
\end{itemize}

The mounting procedure is as follows:
\begin{enumerate}
\item Screw flexible joints inside the cylindrical interface element shown in Figure \ref{fig:test_struts_cylindrical_mounting}
\item Fix the two interface elements. One of the two should be clamped, the other one should have its axial rotation free.
Visually align the clamped one horizontally. (Figure \ref{fig:test_struts_mounting_step_1})
\item Put cylindrical washers, APA and interface pieces on top of the flexible joints (Figure \ref{fig:test_struts_mounting_step_2})
\item Put the 4 screws just in contact such that everything is correctly positioned and such that the ``free'' flexible joint is correctly oriented
\item Put the 8 lateral screws in contact
\item Tighten the 4 screws to fix the APA on the two flexible joints (using a torque screwdriver)
\item Remove the 4 laterals screws
\item (optional) Put the APA horizontally and fix the encoder and align it to maximize the contrast (Figure \ref{fig:test_struts_mounting_step_3})
\item Disassemble to have an properly mounted strut (Figure \ref{fig:test_struts_mounting_step_4}) for which the coaxiality between the two flexible joint's interfaces is good
\end{enumerate}

\begin{figure}[htbp]
\begin{subfigure}{0.33\textwidth}
\begin{center}
\includegraphics[scale=1,height=4.5cm]{figs/test_struts_cylindrical_mounting_part_top.jpg}
\end{center}
\subcaption{\label{fig:test_struts_cylindrical_mounting_part_top}Cylindral Interface (Top)}
\end{subfigure}
\begin{subfigure}{0.33\textwidth}
\begin{center}
\includegraphics[scale=1,height=4.5cm]{figs/test_struts_cylindrical_mounting_part_bot.jpg}
\end{center}
\subcaption{\label{fig:test_struts_cylindrical_mounting_part_bot}Cylindrlcal Interface (Bottom)}
\end{subfigure}
\begin{subfigure}{0.33\textwidth}
\begin{center}
\includegraphics[scale=1,height=4.5cm]{figs/test_struts_mounting_joints.jpg}
\end{center}
\subcaption{\label{fig:test_struts_mounting_joints}Mounted flexible joints}
\end{subfigure}
\caption{\label{fig:test_struts_cylindrical_mounting}Preparation of the flexible joints by fixing them in their cylindrical interface}
\end{figure}

\begin{figure}[htbp]
\begin{subfigure}{0.5\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.95\linewidth]{figs/test_struts_mounting_step_1.jpg}
\end{center}
\subcaption{\label{fig:test_struts_mounting_step_1}Step 1}
\end{subfigure}
\begin{subfigure}{0.5\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.95\linewidth]{figs/test_struts_mounting_step_2.jpg}
\end{center}
\subcaption{\label{fig:test_struts_mounting_step_2}Step 2}
\end{subfigure}

\bigskip
\begin{subfigure}{0.5\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.95\linewidth]{figs/test_struts_mounting_step_3.jpg}
\end{center}
\subcaption{\label{fig:test_struts_mounting_step_3}Step 3}
\end{subfigure}
\begin{subfigure}{0.5\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.95\linewidth]{figs/test_struts_mounting_step_4.jpg}
\end{center}
\subcaption{\label{fig:test_struts_mounting_step_4}Step 4}
\end{subfigure}
\caption{\label{fig:test_struts_mounting_steps}Steps for mounting the struts.}
\end{figure}
\chapter{Measurement of flexible modes}
\label{sec:test_struts_flexible_modes}
\section{Introduction}

From a Finite Element Model of the struts, it have been found that three main resonances are foreseen to be problematic for the control of the APA300ML (Figure \ref{fig:test_struts_mode_shapes}): an ``X-bending'' mode at 189Hz, a ``Y-bending'' mode at 285Hz and a ``Z-torsion'' mode at 400Hz.

\begin{figure}[htbp]
\begin{subfigure}{0.33\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.9\linewidth]{figs/test_struts_mode_shapes_1.png}
\end{center}
\subcaption{\label{fig:test_struts_mode_shapes_1}X-bending mode (189Hz)}
\end{subfigure}
\begin{subfigure}{0.33\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.9\linewidth]{figs/test_struts_mode_shapes_2.png}
\end{center}
\subcaption{\label{fig:test_struts_mode_shapes_2}Y-bending mode (285Hz)}
\end{subfigure}
\begin{subfigure}{0.33\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.9\linewidth]{figs/test_struts_mode_shapes_3.png}
\end{center}
\subcaption{\label{fig:test_struts_mode_shapes_3}Z-torsion mode (400Hz)}
\end{subfigure}
\caption{\label{fig:test_struts_mode_shapes}Spurious resonances of the struts estimated from a Finite Element Model}
\end{figure}
\section{Measurement Setup}

A Laser vibrometer is measuring the difference of motion between two beam path (red points in Figure \ref{fig:test_struts_meas_modes}).
The strut is excited with an instrumented hammer and the transfer function from the hammer to the measured rotation is computed.

The ``X-bending'' mode is measured as shown in Figure \ref{fig:test_struts_meas_x_bending}.
The ``Y-bending'' mode is measured as shown in Figure \ref{fig:test_struts_meas_y_bending}.
Finally, the ``Z-torsion'' is measured as shown in Figure \ref{fig:test_struts_meas_z_torsion}.

This is done with and without the encoder fixed to the strut.

\begin{figure}[htbp]
\begin{subfigure}{0.33\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.9\linewidth]{figs/test_struts_meas_x_bending.jpg}
\end{center}
\subcaption{\label{fig:test_struts_meas_x_bending}X-bending mode}
\end{subfigure}
\begin{subfigure}{0.33\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.9\linewidth]{figs/test_struts_meas_y_bending.jpg}
\end{center}
\subcaption{\label{fig:test_struts_meas_y_bending}Y-bending mode}
\end{subfigure}
\begin{subfigure}{0.33\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.9\linewidth]{figs/test_struts_meas_z_torsion.jpg}
\end{center}
\subcaption{\label{fig:test_struts_meas_z_torsion}Z-torsion mode}
\end{subfigure}
\caption{\label{fig:test_struts_meas_modes}Measurement of strut flexible modes}
\end{figure}
\section{Measured results}
The obtained frequency response functions are shown in Figure \ref{fig:test_struts_spur_res_frf}.

\begin{figure}[htbp]
\begin{subfigure}{0.49\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.95\linewidth]{figs/test_struts_spur_res_frf_no_enc.png}
\end{center}
\subcaption{\label{fig:test_struts_spur_res_frf_no_enc}without encoder}
\end{subfigure}
\begin{subfigure}{0.49\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.95\linewidth]{figs/test_struts_spur_res_frf_enc.png}
\end{center}
\subcaption{\label{fig:test_struts_spur_res_frf_enc}with the encoder}
\end{subfigure}
\caption{\label{fig:test_struts_spur_res_frf}Measured frequency response functions without the encoder \ref{fig:test_struts_spur_res_frf} and with the encoder \ref{fig:test_struts_spur_res_frf_enc}}
\end{figure}
Table \ref{tab:test_struts_spur_mode_freqs} summarizes the measured resonance frequencies as well as the computed ones using the Finite Element Model.
It is shown that:
\begin{itemize}
\item the resonance frequencies of the 3 modes are only slightly increasing when the encoder is removed
\item the computed resonance frequencies from the FEM are very close to the measured one when the encoder is fixed to the strut
\end{itemize}

\begin{table}[htbp]
\caption{\label{tab:test_struts_spur_mode_freqs}Measured frequency of the strut spurious modes}
\centering
\begin{tabularx}{0.7\linewidth}{Xccc}
\toprule
\textbf{Mode} & \textbf{Struts (FEM)} & \textbf{Struts (exp)} & \textbf{Plates (exp)}\\
\midrule
X-Bending & 189Hz & 198Hz & 226Hz\\
Y-Bending & 285Hz & 293Hz & 337Hz\\
Z-Torsion & 400Hz & 381Hz & 398Hz\\
\bottomrule
\end{tabularx}
\end{table}
\chapter{Dynamical measurements}
\label{sec:test_struts_dynamical_meas}
The bench is shown in Figure \ref{fig:test_struts_bench_leg_overview}.
Measurements are performed either when no encoder is fixed to the strut (Figure \ref{fig:test_struts_bench_leg_front}) or when one encoder is fixed to the strut (Figure \ref{fig:test_struts_bench_leg_coder}).

\begin{figure}[htbp]
\begin{subfigure}{0.35\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.9\linewidth]{figs/test_struts_bench_leg_overview.jpg}
\end{center}
\subcaption{\label{fig:test_struts_bench_leg_overview}Overview}
\end{subfigure}
\begin{subfigure}{0.31\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.9\linewidth]{figs/test_struts_bench_leg_front.jpg}
\end{center}
\subcaption{\label{fig:test_struts_bench_leg_front}Strut without encoder}
\end{subfigure}
\begin{subfigure}{0.31\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.9\linewidth]{figs/test_struts_bench_leg_coder.jpg}
\end{center}
\subcaption{\label{fig:test_struts_bench_leg_coder}Strut with encoder}
\end{subfigure}
\caption{\label{fig:test_struts_bench_leg}Experimental setup to measured the dynamics of the struts.}
\end{figure}

First, the effect of the encoder on the measured dynamics is studied in Section \ref{ssec:test_struts_effect_encoder}.
Then, the dynamics seen by the encoder and by the interferometers are compared in Section \ref{ssec:test_struts_comp_enc_int}.
Finally, all the measured struts are compared in terms of dynamics in Section \ref{ssec:test_struts_comp_all_struts}.
\section{Effect of the Encoder on the measured dynamics}
\label{ssec:test_struts_effect_encoder}

Figure \ref{fig:test_struts_effect_encoder_int}
Same goes for the transfer function from excitation voltage \(u\) to the axial motion of the strut \(d_a\) as measured by the interferometer ().

The transfer function from the excitation voltage \(u\) to the generated voltage \(V_s\) by the sensor stack is not influence by the fixation of the encoder (Figure \ref{fig:test_struts_effect_encoder_iff}).
This means that the IFF control strategy should be as effective whether or not the encoders are fixed to the struts.

\begin{figure}[htbp]
\begin{subfigure}{0.49\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.95\linewidth]{figs/test_struts_effect_encoder_int.png}
\end{center}
\subcaption{\label{fig:test_struts_effect_encoder_int}$u$ to $d_a$}
\end{subfigure}
\begin{subfigure}{0.49\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.95\linewidth]{figs/test_struts_effect_encoder_iff.png}
\end{center}
\subcaption{\label{fig:test_struts_effect_encoder_iff}$u$ to $V_s$}
\end{subfigure}
\caption{\label{fig:test_struts_effect_encoder}Effect of having the encoder fixed to the struts on the measured dynamics from \(u\) to \(d_a\) (\subref{fig:test_struts_effect_encoder_int}) and from \(u\) to \(V_s\) (\subref{fig:test_struts_effect_encoder_iff})}
\end{figure}
\section{Comparison of the encoder and interferometer}
\label{ssec:test_struts_comp_enc_int}

The dynamics as measured by the encoder and by the interferometers are compared in Figure \ref{fig:test_struts_comp_enc_int}.

The dynamics from the excitation voltage \(u\) to the measured displacement by the encoder \(d_e\) presents much more complicated behavior than the transfer function to the displacement as measured by the Interferometer (compared in Figure \ref{fig:test_struts_comp_enc_int}).
It will be further investigated why the two dynamics as so different and what are causing all these resonances.

As shown in Figure \ref{fig:test_struts_comp_enc_int}, we can clearly see three spurious resonances at 197Hz, 290Hz and 376Hz.
These resonances correspond to parasitic resonances of the strut itself that was estimated using a finite element model of the strut (Figure \ref{fig:test_struts_mode_shapes}):
\begin{itemize}
\item Mode in X-bending at 189Hz
\item Mode in Y-bending at 285Hz
\item Mode in Z-torsion at 400Hz
\end{itemize}

The good news is that these resonances are not seen on the interferometer (they are therefore not impacting the axial motion of the strut).
But these resonances are making the use of encoder fixed to the strut difficult.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_struts_comp_enc_int.png}
\caption{\label{fig:test_struts_comp_enc_int}Comparison of the transfer functions from excitation voltage \(u\) to either the encoder \(d_e\) or the interferometer \(d_a\)}
\end{figure}
\section{Comparison of all the Struts}
\label{ssec:test_struts_comp_all_struts}

Then, the transfer function from the DAC output voltage \(u\) to the measured displacement by the Attocube is computed for all the struts and shown in Figure \ref{fig:test_struts_comp_interf_plants}.
All the struts are giving very similar FRF.

\begin{figure}[htbp]
\begin{subfigure}{0.49\textwidth}
\begin{center}
\includegraphics[scale=1,width=\linewidth]{figs/test_struts_comp_interf_plants.png}
\end{center}
\subcaption{\label{fig:test_struts_comp_interf_plants}$u$ to $d_a$}
\end{subfigure}
\begin{subfigure}{0.49\textwidth}
\begin{center}
\includegraphics[scale=1,width=\linewidth]{figs/test_struts_comp_iff_plants.png}
\end{center}
\subcaption{\label{fig:test_struts_comp_iff_plants}$u$ to $V_s$}
\end{subfigure}
\caption{\label{fig:test_struts_comp_plants}Comparison of the measured plants}
\end{figure}

There is a very large variability of the dynamics as measured by the encoder as shown in Figure \ref{fig:test_struts_comp_enc_plants}.
Even-though the same peaks are seen for all of the struts (95Hz, 200Hz, 300Hz, 400Hz), the amplitude of the peaks are not the same.
Moreover, the location or even the presence of complex conjugate zeros is changing from one strut to the other.

All of this will be studied in Section \ref{sec:test_struts_simscape} using the Simscape model.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_struts_comp_enc_plants.png}
\caption{\label{fig:test_struts_comp_enc_plants}Estimated frequency response functions from \(u\) to the encoder \(d_e\) for all the mounted struts}
\end{figure}
\begin{important}
All the struts are giving very consistent behavior from the excitation voltage \(u\) to the force sensor generated voltage \(V_s\) and to the interferometer measured displacement \(d_a\).
However, the dynamics from \(u\) to the encoder measurement \(d_e\) is much more complex and variable from one strut to the other most likely due to poor alignment of the APA with respect to the flexible joints.
\end{important}
\chapter{Simscape Model}
\label{sec:test_struts_simscape}
However, now the full strut is put instead of only the APA (see Figure \ref{fig:test_struts_simscape_model}).

\begin{figure}[htbp]
\centering
\includegraphics[scale=1,width=0.7\linewidth]{figs/test_struts_simscape_model.png}
\caption{\label{fig:test_struts_simscape_model}Screenshot of the Simscape model of the strut fixed to the bench}
\end{figure}

This Simscape model is used to:
\begin{itemize}
\item compare the measured FRF with the modelled FRF
\item help the correct understanding/interpretation of the results
\item tune the model of the struts (APA, flexible joints, encoder)
\end{itemize}

This study is structured as follow:
\begin{itemize}
\item Section \ref{ssec:test_struts_comp_model}: the measured FRF are compared with the Simscape model.
\item Section \ref{ssec:test_struts_effect_misalignment}: the flexible APA model is used, and the effect of a misalignment of the APA and flexible joints is studied.
It is found that the misalignment has a large impact on the dynamics from \(u\) to \(d_e\).
\item Section \ref{ssec:test_struts_effect_joint_stiffness}: the effect of the flexible joint's stiffness on the dynamics is studied.
It is found that the axial stiffness of the joints has a large impact on the location of the zeros on the transfer function from \(V_s\) to \(d_e\).
\end{itemize}
\section{Model dynamics}
\label{ssec:test_struts_comp_model}
Two models of the APA300ML are used here for comparison:
\begin{itemize}
\item a simple two degrees of freedom model
\item a model using a super element extracted from a finite element model
\end{itemize}

These two models of the APA300ML were tuned to best match measured frequency response functions of the APA alone.
The flexible joints are here modelled with the 4DoF model (axial stiffness, two bending stiffnesses and one torsion stiffness).

These two models are compared with the measured frequency responses in Figure \ref{fig:test_struts_comp_frf_flexible_model}.

The model dynamics from DAC voltage \(u\) to the axial motion of the strut \(d_a\) (Figure \ref{fig:test_struts_comp_frf_flexible_model_int}) and from DAC voltage \(u\) to the force sensor voltage \(V_s\) (Figure \ref{fig:test_struts_comp_frf_flexible_model_iff}) are well matching the experimental identification.

However, the transfer function from \(u\) to encoder displacement \(d_e\) are not well matching for both models.
For the 2DoF model, this is normal as the resonances affecting the dynamics are not modelled at all (the APA300ML is modelled as infinitely rigid in all directions except the translation along it's actuation axis).
For the flexible model, it will be shown in the next section that by adding some misalignment betwen the flexible joints and the APA300ML, this model can better represent the observed dynamics.

\begin{figure}[htbp]
\begin{subfigure}{0.33\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.9\linewidth]{figs/test_struts_comp_frf_flexible_model_int.png}
\end{center}
\subcaption{\label{fig:test_struts_comp_frf_flexible_model_int}$u$ to $d_a$}
\end{subfigure}
\begin{subfigure}{0.33\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.9\linewidth]{figs/test_struts_comp_frf_flexible_model_enc.png}
\end{center}
\subcaption{\label{fig:test_struts_comp_frf_flexible_model_enc}$u$ to $d_e$}
\end{subfigure}
\begin{subfigure}{0.33\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.9\linewidth]{figs/test_struts_comp_frf_flexible_model_iff.png}
\end{center}
\subcaption{\label{fig:test_struts_comp_frf_flexible_model_iff}$u$ to $V_s$}
\end{subfigure}
\caption{\label{fig:test_struts_comp_frf_flexible_model}Comparison of the measured dynamics and of the Simscape dynamics using the ``flexible'' APA300ML model (Super-Element extracted from a Finite Element Model).}
\end{figure}
\section{Effect of strut misalignment}
\label{ssec:test_struts_effect_misalignment}

As was shown in Figure \ref{fig:test_struts_comp_enc_plants}, the identified dynamics from DAC voltage \(u\) to encoder measured displacement \(d_e\) are very different from one strut to the other.

In this section, it is investigated whether poor alignment of the strut (flexible joints with respect to the APA) can explain such dynamics.
For instance, consider Figure \ref{fig:test_struts_misalign_schematic} where there is a misalignment in the \(y\) direction between the two flexible joints (well aligned thanks to the mounting procedure in Section \ref{sec:test_struts_mounting}) and the APA300ML.
In such case, the ``x-bending'' mode at 200Hz (see Figure \ref{fig:test_struts_meas_x_bending}) can be expected to be more excited, and thus the dynamics from the actuator to the encoder should be affected at frequencies around 200Hz.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1,width=0.8\linewidth]{figs/test_struts_misalign_schematic.png}
\caption{\label{fig:test_struts_misalign_schematic}Mis-alignement between the joints and the APA}
\end{figure}

To verify this assumption, the dynamics from output DAC voltage \(u\) to the measured displacement by the encoder \(d_e\) is computed using the Simscape model with flexible APA for several misalignment in the \(y\) direction.
Obtained dynamics are shown in Figure \ref{fig:test_struts_effect_misalignment_y}.
The alignment of the APA with the flexible joints as a \textbf{huge} influence on the dynamics from actuator voltage to measured displacement by the encoder.
The misalignment in the \(y\) direction mostly influences:
\begin{itemize}
\item the presence of the flexible mode at 200Hz (see mode shape in Figure \ref{fig:test_struts_mode_shapes_1})
\item the location of the complex conjugate zero between the first two resonances:
\begin{itemize}
\item if \(d_y < 0\): there is no zero between the two resonances and possibly not even between the second and third ones
\item if \(d_y > 0\): there is a complex conjugate zero between the first two resonances
\end{itemize}
\item the location of the high frequency complex conjugate zeros at 500Hz (secondary effect, as the axial stiffness of the joint also has large effect on the position of this zero)
\end{itemize}

The same can be done for a misalignment in the \(x\) direction.
The obtained dynamics are shown in Figure \ref{fig:test_struts_effect_misalignment_x} where it is shown that misalignment in the \(x\) direction mostly influences the presence of the flexible mode at 300Hz (see mode shape in Figure \ref{fig:test_struts_mode_shapes_2}).

Comparing the experimental frequency response functions for all the APA in Figure \ref{fig:test_struts_comp_enc_plants} with the model dynamics for several \(y\) misalignments in Figure \ref{fig:test_struts_effect_misalignment_y} indicates a clear similarity.
This similarity suggests that the identified differences in dynamics are caused by the misalignment.

\begin{figure}[htbp]
\begin{subfigure}{0.49\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.95\linewidth]{figs/test_struts_effect_misalignment_y.png}
\end{center}
\subcaption{\label{fig:test_struts_effect_misalignment_y}Misalignment along $y$}
\end{subfigure}
\begin{subfigure}{0.49\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.95\linewidth]{figs/test_struts_effect_misalignment_x.png}
\end{center}
\subcaption{\label{fig:test_struts_effect_misalignment_x}Misalignment along $x$}
\end{subfigure}
\caption{\label{fig:test_struts_effect_misalignment}Effect of a misalignment between the flexible joints and the APA300ML in the \(y\) direction (\subref{fig:test_struts_effect_misalignment_y}) and in the \(x\) direction (\subref{fig:test_struts_effect_misalignment_x})}
\end{figure}
\section{Measured strut misalignment}
\label{ssec:test_struts_meas_misalignment}

During the first mounting of the struts presented in Section \ref{sec:test_struts_mounting}, the positioning pins used to position the APA with respect to the flexible joints in the \(y\) directions were not used (not received at the time).
Therefore, large \(y\) misalignments may be expected.

In order to estimate the misalignments between the two flexible joints and the APA:
\begin{itemize}
\item the struts are fixed horizontally to the mounting bench as shown in Figure \ref{fig:test_struts_mounting_step_3} but without the encoder
\item using a length gauge\footnote{Heidenhain MT25, specified accuracy of \(\pm 0.5\,\mu m\)}, the height difference from the flexible joints surface and the APA shell surface is measured both for the top and bottom joints and on both sides
\item as the thickness of the flexible joint is \(21\,mm\) and the thickness of the APA shell is \(20\,mm\), \(0.5\,mm\) of height different should be measured is the two are perfectly aligned
\end{itemize}

Large variations in the \(y\) misalignment are found from one strut to the other (results are summarized in Table \ref{tab:test_struts_meas_y_misalignment}).

To check the validity of the measurement, it can be verified that sum of the measured thickness difference on each side is \(1\,mm\) (equal to the thickness difference between the flexible joint and the APA).
This thickness differences for all the struts were found to be between \(0.94\,mm\) and \(1.00\,mm\) which indicate low errors as compared to the misalignments found in Table \ref{tab:test_struts_meas_y_misalignment}.

\begin{table}[htbp]
\caption{\label{tab:test_struts_meas_y_misalignment}Measured \(y\) misalignment at the top and bottom of the APA. Measurements are in \(mm\)}
\centering
\begin{tabularx}{0.25\linewidth}{ccc}
\toprule
\textbf{Strut} & \textbf{Bot} & \textbf{Top}\\
\midrule
1 & 0.1 & 0.33\\
2 & -0.19 & 0.14\\
3 & 0.41 & 0.32\\
4 & -0.01 & 0.54\\
5 & 0.15 & 0.02\\
\bottomrule
\end{tabularx}
\end{table}

By using the measured \(y\) misalignment in the Simscape model with the flexible APA model, the measured dynamics from \(u\) to \(d_e\) can be approached as shown in Figure \ref{fig:test_struts_comp_dy_tuned_model_frf_enc}.
Even better match in the dynamics can be obtained by fine tuning both the \(x\) and \(y\) misalignments (yellow curves in Figure \ref{fig:test_struts_comp_dy_tuned_model_frf_enc}).


This confirms that the misalignment between the APA and the strut axis (determined by the two flexible joints) is critical and is inducing large variations in the dynamics from DAC voltage \(u\) to encoder measured displacement \(d_e\).
If encoders are to be used when fixed on the struts, it is therefore very important to properly align the APA and the flexible joints when mounting the struts.


In the next section, the struts are re-assembled with a ``positioning pin'' to better align the APA with the flexible joints.
With a better alignment, the amplitude of the spurious resonances are expected to decrease as was shown in Figure \ref{fig:test_struts_effect_misalignment_y}.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_struts_comp_dy_tuned_model_frf_enc.png}
\caption{\label{fig:test_struts_comp_dy_tuned_model_frf_enc}Comparison of the frequency response functions from DAC voltage \(u\) to measured displacement \(d_e\) by the encoders for three struts. The \(y\) misalignment between the APA and the flexible joints have been estimated}
\end{figure}
\section{Comparison of all the (re-aligned) Struts}
\label{sec:test_struts_meas_all_aligned_struts}
\begin{itemize}
\item[{$\square$}] Should this be included here?
\end{itemize}

The struts are re-aligned and measured using the same test bench.
\subsection{Measured misalignment of the APA and flexible joints}
The misalignment between the APA and the flexible joints are measured.

The results are defined below and summarized in Table \ref{tab:meas_misalignment_struts_new_raw}.

\begin{table}[htbp]
\caption{\label{tab:meas_misalignment_struts_new_raw}Measured misalignment of the struts (\texttt{R} means ``red'' side, and \texttt{B} means ``black side'') in [mm]}
\centering
\begin{tabularx}{0.45\linewidth}{cllll}
\toprule
\textbf{Strut} & \textbf{R Top} & \textbf{B Top} & \textbf{R Bot} & \textbf{B Bot}\\
\midrule
1 & -0.54 & -0.5 & -0.5 & -0.52\\
2 & -0.44 & -0.55 & -0.49 & -0.49\\
3 & -0.48 & -0.5 & -0.5 & -0.46\\
4 & -0.45 & -0.51 & -0.51 & -0.45\\
5 & -0.5 & -0.5 & -0.5 & -0.5\\
6 & -0.5 & -0.49 & -0.43 & -0.54\\
\bottomrule
\end{tabularx}
\end{table}

Also, the sum of the measured distances on each side should be 1mm (equal to the thickness difference between the flexible joint and the APA).
This is verified in Table \ref{tab:meas_misalignment_struts_new_thickness}.

\begin{table}[htbp]
\caption{\label{tab:meas_misalignment_struts_new_thickness}Measured thickness difference between the flexible joints and the APA in [mm]}
\centering
\begin{tabularx}{0.2\linewidth}{cll}
\toprule
\textbf{APA} & \textbf{Top} & \textbf{Bot}\\
\midrule
1 & -1.04 & -1.02\\
2 & -0.99 & -0.98\\
4 & -0.98 & -0.96\\
5 & -0.96 & -0.96\\
6 & -1.0 & -1.0\\
8 & -0.99 & -0.97\\
\bottomrule
\end{tabularx}
\end{table}

The differences of the measured distances on each side corresponds to the misalignment on that same side (Table \ref{tab:meas_misalignment_struts_new_results}).

\begin{table}[htbp]
\caption{\label{tab:meas_misalignment_struts_new_results}Measured thickness difference between the flexible joints and the APA in [mm]}
\centering
\begin{tabularx}{0.25\linewidth}{cll}
\toprule
\textbf{APA} & \textbf{Top} & \textbf{Bot}\\
\midrule
1 & -0.02 & 0.01\\
2 & 0.055 & 0.0\\
4 & 0.01 & -0.02\\
5 & 0.03 & -0.03\\
6 & 0.0 & 0.0\\
8 & -0.005 & 0.055\\
\bottomrule
\end{tabularx}
\end{table}

\begin{important}
After using the alignment pins, the misalignment of the APA and flexible joints are much smaller (\(< 50\,\mu m\) for all the struts).
\end{important}
\subsection{FRF Identification - Setup}
The excitation signal is a low pass filtered white noise.
Both the encoder and the force sensor voltage are measured.

Here are the leg numbers that have been measured.
We get the frequency vector that will be the same for all the frequency domain analysis.
\subsection{FRF Identification - Encoder}
In this section, the dynamics from \(u\) to \(d_e\) (encoder) is identified.

Then, the transfer function from the DAC output voltage \(u\) to the measured displacement by the encoder \(d_e\) is computed:
The obtained transfer functions are shown in Figure \ref{fig:struts_align_frf_dvf_plant_tf}.
\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/struts_align_frf_dvf_plant_tf.png}
\caption{\label{fig:struts_align_frf_dvf_plant_tf}Estimated FRF for the DVF plant (transfer function from \(u\) to the encoder \(d_e\))}
\end{figure}

\begin{important}
Even though the struts are much better aligned, we still observe high variability between the struts for the transfer function from \(u\) to \(d_e\).
\end{important}
\subsection{Conclusion}

\begin{important}
Having the struts well aligned does not change significantly the obtained dynamics.
\end{important}

The measured FRF are now saved for further use.
\section{Effect of flexible joint's characteristics}
\label{ssec:test_struts_effect_joint_stiffness}
As the struts are composed of one APA and two flexible joints, it is obvious that the flexible joint characteristics will change the dynamic behavior of the struts.

Using the Simscape model, the effect of the flexible joint's characteristics on the dynamics as measured on the test bench are studied:
\begin{itemize}
\item Section \ref{sec:struts_effect_bending_stiff_joints}: the effects of a change of bending stiffness is studied
\item Section \ref{sec:struts_effect_axial_stiff_joints}: the effects of a change of axial stiffness is studied
\item Section \ref{sec:struts_effect_bending_damping_joints}: the effects of a change of bending damping is studied
\end{itemize}

The studied dynamics is between \(u\) and the encoder displacement \(d_e\).
\subsection{Effect of bending stiffness of the flexible joints}
\label{sec:struts_effect_bending_stiff_joints}

Let's initialize an APA which is a little bit misaligned.
The bending stiffnesses for which the dynamics is identified are defined below.
Then the identification is performed for all the values of the bending stiffnesses.
The obtained dynamics from DAC voltage to encoder measurements are compared in Figure \ref{fig:effect_enc_bending_stiff}.
\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/effect_enc_bending_stiff.png}
\caption{\label{fig:effect_enc_bending_stiff}Dynamics from DAC output to encoder for several bending stiffnesses}
\end{figure}

\begin{important}
The bending stiffness of the joints has little impact on the transfer function from \(u\) to \(d_e\).
\end{important}
\subsection{Effect of axial stiffness of the flexible joints}
\label{sec:struts_effect_axial_stiff_joints}

The axial stiffnesses for which the dynamics is identified are defined below.
Then the identification is performed for all the values of the bending stiffnesses.
The obtained dynamics from DAC voltage to encoder measurements are compared in Figure \ref{fig:effect_enc_axial_stiff}.
\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/effect_enc_axial_stiff.png}
\caption{\label{fig:effect_enc_axial_stiff}Dynamics from DAC output to encoder for several axial stiffnesses}
\end{figure}

\begin{important}
The axial stiffness of the flexible joint has a large impact on the frequency of the complex conjugate zero.
Using the measured FRF on the test-bench, if is therefore possible to estimate the axial stiffness of the flexible joints from the location of the zero.

This method gives nice match between the measured FRF and the one extracted from the simscape model, however it could give not so accurate values of the joint's axial stiffness as other factors are also influencing the location of the zero.

Using this method, an axial stiffness of \(70 N/\mu m\) is found to give good results (and is reasonable based on the finite element models).
\end{important}
\subsection{Effect of bending damping}
\label{sec:struts_effect_bending_damping_joints}
Now let's study the effect of the bending damping of the flexible joints.

The tested bending damping are defined below:
Then the identification is performed for all the values of the bending damping.
The results are shown in Figure \ref{fig:effect_enc_bending_damp}.
\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/effect_enc_bending_damp.png}
\caption{\label{fig:effect_enc_bending_damp}Dynamics from DAC output to encoder for several bending damping}
\end{figure}
\chapter{Conclusion}
\label{sec:test_struts_conclusion}
\printbibliography[heading=bibintoc,title={Bibliography}]
\end{document}
