-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tex
232 lines (176 loc) · 8.8 KB
/
main.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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[oneside,openany]{tufte-book} % Use the tufte-book class
\usepackage{microtype} % Improves character and word spacing
\usepackage{multirow}
\usepackage{setspace}
\usepackage{subfig}
\usepackage{tabularx}
\usepackage{fontawesome5}
\setcounter{secnumdepth}{1}
\usepackage{hyperref}
\hypersetup{colorlinks} % For colored links
\usepackage{ragged2e}
\usepackage{float}
\usepackage{amsmath}
\usepackage{enumerate}
\usepackage{caption}
\usepackage{setspace}
\PassOptionsToPackage{usenames,dvipsnames,svgnames,table}{xcolor}
\usepackage[table]{xcolor}
\usepackage{colortbl}
\definecolor{lightgray}{gray}{0.9}
\usepackage[export]{adjustbox}
\usepackage{booktabs} % Better horizontal rules in tables
\usepackage{graphicx} % Needed to insert images into the document
\setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio} % Improves figure scaling
\usepackage{fancyvrb} % Allows customization of verbatim environments
\fvset{fontsize=\normalsize} % The font size of all verbatim text can be changed here
\usepackage{acro}
\input{abbrevations}
\usepackage{listings} %configuration for codes
\definecolor{mGreen}{rgb}{0,0.6,0}
\definecolor{mGray}{rgb}{0.5,0.5,0.5}
\definecolor{mPurple}{rgb}{0.58,0,0.82}
\definecolor{backgroundColour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{CStyle}{
backgroundcolor=\color{backgroundColour},
commentstyle=\color{mGreen},
keywordstyle=\color{magenta},
numberstyle=\tiny\color{mGray},
stringstyle=\color{mPurple},
basicstyle=\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2,
language=C
}
\def\ci#1{\textcircled{\resizebox{.5em}{!}{#1}}}
\newcommand\Tstrut{\rule{0pt}{2.6ex}} % "top" strut
\newcommand\Bstrut{\rule[-0.9ex]{0pt}{0pt}} % "bottom" strut
\newcommand{\TBstrut}{\Tstrut\Bstrut} % top&bottom struts
\newcommand{\hangp}[1]{\makebox[0pt][r]{(}#1\makebox[0pt][l]{)}} % New command to create parentheses around text in tables which take up no horizontal space - this improves column spacing
\newcommand{\hangstar}{\makebox[0pt][l]{*}} % New command to create asterisks in tables which take up no horizontal space - this improves column spacing
\usepackage{xspace} % Used for printing a trailing space better than using a tilde (~) using the \xspace command
\newcommand{\monthyear}{\ifcase\month\or January\or February\or March\or April\or May\or June\or July\or August\or September\or October\or November\or December\fi\space\number\year} % A command to print the current month and year
\newcommand{\blankpage}{\newpage\hbox{}\thispagestyle{empty}\newpage} % Command to insert a blank page
\usepackage{makeidx} % Used to generate the index
\makeindex % Generate the index which is printed at the end of the document
%----------------------------------------------------------------------------------------
% BOOK META-INFORMATION
%----------------------------------------------------------------------------------------
\title{ACTUATOR, ROBOTICS WITH ARDUINO} % Title of the book
\author{ROBOCEK Project Developers} % Author
\publisher{ROBOCEK 2020-21} % Publisher
%----------------------------------------------------------------------------------------
\begin{document}
\frontmatter
%----------------------------------------------------------------------------------------
% COVER PAGE
%----------------------------------------------------------------------------------------
%----------------------------------------------------------------------------------------
% TITLE
%----------------------------------------------------------------------------------------
\maketitle
%----------------------------------------------------------------------------------------
% COPYRIGHT PAGE
%----------------------------------------------------------------------------------------
\include{copyright}
%----------------------------------------------------------------------------------------
% Epigraph : A quotation
%----------------------------------------------------------------------------------------
\clearpage
~\vfill
\begin{fullwidth}
\noindent\fontsize{18}{22}\selectfont\itshape \nohyphenation
There are an endless number of things to discover about robotics. A lot of it is just too fantastic for people to believe.
\par \begin{flushright} \mbox{-Daniel H. Wilson} \end{flushright}
\vfill \vfill
\end{fullwidth}
%----------------------------------------------------------------------------------------
% ACKNOWLEDGEMENTS
%----------------------------------------------------------------------------------------
\include{acknowledgement}
%----------------------------------------------------------------------------------------
% PREFACE PAGE
%----------------------------------------------------------------------------------------
\include{Preface}
%----------------------------------------------------------------------------------------
% HALF TITLE
%----------------------------------------------------------------------------------------
\include{halfTitle}
%----------------------------------------------------------------------------------------
% DEDICATION
%----------------------------------------------------------------------------------------
\newpage
~\vfill
\begin{fullwidth}
\noindent\fontsize{18}{22}\selectfont\itshape \nohyphenation
\centering
For the pioneers into robotics with Arduino...
\vfill \vfill
\end{fullwidth}
%----------------------------------------------------------------------------------------
% TABLE OF CONTENTS PAGE
%----------------------------------------------------------------------------------------
\begin{spacing}{0.80}
\tableofcontents % Print the table of contents
\end{spacing}
\let\cleardoublepage\clearpage
%----------------------------------------------------------------------------------------
% LIST OF FIGURES, TABLES AND ACRONYMS
%----------------------------------------------------------------------------------------
\listoffigures
\listoftables
\chapter*{Acronyms}
\printacronyms[heading=none]
%----------------------------------------------------------------------------------------
\mainmatter
%----------------------------------------------------------------------------------------
% The ROBOCEK FAMILY
%----------------------------------------------------------------------------------------
\include{ROBOCEK}
%----------------------------------------------------------------------------------------
% CHAPTER 1 : Introduction to Robotics
%----------------------------------------------------------------------------------------
\include{Chapters/Introduction_to_Robotics}
%----------------------------------------------------------------------------------------
% CHAPTER 2 : Introducing to Arduino
%----------------------------------------------------------------------------------------
\include{Chapters/Introduction_to_Arduino}
%----------------------------------------------------------------------------------------
% CHAPTER 3 : Programming Arduino
%----------------------------------------------------------------------------------------
\include{Chapters/Programing_Arduino}
%----------------------------------------------------------------------------------------
% CHAPTER 4 : Motor Driver
%----------------------------------------------------------------------------------------
\include{Chapters/Motor_Driver}
%----------------------------------------------------------------------------------------
% CHAPTER 5 : Interfacing IR sensors
%----------------------------------------------------------------------------------------
\include{Chapters/IR_sensors}
%----------------------------------------------------------------------------------------
% CHAPTER 6 : Interfacing UltraSonic sensors
%----------------------------------------------------------------------------------------
\include{Chapters/Ultrasonic_sensors}
%----------------------------------------------------------------------------------------
% CHAPTER 7 : Interfacing DTMF
%----------------------------------------------------------------------------------------
\include{Chapters/DTMF}
\backmatter
\nobibliography{main}
%----------------------------------------------------------------------------------------
% Conclusion
%----------------------------------------------------------------------------------------
\include{conclusion}
%----------------------------------------------------------------------------------------
\end{document}