2012-09-05 18:01:37 +00:00
|
|
|
%\pdfminorversion=4
|
|
|
|
\documentclass{beamer}
|
2012-09-07 17:13:42 +00:00
|
|
|
\usepackage{fontspec}
|
|
|
|
\usepackage{xunicode}
|
|
|
|
\usepackage{polyglossia}
|
2012-11-23 21:11:35 +00:00
|
|
|
\usepackage{pgfpages}
|
|
|
|
\usepackage{caption}
|
|
|
|
\usepackage{subcaption}
|
|
|
|
\usepackage{listings}
|
2012-11-24 11:41:24 +00:00
|
|
|
\usepackage[singletitle=true,citestyle=verbose-trad2,bibstyle=verbose,backend=biber,citepages=omit]{biblatex}
|
2012-11-23 21:11:35 +00:00
|
|
|
|
|
|
|
\lstset{basicstyle=\ttfamily\footnotesize}
|
|
|
|
|
|
|
|
\makeatletter
|
|
|
|
\def\verbatim@font{\footnotesize\ttfamily}
|
|
|
|
\makeatother
|
|
|
|
|
|
|
|
\usetheme{Air}
|
|
|
|
|
|
|
|
\addtobeamertemplate{frametitle}{
|
|
|
|
\let\insertframetitle\insertsectionhead}{}
|
|
|
|
\addtobeamertemplate{frametitle}{
|
|
|
|
\let\insertframesubtitle\insertsubsectionhead}{}
|
|
|
|
|
|
|
|
|
|
|
|
\makeatletter
|
|
|
|
\CheckCommand*\beamer@checkframetitle{\@ifnextchar\bgroup\beamer@inlineframetitle{}}
|
|
|
|
\renewcommand*\beamer@checkframetitle{\global\let\beamer@frametitle\relax\@ifnextchar\bgroup\beamer@inlineframetitle{}}
|
|
|
|
\makeatother
|
|
|
|
|
|
|
|
\setbeamertemplate{caption}[numbered]
|
|
|
|
\makeatletter
|
|
|
|
\@addtoreset{subfigure}{figure}
|
|
|
|
\makeatother
|
|
|
|
|
|
|
|
\beamertemplatenavigationsymbolsempty
|
|
|
|
|
|
|
|
%\renewcommand\pgfsetupphysicalpagesizes{%
|
|
|
|
% \pdfpagewidth\pgfphysicalwidth\pdfpageheight\pgfphysicalheight%
|
|
|
|
%}
|
|
|
|
|
2012-09-07 17:13:42 +00:00
|
|
|
\setmainlanguage{french}
|
2012-11-23 21:11:35 +00:00
|
|
|
%\setbeameroption{show notes on second screen}
|
2012-09-05 18:01:37 +00:00
|
|
|
|
|
|
|
\title{La lumière s'éteint-elle dans le frigo ?}
|
2012-11-23 21:11:35 +00:00
|
|
|
\subtitle{Étude d'un bus en vue d'acquisition de données}
|
|
|
|
\author{Nathanaël Restori}
|
2012-09-05 18:01:37 +00:00
|
|
|
\date{\today}
|
|
|
|
\institute{Gymnase de Burier}
|
|
|
|
|
2012-11-24 11:41:24 +00:00
|
|
|
\bibliography{bibliographie.bib}
|
|
|
|
|
2012-09-05 18:01:37 +00:00
|
|
|
\begin{document}
|
|
|
|
|
|
|
|
\begin{frame}
|
2012-11-23 21:11:35 +00:00
|
|
|
\titlepage
|
2012-09-05 18:01:37 +00:00
|
|
|
\end{frame}
|
|
|
|
|
2012-11-23 21:11:35 +00:00
|
|
|
\begin{frame}[plain]
|
|
|
|
\tableofcontents[pausesections]
|
|
|
|
\end{frame}
|
|
|
|
|
|
|
|
\section{L'I²C}
|
|
|
|
\subsection{Présentation}
|
2012-09-05 18:01:37 +00:00
|
|
|
\begin{frame}
|
2012-11-23 21:11:35 +00:00
|
|
|
\begin{block}{Quoi ?}<+->
|
|
|
|
Bus développé par Philips en 1982
|
|
|
|
\end{block}
|
|
|
|
|
|
|
|
\begin{block}{Caractéristiques}<+->
|
|
|
|
\begin{itemize}[<+->]
|
|
|
|
\item Il n'utilise que deux lignes.
|
|
|
|
\item Il est multi-maîtres.
|
|
|
|
\item Il est multi-esclaves.
|
|
|
|
\item C'est un bus série.
|
|
|
|
\item C'est un bus synchrone.
|
|
|
|
\item C'est un bus bidirectionnel half-duplex.
|
|
|
|
\item Vitesses allant de 100 kbit/s à 5 Mbit/s.
|
|
|
|
\end{itemize}
|
|
|
|
\end{block}
|
2012-09-05 18:01:37 +00:00
|
|
|
\end{frame}
|
|
|
|
|
2012-11-23 21:11:35 +00:00
|
|
|
\section{Le matériel}
|
|
|
|
\subsection{Le choix de la plate-forme}
|
|
|
|
\begin{frame}
|
|
|
|
\begin{itemize}[<+->]
|
|
|
|
\item Bon marché
|
|
|
|
\item Nombreux Do It Yourself
|
|
|
|
\item C++
|
|
|
|
\item Matériel libre
|
|
|
|
\end{itemize}
|
|
|
|
|
|
|
|
\begin{figure}[h]
|
|
|
|
\centering
|
|
|
|
\includegraphics[width=0.5\textwidth]{figures/Arduino_Ethernet.jpg}
|
|
|
|
\caption{Arduino Ethernet}
|
|
|
|
\end{figure}
|
|
|
|
\end{frame}
|
2012-09-05 18:01:37 +00:00
|
|
|
|
2012-11-23 21:11:35 +00:00
|
|
|
\subsection{Les capteurs}
|
2012-09-05 18:01:37 +00:00
|
|
|
\begin{frame}
|
2012-11-23 21:11:35 +00:00
|
|
|
\begin{itemize}[<+->]
|
|
|
|
\item Baromètre
|
|
|
|
\item Thermomètre
|
|
|
|
\item Hygromètre
|
|
|
|
\item Capteur de luminosité
|
|
|
|
\item Horloge
|
|
|
|
\end{itemize}
|
|
|
|
|
|
|
|
\begin{figure}[h]
|
|
|
|
\begin{subfigure}[b]{0.21\textwidth}
|
|
|
|
\includegraphics[width=1\textwidth]{figures/perso/BMP085.JPG}
|
|
|
|
\caption{BMP085}
|
|
|
|
\end{subfigure}
|
|
|
|
~
|
|
|
|
\begin{subfigure}[b]{0.21\textwidth}
|
|
|
|
\includegraphics[width=1\textwidth]{figures/perso/ChronoDot.JPG}
|
|
|
|
\caption{ChronoDot}
|
|
|
|
\end{subfigure}
|
|
|
|
~
|
|
|
|
\begin{subfigure}[b]{0.21\textwidth}
|
|
|
|
\includegraphics[width=1\textwidth]{figures/perso/DHT22.JPG}
|
|
|
|
\caption{DHT22}
|
|
|
|
\end{subfigure}
|
|
|
|
~
|
|
|
|
\begin{subfigure}[b]{0.21\textwidth}
|
|
|
|
\includegraphics[width=1\textwidth]{figures/perso/TSL2561.JPG}
|
|
|
|
\caption{TSL2561}
|
|
|
|
\end{subfigure}
|
|
|
|
\caption{Les capteurs}
|
|
|
|
\end{figure}
|
2012-09-05 18:01:37 +00:00
|
|
|
\end{frame}
|
|
|
|
|
2012-11-26 15:08:24 +00:00
|
|
|
\begin{frame}
|
|
|
|
\begin{figure}[h]
|
|
|
|
\centering
|
|
|
|
\includegraphics[width=1\textwidth]{figures/perso/montage.JPG}
|
|
|
|
\caption{Montage complet}
|
|
|
|
\end{figure}
|
|
|
|
\end{frame}
|
|
|
|
|
2012-11-23 21:11:35 +00:00
|
|
|
\subsection{Limitations}
|
2012-09-05 18:01:37 +00:00
|
|
|
\begin{frame}
|
2012-11-23 21:11:35 +00:00
|
|
|
\begin{block}{Problème}<+->
|
|
|
|
32'256 octets de code compilé
|
|
|
|
\end{block}
|
|
|
|
\begin{block}{Solution}<+->
|
|
|
|
Couper le programme en deux
|
|
|
|
\end{block}
|
|
|
|
|
|
|
|
\begin{block}{Possibilité}<+->
|
|
|
|
Achat d'un arduino Mega et d'un shield Ethernet
|
|
|
|
\end{block}
|
2012-09-05 18:01:37 +00:00
|
|
|
\end{frame}
|
|
|
|
|
2012-11-23 21:11:35 +00:00
|
|
|
\section{Le logiciel}
|
|
|
|
\subsection{En général}
|
|
|
|
\begin{frame}[fragile]
|
|
|
|
\begin{block}{Les fonctions}<+->
|
|
|
|
\begin{itemize}[<+->]
|
|
|
|
\item \verb|setup()| : une fois
|
|
|
|
\item \verb|loop()| : en boucle
|
|
|
|
\end{itemize}
|
|
|
|
\end{block}
|
|
|
|
|
|
|
|
\begin{columns}
|
|
|
|
\begin{column}{0.5\textwidth}
|
|
|
|
\begin{block}{Bibliothèques internes}<+->
|
|
|
|
\begin{itemize}[<+->]
|
|
|
|
\item \verb|Ethernet|
|
|
|
|
\item \verb|SD|
|
|
|
|
\item \verb|SPI|
|
|
|
|
\item \verb|Wire|
|
|
|
|
\end{itemize}
|
|
|
|
\end{block}
|
|
|
|
\end{column}
|
2012-09-05 18:01:37 +00:00
|
|
|
|
2012-11-23 21:11:35 +00:00
|
|
|
\begin{column}{0.5\textwidth}
|
|
|
|
\begin{block}{Bibliothèques tierces}<+->
|
|
|
|
\begin{itemize}[<+->]
|
|
|
|
\item \verb|BMP085|
|
|
|
|
\item \verb|Chronodot|
|
|
|
|
\item \verb|DHL|
|
|
|
|
\item \verb|TSL2561|
|
|
|
|
\item \verb|Webserver|
|
|
|
|
\end{itemize}
|
|
|
|
\end{block}
|
|
|
|
\end{column}
|
|
|
|
\end{columns}
|
|
|
|
\end{frame}
|
2012-09-05 18:01:37 +00:00
|
|
|
|
2012-11-23 21:11:35 +00:00
|
|
|
\subsection{L'enregistreur}
|
|
|
|
\begin{frame}[fragile]
|
|
|
|
\begin{block}{\lstinline{setup()}}
|
|
|
|
\begin{itemize}[<+->]
|
|
|
|
\item Initialiser la carte SD
|
|
|
|
\item Initialiser les capteurs
|
|
|
|
\item Configurer le capteur de luminosité
|
|
|
|
\item Créer DATA.TSV
|
|
|
|
\end{itemize}
|
|
|
|
\end{block}
|
|
|
|
|
|
|
|
\begin{block}{\lstinline{loop()}}
|
|
|
|
\begin{itemize}[<+->]
|
|
|
|
\item Lire les capteurs
|
|
|
|
\item Enregistrer dans DATA.TSV
|
|
|
|
\item Faire une pause
|
|
|
|
\end{itemize}
|
|
|
|
\end{block}
|
|
|
|
\end{frame}
|
|
|
|
|
|
|
|
\subsection{Le serveur web}
|
|
|
|
\begin{frame}[fragile]
|
|
|
|
\begin{block}{\lstinline{setup()}}
|
|
|
|
\begin{itemize}[<+->]
|
|
|
|
\item Initialiser le serveur web et la puce de contrôle port RJ45
|
|
|
|
\item Configurer le serveur web
|
|
|
|
\item Initialiser les capteurs
|
|
|
|
\item Configurer le capteur de luminosité
|
|
|
|
\item Mettre à jour l'heure
|
|
|
|
\end{itemize}
|
|
|
|
\end{block}
|
|
|
|
|
|
|
|
\begin{block}{\lstinline{loop()}}
|
|
|
|
\begin{itemize}[<+->]
|
|
|
|
\item Traiter les connections entrantes
|
|
|
|
\end{itemize}
|
|
|
|
\end{block}
|
|
|
|
\end{frame}
|
|
|
|
|
|
|
|
\subsection{Tentative de réunion}
|
|
|
|
\begin{frame}
|
|
|
|
\begin{block}{Tentative 1}<+->
|
|
|
|
Suppression du DHCP et du DNS
|
|
|
|
\end{block}
|
|
|
|
|
|
|
|
\begin{block}{Tentative 2}<+->
|
|
|
|
Recherche d'un système exploitation
|
|
|
|
\end{block}
|
|
|
|
\end{frame}
|
|
|
|
|
|
|
|
|
|
|
|
\section{Le cas du frigo}
|
|
|
|
\subsection{Les mesures}
|
|
|
|
\begin{frame}
|
|
|
|
\begin{columns}
|
|
|
|
\begin{column}{0.5\textwidth}
|
|
|
|
\begin{block}{Essai n°1}<+->
|
|
|
|
\begin{itemize}[<+->]
|
|
|
|
\item Une heure dans le frigo
|
|
|
|
\item Avec sachet plastique
|
|
|
|
\item Constatations
|
|
|
|
\end{itemize}
|
|
|
|
\end{block}
|
|
|
|
\end{column}
|
|
|
|
|
|
|
|
\begin{column}{0.5\textwidth}
|
|
|
|
\begin{block}{Essai n°2}<+->
|
|
|
|
\begin{itemize}[<+->]
|
|
|
|
\item Deux heures dans le frigo
|
|
|
|
\item Sans sachet plastique
|
|
|
|
\item Constatations
|
|
|
|
\end{itemize}
|
|
|
|
\end{block}
|
|
|
|
\end{column}
|
|
|
|
\end{columns}
|
|
|
|
|
|
|
|
\begin{columns}
|
|
|
|
\begin{column}{0.5\textwidth}
|
|
|
|
\begin{block}{Essai n°3}<+->
|
|
|
|
\begin{itemize}[<+->]
|
|
|
|
\item Douze heures dans le frigo
|
2012-12-04 16:37:42 +00:00
|
|
|
\item Avec un adaptateur
|
2012-11-23 21:11:35 +00:00
|
|
|
\item Constatations
|
|
|
|
\end{itemize}
|
|
|
|
\end{block}
|
|
|
|
\end{column}
|
|
|
|
\end{columns}
|
|
|
|
\end{frame}
|
|
|
|
|
|
|
|
\subsection{Les résultats}
|
|
|
|
\begin{frame}
|
|
|
|
\input{data/3/data-pres-t.tex}
|
|
|
|
\end{frame}
|
|
|
|
\begin{frame}
|
|
|
|
\input{data/3/data-pres-h.tex}
|
|
|
|
\end{frame}
|
|
|
|
\begin{frame}
|
|
|
|
\input{data/3/data-pres-p.tex}
|
|
|
|
\end{frame}
|
2012-12-04 16:37:42 +00:00
|
|
|
\begin{frame}
|
|
|
|
\input{data/3/t-h-pres.tex}
|
|
|
|
\end{frame}
|
2012-11-23 21:11:35 +00:00
|
|
|
\begin{frame}
|
|
|
|
\input{data/3/data-pres-l.tex}
|
|
|
|
\end{frame}
|
2012-09-05 18:01:37 +00:00
|
|
|
|
2012-12-04 16:37:42 +00:00
|
|
|
\section*{Sources}
|
2012-09-05 18:01:37 +00:00
|
|
|
\begin{frame}
|
2012-11-24 11:41:24 +00:00
|
|
|
\renewcommand*{\bibfont}{\scriptsize}
|
|
|
|
\nocite{*}
|
|
|
|
|
|
|
|
\begin{block}{Images}
|
|
|
|
\printbibliography[heading=none,keyword=image-pres]
|
|
|
|
\end{block}
|
|
|
|
|
|
|
|
\begin{block}{Sites web}
|
|
|
|
\printbibliography[heading=none,keyword=pres]
|
|
|
|
\end{block}
|
2012-09-05 18:01:37 +00:00
|
|
|
\end{frame}
|
|
|
|
|
2012-11-23 21:11:35 +00:00
|
|
|
\section*{Remerciements}
|
2012-09-05 18:01:37 +00:00
|
|
|
\begin{frame}
|
2012-11-24 11:41:24 +00:00
|
|
|
\begin{itemize}
|
|
|
|
\item M.~Salanon
|
|
|
|
\item M.~Gelsomino
|
|
|
|
\item Mes parents et ma sœur
|
|
|
|
\end{itemize}
|
2012-12-04 16:37:42 +00:00
|
|
|
|
|
|
|
\begin{center}
|
|
|
|
\line(1,0){250}
|
|
|
|
\end{center}
|
|
|
|
|
|
|
|
\renewcommand*{\bibfont}{\scriptsize}
|
|
|
|
\printbibliography[heading=none,keyword=my-website]
|
2012-09-05 18:01:37 +00:00
|
|
|
\end{frame}
|
|
|
|
|
|
|
|
\end{document}
|