%! TEX root = ../thesis.tex
\chapter{Experiments}
<contains the experimental observations defined in th theory>

\section{Characterization}

\subsection{sampling time}
The first experiment needed to run was fo selecting an optimal number of cycles for which the adc will probe the to it at that moment connected pin. 

In this case the uncalibrated measurement of our input voltage was taken as example, and repeated with each of the possible 8 settings of the in Firmware used value.

The resulting errors can be seen in figures \ref{sampleticks1} and \ref{sampleticks2}

\begin{figure}[H]
    \centering
    \hspace*{-.16\columnwidth}
    \includegraphics[width=1.3\columnwidth]{./data/m04_cycledepends/cycledepends_20180529.pdf}
    \caption{plotted difference from set input voltage, and fitted linearly, May 29th 2018, $\approx$32\si\degree C}
    \label{sampleticks1}
\end{figure}
\begin{figure}[H]
    \centering
    \hspace*{-.16\columnwidth}
    \includegraphics[width=1.3\columnwidth]{./data/m04_cycledepends/cycledepends_20180530.pdf}
    \caption{plotted difference from set input voltage, and fitted linearly, May 30th 2018, $\approx$25\si\degree C}
    \label{sampleticks2}
\end{figure}

\subsection{Voltages}

    \subsubsection{48V Input}

    \subsubsection{9.6V Output}

    \subsubsection{1.8V Output}

        \begin{figure}[H]
            \centering
            \hspace*{-.16\columnwidth}
            \includegraphics[width=1.3\columnwidth]{./data/m02_adccalib_48/adccalib_v18ana.pdf}
            \caption{}
            \label{1v8anabefore}
        \end{figure}
        \begin{figure}[h]
            \centering
            \hspace*{-.16\columnwidth}
            \includegraphics[width=1.3\columnwidth]{./data/m02_adccalib_48/adccalib_v18digi.pdf}
            \caption{}
            \label{1v8digibefore}
        \end{figure}


\subsection{Currents}

    \subsubsection{48V Input}

        %TODO: 19.6 and 20.6 unusable
        % \begin{figure}[h]
        %     \centering
        %     \includegraphics[width=\textwidth]{../pitstop/20180619/i48.pdf}
        %     \caption{Calibration of input current adcs 19.06.2018}
        %     \label{}
        % \end{figure}
        % \begin{figure}[h]
        %     \centering
        %     \hspace*{-.16\columnwidth}
        %     \includegraphics[width=1.3\columnwidth]{../pitstop/20180620/i48.pdf}
        %     \caption{Calibration of input current adcs 20.06.2018}
        %     \label{}
        % \end{figure}
        \begin{figure}[H]
            \centering
            \hspace*{-.16\columnwidth}
            \includegraphics[width=1.3\columnwidth]{../pitstop/20180621/i48.pdf}
            \caption{Calibration of input current adcs 21.06.2018}
            \label{}
        \end{figure}

    \subsubsection{9.6V Output}

    \subsubsection{1.8V Output}
        \begin{figure}[H]
            \centering
            \hspace*{-.16\columnwidth}
            \includegraphics[width=1.3\columnwidth]{../pitstop/20180629/i18ana_nocalib.pdf}
            \caption{Pre Calibration Measurement of Output Current at the 1.8V Analog Terminal (29.06.2018)}
            \label{precalib18iana}
        \end{figure}


\section{after Calibration}

\inputminted{yaml}{../pitstop/pitdb.yaml}

\subsection{Voltages}

    \subsubsection{48V Input}

    \subsubsection{9.6V Output}

    \subsubsection{1.8V Output}

\subsection{Currents}

    \subsubsection{48V Input}

    \subsubsection{9.6V Output}

    \subsubsection{1.8V Output}
        \begin{figure}[H]
            \centering
            \hspace*{-.16\columnwidth}
            \includegraphics[width=1.3\columnwidth]{../pitstop/20180629/i18ana_postcalib.pdf}
            \caption{Post Calibration Measurement of Output Current at the 1.8V Analog Terminal (29.06.2018}
            \label{postcalib18iana}
        \end{figure}

\section{1.8V Regulation}

\subsection{Characterization of Dropoff}

\subsection{after <METHOD>-Correction}

\section{Pitfalls}

