diff options
Diffstat (limited to 'electronics/cw1/writeup.tex')
-rw-r--r-- | electronics/cw1/writeup.tex | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/electronics/cw1/writeup.tex b/electronics/cw1/writeup.tex index 106ce19..b7fad58 100644 --- a/electronics/cw1/writeup.tex +++ b/electronics/cw1/writeup.tex @@ -27,8 +27,16 @@ numberstyle=\tiny\color{codegray}, stringstyle=\color{codepurple}, basicstyle=\ttfamily\footnotesize, - breakatwhitespace=false, breaklines=true, captionpos=b, keepspaces=true, numbers=left, numbersep=5pt, - showspaces=false, showstringspaces=false, showtabs=false, tabsize=8 + breakatwhitespace=false, + breaklines=true, + captionpos=b, + keepspaces=true, + numbers=left, + numbersep=5pt, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=8 } \lstset{style=mystyle} @@ -234,14 +242,27 @@ This code starts with an initialisation section, that sets the micro controller's input and output pins to do the correct things. Then it defines a subroutine that flashes the LED and buzzer and sets the status led. And finally the main function runs in a loop to continue checking if it is too hot. + \subsection{Errors in code} + Through out the development of project, a few errors came up in my code, I fixed them, however here is a documented + list of them + \subsubsection{Forgetting to specify the output register} + \lstinputlisting[]{./final.1.err} + this error was fixed by adding ", w" to the end of the line (before the comment), as it had been missing an argument + before this point. + \subsubsection{Bit test file, skip if set or skip if clear} + While this didn't stop my code from compiling, it did stop the code from working properly, with it triggering when it + was the right temperature, and stopped when it was too hot. It was a simple fix however, all that needed to change + was to change a C to an S. + \section{System Realisation} \subsection{Circuit realisation} PUT CIRCUIT PHOTO HERE Here is my finished design prototyped on a bread board, I have cut the wires to an adequate length to ensure it is cleanly made. - I left the potential divider open, as I changed what value components I was using many times. + I left the potential divider uncut, as I changed what value components I was using many times. \subsection{Calibrating the sensors} + PUT PHOTOS HERE FOR CALIBRATING \subsection{Results} \section{System Evaluation} |