summaryrefslogtreecommitdiff
path: root/electronics/cw1
diff options
context:
space:
mode:
Diffstat (limited to 'electronics/cw1')
-rwxr-xr-xelectronics/cw1/build.sh3
-rw-r--r--electronics/cw1/final.asm20
-rw-r--r--electronics/cw1/final.err0
-rw-r--r--electronics/cw1/ref.bib7
-rw-r--r--electronics/cw1/writeup.aux22
-rw-r--r--electronics/cw1/writeup.log874
-rw-r--r--electronics/cw1/writeup.out14
-rw-r--r--electronics/cw1/writeup.tex285
-rw-r--r--electronics/cw1/writeup.toc15
9 files changed, 255 insertions, 985 deletions
diff --git a/electronics/cw1/build.sh b/electronics/cw1/build.sh
index ae48bda..6700fbb 100755
--- a/electronics/cw1/build.sh
+++ b/electronics/cw1/build.sh
@@ -1,3 +1,6 @@
#!/bin/bash
pdflatex writeup.tex
+bibtex writeup.tex
pdflatex writeup.tex
+pdflatex writeup.tex
+
diff --git a/electronics/cw1/final.asm b/electronics/cw1/final.asm
index 99b8508..9dff2ff 100644
--- a/electronics/cw1/final.asm
+++ b/electronics/cw1/final.asm
@@ -1,6 +1,7 @@
start:
init:
- clrf PORTA ; make sure port A output latches are low
+ clrf PORTA ; make sure port A output latches are
+ ; low
clrf PORTB
bsf STATUS, RP0 ; select memory bank 1
@@ -10,16 +11,14 @@ init:
movwf TRISB
bcf STATUS,RP0 ; select memory bank 0
- ;bsf INTCON, INT0IE
- ;bsf INTCON, GIE
-
rawtemp EQU B6
countdown EQU B7
goto main
-beep: ; a for loop that beeps a buzzer and turns on a led then sets a led on
- ; if nothing is done
+beep: ; a for loop that beeps a buzzer and
+ ; turns on a led then sets a led on if
+ ; nothing is done
movlw 5
movwf countdown
@@ -28,11 +27,10 @@ loop1:
bsf PORTB, 0 ; put a RED LED on PORTB:0
bsf PORTB, 1 ; put a BUZZER on PORTB:1
call wait1000ms
- bcf PORTB, 0
- bcf PORTB, 1
+ clrf PORTB
call wait1000ms
- decfsz countdown, F
+ decfsz countdown, F ; the main part of the loop
goto loop1
bsf PORTB, 2 ; put an AMBER LED on PORTB:2
@@ -51,9 +49,9 @@ main: ; reads the temprature
subwf rawtemp, w ; subtract the from the threshold value
btfss STATUS, 0 ; if higher than desired temp
- goto beep ; ^
+ goto beep
- clrf STATUS
+ clrf STATUS ; clears the status flag, which might have a carry bit set
goto main
diff --git a/electronics/cw1/final.err b/electronics/cw1/final.err
deleted file mode 100644
index e69de29..0000000
--- a/electronics/cw1/final.err
+++ /dev/null
diff --git a/electronics/cw1/ref.bib b/electronics/cw1/ref.bib
new file mode 100644
index 0000000..bf6551e
--- /dev/null
+++ b/electronics/cw1/ref.bib
@@ -0,0 +1,7 @@
+@online{FISH,
+ title = "how many people own fish",
+ url = "https://worldanimalfoundation.org/advocate/pet-ownership-statistics/",
+ addendum = "(accessed: 26/11/2024)",
+ keywords = "Fish"
+}
+
diff --git a/electronics/cw1/writeup.aux b/electronics/cw1/writeup.aux
deleted file mode 100644
index b545aa3..0000000
--- a/electronics/cw1/writeup.aux
+++ /dev/null
@@ -1,22 +0,0 @@
-\relax
-\providecommand\babel@aux[2]{}
-\@nameuse{bbl@beforestart}
-\providecommand\hyper@newdestlabel[2]{}
-\providecommand\HyField@AuxAddToFields[1]{}
-\providecommand\HyField@AuxAddToCoFields[2]{}
-\babel@aux{english}{}
-\@writefile{toc}{\contentsline {section}{\numberline {1}System Planning}{3}{section.1}\protected@file@percent }
-\@writefile{toc}{\contentsline {subsection}{\numberline {1.1}Problem analysis}{3}{subsection.1.1}\protected@file@percent }
-\@writefile{toc}{\contentsline {subsection}{\numberline {1.2}Who is it for?}{4}{subsection.1.2}\protected@file@percent }
-\@writefile{toc}{\contentsline {subsection}{\numberline {1.3}Design specification}{4}{subsection.1.3}\protected@file@percent }
-\@writefile{toc}{\contentsline {section}{\numberline {2}System Design}{4}{section.2}\protected@file@percent }
-\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}Showing how it will function}{4}{subsection.2.1}\protected@file@percent }
-\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}The code}{4}{subsection.2.2}\protected@file@percent }
-\@writefile{toc}{\contentsline {section}{\numberline {3}System Realisation}{4}{section.3}\protected@file@percent }
-\@writefile{toc}{\contentsline {subsection}{\numberline {3.1}Ciruit realisation}{4}{subsection.3.1}\protected@file@percent }
-\@writefile{toc}{\contentsline {subsection}{\numberline {3.2}Calibrating the sensors}{4}{subsection.3.2}\protected@file@percent }
-\@writefile{toc}{\contentsline {subsection}{\numberline {3.3}Results}{4}{subsection.3.3}\protected@file@percent }
-\@writefile{toc}{\contentsline {section}{\numberline {4}System Evaluation}{4}{section.4}\protected@file@percent }
-\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}Did it work?}{4}{subsection.4.1}\protected@file@percent }
-\@writefile{toc}{\contentsline {subsection}{\numberline {4.2}What could go better?}{4}{subsection.4.2}\protected@file@percent }
-\gdef \@abspage@last{4}
diff --git a/electronics/cw1/writeup.log b/electronics/cw1/writeup.log
deleted file mode 100644
index 921203b..0000000
--- a/electronics/cw1/writeup.log
+++ /dev/null
@@ -1,874 +0,0 @@
-This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/Arch Linux) (preloaded format=pdflatex 2024.11.3) 8 NOV 2024 08:23
-entering extended mode
- restricted \write18 enabled.
- %&-line parsing enabled.
-**writeup.tex
-(./writeup.tex
-LaTeX2e <2023-11-01> patch level 1
-L3 programming layer <2024-02-20>
-(/usr/share/texmf-dist/tex/latex/base/article.cls
-Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
-(/usr/share/texmf-dist/tex/latex/base/size12.clo
-File: size12.clo 2023/05/17 v1.4n Standard LaTeX file (size option)
-)
-\c@part=\count188
-\c@section=\count189
-\c@subsection=\count190
-\c@subsubsection=\count191
-\c@paragraph=\count192
-\c@subparagraph=\count193
-\c@figure=\count194
-\c@table=\count195
-\abovecaptionskip=\skip48
-\belowcaptionskip=\skip49
-\bibindent=\dimen140
-)
-(/usr/share/texmf-dist/tex/latex/geometry/geometry.sty
-Package: geometry 2020/01/02 v5.9 Page Geometry
-
-(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty
-Package: keyval 2022/05/29 v1.15 key=value parser (DPC)
-\KV@toks@=\toks17
-)
-(/usr/share/texmf-dist/tex/generic/iftex/ifvtex.sty
-Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
-
-(/usr/share/texmf-dist/tex/generic/iftex/iftex.sty
-Package: iftex 2022/02/03 v1.0f TeX engine tests
-))
-\Gm@cnth=\count196
-\Gm@cntv=\count197
-\c@Gm@tempcnt=\count198
-\Gm@bindingoffset=\dimen141
-\Gm@wd@mp=\dimen142
-\Gm@odd@mp=\dimen143
-\Gm@even@mp=\dimen144
-\Gm@layoutwidth=\dimen145
-\Gm@layoutheight=\dimen146
-\Gm@layouthoffset=\dimen147
-\Gm@layoutvoffset=\dimen148
-\Gm@dimlist=\toks18
-)
-(/usr/share/texmf-dist/tex/latex/titling/titling.sty
-Package: titling 2009/09/04 v2.1d maketitle typesetting
-\thanksmarkwidth=\skip50
-\thanksmargin=\skip51
-\droptitle=\skip52
-)
-(/usr/share/texmf-dist/tex/latex/titlesec/titlesec.sty
-Package: titlesec 2023/10/27 v2.16 Sectioning titles
-\ttl@box=\box51
-\beforetitleunit=\skip53
-\aftertitleunit=\skip54
-\ttl@plus=\dimen149
-\ttl@minus=\dimen150
-\ttl@toksa=\toks19
-\titlewidth=\dimen151
-\titlewidthlast=\dimen152
-\titlewidthfirst=\dimen153
-)
-(/usr/share/texmf-dist/tex/generic/babel/babel.sty
-Package: babel 2024/02/07 v24.2 The Babel package
-\babel@savecnt=\count199
-\U@D=\dimen154
-\l@unhyphenated=\language5
-
-(/usr/share/texmf-dist/tex/generic/babel/txtbabel.def)
-\bbl@readstream=\read2
-\bbl@dirlevel=\count266
-
-(/usr/share/texmf-dist/tex/generic/babel-english/english.ldf
-Language: english 2017/06/06 v3.3r English support from the babel system
-Package babel Info: Hyphen rules for 'british' set to \l@english
-(babel) (\language0). Reported on input line 82.
-Package babel Info: Hyphen rules for 'UKenglish' set to \l@english
-(babel) (\language0). Reported on input line 83.
-Package babel Info: Hyphen rules for 'canadian' set to \l@english
-(babel) (\language0). Reported on input line 102.
-Package babel Info: Hyphen rules for 'australian' set to \l@english
-(babel) (\language0). Reported on input line 105.
-Package babel Info: Hyphen rules for 'newzealand' set to \l@english
-(babel) (\language0). Reported on input line 108.
-))
-(/usr/share/texmf-dist/tex/generic/babel/locale/en/babel-english.tex
-Package babel Info: Importing font and identification data for english
-(babel) from babel-en.ini. Reported on input line 11.
-)
-(/usr/share/texmf-dist/tex/latex/hyperref/hyperref.sty
-Package: hyperref 2024-01-20 v7.01h Hypertext links for LaTeX
-
-(/usr/share/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty
-Package: kvsetkeys 2022-10-05 v1.19 Key value parser (HO)
-)
-(/usr/share/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty
-Package: kvdefinekeys 2019-12-19 v1.6 Define keys (HO)
-)
-(/usr/share/texmf-dist/tex/generic/pdfescape/pdfescape.sty
-Package: pdfescape 2019/12/09 v1.15 Implements pdfTeX's escape features (HO)
-
-(/usr/share/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty
-Package: ltxcmds 2023-12-04 v1.26 LaTeX kernel commands for general use (HO)
-)
-(/usr/share/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
-Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO
-)
-
-(/usr/share/texmf-dist/tex/generic/infwarerr/infwarerr.sty
-Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO)
-)
-Package pdftexcmds Info: \pdf@primitive is available.
-Package pdftexcmds Info: \pdf@ifprimitive is available.
-Package pdftexcmds Info: \pdfdraftmode found.
-))
-(/usr/share/texmf-dist/tex/latex/hycolor/hycolor.sty
-Package: hycolor 2020-01-27 v1.10 Color options for hyperref/bookmark (HO)
-)
-(/usr/share/texmf-dist/tex/latex/auxhook/auxhook.sty
-Package: auxhook 2019-12-17 v1.6 Hooks for auxiliary files (HO)
-)
-(/usr/share/texmf-dist/tex/latex/hyperref/nameref.sty
-Package: nameref 2023-11-26 v2.56 Cross-referencing by name of section
-
-(/usr/share/texmf-dist/tex/latex/refcount/refcount.sty
-Package: refcount 2019/12/15 v3.6 Data extraction from label references (HO)
-)
-(/usr/share/texmf-dist/tex/generic/gettitlestring/gettitlestring.sty
-Package: gettitlestring 2019/12/15 v1.6 Cleanup title references (HO)
-
-(/usr/share/texmf-dist/tex/latex/kvoptions/kvoptions.sty
-Package: kvoptions 2022-06-15 v3.15 Key value format for package options (HO)
-))
-\c@section@level=\count267
-)
-(/usr/share/texmf-dist/tex/latex/etoolbox/etoolbox.sty
-Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW)
-\etb@tempcnta=\count268
-)
-\@linkdim=\dimen155
-\Hy@linkcounter=\count269
-\Hy@pagecounter=\count270
-
-(/usr/share/texmf-dist/tex/latex/hyperref/pd1enc.def
-File: pd1enc.def 2024-01-20 v7.01h Hyperref: PDFDocEncoding definition (HO)
-Now handling font encoding PD1 ...
-... no UTF-8 mapping file for font encoding PD1
-)
-(/usr/share/texmf-dist/tex/generic/intcalc/intcalc.sty
-Package: intcalc 2019/12/15 v1.3 Expandable calculations with integers (HO)
-)
-\Hy@SavedSpaceFactor=\count271
-
-(/usr/share/texmf-dist/tex/latex/hyperref/puenc.def
-File: puenc.def 2024-01-20 v7.01h Hyperref: PDF Unicode definition (HO)
-Now handling font encoding PU ...
-... no UTF-8 mapping file for font encoding PU
-)
-Package hyperref Info: Hyper figures OFF on input line 4179.
-Package hyperref Info: Link nesting OFF on input line 4184.
-Package hyperref Info: Hyper index ON on input line 4187.
-Package hyperref Info: Plain pages OFF on input line 4194.
-Package hyperref Info: Backreferencing OFF on input line 4199.
-Package hyperref Info: Implicit mode ON; LaTeX internals redefined.
-Package hyperref Info: Bookmarks ON on input line 4446.
-\c@Hy@tempcnt=\count272
-
-(/usr/share/texmf-dist/tex/latex/url/url.sty
-\Urlmuskip=\muskip16
-Package: url 2013/09/16 ver 3.4 Verb mode for urls, etc.
-)
-LaTeX Info: Redefining \url on input line 4784.
-\XeTeXLinkMargin=\dimen156
-
-(/usr/share/texmf-dist/tex/generic/bitset/bitset.sty
-Package: bitset 2019/12/09 v1.3 Handle bit-vector datatype (HO)
-
-(/usr/share/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty
-Package: bigintcalc 2019/12/15 v1.5 Expandable calculations on big integers (HO
-)
-))
-\Fld@menulength=\count273
-\Field@Width=\dimen157
-\Fld@charsize=\dimen158
-Package hyperref Info: Hyper figures OFF on input line 6063.
-Package hyperref Info: Link nesting OFF on input line 6068.
-Package hyperref Info: Hyper index ON on input line 6071.
-Package hyperref Info: backreferencing OFF on input line 6078.
-Package hyperref Info: Link coloring OFF on input line 6083.
-Package hyperref Info: Link coloring with OCG OFF on input line 6088.
-Package hyperref Info: PDF/A mode OFF on input line 6093.
-
-(/usr/share/texmf-dist/tex/latex/base/atbegshi-ltx.sty
-Package: atbegshi-ltx 2021/01/10 v1.0c Emulation of the original atbegshi
-package with kernel methods
-)
-\Hy@abspage=\count274
-\c@Item=\count275
-\c@Hfootnote=\count276
-)
-Package hyperref Info: Driver (autodetected): hpdftex.
-
-(/usr/share/texmf-dist/tex/latex/hyperref/hpdftex.def
-File: hpdftex.def 2024-01-20 v7.01h Hyperref driver for pdfTeX
-
-(/usr/share/texmf-dist/tex/latex/base/atveryend-ltx.sty
-Package: atveryend-ltx 2020/08/19 v1.0a Emulation of the original atveryend pac
-kage
-with kernel methods
-)
-\Fld@listcount=\count277
-\c@bookmark@seq@number=\count278
-
-(/usr/share/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty
-Package: rerunfilecheck 2022-07-10 v1.10 Rerun checks for auxiliary files (HO)
-
-(/usr/share/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty
-Package: uniquecounter 2019/12/15 v1.4 Provide unlimited unique counter (HO)
-)
-Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2
-85.
-)
-\Hy@SectionHShift=\skip55
-)
-(/usr/share/texmf-dist/tex/latex/listings/listings.sty
-\lst@mode=\count279
-\lst@gtempboxa=\box52
-\lst@token=\toks20
-\lst@length=\count280
-\lst@currlwidth=\dimen159
-\lst@column=\count281
-\lst@pos=\count282
-\lst@lostspace=\dimen160
-\lst@width=\dimen161
-\lst@newlines=\count283
-\lst@lineno=\count284
-\lst@maxwidth=\dimen162
-
-(/usr/share/texmf-dist/tex/latex/listings/lstpatch.sty
-File: lstpatch.sty 2024/02/21 1.10 (Carsten Heinz)
-)
-(/usr/share/texmf-dist/tex/latex/listings/lstmisc.sty
-File: lstmisc.sty 2024/02/21 1.10 (Carsten Heinz)
-\c@lstnumber=\count285
-\lst@skipnumbers=\count286
-\lst@framebox=\box53
-)
-(/usr/share/texmf-dist/tex/latex/listings/listings.cfg
-File: listings.cfg 2024/02/21 1.10 listings configuration
-))
-Package: listings 2024/02/21 1.10 (Carsten Heinz)
-
-(/usr/share/texmf-dist/tex/latex/xcolor/xcolor.sty
-Package: xcolor 2023/11/15 v3.01 LaTeX color extensions (UK)
-
-(/usr/share/texmf-dist/tex/latex/graphics-cfg/color.cfg
-File: color.cfg 2016/01/02 v1.6 sample color configuration
-)
-Package xcolor Info: Driver file: pdftex.def on input line 274.
-
-(/usr/share/texmf-dist/tex/latex/graphics-def/pdftex.def
-File: pdftex.def 2022/09/22 v1.2b Graphics/color driver for pdftex
-)
-(/usr/share/texmf-dist/tex/latex/graphics/mathcolor.ltx)
-Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1350.
-Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1354.
-Package xcolor Info: Model `RGB' extended on input line 1366.
-Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1368.
-Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1369.
-Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1370.
-Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1371.
-Package xcolor Info: Model `Gray' substituted by `gray' on input line 1372.
-Package xcolor Info: Model `wave' substituted by `hsb' on input line 1373.
-)
-(/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
-Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics (DPC,SPQR)
-
-(/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
-Package: graphics 2022/03/10 v1.4e Standard LaTeX Graphics (DPC,SPQR)
-
-(/usr/share/texmf-dist/tex/latex/graphics/trig.sty
-Package: trig 2021/08/11 v1.11 sin cos tan (DPC)
-)
-(/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
-File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
-)
-Package graphics Info: Driver file: pdftex.def on input line 107.
-)
-\Gin@req@height=\dimen163
-\Gin@req@width=\dimen164
-)
-(/usr/share/texmf-dist/tex/latex/forest/forest.sty
-Package: forest 2017/07/14 v2.1.5 Drawing (linguistic) trees
-
-(/usr/share/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty
-(/usr/share/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty
-(/usr/share/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty
-(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex
-\pgfutil@everybye=\toks21
-\pgfutil@tempdima=\dimen165
-\pgfutil@tempdimb=\dimen166
-)
-(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def
-\pgfutil@abb=\box54
-)
-(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex
-(/usr/share/texmf-dist/tex/generic/pgf/pgf.revision.tex)
-Package: pgfrcs 2023-01-15 v3.1.10 (3.1.10)
-))
-Package: pgf 2023-01-15 v3.1.10 (3.1.10)
-
-(/usr/share/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty
-(/usr/share/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty
-(/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex
-Package: pgfsys 2023-01-15 v3.1.10 (3.1.10)
-
-(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
-\pgfkeys@pathtoks=\toks22
-\pgfkeys@temptoks=\toks23
-
-(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfiltered.code.te
-x
-\pgfkeys@tmptoks=\toks24
-))
-\pgf@x=\dimen167
-\pgf@y=\dimen168
-\pgf@xa=\dimen169
-\pgf@ya=\dimen170
-\pgf@xb=\dimen171
-\pgf@yb=\dimen172
-\pgf@xc=\dimen173
-\pgf@yc=\dimen174
-\pgf@xd=\dimen175
-\pgf@yd=\dimen176
-\w@pgf@writea=\write3
-\r@pgf@reada=\read3
-\c@pgf@counta=\count287
-\c@pgf@countb=\count288
-\c@pgf@countc=\count289
-\c@pgf@countd=\count290
-\t@pgf@toka=\toks25
-\t@pgf@tokb=\toks26
-\t@pgf@tokc=\toks27
-\pgf@sys@id@count=\count291
- (/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg
-File: pgf.cfg 2023-01-15 v3.1.10 (3.1.10)
-)
-Driver file for pgf: pgfsys-pdftex.def
-
-(/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.def
-File: pgfsys-pdftex.def 2023-01-15 v3.1.10 (3.1.10)
-
-(/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def
-File: pgfsys-common-pdf.def 2023-01-15 v3.1.10 (3.1.10)
-)))
-(/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex
-File: pgfsyssoftpath.code.tex 2023-01-15 v3.1.10 (3.1.10)
-\pgfsyssoftpath@smallbuffer@items=\count292
-\pgfsyssoftpath@bigbuffer@items=\count293
-)
-(/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex
-File: pgfsysprotocol.code.tex 2023-01-15 v3.1.10 (3.1.10)
-))
-(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex
-Package: pgfcore 2023-01-15 v3.1.10 (3.1.10)
-
-(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
-(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)
-(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex
-\pgfmath@dimen=\dimen177
-\pgfmath@count=\count294
-\pgfmath@box=\box55
-\pgfmath@toks=\toks28
-\pgfmath@stack@operand=\toks29
-\pgfmath@stack@operation=\toks30
-)
-(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex)
-(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex)
-(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code
-.tex)
-(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.tex)
-(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison.code.te
-x) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex)
-(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code.tex)
-(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex)
-(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerarithmetics
-.code.tex) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex)
-(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex
-\c@pgfmathroundto@lastzeros=\count295
-))
-(/usr/share/texmf-dist/tex/generic/pgf/math/pgfint.code.tex)
-(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex
-File: pgfcorepoints.code.tex 2023-01-15 v3.1.10 (3.1.10)
-\pgf@picminx=\dimen178
-\pgf@picmaxx=\dimen179
-\pgf@picminy=\dimen180
-\pgf@picmaxy=\dimen181
-\pgf@pathminx=\dimen182
-\pgf@pathmaxx=\dimen183
-\pgf@pathminy=\dimen184
-\pgf@pathmaxy=\dimen185
-\pgf@xx=\dimen186
-\pgf@xy=\dimen187
-\pgf@yx=\dimen188
-\pgf@yy=\dimen189
-\pgf@zx=\dimen190
-\pgf@zy=\dimen191
-)
-(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex
-File: pgfcorepathconstruct.code.tex 2023-01-15 v3.1.10 (3.1.10)
-\pgf@path@lastx=\dimen192
-\pgf@path@lasty=\dimen193
-) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage.code.tex
-File: pgfcorepathusage.code.tex 2023-01-15 v3.1.10 (3.1.10)
-\pgf@shorten@end@additional=\dimen194
-\pgf@shorten@start@additional=\dimen195
-)
-(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex
-File: pgfcorescopes.code.tex 2023-01-15 v3.1.10 (3.1.10)
-\pgfpic=\box56
-\pgf@hbox=\box57
-\pgf@layerbox@main=\box58
-\pgf@picture@serial@count=\count296
-)
-(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex
-File: pgfcoregraphicstate.code.tex 2023-01-15 v3.1.10 (3.1.10)
-\pgflinewidth=\dimen196
-)
-(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransformations.code.t
-ex
-File: pgfcoretransformations.code.tex 2023-01-15 v3.1.10 (3.1.10)
-\pgf@pt@x=\dimen197
-\pgf@pt@y=\dimen198
-\pgf@pt@temp=\dimen199
-) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.code.tex
-File: pgfcorequick.code.tex 2023-01-15 v3.1.10 (3.1.10)
-)
-(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex
-File: pgfcoreobjects.code.tex 2023-01-15 v3.1.10 (3.1.10)
-)
-(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathprocessing.code.te
-x
-File: pgfcorepathprocessing.code.tex 2023-01-15 v3.1.10 (3.1.10)
-) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex
-File: pgfcorearrows.code.tex 2023-01-15 v3.1.10 (3.1.10)
-\pgfarrowsep=\dimen256
-)
-(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex
-File: pgfcoreshade.code.tex 2023-01-15 v3.1.10 (3.1.10)
-\pgf@max=\dimen257
-\pgf@sys@shading@range@num=\count297
-\pgf@shadingcount=\count298
-)
-(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex
-File: pgfcoreimage.code.tex 2023-01-15 v3.1.10 (3.1.10)
-)
-(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex
-File: pgfcoreexternal.code.tex 2023-01-15 v3.1.10 (3.1.10)
-\pgfexternal@startupbox=\box59
-)
-(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex
-File: pgfcorelayers.code.tex 2023-01-15 v3.1.10 (3.1.10)
-)
-(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransparency.code.tex
-File: pgfcoretransparency.code.tex 2023-01-15 v3.1.10 (3.1.10)
-) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex
-File: pgfcorepatterns.code.tex 2023-01-15 v3.1.10 (3.1.10)
-)
-(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorerdf.code.tex
-File: pgfcorerdf.code.tex 2023-01-15 v3.1.10 (3.1.10)
-)))
-(/usr/share/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.code.tex
-File: pgfmoduleshapes.code.tex 2023-01-15 v3.1.10 (3.1.10)
-\pgfnodeparttextbox=\box60
-)
-(/usr/share/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.tex
-File: pgfmoduleplot.code.tex 2023-01-15 v3.1.10 (3.1.10)
-)
-(/usr/share/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-0-65.sty
-Package: pgfcomp-version-0-65 2023-01-15 v3.1.10 (3.1.10)
-\pgf@nodesepstart=\dimen258
-\pgf@nodesepend=\dimen259
-)
-(/usr/share/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-1-18.sty
-Package: pgfcomp-version-1-18 2023-01-15 v3.1.10 (3.1.10)
-))
-(/usr/share/texmf-dist/tex/latex/pgf/utilities/pgffor.sty
-(/usr/share/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty
-(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex))
-(/usr/share/texmf-dist/tex/latex/pgf/math/pgfmath.sty
-(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex))
-(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex
-Package: pgffor 2023-01-15 v3.1.10 (3.1.10)
-\pgffor@iter=\dimen260
-\pgffor@skip=\dimen261
-\pgffor@stack=\toks31
-\pgffor@toks=\toks32
-))
-(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex
-Package: tikz 2023-01-15 v3.1.10 (3.1.10)
-
-(/usr/share/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers.code.te
-x
-File: pgflibraryplothandlers.code.tex 2023-01-15 v3.1.10 (3.1.10)
-\pgf@plot@mark@count=\count299
-\pgfplotmarksize=\dimen262
-)
-\tikz@lastx=\dimen263
-\tikz@lasty=\dimen264
-\tikz@lastxsaved=\dimen265
-\tikz@lastysaved=\dimen266
-\tikz@lastmovetox=\dimen267
-\tikz@lastmovetoy=\dimen268
-\tikzleveldistance=\dimen269
-\tikzsiblingdistance=\dimen270
-\tikz@figbox=\box61
-\tikz@figbox@bg=\box62
-\tikz@tempbox=\box63
-\tikz@tempbox@bg=\box64
-\tikztreelevel=\count300
-\tikznumberofchildren=\count301
-\tikznumberofcurrentchild=\count302
-\tikz@fig@count=\count303
- (/usr/share/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex
-File: pgfmodulematrix.code.tex 2023-01-15 v3.1.10 (3.1.10)
-\pgfmatrixcurrentrow=\count304
-\pgfmatrixcurrentcolumn=\count305
-\pgf@matrix@numberofcolumns=\count306
-)
-\tikz@expandcount=\count307
-
-(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary
-topaths.code.tex
-File: tikzlibrarytopaths.code.tex 2023-01-15 v3.1.10 (3.1.10)
-)))
-(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary
-shapes.code.tex
-File: tikzlibraryshapes.code.tex 2023-01-15 v3.1.10 (3.1.10)
-
-(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary
-shapes.geometric.code.tex
-File: tikzlibraryshapes.geometric.code.tex 2023-01-15 v3.1.10 (3.1.10)
-
-(/usr/share/texmf-dist/tex/generic/pgf/libraries/shapes/pgflibraryshapes.geomet
-ric.code.tex
-File: pgflibraryshapes.geometric.code.tex 2023-01-15 v3.1.10 (3.1.10)
-))
-(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary
-shapes.misc.code.tex
-File: tikzlibraryshapes.misc.code.tex 2023-01-15 v3.1.10 (3.1.10)
-
-(/usr/share/texmf-dist/tex/generic/pgf/libraries/shapes/pgflibraryshapes.misc.c
-ode.tex
-File: pgflibraryshapes.misc.code.tex 2023-01-15 v3.1.10 (3.1.10)
-))
-(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary
-shapes.symbols.code.tex
-File: tikzlibraryshapes.symbols.code.tex 2023-01-15 v3.1.10 (3.1.10)
-
-(/usr/share/texmf-dist/tex/generic/pgf/libraries/shapes/pgflibraryshapes.symbol
-s.code.tex
-File: pgflibraryshapes.symbols.code.tex 2023-01-15 v3.1.10 (3.1.10)
-))
-(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary
-shapes.arrows.code.tex
-File: tikzlibraryshapes.arrows.code.tex 2023-01-15 v3.1.10 (3.1.10)
-
-(/usr/share/texmf-dist/tex/generic/pgf/libraries/shapes/pgflibraryshapes.arrows
-.code.tex
-File: pgflibraryshapes.arrows.code.tex 2023-01-15 v3.1.10 (3.1.10)
-))
-(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary
-shapes.callouts.code.tex
-(/usr/share/texmf-dist/tex/generic/pgf/libraries/shapes/pgflibraryshapes.callou
-ts.code.tex))
-(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary
-shapes.multipart.code.tex
-File: tikzlibraryshapes.multipart.code.tex 2023-01-15 v3.1.10 (3.1.10)
-
-(/usr/share/texmf-dist/tex/generic/pgf/libraries/shapes/pgflibraryshapes.multip
-art.code.tex
-File: pgflibraryshapes.multipart.code.tex 2023-01-15 v3.1.10 (3.1.10)
-\pgfnodepartlowerbox=\box65
-\pgfnodeparttwobox=\box66
-\pgfnodepartthreebox=\box67
-\pgfnodepartfourbox=\box68
-\pgfnodeparttwentybox=\box69
-\pgfnodepartnineteenbox=\box70
-\pgfnodeparteighteenbox=\box71
-\pgfnodepartseventeenbox=\box72
-\pgfnodepartsixteenbox=\box73
-\pgfnodepartfifteenbox=\box74
-\pgfnodepartfourteenbox=\box75
-\pgfnodepartthirteenbox=\box76
-\pgfnodeparttwelvebox=\box77
-\pgfnodepartelevenbox=\box78
-\pgfnodeparttenbox=\box79
-\pgfnodepartninebox=\box80
-\pgfnodeparteightbox=\box81
-\pgfnodepartsevenbox=\box82
-\pgfnodepartsixbox=\box83
-\pgfnodepartfivebox=\box84
-)))
-(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary
-fit.code.tex
-File: tikzlibraryfit.code.tex 2023-01-15 v3.1.10 (3.1.10)
-)
-(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary
-calc.code.tex
-File: tikzlibrarycalc.code.tex 2023-01-15 v3.1.10 (3.1.10)
-)
-(/usr/share/texmf-dist/tex/generic/pgf/libraries/pgflibraryintersections.code.t
-ex (/usr/share/texmf-dist/tex/generic/pgf/libraries/pgflibraryfpu.code.tex)
-\pgf@intersect@solutions=\count308
-)
-(/usr/share/texmf-dist/tex/latex/pgfopts/pgfopts.sty
-Package: pgfopts 2014/07/10 v2.1a LaTeX package options with pgfkeys
-\pgfopts@list@add@a@toks=\toks33
-\pgfopts@list@add@b@toks=\toks34
-)
-(/usr/share/texmf-dist/tex/latex/elocalloc/elocalloc.sty
-Package: elocalloc 2016/12/15 v0.03 local allocation for LaTeX 2015+ (DPC)
-)
-(/usr/share/texmf-dist/tex/latex/environ/environ.sty
-Package: environ 2014/05/04 v0.3 A new way to define environments
-
-(/usr/share/texmf-dist/tex/latex/trimspaces/trimspaces.sty
-Package: trimspaces 2009/09/17 v1.1 Trim spaces around a token list
-)
-\@envbody=\toks35
-)
-(/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
-(/usr/share/texmf-dist/tex/latex/l3kernel/expl3.sty
-Package: expl3 2024-02-20 L3 programming layer (loader)
-
-(/usr/share/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
-File: l3backend-pdftex.def 2024-02-20 L3 backend support: PDF output (pdfTeX)
-\l__color_backend_stack_int=\count309
-\l__pdf_internal_box=\box85
-))
-Package: xparse 2024-02-18 L3 Experimental document command parser
-)
-(/usr/share/texmf-dist/tex/latex/inlinedef/inlinedef.sty
-Package: inlinedef 2008/07/10 v1.0 Inlined expansions within definitions
-\ID@toks=\toks36
-\ID@count=\count310
-)
-\ID@usercommands=\toks37
-\safeloop@depth=\count311
-\safeRKloop@depth=\count312
-\forest@temp@dimen=\dimen271
-\forest@temp@count=\count313
-\forest@n=\count314
-\forest@temp@global@count=\count315
-\forest@temp@toks=\toks38
-\forest@temparray@M=\count316
-\forest@temparray@N=\count317
-\forest@global@temparray@M=\count318
-\forest@global@temparray@N=\count319
-\forest@isnum@count=\count320
-\forest@isdim@nonintpart=\count321
-\forest@isdim@dimen=\dimen272
-\forest@sort@m=\count322
-\forest@sort@k=\count323
-\forest@sort@p=\count324
-\bracket@content=\toks39
-\bracket@afterthought=\toks40
-\forest@node@maxid=\count325
-\forest@process@left@M=\count326
-\forest@process@left@N=\count327
-\forest@process@right@M=\count328
-\forest@process@right@N=\count329
-\forest@process@saved@M=\count330
-\forest@process@saved@N=\count331
-\forest@process@result@M=\count332
-\forest@process@result@N=\count333
-\forest@process@n=\count334
-\forest@nodewalk@branch@toks=\toks41
-\forest@nodewalk@shortsteps@resolution=\toks42
-\forest@do@dynamics=\toks43
-\forest@box=\box86
-\forest@xg=\dimen273
-\forest@yg=\dimen274
-\forest@xs=\dimen275
-\forest@ys=\dimen276
-\forest@pi@toks=\toks44
-\forest@segment@toks=\toks45
-\forest@PIi@toks=\toks46
-\forest@PIii@toks=\toks47
-\forest@copy@in=\read4
-\forest@copy@out=\write4
-\forest@externalize@max@outer@n=\count335
-\forest@externalize@inner@n=\count336
-)
-(/usr/share/texmf-dist/tex/latex/tikz-qtree/tikz-qtree.sty
-(/usr/share/texmf-dist/tex/latex/tikz-qtree/pgftree.sty
-(/usr/share/texmf-dist/tex/latex/tikz-qtree/pgfsubpic.sty
-(/usr/share/texmf-dist/tex/latex/tikz-qtree/pgfsubpic.tex
-\pgf@subpicminx=\dimen277
-\pgf@subpicminy=\dimen278
-\pgf@subpicmaxx=\dimen279
-\pgf@subpicmaxy=\dimen280
-))
-(/usr/share/texmf-dist/tex/latex/tikz-qtree/pgftree.tex
-\levelsep=\dimen281
-\subtreesep=\dimen282
-\smuggle@levelsep=\dimen283
-\smuggle@subtreesep=\dimen284
-\this@levelsep=\dimen285
-\this@subtreesep=\dimen286
-\pgftree@childx=\dimen287
-\pgftree@savechildx=\dimen288
-\pgftree@childy=\dimen289
-\pgftree@savechildy=\dimen290
-\pgftree@childi=\count337
-\pgftree@savechildi=\count338
-\pgftree@level=\count339
-\pgftree@depth=\dimen291
-\pgf@subpic@hbox@children=\box87
-\pgf@subpic@minx@children=\dimen292
-\pgf@subpic@miny@children=\dimen293
-\pgf@subpic@maxx@children=\dimen294
-\pgf@subpic@maxy@children=\dimen295
-\pgftree@lastchildx=\dimen296
-\pgftree@lastchildy=\dimen297
-))
-(/usr/share/texmf-dist/tex/latex/tikz-qtree/tikz-qtree.tex
-\@result=\toks48
-\child@list=\toks49
-\root@node=\toks50
-))
-(/usr/share/texmf-dist/tex/latex/setspace/setspace.sty
-Package: setspace 2022/12/04 v6.7b set line spacing
-)
-
-Package geometry Warning: Over-specification in `h'-direction.
- `width' (483.69684pt) is ignored.
-
-(./writeup.aux)
-\openout1 = `writeup.aux'.
-
-LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 28.
-LaTeX Font Info: ... okay on input line 28.
-LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 28.
-LaTeX Font Info: ... okay on input line 28.
-LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 28.
-LaTeX Font Info: ... okay on input line 28.
-LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 28.
-LaTeX Font Info: ... okay on input line 28.
-LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 28.
-LaTeX Font Info: ... okay on input line 28.
-LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 28.
-LaTeX Font Info: ... okay on input line 28.
-LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 28.
-LaTeX Font Info: ... okay on input line 28.
-LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 28.
-LaTeX Font Info: ... okay on input line 28.
-LaTeX Font Info: Checking defaults for PU/pdf/m/n on input line 28.
-LaTeX Font Info: ... okay on input line 28.
-
-*geometry* driver: auto-detecting
-*geometry* detected driver: pdftex
-*geometry* verbose mode - [ preamble ] result:
-* driver: pdftex
-* paper: a4paper
-* layout: <same size as paper>
-* layoutoffset:(h,v)=(0.0pt,0.0pt)
-* modes:
-* h-part:(L,W,R)=(71.13188pt, 455.24411pt, 71.13188pt)
-* v-part:(T,H,B)=(45.52438pt, 731.23582pt, 68.28664pt)
-* \paperwidth=597.50787pt
-* \paperheight=845.04684pt
-* \textwidth=455.24411pt
-* \textheight=731.23582pt
-* \oddsidemargin=-1.1381pt
-* \evensidemargin=-1.1381pt
-* \topmargin=-63.7456pt
-* \headheight=12.0pt
-* \headsep=25.0pt
-* \topskip=12.0pt
-* \footskip=30.0pt
-* \marginparwidth=35.0pt
-* \marginparsep=10.0pt
-* \columnsep=10.0pt
-* \skip\footins=10.8pt plus 4.0pt minus 2.0pt
-* \hoffset=0.0pt
-* \voffset=0.0pt
-* \mag=1000
-* \@twocolumnfalse
-* \@twosidefalse
-* \@mparswitchfalse
-* \@reversemarginfalse
-* (1in=72.27pt=25.4mm, 1cm=28.453pt)
-
-Package hyperref Info: Link coloring OFF on input line 28.
-(./writeup.out) (./writeup.out)
-\@outlinefile=\write5
-\openout5 = `writeup.out'.
-
-\c@lstlisting=\count340
-
-(/usr/share/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
-[Loading MPS to PDF converter (version 2006.09.02).]
-\scratchcounter=\count341
-\scratchdimen=\dimen298
-\scratchbox=\box88
-\nofMPsegments=\count342
-\nofMParguments=\count343
-\everyMPshowfont=\toks51
-\MPscratchCnt=\count344
-\MPscratchDim=\dimen299
-\MPnumerator=\count345
-\makeMPintoPDFobject=\count346
-\everyMPtoPDFconversion=\toks52
-) (/usr/share/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
-Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf
-Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
-85.
-
-(/usr/share/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
-File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
-e
-))
-LaTeX Font Info: External font `cmex10' loaded for size
-(Font) <14.4> on input line 30.
-LaTeX Font Info: External font `cmex10' loaded for size
-(Font) <7> on input line 30.
- [1
-
-{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./writeup.toc
-LaTeX Font Info: External font `cmex10' loaded for size
-(Font) <12> on input line 3.
-LaTeX Font Info: External font `cmex10' loaded for size
-(Font) <8> on input line 3.
-LaTeX Font Info: External font `cmex10' loaded for size
-(Font) <6> on input line 3.
-)
-\tf@toc=\write6
-\openout6 = `writeup.toc'.
-
- [2] [3] [4]
-(./writeup.aux)
- ***********
-LaTeX2e <2023-11-01> patch level 1
-L3 programming layer <2024-02-20>
- ***********
-Package rerunfilecheck Info: File `writeup.out' has not changed.
-(rerunfilecheck) Checksum: 538218680FEFE5A825DDB158344415B2;1963.
- )
-Here is how much of TeX's memory you used:
- 32119 strings out of 476076
- 698572 string characters out of 5793775
- 1931187 words of memory out of 5000000
- 53782 multiletter control sequences out of 15000+600000
- 562930 words of font info for 52 fonts, out of 8000000 for 9000
- 14 hyphenation exceptions out of 8191
- 98i,6n,101p,1606b,557s stack positions out of 10000i,1000n,20000p,200000b,200000s
-</usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/
-texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texmf-dist/font
-s/type1/public/amsfonts/cm/cmr17.pfb>
-Output written on writeup.pdf (4 pages, 50186 bytes).
-PDF statistics:
- 119 PDF objects out of 1000 (max. 8388607)
- 105 compressed objects within 2 object streams
- 19 named destinations out of 1000 (max. 500000)
- 125 words of extra memory for PDF output out of 10000 (max. 10000000)
-
diff --git a/electronics/cw1/writeup.out b/electronics/cw1/writeup.out
deleted file mode 100644
index c14086f..0000000
--- a/electronics/cw1/writeup.out
+++ /dev/null
@@ -1,14 +0,0 @@
-\BOOKMARK [1][-]{section.1}{\376\377\000S\000y\000s\000t\000e\000m\000\040\000P\000l\000a\000n\000n\000i\000n\000g}{}% 1
-\BOOKMARK [2][-]{subsection.1.1}{\376\377\000P\000r\000o\000b\000l\000e\000m\000\040\000a\000n\000a\000l\000y\000s\000i\000s}{section.1}% 2
-\BOOKMARK [2][-]{subsection.1.2}{\376\377\000W\000h\000o\000\040\000i\000s\000\040\000i\000t\000\040\000f\000o\000r\000?}{section.1}% 3
-\BOOKMARK [2][-]{subsection.1.3}{\376\377\000D\000e\000s\000i\000g\000n\000\040\000s\000p\000e\000c\000i\000f\000i\000c\000a\000t\000i\000o\000n}{section.1}% 4
-\BOOKMARK [1][-]{section.2}{\376\377\000S\000y\000s\000t\000e\000m\000\040\000D\000e\000s\000i\000g\000n}{}% 5
-\BOOKMARK [2][-]{subsection.2.1}{\376\377\000S\000h\000o\000w\000i\000n\000g\000\040\000h\000o\000w\000\040\000i\000t\000\040\000w\000i\000l\000l\000\040\000f\000u\000n\000c\000t\000i\000o\000n}{section.2}% 6
-\BOOKMARK [2][-]{subsection.2.2}{\376\377\000T\000h\000e\000\040\000c\000o\000d\000e}{section.2}% 7
-\BOOKMARK [1][-]{section.3}{\376\377\000S\000y\000s\000t\000e\000m\000\040\000R\000e\000a\000l\000i\000s\000a\000t\000i\000o\000n}{}% 8
-\BOOKMARK [2][-]{subsection.3.1}{\376\377\000C\000i\000r\000u\000i\000t\000\040\000r\000e\000a\000l\000i\000s\000a\000t\000i\000o\000n}{section.3}% 9
-\BOOKMARK [2][-]{subsection.3.2}{\376\377\000C\000a\000l\000i\000b\000r\000a\000t\000i\000n\000g\000\040\000t\000h\000e\000\040\000s\000e\000n\000s\000o\000r\000s}{section.3}% 10
-\BOOKMARK [2][-]{subsection.3.3}{\376\377\000R\000e\000s\000u\000l\000t\000s}{section.3}% 11
-\BOOKMARK [1][-]{section.4}{\376\377\000S\000y\000s\000t\000e\000m\000\040\000E\000v\000a\000l\000u\000a\000t\000i\000o\000n}{}% 12
-\BOOKMARK [2][-]{subsection.4.1}{\376\377\000D\000i\000d\000\040\000i\000t\000\040\000w\000o\000r\000k\000?}{section.4}% 13
-\BOOKMARK [2][-]{subsection.4.2}{\376\377\000W\000h\000a\000t\000\040\000c\000o\000u\000l\000d\000\040\000g\000o\000\040\000b\000e\000t\000t\000e\000r\000?}{section.4}% 14
diff --git a/electronics/cw1/writeup.tex b/electronics/cw1/writeup.tex
index f92c0dd..106ce19 100644
--- a/electronics/cw1/writeup.tex
+++ b/electronics/cw1/writeup.tex
@@ -1,68 +1,255 @@
\documentclass[a4paper,12pt]{article}
-\usepackage{geometry}
-\usepackage{titling}
+\usepackage[backend=bibtex]{biblatex}
+\usepackage{geometry}
+\usepackage{titling}
\usepackage{titlesec}
-\usepackage[english]{babel}
-\usepackage[hidelinks]{hyperref}
-\usepackage{listings}
+\usepackage[english]{babel}
+\usepackage[hidelinks]{hyperref}
+\usepackage{listings}
\usepackage{xcolor}
-\usepackage{graphicx}
-\usepackage{forest}
-\usepackage{tikz-qtree}
-\usepackage{setspace}
+\usepackage{graphicx}
+\usepackage{forest}
+\usepackage{tikz-qtree} \usepackage[siunitx, european, straightvoltages, cute inductors]{circuitikz}
+\usepackage{setspace} \usepackage{ragged2e}
+
+\addbibresource{ref.bib}
+
+\definecolor{codegreen}{rgb}{0,0.6,0}
+\definecolor{codegray}{rgb}{0.5,0.5,0.5}
+\definecolor{codepurple}{rgb}{0.58,0,0.82}
+\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
+
+\lstdefinestyle{mystyle}{
+ backgroundcolor=\color{backcolour},
+ commentstyle=\color{codegreen},
+ keywordstyle=\color{magenta},
+ 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
+}
+\lstset{style=mystyle}
+
+\tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black, fill=red!30]
+\tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=0cm, minimum height=1cm, text centered, draw=black, fill=blue!30]
+\tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=orange!30]
+\tikzstyle{subroutine} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=yellow!30, double distance=1]
+\tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=green!30]
+\tikzstyle{arrow} = [thick,->,>=stealth]
-\titleformat{\section}
-{\Huge}
-{}
-{0em}
-{}[\titlerule]
+\titleformat{\section} {\Huge} {} {0em} {}[\titlerule]
\geometry{a4paper,total={170mm,257mm},left=25mm,right=25mm,}
-\author{Lucas Standen}
+\author{Lucas Standen}
\title{Creating a simple temprature sensing circuit}
-
-
-\begin{document}
+\begin{document}
\maketitle
\newpage
-
-\tableofcontents
+\tableofcontents
\newpage
\setlength{\parskip}{1em}
{\setlength{\parindent}{0cm}
-
-\section{System Planning}
-\subsection{Problem analysis}
-My circuit will sense temperature, and will be taking into consideration pet owners, worried about
-their homes over-heating for their pets, this will be especially helpful for owners of sensitive pets
-such as fish. People who own these pets often leave them at home alone, which can be deadly on summer
-days, my device plans to alert the owner, and can be attached to other systems such as a cooling system.
-
-My system, will flash an LED and pulse a buzzer to make it clear that it is too hot, have an indicator
-to tell the user that something has gone wrong, and have a pin to free to attach to an external system.
-It will have a adjustment dial to change the threshold, so the user can specify what temperature is too
-hot.
-
-\subsection{Who is it for?}
-\subsection{Design specification}
-
-\section{System Design}
-\subsection{Showing how it will function}
-\subsection{The code}
-
-\section{System Realisation}
-\subsection{Ciruit realisation}
-\subsection{Calibrating the sensors}
-\subsection{Results}
-
-\section{System Evaluation}
-\subsection{Did it work?}
-\subsection{What could go better?}
-}
+ \section{System Planning}
+ \subsection{Problem analysis}
+ My circuit will sense temperature, and will be taking into consideration pet owners, worried about their homes over-heating
+ for their pets, this will be especially helpful for owners of sensitive pets such as fish. People who own these pets often
+ leave them at home alone, which can be deadly on summer days, my device plans to alert the owner, and can be attached to other
+ systems such as a cooling system.
+
+ My system, will flash an LED and pulse a buzzer to make it clear that it is too hot, have an indicator to tell
+ the user that something has gone wrong, and have a pin to free to attach to an external system. It will have a
+ adjustment dial to change the threshold, so the user can specify what temperature is too hot.
+
+ \subsection{Who is it for?}
+ My project will be used by pet owners, focussing on fish, to keep the tank at the
+ correct temperature. This is a broad range of people as many people own fish\cite{FISH}. Many fish die due to
+ their tanks getting too hot, especially in the summer, my project is perfect for these fish owners.
+
+ \section{Design specification}
+ \subsection{System Design}
+ The project will need to do the following things:
+ \begin{description}
+ \item[] Read the temprature
+ \item[] Compare the temprature to a known value
+ \item[] The output is a flashing led and buzzer
+ \item[] The output is a flashing led and buzzer
+ \end{description}
+
+ My system will contain the following components to
+ function:
+ \begin{description}
+ \item[Mircocontroller] This will be used to control all the other components \item[Thermistor] This will
+ sense the temperature
+ \item[Potentiomiter] This will set the activation threshold
+ \item[Red, Green and Amber LED's] These will indicate the state of the device
+ \item[Buzzer] This will indicate that it is too
+ hot
+ \item[Button] This will reset the device
+ \end{description}
+ With these components I will make a circuit that can be used to sense and warn a user about
+ high temperatures. The design will revolve around the micro controller, with everything else coming off it as a
+ sub system like so:
+
+ \begin{center}
+ \begin{tikzpicture}
+ \tikzset{edge from parent/.style={draw,edge from parent path={(\tikzparentnode.south)-- +(0,-8pt)-| (\tikzchildnode)}}}
+ \Tree
+ [.Button
+ [.Microcontroller
+ [.Inputs
+ [.Thermistor ] [.Potentiomiter ]
+ ] [.Outputs
+ [.LED(green) ] [.LED(red) ] [.LED(amber) ] [.Buzzer ]
+ ]
+ ]
+ ]
+ \end{tikzpicture}
+ \end{center}
+
+ As one can see a button will control the Microcontroller, by drawing all the current that the power supply
+ can through the button, one can make the Microcontroller reset. The Microcontroller will have 2 inputs, and
+ 4 outputs. The potentiomiter will be used to set the threshold in which the warnings begin, this will be done
+ inside the microcontroller, with a subtraction between the Thermistor value, and the potentiometer value. The
+ needed outputs will pulse to be especially clear that something is wrong.
+
+ \subsection{Flowchart}
+ Here is my code, build into an abstracted flow chart, to make the reading of the program easier.
+ It is spread across 2 pages, to ensure it is big enough to read.
+
+ \begin{tikzpicture}[node distance=2cm]
+ \node (start) [startstop] {Start};
+ \node (in1) [io, below of=start] {Read temprature};
+ \node (in2) [io, below of=in1] {Read threshold value};
+ \node (dec1) [decision, below of=in2, yshift=-2cm] {Is the temprature too hot?};
+ \node (sub1) [subroutine, right of=dec1, xshift=6cm] {Flash};
+ \node (proc1) [process, below of=dec1, yshift=-2cm, xshift=6cm] {Reset the status flag};
+
+
+ \draw [arrow] (start) -- (in1);
+ \draw [arrow] (in1) -- (in2);
+ \draw [arrow] (in2) -- (dec1);
+ \draw [arrow] (dec1) -- node[anchor=north] {Yes} (sub1);
+ \draw [arrow] (sub1) |- (start);
+ \draw [arrow] (dec1) |- node[anchor=east] {No} (proc1);
+ \draw [arrow] (proc1) |- (start);
+ \end{tikzpicture}
+ \newpage
+ \begin{tikzpicture}[node distance=2cm]
+ \node (flash) [subroutine, below of=dec1, yshift=-4cm] {Flash};
+ \node (proc2) [process, below of=flash] {Set counter to 5};
+ \node (out1) [io, below of=proc2] {Set LED and buzzer on};
+ \node (proc3) [process, below of=out1] {Wait 1 second};
+ \node (proc4) [process, below of=proc3] {Decrement 1 from the counter};
+ \node (dec2) [decision, below of=proc4, yshift=-1cm] {Is counter == 0};
+ \node (out3) [io, below of=dec2, yshift=-1cm] {Set LED and buzzer off};
+ \node (return) [subroutine, below of=out3] {Return};
+ \node (out2) [io, right of=dec2, xshift=6cm] {Set LED and buzzer off};
+ \node (proc5) [process, above of=out2] {Wait 1 second};
+
+ \draw [arrow] (flash) -- (proc2);
+ \draw [arrow] (proc2) -- (out1);
+ \draw [arrow] (out1) -- (proc3);
+ \draw [arrow] (proc3) -- (proc4);
+ \draw [arrow] (proc4) -- (dec2);
+ \draw [arrow] (dec2) -- node[anchor=north] {No} (out2);
+ \draw [arrow] (dec2) -- node[anchor=east] {Yes} (out3);
+ \draw [arrow] (out3) -- (return);
+ \draw [arrow] (out2) -- (proc5);
+ \draw [arrow] (proc5) |- (out1);
+ \end{tikzpicture}
+
+
+
+ \subsection{How will it function?}
+ Bellow is the diagram for my circuit, it works mostly via the code on the
+ micro controller, so this is just connecting things between live and the microcontroller.
+ \begin{flushleft}
+ \begin{circuitikz}
+ \draw (-8,5) to[short,o-o] (8,5){}; % power rail
+ \draw (0,5) node[vcc]{5V};
+
+ \draw (-8,-6) to[short,o-o] (8,-6){}; % ground rail
+ \draw (0,-6) node[ground]{};
+
+ \draw (0,3) to[short,o-] (7,3){}; % push button
+ \draw (7,3) to[push button,-o] (7,-6){};
+
+ \ctikzset{multipoles/thickness=4}
+ \ctikzset{multipoles/external pins thickness=2}
+ \draw (0,0)node[dipchip,
+ num pins=18, external pins width=0.3,
+ external pad fraction=3,
+ scale=1.8,
+ rotate=90](Micro){
+ \rotatebox{-90}{PICAXE 18m2}}; % micro controller
+
+ \draw (-7, 5) to[thermistor,a=\tiny{100K},o-o] (-7,0){}; % thermistor
+ \draw (-7, 0) to[resistor,a=\tiny{100K},o-o] (-7,-6){}; % thermistor divider resistor
+
+ \draw (-7, 0) to[short, o-] (-6,0){}; %thermistor divider wire
+ \draw (-6, 0) to[short, -] (-6,3){};
+ \draw(-6, 3) to[short, -] (-4, 3){};
+ \draw (-4, 3) to[short, -] (Micro.pin 18){};
+
+ \draw (-8, 5) to[potentiometer, a=\tiny{10K}, -] (-8, -2){};
+ \draw (-8, -2) to[short, -] (-8, -6){};
+
+ \draw (-7.5, 1.5) to[short, o-] (-5, 1.5){}; % potentiometer wire
+ \draw (-5, 1.5) to[short,-] (-5, 4){};
+ \draw (-5, 4) to[short,-] (-3, 4){};
+ \draw (-3, 4) to[short, -] (Micro.pin 17){};
+
+
+ \draw (Micro.pin 14) to[short,-o] (0,5){}; %microcontroller live
+ \draw (Micro.pin 5) to[short,-o](0,-6){}; %microcontroller ground
+
+ \draw (Micro.pin 6) to[empty led] (1, -4){}; %output red
+ \draw (Micro.pin 7) to[buzzer] (2, -6){}; %output buzzer
+ \draw (Micro.pin 8) to[empty led] (3, -4){}; %output amber
+ \draw (Micro.pin 9) to[empty led] (4, -4){}; %output green
+
+ \draw (1,-4) to[resistor,-o,a=\tiny{220}] (1,-6){}; % output resistor
+ \draw (3,-4) to[resistor,-o,a=\tiny{220}] (3,-6){}; % output resistor
+ \draw (4,-4) to[resistor,-o,a=\tiny{220}] (4,-6){}; % output resistor
+ \end{circuitikz}
+ \end{flushleft}
+ The way this works is the potential divider on the
+ left feeds into the micro controller which performs a comparison between it and the potentiometer, using the ADC
+ pins on the pic chip. The button seen on the right is being used as a reset switch, for a short time, it can
+ cut short circuit the system, cutting power to the microcontroller, effectively acting as a reset switch. The
+ outputs at the bottom are in order; a red LED that flashes when the circuit detects it is too hot; a buzzer that
+ flashes at the same time; an amber LED that turns on after the flashing has stopped to inform the user that it
+ was too hot at some point; and a green status LED to inform the user that all is working.
+
+ \subsection{The code}
+ Bellow is the code for the micro controller. It is 59 lines long and commented. It contains 12 unique instructions.
+ \lstinputlisting[]{./final.asm}
+ 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.
+ \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.
+
+ \subsection{Calibrating the sensors}
+ \subsection{Results}
+
+ \section{System Evaluation}
+ \subsection{Did it work?}
+ \subsection{What could go better?}
+
+ \newpage
+
+ \printbibliography
+}
\end{document}
diff --git a/electronics/cw1/writeup.toc b/electronics/cw1/writeup.toc
deleted file mode 100644
index 2875d24..0000000
--- a/electronics/cw1/writeup.toc
+++ /dev/null
@@ -1,15 +0,0 @@
-\babel@toc {english}{}\relax
-\contentsline {section}{\numberline {1}System Planning}{3}{section.1}%
-\contentsline {subsection}{\numberline {1.1}Problem analysis}{3}{subsection.1.1}%
-\contentsline {subsection}{\numberline {1.2}Who is it for?}{4}{subsection.1.2}%
-\contentsline {subsection}{\numberline {1.3}Design specification}{4}{subsection.1.3}%
-\contentsline {section}{\numberline {2}System Design}{4}{section.2}%
-\contentsline {subsection}{\numberline {2.1}Showing how it will function}{4}{subsection.2.1}%
-\contentsline {subsection}{\numberline {2.2}The code}{4}{subsection.2.2}%
-\contentsline {section}{\numberline {3}System Realisation}{4}{section.3}%
-\contentsline {subsection}{\numberline {3.1}Ciruit realisation}{4}{subsection.3.1}%
-\contentsline {subsection}{\numberline {3.2}Calibrating the sensors}{4}{subsection.3.2}%
-\contentsline {subsection}{\numberline {3.3}Results}{4}{subsection.3.3}%
-\contentsline {section}{\numberline {4}System Evaluation}{4}{section.4}%
-\contentsline {subsection}{\numberline {4.1}Did it work?}{4}{subsection.4.1}%
-\contentsline {subsection}{\numberline {4.2}What could go better?}{4}{subsection.4.2}%