This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
presentation.tex
192 lines (189 loc) · 6.4 KB
/
presentation.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
% Created 2019-06-10 Mon 19:33
% Intended LaTeX compiler: lualatex
\documentclass[presentation]{beamer}
\usepackage{polyglossia}
\setmainlanguage[variant=usmax]{english}
\usepackage{fontspec}
\usepackage{microtype}
\usepackage{geometry}
\usepackage{subfiles}
\usepackage{float}
\usepackage[font=small,labelfont=bf,format=hang]{caption}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage[shortlabels]{enumitem}
\usepackage{multirow}
\usepackage{tabularx}
\usepackage{hyperref}
\usepackage{tikz}
\usepackage[edges]{forest}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{colortbl}
\usepackage{array}
\usepackage{listings}
\usepackage[autostyle,strict,autopunct]{csquotes}
\usepackage[style=ieee,backend=biber]{biblatex}
\usepackage{tikz}
\usepackage[subpreambles=true]{standalone}
\usepackage{adjustbox}
\usetheme{metropolis}
\author{Eivind D. Halderaker, Sondre Å. Nilsen}
\date{Spring 2019}
\title{INF219 --- MOCCA Operational Controller for Coffee Availability}
\hypersetup{
colorlinks=true,
pdfauthor={Eivind D. Halderaker, Sondre Å. Nilsen},
pdftitle={INF219 --- MOCCA Operational Controller for Coffee Availability},
pdfkeywords={},
pdfsubject={},
pdfcreator={Emacs 26.2 (Org mode 9.2)},
pdflang={English}}
\begin{document}
\maketitle
\begin{frame}{Plan}
\tableofcontents
\end{frame}
\section{Introduction}
\label{sec:org04b36c4}
\begin{frame}[label={sec:org2b19192}]{Introduction}
\begin{itemize}
\item Coffee is essential to students
\item Therefore knowing if it is ready is vital
\item We have a solution: \emph{MOCCA}
\end{itemize}
\end{frame}
\begin{frame}[label={sec:org1cd23e1}]{The problem}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.7\textwidth]{./figures/brewer.jpeg}
\caption{\label{fix:brewer}
Our drip coffee brewer}
\end{figure}
\end{frame}
\section{System overview}
\label{sec:orgd16040a}
\begin{frame}[label={sec:orgc68645a}]{System overview}
\begin{adjustbox}{max totalsize={.9\textwidth}{.7\textheight},center}
\input{architecture.tex}
\end{adjustbox}
\end{frame}
\begin{frame}[label={sec:orgf54014d}]{Data collection}
\begin{block}{Arduino}
Reads temperature and current from brewer
\end{block}
\begin{block}{Raspberry Pi}
Takes a photo of the coffee carafe
\end{block}
\end{frame}
\begin{frame}[label={sec:orgdc2ba15}]{Data collection, sensors}
\begin{center}
\includegraphics[height=0.3\textwidth]{./figures/currentSensor.jpg}
\includegraphics[height=0.3\textwidth]{./figures/tempSensor.jpg}
\includegraphics[height=0.3\textwidth]{./figures/cameraSensor.jpg}
\end{center}
\end{frame}
\begin{frame}[label={sec:org368bbef}]{Data processing}
\begin{itemize}
\item Does the heavy lifting
\item Converts raw data to usable data
\end{itemize}
\end{frame}
\begin{frame}[label={sec:orgf130f2d}]{Data processing}
\begin{itemize}
\item Is our interface to the real world
\item Needs to be able to distinguish between fact and fiction
\end{itemize}
\end{frame}
\begin{frame}[label={sec:orgbb14f24}]{Data processing, example}
\begin{figure}[htbp]
\centering
\includegraphics[width=.9\linewidth]{./figures/inputImage.png}
\caption{\label{fig:input-image}
Input image}
\end{figure}
\end{frame}
\begin{frame}[label={sec:org9cdae1f},fragile]{Data processing, example}
\lstset{frame=tb,columns=fullflexible,flexiblecolumns=true,numbers=left,numberstyle=\ttfamily\color{gray}\tiny,showstringspaces=false,basicstyle=\ttfamily\footnotesize,language=Python,label= ,caption={Image converted to matrix of brightness},captionpos=b}
\begin{lstlisting}
array([[189, 229, 249, ..., 46, 46, 43],
[179, 221, 246, ..., 47, 44, 43],
[179, 209, 242, ..., 46, 48, 46],
...,
[135, 140, 141, ..., 41, 43, 41],
[138, 141, 143, ..., 42, 40, 40],
[140, 140, 142, ..., 39, 42, 41]], dtype=uint8)
\end{lstlisting}
\end{frame}
\begin{frame}[label={sec:org1692785},fragile]{Data processing, example}
\lstset{frame=tb,columns=fullflexible,flexiblecolumns=true,numbers=left,numberstyle=\ttfamily\color{gray}\tiny,showstringspaces=false,basicstyle=\ttfamily\footnotesize,language=Python,label= ,caption={Matrix converted to boolean values based on brightness threshold},captionpos=b}
\begin{lstlisting}
array([False, False, False, False, False, False, False,
False, False, False, False, False, False, False,
False, False, False, False, False, False, False,
False, False, False, False, False, False, False,
False, False, False, False, False, False, False,
False, False, False, False, False, True, True,
True, True, True, True, True, True, True,
True, True, True, True, True, True, True,
True, True, True, True, True, True, True,
...,
False, False, False, False, False, False, False,
False, False, False, False, False, False, False])
\end{lstlisting}
\end{frame}
\begin{frame}[label={sec:org9e8baa4}]{Data processing, example}
\begin{figure}[htbp]
\centering
\includegraphics[height=0.5\textwidth]{./figures/outputImage.png}
\caption{\label{fig:output-image}
Output image}
\end{figure}
\end{frame}
\begin{frame}[label={sec:org9f98b01}]{Data serving}
\begin{block}{Back-end}
Serves a REST API that is consumable by applications
\end{block}
\begin{block}{Front-end}
A React web application that shows the current state of the coffee
\end{block}
\end{frame}
\begin{frame}[label={sec:org38b9286}]{Data serving}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\textwidth]{./figures/nopower.png}
\caption{\label{fig:no-power}
When the brewer has no power}
\end{figure}
\end{frame}
\begin{frame}[label={sec:org06adcfe}]{Data serving}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\textwidth]{./figures/brewing.png}
\caption{\label{fig:brewing}
When the coffee is brewing}
\end{figure}
\end{frame}
\section{Conclusion}
\label{sec:org672fb29}
\begin{frame}[label={sec:orge03c030}]{Conclusion}
\begin{itemize}
\item We have created a system that successfully monitors the coffee
\item This is done through a series of subsystems
\item The data is available to anyone willing to use it
\end{itemize}
\end{frame}
\section{Future work}
\label{sec:orgaae0d36}
\begin{frame}[label={sec:orgfb07108}]{Future work}
\begin{itemize}
\item Creating a proper case for the system
\item More historical data available through API
\item A scanner for tracking student coffee consumption
\item Tracking how much coffee is consumed each day
\end{itemize}
\end{frame}
\section{Live demo}
\label{sec:org71b2209}
\end{document}