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

\input{preamble.tex}
\bibliography{test-bench-apa.bib}
\author{Dehaeze Thomas}
\date{\today}
\title{Test Bench - Amplified Piezoelectric Actuator}
\hypersetup{
 pdfauthor={Dehaeze Thomas},
 pdftitle={Test Bench - Amplified Piezoelectric Actuator},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 29.2 (Org mode 9.7)}, 
 pdflang={English}}
\usepackage{biblatex}

\begin{document}

\maketitle
\tableofcontents

\clearpage
\begin{figure}[htbp]
\centering
\includegraphics[scale=1,width=0.7\linewidth]{figs/test_apa_received.jpg}
\caption{\label{fig:test_apa_received}Picture of 5 out of the 7 received APA300ML}
\end{figure}

The first goal is to characterize the APA300ML in terms of:
\begin{itemize}
\item The, geometric features, electrical capacitance, stroke, hysteresis, spurious resonances.
This is performed in Section \ref{sec:test_apa_basic_meas}.
\item The dynamics from the generated DAC voltage (going to the voltage amplifiers and then applied on the actuator stacks) to the induced displacement, and to the measured voltage by the force sensor stack.
Also the ``actuator constant'' and ``sensor constant'' are identified.
This is done in Section \ref{sec:test_apa_dynamics}.
\item Compare the measurements with the Simscape models (2DoF, Super-Element) in order to tuned/validate the models.
This is explained in Section \ref{sec:test_apa_simscape}.
\end{itemize}

\begin{table}[htbp]
\caption{\label{tab:test_apa_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_apa_basic_meas} & \texttt{test\_apa\_1\_basic\_meas.m}\\
Section \ref{sec:test_apa_dynamics} & \texttt{test\_apa\_2\_dynamics.m}\\
Section \ref{sec:test_apa_model_2dof} & \texttt{test\_apa\_3\_model\_2dof.m}\\
Section \ref{sec:test_apa_model_flexible} & \texttt{test\_apa\_4\_model\_flexible.m}\\
\bottomrule
\end{tabularx}
\end{table}
\chapter{First Basic Measurements}
\label{sec:test_apa_basic_meas}

Before using the measurement bench to characterize the APA300ML, first simple measurements are performed:
\begin{itemize}
\item Section \ref{sec:test_apa_geometrical_measurements}: the geometric tolerances of the interface planes are checked
\item Section \ref{sec:test_apa_electrical_measurements}: the capacitance of the piezoelectric stacks is measured
\item Section \ref{sec:test_apa_stroke_measurements}: the stroke of each APA is measured
\item Section \ref{sec:test_apa_spurious_resonances}: the ``spurious'' resonances of the APA are investigated
\end{itemize}
\section{Geometrical Measurements}
\label{sec:test_apa_geometrical_measurements}

To measure the flatness of the two mechanical interfaces of the APA300ML, a small measurement bench is installed on top of a metrology granite with very good flatness.

As shown in Figure \ref{fig:test_apa_flatness_setup}, the APA is fixed to a clamp while a measuring probe\footnote{Heidenhain MT25, specified accuracy of \(0.5\,\mu m\)} is used to measure the height of 4 points on each of the APA300ML interfaces.

From the X-Y-Z coordinates of the measured 8 points, the flatness is estimated by best fitting\footnote{The Matlab \texttt{fminsearch} command is used to fit the plane} a plane through all the points.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1,width=0.4\linewidth]{figs/test_apa_flatness_setup.png}
\caption{\label{fig:test_apa_flatness_setup}Measurement setup for flatness estimation of the two mechanical interfaces}
\end{figure}

The measured flatness, summarized in Table \ref{tab:test_apa_flatness_meas}, are within the specifications.

\begin{table}[htbp]
\caption{\label{tab:test_apa_flatness_meas}Estimated flatness of the APA300ML interfaces}
\centering
\begin{tabularx}{0.3\linewidth}{Xc}
\toprule
 & \textbf{Flatness} \([\mu m]\)\\
\midrule
APA 1 & 8.9\\
APA 2 & 3.1\\
APA 3 & 9.1\\
APA 4 & 3.0\\
APA 5 & 1.9\\
APA 6 & 7.1\\
APA 7 & 18.7\\
\bottomrule
\end{tabularx}
\end{table}
\section{Electrical Measurements}
\label{sec:test_apa_electrical_measurements}

From the documentation of the APA300ML, the total capacitance of the three stacks should be between \(18\,\mu F\) and \(26\,\mu F\) with a nominal capacitance of \(20\,\mu F\).

The capacitance of the piezoelectric stacks found in the APA300ML have been measured with the LCR meter\footnote{LCR-819 from Gwinstek, specified accuracy of \(0.05\%\), measured frequency is set at \(1\,\text{kHz}\)} shown in Figure \ref{fig:test_apa_lcr_meter}.
The two stacks used as an actuator and the stack used as a force sensor are measured separately.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1,width=0.6\linewidth]{figs/test_apa_lcr_meter.jpg}
\caption{\label{fig:test_apa_lcr_meter}LCR Meter used for the measurements}
\end{figure}

The measured capacitance are summarized in Table \ref{tab:test_apa_capacitance} and the average capacitance of one stack is \(\approx 5 \mu F\).
However, the measured capacitance of the stacks of ``APA 3'' is only half of the expected capacitance.
This may indicate a manufacturing defect.

The measured capacitance is found to be lower than the specified one.
This may be due to the fact that the manufacturer measures the capacitance with large signals (\(-20\,V\) to \(150\,V\)) while it was here measured with small signals.

\begin{table}[htbp]
\caption{\label{tab:test_apa_capacitance}Capacitance measured with the LCR meter. The excitation signal is a sinus at 1kHz}
\centering
\begin{tabularx}{0.5\linewidth}{lcc}
\toprule
 & \textbf{Sensor Stack} & \textbf{Actuator Stacks}\\
\midrule
APA 1 & 5.10 & 10.03\\
APA 2 & 4.99 & 9.85\\
APA 3 & 1.72 & 5.18\\
APA 4 & 4.94 & 9.82\\
APA 5 & 4.90 & 9.66\\
APA 6 & 4.99 & 9.91\\
APA 7 & 4.85 & 9.85\\
\bottomrule
\end{tabularx}
\end{table}
\section{Stroke and Hysteresis Measurement}
\label{sec:test_apa_stroke_measurements}

The goal is here to verify that the stroke of the APA300ML is as specified in the datasheet.
To do so, one side of the APA is fixed to the granite, and a displacement probe\footnote{Millimar 1318 probe, specified linearity better than \(1\,\mu m\)} is located on the other side as shown in Figure \ref{fig:test_apa_stroke_bench}.

Then, the voltage across the two actuator stacks is varied from \(-20\,V\) to \(150\,V\) using a DAC and a voltage amplifier.
Note that the voltage is here slowly varied as the displacement probe has a very low measurement bandwidth (see Figure \ref{fig:test_apa_stroke_bench}, left).

\begin{figure}[htbp]
\centering
\includegraphics[scale=1,width=0.9\linewidth]{figs/test_apa_stroke_bench.jpg}
\caption{\label{fig:test_apa_stroke_bench}Bench to measured the APA stroke}
\end{figure}

The measured APA displacement is shown as a function of the applied voltage in Figure \ref{fig:test_apa_stroke_result}, right.

Typical hysteresis curves for piezoelectric stack actuators can be observed.
The measured stroke is approximately \(250\,\mu m\) when using only two of the three stacks, which is enough for the current application.
This is even above what is specified as the nominal stroke in the data-sheet (\(304\,\mu m\), therefore \(\approx 200\,\mu m\) if only two stacks are used).

It is clear from Figure \ref{fig:test_apa_stroke_result} that ``APA 3'' has an issue compared to the other units.
This confirms the abnormal electrical measurements made in Section \ref{sec:test_apa_electrical_measurements}.
This unit was send sent back to Cedrat and a new one was shipped back.
From now on, only the six APA that behave as expected will be used.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_apa_stroke_result.png}
\caption{\label{fig:test_apa_stroke_result}Generated voltage across the two piezoelectric stack actuators to estimate the stroke of the APA300ML (left). Measured displacement as a function of the applied voltage (right)}
\end{figure}
\section{Flexible Mode Measurement}
\label{sec:test_apa_spurious_resonances}

In this section, the flexible modes of the APA300ML are investigated both experimentally and using a Finite Element Model.

To experimentally estimate these modes, the APA is fixed on one end (see Figure \ref{fig:test_apa_meas_setup_torsion}).
A Laser Doppler Vibrometer\footnote{Polytec controller 3001 with sensor heads OFV512} is used to measure the difference of motion between two ``red'' points (i.e. the torsion of the APA along the vertical direction) and an instrumented hammer\footnote{Kistler 9722A} is used to excite the flexible modes.
Using this setup, the transfer function from the injected force to the measured rotation can be computed in different conditions and the frequency and mode shapes of the flexible modes can be estimated.

The flexible modes for the same condition (i.e. one mechanical interface of the APA300ML fixed) are estimated using a finite element software and the results are shown in Figure \ref{fig:test_apa_mode_shapes}.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1,width=0.9\linewidth]{figs/test_apa_mode_shapes.png}
\caption{\label{fig:test_apa_mode_shapes}Spurious resonances - Change this with the updated FEM analysis of the APA300ML}
\end{figure}

\begin{figure}[htbp]
\centering
\includegraphics[scale=1,width=0.6\linewidth]{figs/test_apa_meas_setup_torsion.jpg}
\caption{\label{fig:test_apa_meas_setup_torsion}Measurement setup with a Laser Doppler Vibrometer and one instrumental hammer. Here the \(Z\) torsion is measured.}
\end{figure}

Two other similar measurements are performed to measured the bending of the APA around the \(X\) direction and around the \(Y\) direction (see Figure \ref{fig:test_apa_meas_setup_modes}).

\begin{figure}
\begin{subfigure}{0.49\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.95\linewidth]{figs/test_apa_meas_setup_X_bending.jpg}
\end{center}
\subcaption{\label{fig:test_apa_meas_setup_X_bending}$X$ bending}
\end{subfigure}
\begin{subfigure}{0.49\textwidth}
\begin{center}
\includegraphics[scale=1,width=0.95\linewidth]{figs/test_apa_meas_setup_Y_bending.jpg}
\end{center}
\subcaption{\label{fig:test_apa_meas_setup_Y_bending}$Y$ Bending}
\end{subfigure}
\caption{\label{fig:test_apa_meas_setup_modes}Experimental setup to measured flexible modes of the APA300ML. For the bending in the \(X\) direction, the impact point is located at the back of the top measurement point. For the bending in the \(Y\) direction, the impact point is located on the back surface of the top interface (on the back of the 2 measurements points).}
\end{figure}

The three measured frequency response functions are shown in Figure \ref{fig:test_apa_meas_freq_compare}.
\begin{itemize}
\item a clear \(x\) bending mode at \(280\,\text{Hz}\)
\item a clear \(y\) bending mode at \(412\,\text{Hz}\)
\item for the \(z\) torsion test, the \(y\) bending mode is also excited and observed, and we may see a mode at \(800\,\text{Hz}\)
\end{itemize}

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_apa_meas_freq_compare.png}
\caption{\label{fig:test_apa_meas_freq_compare}Obtained frequency response functions for the 3 tests with the instrumented hammer}
\end{figure}

\begin{table}[htbp]
\caption{\label{tab:test_apa_measured_modes_freq}Measured frequency of the modes}
\centering
\begin{tabularx}{0.5\linewidth}{Xcc}
\toprule
\textbf{Mode} & \textbf{FEM} & \textbf{Measured Frequency}\\
\midrule
\(X\) bending &  & 280Hz\\
\(Y\) bending &  & 410Hz\\
\(Z\) torsion &  & 800Hz\\
\bottomrule
\end{tabularx}
\end{table}
\chapter{Dynamical measurements}
\label{sec:test_apa_dynamics}

After the basic measurements on the APA were performed in Section \ref{sec:test_apa_basic_meas}, a new test bench is used to better characterize the APA.

This test bench is shown in Figure \ref{fig:test_bench_apa} and consists of the APA300ML fixed on one end to the fixed granite, and on the other end to the 5kg granite vertically guided with an air bearing.
An encoder is used to measure the relative motion between the two granites (i.e. the displacement of the APA).

\begin{figure}
\begin{subfigure}{0.3\textwidth}
\begin{center}
\includegraphics[scale=1,height=8cm]{figs/test_apa_bench_picture.jpg}
\end{center}
\subcaption{\label{fig:test_apa_bench_picture}Picture of the test bench}
\end{subfigure}
\begin{subfigure}{0.69\textwidth}
\begin{center}
\includegraphics[scale=1,height=8cm]{figs/test_apa_bench_picture_encoder.jpg}
\end{center}
\subcaption{\label{fig:test_apa_bench_picture_encoder}Zoom on the APA with the encoder}
\end{subfigure}
\caption{\label{fig:test_bench_apa}Test bench used to characterize the APA300ML}
\end{figure}

The bench is schematically shown in Figure \ref{fig:test_apa_schematic} and the signal used are summarized in Table \ref{tab:test_apa_variables}.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1,scale=1]{figs/test_apa_schematic.png}
\caption{\label{fig:test_apa_schematic}Schematic of the Test Bench}
\end{figure}

\begin{table}[htbp]
\caption{\label{tab:test_apa_variables}Variables used during the measurements}
\centering
\begin{tabularx}{0.6\linewidth}{cXc}
\toprule
\textbf{Variable} & \textbf{Description} & \textbf{Unit}\\
\midrule
\(u\) & Output DAC Voltage & \(V\)\\
\(V_a\) & Output Amplifier Voltage & \(V\)\\
\(V_s\) & Measured Stack Voltage (ADC) & \(V\)\\
\(d_e\) & Encoder Measurement & \(m\)\\
\bottomrule
\end{tabularx}
\end{table}

This bench will be used to:
\begin{itemize}
\item measure the dynamics of the APA (from \(V_a\) to \(d_e\) and \(d_a\) in Section \ref{ssec:test_apa_meas_frf_disp}, and from \(V_a\) to \(V_s\) in section \ref{ssec:test_apa_meas_frf_force})
\item estimate the added damping using Integral Force Feedback (Section \ref{ssec:test_apa_iff_locus})
\end{itemize}

These measurements will also be used to tune the model of the APA in Section \ref{sec:test_apa_simscape}.
\section{Hysteresis}
\label{ssec:test_apa_hysteresis}

As the payload is vertically guided without friction, the hysteresis of the APA can be estimated from the motion of the payload.

A quasi static sinusoidal excitation \(V_a\) with an offset of \(65\,V\) (halfway between \(-20\,V\) and \(150\,V\)), and an amplitude varying from \(4\,V\) up to \(80\,V\).

For each excitation amplitude, the vertical displacement \(d_e\) of the mass is measured and displayed as a function of the applied voltage..

The measured displacements as a function of the output voltages are shown in Figure \ref{fig:test_apa_meas_hysteresis}.
It is interesting to see that the hysteresis is increasing with the excitation amplitude.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_apa_meas_hysteresis.png}
\caption{\label{fig:test_apa_meas_hysteresis}Obtained hysteresis curves (displacement as a function of applied voltage) for multiple excitation amplitudes}
\end{figure}
\section{Axial stiffness}
\label{ssec:test_apa_stiffness}

In order to estimate the stiffness of the APA, a weight with known mass \(m_a = 6.4\,\text{kg}\) is added on top of the suspended granite and the deflection \(d_e\) is measured using the encoder.

The APA stiffness can then be estimated from equation \eqref{eq:test_apa_stiffness}.

\begin{equation} \label{eq:test_apa_stiffness}
  k_{\text{apa}} = \frac{m_a g}{\Delta d_e}
\end{equation}

The measured displacement \(d_e\) as a function of time is shown in Figure \ref{fig:test_apa_meas_stiffness_time}.
It can be seen that there are some drifts in the measured displacement (probably due to piezoelectric creep) and the that displacement does not come back to the initial position after the mass is removed (probably due to piezoelectric hysteresis).
These two effects induce some uncertainties in the measured stiffness.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_apa_meas_stiffness_time.png}
\caption{\label{fig:test_apa_meas_stiffness_time}Measured displacement when adding the mass (at \(t \approx 3\,s\)) and removing the mass(at \(t \approx 13\,s\))}
\end{figure}

The stiffnesses are computed for all the APA from the two displacements \(d_1\) and \(d_2\) (see Figure \ref{fig:test_apa_meas_stiffness_time}) leading to two stiffness estimations \(k_1\) and \(k_2\).
These estimated stiffnesses are summarized in Table \ref{tab:test_apa_measured_stiffnesses} and are found to be close to the nominal stiffness \(k = 1.8\,N/\mu m\) found in the APA300ML manual.

\begin{table}[htbp]
\caption{\label{tab:test_apa_measured_stiffnesses}Measured stiffnesses (in \(N/\mu m\))}
\centering
\begin{tabularx}{0.2\linewidth}{ccc}
\toprule
APA & \(k_1\) & \(k_2\)\\
\midrule
1 & 1.68 & 1.9\\
2 & 1.69 & 1.9\\
4 & 1.7 & 1.91\\
5 & 1.7 & 1.93\\
6 & 1.7 & 1.92\\
8 & 1.73 & 1.98\\
\bottomrule
\end{tabularx}
\end{table}

The stiffness can also be computed using equation \eqref{eq:test_apa_res_freq} by knowing the main vertical resonance frequency \(\omega_z \approx 95\,\text{Hz}\) (estimated by the dynamical measurements shown in section \ref{ssec:test_apa_meas_dynamics}) and the suspended mass \(m_{\text{sus}} = 5.7\,\text{kg}\).

\begin{equation} \label{eq:test_apa_res_freq}
\omega_z = \sqrt{\frac{k}{m_{\text{sus}}}}
\end{equation}

The obtain stiffness is \(k \approx 2\,N/\mu m\) which is close to the values found in the documentation and by the ``static deflection'' method.


However, changes in the electrical impedance connected to the piezoelectric stacks impacts the mechanical compliance (or stiffness) of the piezoelectric stack \cite[chap. 2]{reza06_piezoel_trans_vibrat_contr_dampin}.

To estimate this effect, the stiffness of the APA if measured using the ``static deflection'' method in two cases:
\begin{itemize}
\item \(k_{\text{os}}\): piezoelectric stacks left unconnected (or connect to the high impedance ADC)
\item \(k_{\text{sc}}\): piezoelectric stacks short circuited (or connected to the voltage amplifier with small output impedance)
\end{itemize}

The open-circuit stiffness is estimated at \(k_{\text{oc}} \approx 2.3\,N/\mu m\) and the closed-circuit stiffness \(k_{\text{sc}} \approx 1.7\,N/\mu m\).
\section{Dynamics}
\label{ssec:test_apa_meas_dynamics}

In this section, the dynamics of the system from the excitation voltage \(u\) to encoder measured displacement \(d_e\)  and to the force sensor voltage \(V_s\) is identified.

The obtained transfer functions for the 6 APA between the excitation voltage \(u\) and the encoder displacement \(d_e\) are shown in Figure \ref{fig:test_apa_frf_encoder}.
The obtained transfer functions are close to a mass-spring-damper system.
The following can be observed:
\begin{itemize}
\item A ``stiffness line'' indicating a static gain equal to \(\approx -17\,\mu m/V\).
The minus sign comes from the fact that an increase in voltage stretches the piezoelectric stack that then reduces the height of the APA
\item A lightly damped resonance at \(95\,\text{Hz}\)
\item A ``mass line'' up to \(\approx 800\,\text{Hz}\), above which some resonances appear. These additional resonances might be coming from the limited stiffness of the encoder support or from the limited compliance of the APA support.
\end{itemize}

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_apa_frf_encoder.png}
\caption{\label{fig:test_apa_frf_encoder}Estimated Frequency Response Function from generated voltage \(u\) to the encoder displacement \(d_e\) for the 6 APA300ML}
\end{figure}

The dynamics from \(u\) to the measured voltage across the sensor stack \(V_s\) is also identified and shown in Figure \ref{fig:test_apa_frf_force}.

A lightly damped resonance is observed at \(95\,\text{Hz}\) and a lightly damped anti-resonance at \(41\,\text{Hz}\).
No additional resonances is present up to at least \(2\,\text{kHz}\) indicating at Integral Force Feedback can be applied without stability issues from high frequency flexible modes.

As illustrated by the Root Locus, the poles of the closed-loop system converges to the zeros of the open-loop plant.
Suppose that a controller with a very high gain is implemented such that the voltage \(V_s\) across the sensor stack is zero.
In that case, because of the very high controller gain, no stress and strain is present on the sensor stack (and on the actuator stacks are well, as they are both in series).
Such closed-loop system would therefore virtually corresponds to a system for which the piezoelectric stacks have been removed and just the mechanical shell is kept.
From this analysis, the axial stiffness of the shell can be estimated to be \(k_{\text{shell}} = 5.7 \cdot (2\pi \cdot 41)^2 = 0.38\,N/\mu m\).
Such reasoning can lead to very interesting insight into the system just from an open-loop identification.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_apa_frf_force.png}
\caption{\label{fig:test_apa_frf_force}Estimated Frequency Response Function from generated voltage \(u\) to the sensor stack voltage \(V_s\) for the 6 APA300ML}
\end{figure}

All the identified dynamics of the six APA300ML (both when looking at the encoder in Figure \ref{fig:test_apa_frf_encoder} and at the force sensor in Figure \ref{fig:test_apa_frf_force}) are almost identical, indicating good manufacturing repeatability for the piezoelectric stacks and the mechanical lever.
\section{Effect of the resistor on the IFF Plant}
\label{ssec:test_apa_resistance_sensor_stack}

A resistor \(R \approx 80.6\,k\Omega\) is added in parallel with the sensor stack which has the effect to form a high pass filter with the capacitance of the stack.

As explain before, this is done for two reasons:
\begin{enumerate}
\item Limit the voltage offset due to the input bias current of the ADC
\item Limit the low frequency gain
\end{enumerate}

The (low frequency) transfer function from \(u\) to \(V_s\) with and without this resistor have been measured and are compared in Figure \ref{fig:test_apa_effect_resistance}.
It is confirmed that the added resistor as the effect of adding an high pass filter with a cut-off frequency of \(\approx 0.35\,\text{Hz}\).

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_apa_effect_resistance.png}
\caption{\label{fig:test_apa_effect_resistance}Transfer function from u to \(V_s\) with and without the resistor \(R\) in parallel with the piezoelectric stack used as the force sensor}
\end{figure}
\section{Integral Force Feedback}
\label{ssec:test_apa_iff_locus}

This test bench can also be used to estimate the damping added by the implementation of an Integral Force Feedback strategy.

First, the transfer function \eqref{eq:test_apa_iff_manual_fit} is manually tuned to match the identified dynamics from generated voltage \(u\) to the measured sensor stack voltage \(V_s\) in Section \ref{ssec:test_apa_meas_dynamics}.

The obtained parameter values are \(\omega_{\textsc{hpf}} = 0.4\, \text{Hz}\), \(\omega_{z} = 42.7\, \text{Hz}\), \(\xi_{z} = 0.4\,\%\), \(\omega_{p} = 95.2\, \text{Hz}\), \(\xi_{p} = 2\,\%\) and \(g_0 = 0.64\).

\begin{equation} \label{eq:test_apa_iff_manual_fit}
G_{\textsc{iff},m}(s) = g_0 \cdot \frac{1 + 2 \xi_z \frac{s}{\omega_z} + \frac{s^2}{\omega_z^2}}{1 + 2 \xi_p \frac{s}{\omega_p} + \frac{s^2}{\omega_p^2}} \cdot \frac{s}{\omega_{\textsc{hpf}} + s}
\end{equation}

The comparison between the identified plant and the manually tuned transfer function is done in Figure \ref{fig:test_apa_iff_plant_comp_manual_fit}.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_apa_iff_plant_comp_manual_fit.png}
\caption{\label{fig:test_apa_iff_plant_comp_manual_fit}Identified IFF plant and manually tuned model of the plant (a time delay of \(200\,\mu s\) is added to the model of the plant to better match the identified phase)}
\end{figure}

The implemented Integral Force Feedback Controller transfer function is shown in equation \eqref{eq:test_apa_Kiff_formula}.
It contains an high pass filter (cut-off frequency of \(2\,\text{Hz}\)) to limit the low frequency gain, a low pass filter to add integral action above \(20\,\text{Hz}\), a second low pass filter to add robustness to high frequency resonances and a tunable gain \(g\).

\begin{equation} \label{eq:test_apa_Kiff_formula}
K_{\textsc{iff}}(s) = -10 \cdot g \cdot \frac{s}{s + 2\pi \cdot 2} \cdot \frac{1}{1 + 2\pi \cdot 20} \cdot \frac{1}{s + 2\pi\cdot 2000}
\end{equation}

To estimate how the dynamics of the APA changes when the Integral Force Feedback controller is implemented, the test bench shown in Figure \ref{fig:test_apa_iff_schematic} is used.
The transfer function from the ``damped'' plant input \(u\prime\) to the encoder displacement \(d_e\) is identified for several IFF controller gains \(g\).

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_apa_iff_schematic.png}
\caption{\label{fig:test_apa_iff_schematic}Figure caption}
\end{figure}

The identified dynamics are then fitted by second order transfer functions.
The comparison between the identified damped dynamics and the fitted second order transfer functions is done in Figure \ref{fig:test_apa_identified_damped_plants} for different gains \(g\).
It is clear that large amount of damping is added when the gain is increased and that the frequency of the pole is shifted to lower frequencies.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_apa_identified_damped_plants.png}
\caption{\label{fig:test_apa_identified_damped_plants}Identified dynamics (solid lines) and fitted transfer functions (dashed lines) from \(u\prime\) to \(d_e\) for different IFF gains}
\end{figure}

The evolution of the pole in the complex plane as a function of the controller gain \(g\) (i.e. the ``root locus'') is computed:
\begin{itemize}
\item using the IFF plant model \eqref{eq:test_apa_iff_manual_fit} and the implemented controller \eqref{eq:test_apa_Kiff_formula}
\item from the fitted transfer functions of the damped plants experimentally identified for several controller gains
\end{itemize}

The two obtained root loci are compared in Figure \ref{fig:test_apa_iff_root_locus} and are in good agreement considering that the damped plants were only fitted using a second order transfer function.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_apa_iff_root_locus.png}
\caption{\label{fig:test_apa_iff_root_locus}Root Locus of the APA300ML with Integral Force Feedback - Comparison between the computed root locus from the plant model (black line) and the root locus estimated from the damped plant pole identification (colorful crosses)}
\end{figure}
\begin{important}
So far, all the measured FRF are showing the dynamical behavior that was expected.
\end{important}
\chapter{2 Degrees of Freedom Model}
\label{sec:test_apa_model_2dof}

In this section, a simscape model (Figure \ref{fig:test_apa_bench_model}) of the measurement bench is used to compare the model of the APA with the measured frequency response functions.

After the transfer functions are extracted from the model (Section \ref{sec:simscape_bench_apa_first_id}), the comparison of the obtained dynamics with the measured FRF will permit to:
\begin{enumerate}
\item Estimate the ``actuator constant'' and ``sensor constant'' (Section \ref{sec:simscape_bench_apa_id_constants})
\item ``Actuator constant'': Gain from the applied voltage \(V_a\) to the generated Force \(F_a\)
\item ``Sensor constant'': Gain from the sensor stack strain \(\delta L\) to the generated voltage \(V_s\)
\item Tune the model of the APA to match the measured dynamics (Section \ref{sec:simscape_bench_apa_tune_2dof_model})
\end{enumerate}

\begin{figure}[htbp]
\centering
\includegraphics[scale=1,width=0.8\linewidth]{figs/test_apa_bench_model.png}
\caption{\label{fig:test_apa_bench_model}Screenshot of the Simscape model}
\end{figure}
\section{Two Degrees of Freedom APA Model}
\label{ssec:test_apa_2dof_model}

The APA model shown in Figure \ref{fig:test_apa_2dof_model} is adapted from \cite{souleille18_concep_activ_mount_space_applic}.

It can be decomposed into three components:
\begin{itemize}
\item the shell whose axial properties are represented by \(k_1\) and \(c_1\)
\item the actuator stacks whose contribution in the axial stiffness is represented by \(k_a\) and \(c_a\).
A force source \(\tau\) represents the axial force induced by the force sensor stacks.
The gain \(g_a\) (in \(N/m\)) is used to convert the applied voltage \(V_a\) to the axial force \(\tau\)
\item the actuator stacks whose contribution in the axial stiffness is represented by \(k_e\) and \(c_e\).
A ``strain sensor'' \(d_L\), and a gain \(g_s\) (in \(V/m\)) that converts this strain into a generated voltage
\end{itemize}

Such simple model has some limitations:
\begin{itemize}
\item it only represents the axial characteristics of the APA (infinitely rigid in other directions)
\item some physical insights are lost such as the amplification factor, the real stress and strain on the piezoelectric stacks
\item it is fully linear and therefore the creep and hysteresis of the piezoelectric stacks are not modelled
\end{itemize}

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_apa_2dof_model.png}
\caption{\label{fig:test_apa_2dof_model}Schematic of the two degrees of freedom model of the APA300ML}
\end{figure}
\section{Tuning of the APA model}
\label{ssec:test_apa_2dof_model_tuning}

9 parameters (\(m\), \(k_1\), \(c_1\), \(k_e\), \(c_e\), \(k_a\), \(c_a\), \(g_s\) and \(g_a\)) have to be tuned such that the dynamics of the model (Figure \ref{fig:test_apa_2dof_model_simscape}) well represents the identified dynamics in Section \ref{sec:test_apa_dynamics}.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_apa_2dof_model_simscape.png}
\caption{\label{fig:test_apa_2dof_model_simscape}Schematic of the two degrees of freedom model of the APA300ML with input \(V_a\) and outputs \(d_e\) and \(V_s\)}
\end{figure}

First, the mass supported by the APA300ML can simply be estimated from the geometry and density of the different parts or by directly measuring it using a precise weighing scale.
Both methods leads to an estimated mass of \(5.7\,\text{kg}\).

Then, the axial stiffness of the shell was estimated at \(k_1 = 0.38\,N/\mu m\) in Section \ref{ssec:test_apa_meas_dynamics} from the frequency of the anti-resonance seen on Figure \ref{fig:test_apa_frf_force}.
Similarly, \(c_1\) can be estimated from the damping ratio of the same anti-resonance and is found to be close to \(20\,Ns/m\).

Then, it is reasonable to make the assumption that the sensor stacks and the two actuator stacks have identical mechanical characteristics\footnote{Note that this is not fully correct as it was shown in Section \ref{ssec:test_apa_stiffness} that the electrical boundaries of the piezoelectric stack impacts its stiffness and that the sensor stack is almost open-circuited while the actuator stacks are almost short-circuited.}.
Therefore, we have \(k_e = 2 k_a\) and \(c_e = 2 c_a\) as the actuator stack is composed of two stacks in series.
In that case, the total stiffness of the APA model is described by \eqref{eq:test_apa_2dof_stiffness}.

\begin{equation}\label{eq:test_apa_2dof_stiffness}
k_{\text{tot}} = k_1 + \frac{k_e k_a}{k_e + k_a} = k_1 + \frac{2}{3} k_a
\end{equation}

Knowing from \eqref{eq:test_apa_tot_stiffness} that the total stiffness is \(k_{\text{tot}} = 2\,N/\mu m\), we get from \eqref{eq:test_apa_2dof_stiffness} that \(k_a = 2.5\,N/\mu m\) and \(k_e = 5\,N/\mu m\).

\begin{equation}\label{eq:test_apa_tot_stiffness}
\omega_0 = \frac{k_{\text{tot}}}{m} \Longrightarrow k_{\text{tot}} = m \omega_0^2 = 2\,N/\mu m \quad \text{with}\ m = 5.7\,\text{kg}\ \text{and}\ \omega_0 = 2\pi \cdot 95\, \text{rad}/s
\end{equation}

Then, \(c_a\) (and therefore \(c_e = 2 c_a\)) can be tuned to match the damping ratio of the identified resonance.
\(c_a = 100\,Ns/m\) and \(c_e = 200\,Ns/m\) are obtained.

Finally, the two gains \(g_s\) and \(g_a\) can be used to match the gain of the identified transfer functions.

The obtained parameters of the model shown in Figure \ref{fig:test_apa_2dof_model_simscape} are summarized in Table \ref{tab:test_apa_2dof_parameters}.

\begin{table}[htbp]
\caption{\label{tab:test_apa_2dof_parameters}Summary of the obtained parameters for the 2 DoF APA300ML model}
\centering
\begin{tabularx}{0.3\linewidth}{cc}
\toprule
\textbf{Parameter} & \textbf{Value}\\
\midrule
\(m\) & \(5.7\,\text{kg}\)\\
\(k_1\) & \(0.38\,N/\mu m\)\\
\(k_e\) & \(5.0\, N/\mu m\)\\
\(k_a\) & \(2.5\,N/\mu m\)\\
\(c_1\) & \(20\,Ns/m\)\\
\(c_e\) & \(200\,Ns/m\)\\
\(c_a\) & \(100\,Ns/m\)\\
\(g_a\) & \(-2.58\,N/V\)\\
\(g_s\) & \(4.6\,V/\mu m\)\\
\bottomrule
\end{tabularx}
\end{table}
\section{Obtained Dynamics}
\label{ssec:test_apa_2dof_model_result}

The dynamics of the 2DoF APA300ML model is now extracted using optimized parameters (listed in Table \ref{tab:test_apa_2dof_parameters}) from the Simscape model.
It is compared with the experimental data in Figure \ref{fig:test_apa_2dof_comp_frf}.

A good match can be observed between the model and the experimental data, both for the encoder and for the force sensor.
This indicates that this model represents well the axial dynamics of the APA300ML.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_apa_2dof_comp_frf.png}
\caption{\label{fig:test_apa_2dof_comp_frf}Comparison of the measured FRF and the optimized 2DoF model of the APA300ML}
\end{figure}
\chapter{APA300ML - Super Element}
\label{sec:test_apa_model_flexible}

In this section, a \emph{super element} of the Amplified Piezoelectric Actuator ``APA300ML'' is extracted using a Finite Element Software.
It is then imported in Simscape (using the stiffness and mass matrices) and it is included in the same model that was used in \ref{sec:test_apa_model_2dof}.

This procedure is illustrated in Figure \ref{fig:test_apa_super_element_simscape}.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1,width=1.0\linewidth]{figs/test_apa_super_element_simscape.png}
\caption{\label{fig:test_apa_super_element_simscape}Finite Element Model of the APA300ML with ``remotes points'' on the left. Simscape model with included ``Reduced Order Flexible Solid'' on the right.}
\end{figure}
\section{Extraction of the super-element}

\begin{itemize}
\item Explain how the ``remote points'' are chosen
\item Show some parts of the mass and stiffness matrices?
\item Say which materials were used?
\item Maybe this was already explain earlier in the manuscript
\end{itemize}
\section{Identification of the Actuator and Sensor constants}
\label{ssec:test_apa_flexible_ga_gs}

Once the APA300ML \emph{super element} is included in the Simscape model, the transfer function from \(F_a\) to \(d_L\) and \(d_e\) can be identified.
The gains \(g_a\) and \(g_s\) can then be tuned such that the gain of the transfer functions are matching the identified ones.

By doing so, \(g_s = 4.9\,V/\mu m\) and \(g_a = 23.2\,N/V\) are obtained.

To make sure these ``gains'' are physically valid, it is possible to estimate them from physical properties of the piezoelectric stack material.

From \cite[p. 123]{fleming14_desig_model_contr_nanop_system}, the relation between relative displacement \(d_L\) of the sensor stack and generated voltage \(V_s\) is given by \eqref{eq:test_apa_piezo_strain_to_voltage} and from \cite{fleming10_integ_strain_force_feedb_high} the relation between the force \(F_a\) and the applied voltage \(V_a\) is given by \eqref{eq:test_apa_piezo_voltage_to_force}.

\begin{subequations}
\begin{align}
  V_s &= \underbrace{\frac{d_{33}}{\epsilon^T s^D n}}_{g_s} d_L \label{eq:test_apa_piezo_strain_to_voltage} \\
  F_a &= \underbrace{d_{33} n k_a}_{g_a} \cdot V_a, \quad k_a = \frac{c^{E} A}{L} \label{eq:test_apa_piezo_voltage_to_force}
\end{align}
\end{subequations}

Parameters used in equations \eqref{eq:test_apa_piezo_strain_to_voltage} and \eqref{eq:test_apa_piezo_voltage_to_force} are described in Table \ref{tab:test_apa_piezo_properties}.

Unfortunately, the manufacturer of the stack was not willing to share the piezoelectric material properties of the stack used in the APA300ML.
However, based on available properties of the APA300ML stacks in the data-sheet, the soft Lead Zirconate Titanate ``THP5H'' from Thorlabs seemed to match quite well the observed properties.
The properties of this ``THP5H'' material used to compute \(g_a\) and \(g_s\) are listed in Table \ref{tab:test_apa_piezo_properties}.

From these parameters, \(g_s = 5.1\,V/\mu m\) and \(g_a = 26\,N/V\) were obtained which are very close to the identified constants using the experimentally identified transfer functions.

\begin{table}[htbp]
\caption{\label{tab:test_apa_piezo_properties}Piezoelectric properties used for the estimation of the sensor and actuators ``gains''}
\centering
\begin{tabularx}{1\linewidth}{ccX}
\toprule
\textbf{Parameter} & \textbf{Value} & \textbf{Description}\\
\midrule
\(d_{33}\) & \(680 \cdot 10^{-12}\,m/V\) & Piezoelectric constant\\
\(\epsilon^{T}\) & \(4.0 \cdot 10^{-8}\,F/m\) & Permittivity under constant stress\\
\(s^{D}\) & \(21 \cdot 10^{-12}\,m^2/N\) & Elastic compliance understand constant electric displacement\\
\(c^{E}\) & \(48 \cdot 10^{9}\,N/m^2\) & Young's modulus of elasticity\\
\(L\) & \(20\,mm\) per stack & Length of the stack\\
\(A\) & \(10^{-4}\,m^2\) & Area of the piezoelectric stack\\
\(n\) & \(160\) per stack & Number of layers in the piezoelectric stack\\
\bottomrule
\end{tabularx}
\end{table}
\section{Comparison of the obtained dynamics}

The obtained dynamics using the \emph{super element} with the tuned ``sensor gain'' and ``actuator gain'' are compared with the experimentally identified frequency response functions in Figure \ref{fig:test_apa_super_element_comp_frf}.

A good match between the model and the experimental results is observed.
\begin{itemize}
\item the \emph{super element}
\end{itemize}

This model represents fairly

The flexible model is a bit ``soft'' as compared with the experimental results.

This method can be used to model piezoelectric stack actuators as well as amplified piezoelectric stack actuators.

\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/test_apa_super_element_comp_frf.png}
\caption{\label{fig:test_apa_super_element_comp_frf}Comparison of the measured FRF and the ``Flexible'' model of the APA300ML}
\end{figure}
\chapter{Conclusion}
\label{sec:test_apa_conclusion}

\begin{itemize}
\item Compare 2DoF and FEM models (usefulness of the two)
\item Good match between all the APA: will simplify the modeling and control of the nano-hexapod
\item No advantage of the FEM model here (as only uniaxial behavior is checked), but may be useful later
\end{itemize}
\printbibliography[heading=bibintoc,title={Bibliography}]
\end{document}
