diff options
author | SudhakarKuma | 2021-05-08 05:46:22 +0530 |
---|---|---|
committer | SudhakarKuma | 2021-05-08 05:46:22 +0530 |
commit | 2af8e5ff815855babff2ea3bf7cf81760b7f239e (patch) | |
tree | 1ae82520d51ec8fd00b5b474ce2d48356e54a94a | |
parent | 16b8fa46563b4f2e80daf9a8940900b62af652fc (diff) | |
download | FLOSS-Arduino-Book-2af8e5ff815855babff2ea3bf7cf81760b7f239e.tar.gz FLOSS-Arduino-Book-2af8e5ff815855babff2ea3bf7cf81760b7f239e.tar.bz2 FLOSS-Arduino-Book-2af8e5ff815855babff2ea3bf7cf81760b7f239e.zip |
Add threshold issues in thermistor chapter
-rw-r--r-- | floss-arduino.OpenModelicad | 4 | ||||
-rw-r--r-- | floss-arduino.ard | 2 | ||||
-rw-r--r-- | floss-arduino.aux | 146 | ||||
-rw-r--r-- | floss-arduino.cod | 2 | ||||
-rw-r--r-- | floss-arduino.fdb_latexmk | 56 | ||||
-rw-r--r-- | floss-arduino.juliad | 4 | ||||
-rw-r--r-- | floss-arduino.lof | 4 | ||||
-rw-r--r-- | floss-arduino.log | 36 | ||||
-rw-r--r-- | floss-arduino.lot | 4 | ||||
-rw-r--r-- | floss-arduino.pdf | bin | 31698313 -> 31701275 bytes | |||
-rw-r--r-- | floss-arduino.pyd | 2 | ||||
-rw-r--r-- | floss-arduino.synctex.gz | bin | 2859913 -> 2868549 bytes | |||
-rw-r--r-- | floss-arduino.thm | 14 | ||||
-rw-r--r-- | floss-arduino.toc | 22 | ||||
-rw-r--r-- | indent.log | 4 | ||||
-rw-r--r-- | user-code/thermistor/thermistor.tex | 100 |
16 files changed, 230 insertions, 170 deletions
diff --git a/floss-arduino.OpenModelicad b/floss-arduino.OpenModelicad index 6cdcb0c..8b40e21 100644 --- a/floss-arduino.OpenModelicad +++ b/floss-arduino.OpenModelicad @@ -13,8 +13,8 @@ \addvspace {10pt} \contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{147}% \addvspace {10pt} -\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{169}% -\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{170}% +\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{171}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{171}% \addvspace {10pt} \contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{198}% \contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{199}% diff --git a/floss-arduino.ard b/floss-arduino.ard index 6ad719f..d1e4260 100644 --- a/floss-arduino.ard +++ b/floss-arduino.ard @@ -14,7 +14,7 @@ \contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{138}% \addvspace {10pt} \contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{154}% -\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{154}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{155}% \addvspace {10pt} \contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{178}% \contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{179}% diff --git a/floss-arduino.aux b/floss-arduino.aux index 355ddd7..4114cf6 100644 --- a/floss-arduino.aux +++ b/floss-arduino.aux @@ -912,7 +912,7 @@ \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{152}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{152}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash buzzer/therm\textendash buzzer.ino}{153}\protected@file@percent } -\@writefile{toc}{\contentsline {paragraph}{Note:}{153}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{154}\protected@file@percent } \@writefile{thm}{\contentsline {egmass}{{Exercise}{8.{1}}{}}{154}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {8.3.2}Arduino Code}{154}\protected@file@percent } \newlabel{sec:therm-arduino-code}{{8.3.2}{154}} @@ -923,29 +923,29 @@ \newlabel{76@vr}{{}{154}} \newlabel{ard:therm-read}{{8.{1}}{154}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{154}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{8.{2}}{}}{154}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{154}\protected@file@percent } -\newlabel{77@xvr}{{}{154}} -\newlabel{77@vr}{{}{154}} -\newlabel{ard:therm-buzzer}{{8.{2}}{154}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash buzzer/therm\textendash buzzer.ino}{154}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{8.{2}}{}}{155}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{155}\protected@file@percent } +\newlabel{77@xvr}{{}{155}} +\newlabel{77@vr}{{}{155}} +\newlabel{ard:therm-buzzer}{{8.{2}}{155}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash buzzer/therm\textendash buzzer.ino}{155}\protected@file@percent } \@writefile{toc}{\contentsline {section}{\numberline {8.4}Interfacing the thermistor from Scilab}{155}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {8.4.1}Interfacing the thermistor}{155}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash read.sce}{155}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash read.sce}{156}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash buzzer.sce}{156}\protected@file@percent } -\@writefile{toc}{\contentsline {paragraph}{Note:}{156}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash read.sce}{156}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash buzzer.sce}{157}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{157}\protected@file@percent } \@writefile{thm}{\contentsline {egmass}{{Exercise}{8.{2}}{}}{157}\protected@file@percent } \newlabel{therm-abc}{{8.1}{157}} \newlabel{therm-beta}{{8.2}{157}} -\@writefile{toc}{\contentsline {subsection}{\numberline {8.4.2}Scilab Code}{157}\protected@file@percent } -\newlabel{sec:therm-scilab-code}{{8.4.2}{157}} +\@writefile{toc}{\contentsline {subsection}{\numberline {8.4.2}Scilab Code}{158}\protected@file@percent } +\newlabel{sec:therm-scilab-code}{{8.4.2}{158}} \@writefile{cod}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{8.{1}}{}}{157}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{157}\protected@file@percent } -\newlabel{78@xvr}{{}{157}} -\newlabel{78@vr}{{}{157}} -\newlabel{sci:therm-read}{{8.{1}}{157}} +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{8.{1}}{}}{158}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{158}\protected@file@percent } +\newlabel{78@xvr}{{}{158}} +\newlabel{78@vr}{{}{158}} +\newlabel{sci:therm-read}{{8.{1}}{158}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash read.sce}{158}\protected@file@percent } \@writefile{thm}{\contentsline {codemass}{{Scilab Code}{8.{2}}{}}{158}\protected@file@percent } \@writefile{cod}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{158}\protected@file@percent } @@ -953,34 +953,34 @@ \newlabel{79@vr}{{}{158}} \newlabel{sci:therm-buzzer}{{8.{2}}{158}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash buzzer.sce}{158}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {8.5}Interfacing the thermistor from Xcos}{158}\protected@file@percent } \@writefile{lof}{\contentsline {figure}{\numberline {8.5}{\ignorespaces Xcos diagram to read thermistor values}}{159}\protected@file@percent } \newlabel{81@xvr}{{}{159}} \newlabel{81@vr}{{}{159}} \newlabel{fig:therm-read}{{8.5}{159}} -\@writefile{lot}{\contentsline {table}{\numberline {8.1}{\ignorespaces Xcos parameters to read thermistor\relax }}{159}\protected@file@percent } -\newlabel{tab:therm-read}{{8.1}{159}} -\newlabel{82@xvr}{{}{159}} -\newlabel{82@vr}{{}{159}} +\@writefile{toc}{\contentsline {section}{\numberline {8.5}Interfacing the thermistor from Xcos}{159}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {8.1}{\ignorespaces Xcos parameters to read thermistor\relax }}{160}\protected@file@percent } +\newlabel{tab:therm-read}{{8.1}{160}} +\newlabel{82@xvr}{{}{160}} +\newlabel{82@vr}{{}{160}} \@writefile{lof}{\contentsline {figure}{\numberline {8.6}{\ignorespaces Plot window in Xcos to read thermistor values\relax }}{160}\protected@file@percent } \newlabel{fig:therm-read-output}{{8.6}{160}} -\@writefile{lof}{\contentsline {figure}{\numberline {8.7}{\ignorespaces Xcos diagram to read the value of thermistor, which is used to turn the buzzer on}}{160}\protected@file@percent } -\newlabel{84@xvr}{{}{160}} -\newlabel{84@vr}{{}{160}} -\newlabel{fig:therm-buzzer}{{8.7}{160}} -\@writefile{lot}{\contentsline {table}{\numberline {8.2}{\ignorespaces Xcos parameters to read thermistor and switch the buzzer\relax }}{161}\protected@file@percent } -\newlabel{tab:therm-buzzer}{{8.2}{161}} -\newlabel{85@xvr}{{}{161}} -\newlabel{85@vr}{{}{161}} +\@writefile{lof}{\contentsline {figure}{\numberline {8.7}{\ignorespaces Xcos diagram to read the value of thermistor, which is used to turn the buzzer on}}{161}\protected@file@percent } +\newlabel{84@xvr}{{}{161}} +\newlabel{84@vr}{{}{161}} +\newlabel{fig:therm-buzzer}{{8.7}{161}} \@writefile{toc}{\contentsline {paragraph}{Note:}{161}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {8.8}{\ignorespaces Plot window in Xcos to read thermistor values and the state of LED\relax }}{162}\protected@file@percent } -\newlabel{fig:therm-buzzer-output}{{8.8}{162}} +\@writefile{lot}{\contentsline {table}{\numberline {8.2}{\ignorespaces Xcos parameters to read thermistor and switch the buzzer\relax }}{162}\protected@file@percent } +\newlabel{tab:therm-buzzer}{{8.2}{162}} +\newlabel{85@xvr}{{}{162}} +\newlabel{85@vr}{{}{162}} \@writefile{toc}{\contentsline {section}{\numberline {8.6}Interfacing the thermistor from Python}{162}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {8.6.1}Interfacing the thermistor}{162}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash read.py}{162}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {8.8}{\ignorespaces Plot window in Xcos to read thermistor values and the state of LED\relax }}{163}\protected@file@percent } +\newlabel{fig:therm-buzzer-output}{{8.8}{163}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash read.py}{163}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash buzzer.py}{163}\protected@file@percent } -\@writefile{toc}{\contentsline {paragraph}{Note:}{163}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash buzzer.py}{164}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{164}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {8.6.2}Python Code}{164}\protected@file@percent } \newlabel{sec:therm-pyhton-code}{{8.6.2}{164}} \@writefile{pyd}{\addvspace {10pt}} @@ -990,51 +990,51 @@ \newlabel{86@vr}{{}{164}} \newlabel{py:therm-read}{{8.{1}}{164}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash read.py}{164}\protected@file@percent } -\@writefile{thm}{\contentsline {pymass}{{Python Code}{8.{2}}{}}{164}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{164}\protected@file@percent } -\newlabel{87@xvr}{{}{164}} -\newlabel{87@vr}{{}{164}} -\newlabel{py:therm-buzzer}{{8.{2}}{164}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash buzzer.py}{164}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{8.{2}}{}}{165}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{165}\protected@file@percent } +\newlabel{87@xvr}{{}{165}} +\newlabel{87@vr}{{}{165}} +\newlabel{py:therm-buzzer}{{8.{2}}{165}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash buzzer.py}{165}\protected@file@percent } \citation{julia-serial-ports} \@writefile{toc}{\contentsline {section}{\numberline {8.7}Interfacing the thermistor from Julia}{166}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {8.7.1}Interfacing the thermistor}{166}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash read.jl}{166}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash read.jl}{166}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash buzzer.jl}{167}\protected@file@percent } -\@writefile{toc}{\contentsline {paragraph}{Note:}{167}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {8.7.2}Julia Code}{167}\protected@file@percent } -\newlabel{sec:therm-julia-code}{{8.7.2}{167}} -\@writefile{juliad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{8.{1}}{}}{167}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{167}\protected@file@percent } -\newlabel{88@xvr}{{}{167}} -\newlabel{88@vr}{{}{167}} -\newlabel{julia:therm-read}{{8.{1}}{167}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash read.jl}{167}\protected@file@percent } -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{8.{2}}{}}{167}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{167}\protected@file@percent } -\newlabel{89@xvr}{{}{167}} -\newlabel{89@vr}{{}{167}} -\newlabel{julia:therm-buzzer}{{8.{2}}{167}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash buzzer.jl}{167}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {8.8}Interfacing the thermistor from OpenModelica}{168}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {8.8.1}Interfacing the thermistor}{168}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash read.mo}{168}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash read.mo}{168}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash buzzer.mo}{169}\protected@file@percent } -\@writefile{toc}{\contentsline {paragraph}{Note:}{169}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {8.8.2}OpenModelica Code}{169}\protected@file@percent } -\newlabel{sec:therm-OpenModelica-code}{{8.8.2}{169}} -\@writefile{OpenModelicad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{1}}{}}{169}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{169}\protected@file@percent } -\newlabel{OpenModelica:therm-read}{{8.{1}}{169}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash read.jl}{167}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash buzzer.jl}{168}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{168}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.7.2}Julia Code}{168}\protected@file@percent } +\newlabel{sec:therm-julia-code}{{8.7.2}{168}} +\@writefile{juliad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{8.{1}}{}}{168}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{168}\protected@file@percent } +\newlabel{88@xvr}{{}{168}} +\newlabel{88@vr}{{}{168}} +\newlabel{julia:therm-read}{{8.{1}}{168}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash read.jl}{168}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{8.{2}}{}}{168}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{168}\protected@file@percent } +\newlabel{89@xvr}{{}{168}} +\newlabel{89@vr}{{}{168}} +\newlabel{julia:therm-buzzer}{{8.{2}}{168}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash buzzer.jl}{168}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {8.8}Interfacing the thermistor from OpenModelica}{169}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.8.1}Interfacing the thermistor}{169}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash read.mo}{169}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash read.mo}{169}\protected@file@percent } -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{2}}{}}{170}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{170}\protected@file@percent } -\newlabel{OpenModelica:therm-buzzer}{{8.{2}}{170}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash buzzer.mo}{170}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{170}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.8.2}OpenModelica Code}{171}\protected@file@percent } +\newlabel{sec:therm-OpenModelica-code}{{8.8.2}{171}} +\@writefile{OpenModelicad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{1}}{}}{171}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{171}\protected@file@percent } +\newlabel{OpenModelica:therm-read}{{8.{1}}{171}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash read.mo}{171}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{2}}{}}{171}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{171}\protected@file@percent } +\newlabel{OpenModelica:therm-buzzer}{{8.{2}}{171}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash buzzer.mo}{171}\protected@file@percent } \citation{arduino-pwm} \@writefile{toc}{\contentsline {chapter}{\numberline {9}Interfacing a Servomotor}{173}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} diff --git a/floss-arduino.cod b/floss-arduino.cod index 69dc3ee..e333278 100644 --- a/floss-arduino.cod +++ b/floss-arduino.cod @@ -16,7 +16,7 @@ \addvspace {10pt} \contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{140}% \addvspace {10pt} -\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{157}% +\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{158}% \contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{158}% \addvspace {10pt} \contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{182}% diff --git a/floss-arduino.fdb_latexmk b/floss-arduino.fdb_latexmk index 127de5b..79af2e7 100644 --- a/floss-arduino.fdb_latexmk +++ b/floss-arduino.fdb_latexmk @@ -1,19 +1,19 @@ # Fdb version 3 -["bibtex floss-arduino"] 1620429802 "floss-arduino.aux" "floss-arduino.bbl" "floss-arduino" 1620430758 +["bibtex floss-arduino"] 1620432918 "floss-arduino.aux" "floss-arduino.bbl" "floss-arduino" 1620432938 "/usr/share/texlive/texmf-dist/bibtex/bst/base/unsrt.bst" 1292289607 18030 1376b4b231b50c66211e47e42eda2875 "" "bibliography.bib" 1620428924 6032 5a7c3eab7d5596806f29b0e052a6837a "" - "floss-arduino.aux" 1620430757 140777 ddffcb93bfeecb14b012cdde97144323 "pdflatex" + "floss-arduino.aux" 1620432937 140777 a73406b3b0fa0e47a33b09a2b1b268ae "pdflatex" (generated) - "floss-arduino.bbl" "floss-arduino.blg" -["makeindex floss-arduino.idx"] 1620429488 "floss-arduino.idx" "floss-arduino.ind" "floss-arduino" 1620430758 - "floss-arduino.idx" 1620430757 187 271460d41130469c03967b41a1ffca73 "pdflatex" + "floss-arduino.bbl" +["makeindex floss-arduino.idx"] 1620432586 "floss-arduino.idx" "floss-arduino.ind" "floss-arduino" 1620432938 + "floss-arduino.idx" 1620432937 187 271460d41130469c03967b41a1ffca73 "pdflatex" (generated) "floss-arduino.ilg" "floss-arduino.ind" -["pdflatex"] 1620430747 "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" "floss-arduino" 1620430758 +["pdflatex"] 1620432928 "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" "floss-arduino" 1620432938 "/etc/texmf/web2c/texmf.cnf" 1602253014 475 c0e671620eb5563b2130f56340a5fde8 "" - "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.aux" 1620430757 140777 ddffcb93bfeecb14b012cdde97144323 "" + "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.aux" 1620432937 140777 a73406b3b0fa0e47a33b09a2b1b268ae "" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" 1620092361 4558 98aa7ac618326a3037ae9c9d0000888c "" "/usr/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc" 1165713224 4850 80dc9bab7f31fb78a000ccfed0e27cab "" "/usr/share/texlive/texmf-dist/fonts/map/fontname/texfonts.map" 1577235249 3524 cb3e574dea2d1052e39280babc910dc8 "" @@ -137,18 +137,18 @@ "/usr/share/texmf/web2c/texmf.cnf" 1581979058 38841 ce3692aa899bb693b90b87eaa5d4d84e "" "/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map" 1604540077 4770781 1ed1abab22da9c3e2cc82e4db562318b "" "/var/lib/texmf/web2c/pdftex/pdflatex.fmt" 1604540101 8258883 e8330f8aa4fe7c6cdcf08bf0b72237fd "" - "floss-arduino.OpenModelicad" 1620430757 2012 65beeacfee09da91fc251235df44bc6b "pdflatex" - "floss-arduino.ard" 1620430757 2070 edfca26d8d9521cb15973fd33eb40832 "pdflatex" - "floss-arduino.aux" 1620430757 140777 ddffcb93bfeecb14b012cdde97144323 "pdflatex" - "floss-arduino.bbl" 1620429802 3901 c5bc746ef483aa341e15b8d6803ebeb4 "bibtex floss-arduino" - "floss-arduino.cod" 1620430757 2496 b1eebdbd10557c6848d1bfd645da9170 "pdflatex" - "floss-arduino.ind" 1620429488 228 4d97f37315d1c5c2aed255c006f8f995 "makeindex floss-arduino.idx" - "floss-arduino.juliad" 1620430757 2019 13f8f52cb5a8dd07b589ace89cca333c "pdflatex" - "floss-arduino.lof" 1620430757 13933 1dccc9cfe87b645fe5538b5da8ce017d "pdflatex" - "floss-arduino.lot" 1620430757 3864 9e52558ebb6261c0cbdc815174a69f9b "pdflatex" - "floss-arduino.pyd" 1620430757 2036 abfb7ba113aec331f90b3d7e611d8ff2 "pdflatex" + "floss-arduino.OpenModelicad" 1620432937 2012 3557a55b41d102fced1f53ad3945258e "pdflatex" + "floss-arduino.ard" 1620432937 2070 4b41a45570119a8a0609846be4e9c482 "pdflatex" + "floss-arduino.aux" 1620432937 140777 a73406b3b0fa0e47a33b09a2b1b268ae "pdflatex" + "floss-arduino.bbl" 1620432918 3901 c5bc746ef483aa341e15b8d6803ebeb4 "bibtex floss-arduino" + "floss-arduino.cod" 1620432937 2496 652a03d6b07e8bb75bd7e627d52892cd "pdflatex" + "floss-arduino.ind" 1620432586 228 4d97f37315d1c5c2aed255c006f8f995 "makeindex floss-arduino.idx" + "floss-arduino.juliad" 1620432937 2019 811d1710a9a899b725e286289e761c6d "pdflatex" + "floss-arduino.lof" 1620432937 13933 05795108fdc7c282c3dce9392e805ea6 "pdflatex" + "floss-arduino.lot" 1620432937 3864 31f5dfc7e9165c6fea551c678d9a6f0f "pdflatex" + "floss-arduino.pyd" 1620432937 2036 85e7870a848462e467776b7a714c0973 "pdflatex" "floss-arduino.tex" 1620092361 4558 98aa7ac618326a3037ae9c9d0000888c "" - "floss-arduino.toc" 1620430757 16185 3289d3797e80ced6863cf9ac3cb44b89 "pdflatex" + "floss-arduino.toc" 1620432937 16185 ad1297d5367bffb21595ba282f8640ed "pdflatex" "suppl/acr.tex" 1615963613 1926 fd6481c4666ee0d60331b7d4cc24b645 "" "suppl/intro.tex" 1615963613 3437 b09628cf9e20fe17fa65b37a5997653c "" "suppl/styles.tex" 1615963613 8143 aa3280f0b59c8631fe8ec44895c9e871 "" @@ -381,20 +381,20 @@ "user-code/thermistor/python/therm-read.py" 1620002454 748 cba86aade80fa8215987d3707938af4c "" "user-code/thermistor/scilab/therm-buzzer.sce" 1620088994 542 66209c5ab2e09a16efa85ab68a541109 "" "user-code/thermistor/scilab/therm-read.sce" 1619998644 399 3d4d94a3003c16014a51200a9b472b66 "" - "user-code/thermistor/thermistor.tex" 1620426848 41344 f2faf1713e5762e22c7da34657c4c152 "" + "user-code/thermistor/thermistor.tex" 1620432927 45064 c8e52126dc6cf0c952bf7ce3a49e6db2 "" (generated) - "floss-arduino.OpenModelicad" - "floss-arduino.thm" - "floss-arduino.lof" - "floss-arduino.idx" - "floss-arduino.cod" "floss-arduino.juliad" + "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.log" + "floss-arduino.idx" "floss-arduino.ard" - "floss-arduino.lot" - "floss-arduino.toc" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" "floss-arduino.pdf" - "floss-arduino.log" + "floss-arduino.cod" + "floss-arduino.toc" + "floss-arduino.lot" + "floss-arduino.OpenModelicad" + "floss-arduino.lof" "floss-arduino.aux" - "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.log" + "floss-arduino.thm" + "floss-arduino.log" "floss-arduino.pyd" diff --git a/floss-arduino.juliad b/floss-arduino.juliad index c2eabd8..236a19b 100644 --- a/floss-arduino.juliad +++ b/floss-arduino.juliad @@ -13,8 +13,8 @@ \addvspace {10pt} \contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{145}% \addvspace {10pt} -\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{167}% -\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{167}% +\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{168}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{168}% \addvspace {10pt} \contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{195}% \contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{195}% diff --git a/floss-arduino.lof b/floss-arduino.lof index 8d118b6..ddf632b 100644 --- a/floss-arduino.lof +++ b/floss-arduino.lof @@ -100,8 +100,8 @@ \contentsline {figure}{\numberline {8.4}{\ignorespaces A thermistor to control a buzzer with Arduino Uno using a breadboard\relax }}{152}% \contentsline {figure}{\numberline {8.5}{\ignorespaces Xcos diagram to read thermistor values}}{159}% \contentsline {figure}{\numberline {8.6}{\ignorespaces Plot window in Xcos to read thermistor values\relax }}{160}% -\contentsline {figure}{\numberline {8.7}{\ignorespaces Xcos diagram to read the value of thermistor, which is used to turn the buzzer on}}{160}% -\contentsline {figure}{\numberline {8.8}{\ignorespaces Plot window in Xcos to read thermistor values and the state of LED\relax }}{162}% +\contentsline {figure}{\numberline {8.7}{\ignorespaces Xcos diagram to read the value of thermistor, which is used to turn the buzzer on}}{161}% +\contentsline {figure}{\numberline {8.8}{\ignorespaces Plot window in Xcos to read thermistor values and the state of LED\relax }}{163}% \addvspace {10\p@ } \contentsline {figure}{\numberline {9.1}{\ignorespaces Connecting servomotor to the shield attached on Arduino Uno\relax }}{174}% \contentsline {figure}{\numberline {9.2}{\ignorespaces A servomotor with Arduino Uno\ using a breadboard\relax }}{175}% diff --git a/floss-arduino.log b/floss-arduino.log index 8658f5c..b69b707 100644 --- a/floss-arduino.log +++ b/floss-arduino.log @@ -1,4 +1,4 @@ -This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex 2020.11.5) 8 MAY 2021 05:09 +This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex 2020.11.5) 8 MAY 2021 05:45 entering extended mode restricted \write18 enabled. file:line:error style messages enabled. @@ -1271,41 +1271,41 @@ File: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/the <use /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/thermistor-buzzer.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/thermistor-buzzer.png used on input line 124. (pdftex.def) Requested size: 397.48499pt x 210.35179pt. - [151 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/thermistor.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-read/therm-read.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-read/therm-read.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-read/therm-read.ino) [152 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/thermistor-buzzer.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-buzzer/therm-buzzer.ino) [153] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-read/therm-read.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-buzzer/therm-buzzer.ino [154]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm-read.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm-read.sce) [155] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm-buzzer.sce) [156] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm-read.sce [157]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm-buzzer.sce) -</home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read-xcos.png, id=765, 617.30624pt x 548.0475pt> + [151 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/thermistor.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-read/therm-read.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-read/therm-read.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-read/therm-read.ino) [152 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/thermistor-buzzer.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-buzzer/therm-buzzer.ino) [153] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-read/therm-read.ino) [154] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-buzzer/therm-buzzer.ino) [155] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm-read.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm-read.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm-buzzer.sce [156]) [157] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm-read.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm-buzzer.sce) [158] +</home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read-xcos.png, id=768, 617.30624pt x 548.0475pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read-xcos.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read-xcos.png> -Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read-xcos.png used on input line 387. +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read-xcos.png used on input line 410. (pdftex.def) Requested size: 194.76982pt x 172.91183pt. -</home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read.png, id=766, 632.3625pt x 529.98pt> +</home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read.png, id=769, 632.3625pt x 529.98pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read.png> -Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read.png used on input line 420. +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read.png used on input line 443. (pdftex.def) Requested size: 194.76982pt x 163.23271pt. - [158] [159 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read-xcos.png>] + [159 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read-xcos.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer-xcos.png, id=774, 627.34375pt x 530.98375pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer-xcos.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer-xcos.png> -Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer-xcos.png used on input line 439. +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer-xcos.png used on input line 462. (pdftex.def) Requested size: 258.36281pt x 218.68509pt. - [160 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer-xcos.png>] -Overfull \hbox (4.77844pt too wide) in paragraph at lines 461--481 + [160 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-read.png>] +Overfull \hbox (4.77844pt too wide) in paragraph at lines 484--504 [][] [] -</home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer.png, id=780, 612.2875pt x 589.20125pt> +</home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer.png, id=779, 612.2875pt x 589.20125pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer.png> -Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer.png used on input line 485. +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer.png used on input line 508. (pdftex.def) Requested size: 258.36281pt x 248.6226pt. -[161] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-read.py) [162 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-read.py) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-buzzer.py) [163] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-read.py) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-buzzer.py [164]) -Underfull \vbox (badness 10000) has occurred while \output is active [] - [165] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-read.jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-read.jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-buzzer.jl [166]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-read.jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-buzzer.jl [167]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-read.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-read.mo) [168] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-buzzer.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-read.mo [169]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-buzzer.mo [170])) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/servo.tex [171] [172 +Underfull \vbox (badness 5359) has occurred while \output is active [] -] + [161 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer-xcos.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-read.py) [162] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-read.py) [163 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-buzzer.py) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-read.py [164]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-buzzer.py [165]) [166] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-read.jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-read.jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-buzzer.jl [167]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-read.jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-buzzer.jl [168]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-read.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-read.mo) [169] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-buzzer.mo) [170] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-read.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-buzzer.mo [171])) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/servo.tex [172] Chapter 9. -[173] +[173 + +] </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-uno-shield.jpg, id=826, 1110.0672pt x 508.7808pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-uno-shield.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-uno-shield.jpg> @@ -1581,7 +1581,7 @@ Here is how much of TeX's memory you used: 1143 hyphenation exceptions out of 8191 50i,10n,53p,405b,1758s stack positions out of 5000i,500n,10000p,200000b,80000s {/usr/share/texmf/fonts/enc/dvips/cm-super/cm-super-t1.enc}{/usr/share/texmf/fonts/enc/dvips/cm-super/cm-super-ts1.enc}{/usr/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc}</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmex10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy6.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy8.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy9.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/bera/fvmr8a.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbx0900.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbx1095.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbx1200.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbx1440.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbx2074.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbx2488.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm0600.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm0800.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm0900.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm1000.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm1095.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfsi1095.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfss1095.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfti1095.pfb> -Output written on /home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf (274 pages, 31698313 bytes). +Output written on /home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf (274 pages, 31701275 bytes). PDF statistics: 1205 PDF objects out of 1440 (max. 8388607) 700 compressed objects within 7 object streams diff --git a/floss-arduino.lot b/floss-arduino.lot index 003024a..fac9bd2 100644 --- a/floss-arduino.lot +++ b/floss-arduino.lot @@ -18,8 +18,8 @@ \addvspace {10\p@ } \contentsline {table}{\numberline {7.1}{\ignorespaces Xcos parameters to turn on different LEDs depending on the potentiometer value\relax }}{142}% \addvspace {10\p@ } -\contentsline {table}{\numberline {8.1}{\ignorespaces Xcos parameters to read thermistor\relax }}{159}% -\contentsline {table}{\numberline {8.2}{\ignorespaces Xcos parameters to read thermistor and switch the buzzer\relax }}{161}% +\contentsline {table}{\numberline {8.1}{\ignorespaces Xcos parameters to read thermistor\relax }}{160}% +\contentsline {table}{\numberline {8.2}{\ignorespaces Xcos parameters to read thermistor and switch the buzzer\relax }}{162}% \addvspace {10\p@ } \contentsline {table}{\numberline {9.1}{\ignorespaces Connecting a typical servomotor to Arduino Uno\ board\relax }}{174}% \contentsline {table}{\numberline {9.2}{\ignorespaces Parameters to rotate the servomotor by $30^\circ $\relax }}{183}% diff --git a/floss-arduino.pdf b/floss-arduino.pdf Binary files differindex 449d72f..094d718 100644 --- a/floss-arduino.pdf +++ b/floss-arduino.pdf diff --git a/floss-arduino.pyd b/floss-arduino.pyd index 91d959e..0d26d21 100644 --- a/floss-arduino.pyd +++ b/floss-arduino.pyd @@ -15,7 +15,7 @@ \contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{143}% \addvspace {10pt} \contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{164}% -\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{164}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{165}% \addvspace {10pt} \contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{189}% \contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{190}% diff --git a/floss-arduino.synctex.gz b/floss-arduino.synctex.gz Binary files differindex 3be73a1..27b2425 100644 --- a/floss-arduino.synctex.gz +++ b/floss-arduino.synctex.gz diff --git a/floss-arduino.thm b/floss-arduino.thm index 80b956d..78f4618 100644 --- a/floss-arduino.thm +++ b/floss-arduino.thm @@ -60,16 +60,16 @@ \contentsline {OpenModelicamass}{{OpenModelica Code}{7.{1}}{}}{147}% \contentsline {egmass}{{Exercise}{8.{1}}{}}{154}% \contentsline {ardmass}{{Arduino Code}{8.{1}}{}}{154}% -\contentsline {ardmass}{{Arduino Code}{8.{2}}{}}{154}% +\contentsline {ardmass}{{Arduino Code}{8.{2}}{}}{155}% \contentsline {egmass}{{Exercise}{8.{2}}{}}{157}% -\contentsline {codemass}{{Scilab Code}{8.{1}}{}}{157}% +\contentsline {codemass}{{Scilab Code}{8.{1}}{}}{158}% \contentsline {codemass}{{Scilab Code}{8.{2}}{}}{158}% \contentsline {pymass}{{Python Code}{8.{1}}{}}{164}% -\contentsline {pymass}{{Python Code}{8.{2}}{}}{164}% -\contentsline {juliamass}{{Julia Code}{8.{1}}{}}{167}% -\contentsline {juliamass}{{Julia Code}{8.{2}}{}}{167}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{1}}{}}{169}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{2}}{}}{170}% +\contentsline {pymass}{{Python Code}{8.{2}}{}}{165}% +\contentsline {juliamass}{{Julia Code}{8.{1}}{}}{168}% +\contentsline {juliamass}{{Julia Code}{8.{2}}{}}{168}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{1}}{}}{171}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{2}}{}}{171}% \contentsline {egmass}{{Exercise}{9.{1}}{}}{178}% \contentsline {ardmass}{{Arduino Code}{9.{1}}{}}{178}% \contentsline {ardmass}{{Arduino Code}{9.{2}}{}}{179}% diff --git a/floss-arduino.toc b/floss-arduino.toc index cdc9b67..4f99850 100644 --- a/floss-arduino.toc +++ b/floss-arduino.toc @@ -139,26 +139,26 @@ \contentsline {section}{\numberline {8.2}Connecting a thermistor with Arduino Uno\ using a breadboard}{150}% \contentsline {section}{\numberline {8.3}Interfacing the thermistor from the Arduino IDE}{152}% \contentsline {subsection}{\numberline {8.3.1}Interfacing the thermistor}{152}% -\contentsline {paragraph}{Note:}{153}% +\contentsline {paragraph}{Note:}{154}% \contentsline {subsection}{\numberline {8.3.2}Arduino Code}{154}% \contentsline {section}{\numberline {8.4}Interfacing the thermistor from Scilab}{155}% \contentsline {subsection}{\numberline {8.4.1}Interfacing the thermistor}{155}% -\contentsline {paragraph}{Note:}{156}% -\contentsline {subsection}{\numberline {8.4.2}Scilab Code}{157}% -\contentsline {section}{\numberline {8.5}Interfacing the thermistor from Xcos}{158}% +\contentsline {paragraph}{Note:}{157}% +\contentsline {subsection}{\numberline {8.4.2}Scilab Code}{158}% +\contentsline {section}{\numberline {8.5}Interfacing the thermistor from Xcos}{159}% \contentsline {paragraph}{Note:}{161}% \contentsline {section}{\numberline {8.6}Interfacing the thermistor from Python}{162}% \contentsline {subsection}{\numberline {8.6.1}Interfacing the thermistor}{162}% -\contentsline {paragraph}{Note:}{163}% +\contentsline {paragraph}{Note:}{164}% \contentsline {subsection}{\numberline {8.6.2}Python Code}{164}% \contentsline {section}{\numberline {8.7}Interfacing the thermistor from Julia}{166}% \contentsline {subsection}{\numberline {8.7.1}Interfacing the thermistor}{166}% -\contentsline {paragraph}{Note:}{167}% -\contentsline {subsection}{\numberline {8.7.2}Julia Code}{167}% -\contentsline {section}{\numberline {8.8}Interfacing the thermistor from OpenModelica}{168}% -\contentsline {subsection}{\numberline {8.8.1}Interfacing the thermistor}{168}% -\contentsline {paragraph}{Note:}{169}% -\contentsline {subsection}{\numberline {8.8.2}OpenModelica Code}{169}% +\contentsline {paragraph}{Note:}{168}% +\contentsline {subsection}{\numberline {8.7.2}Julia Code}{168}% +\contentsline {section}{\numberline {8.8}Interfacing the thermistor from OpenModelica}{169}% +\contentsline {subsection}{\numberline {8.8.1}Interfacing the thermistor}{169}% +\contentsline {paragraph}{Note:}{170}% +\contentsline {subsection}{\numberline {8.8.2}OpenModelica Code}{171}% \contentsline {chapter}{\numberline {9}Interfacing a Servomotor}{173}% \contentsline {section}{\numberline {9.1}Preliminaries}{173}% \contentsline {section}{\numberline {9.2}Connecting a servomotor with Arduino Uno\ using a breadboard}{174}% @@ -1,7 +1,7 @@ INFO: latexindent version 3.7.1, 2019-09-07, a script to indent .tex files latexindent lives here: /usr/share/texlive/texmf-dist/scripts/latexindent/ - Sat May 8 05:07:56 2021 - Filename: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/__latexindent_temp.tex + Sat May 8 05:45:10 2021 + Filename: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/__latexindent_temp.tex INFO: Processing switches: -y|--yaml: YAML settings specified via command line -c|--cruft: cruft directory diff --git a/user-code/thermistor/thermistor.tex b/user-code/thermistor/thermistor.tex index 5c8da00..341cff8 100644 --- a/user-code/thermistor/thermistor.tex +++ b/user-code/thermistor/thermistor.tex @@ -168,12 +168,24 @@ instructions given in \secref{sec:ard-start} before getting started. on the {\tt Serial Monitor}. \item In this experiment, we will turn the buzzer on depending - on the temperature sensed by the thermistor. The program for this is + on the temperature sensed by the thermistor. This experiment + can be considered as a simple fire alarm circuit that + detects fires based on a sudden change in temperature and + activates the buzzer. + + The program for this is available at \ardref{ard:therm-buzzer}. We shall use the ADC output - to carry this out. The buzzer is connected on pin 3 which is a + to carry this out. The buzzer is connected to pin 3, which is a digital output pin. The ADC output value is displayed on the serial - monitor. At the same time it is compared with value 550. As - soon as the ADC output exceeds 550, the buzzer is given a digital + monitor. At the same time, it is compared with a user-defined + threshold, which has been set as 550 in this experiment. One may note that + this threshold would vary according to the location and time of performing + this experiment. Accordingly, the readers are advised to change this threshold + in \ardref{ard:therm-buzzer}. For testing purposes, one may note the + normal thermistor readings generated from the execution of \ardref{ard:therm-read} + and set a threshold that is approximately 10 more than these readings. + + In this experiment, as soon as the ADC output exceeds 550, the buzzer is given a digital high signal, turning it on. The following lines of code perform this comparison and sending a {HIGH} signal to digital pin 3 on \arduino: \lstinputlisting[firstline=14,lastline=21]{\LocTHERMardcode/therm-buzzer/therm-buzzer.ino} @@ -281,13 +293,24 @@ The reader should go through the instructions given in \item This experiment is an extension of the previous experiment. Here, we will use a \scilab\ script to - turn a buzzer on using the thermistor values. + turn a buzzer on using the thermistor values. This experiment + can be considered as a simple fire alarm circuit that + detects fires based on a sudden change in temperature and + activates the buzzer. + The program for this is available at \sciref{sci:therm-buzzer}. As explained earlier, the ADC maps the thermistor voltage readings in to values ranging from 0 to 1023. This means 0 for 0 volts and 1023 for 5 - volts. In this experiment we compare the ADC output value with 550 - and as soon as the value exceeds 550 the buzzer is turned on. The following lines of code perform this + volts. In this experiment we compare the ADC output value with a user-defined + threshold, which has been set as 550 in this experiment. One may note that + this threshold would vary according to the location and time of performing + this experiment. Accordingly, the readers are advised to change this threshold + in \sciref{sci:therm-buzzer}. For testing purposes, one may note the + normal thermistor readings generated from the execution of \sciref{sci:therm-read} + and set a threshold that is approximately 10 more than these readings. + + In this experiment, as soon as the value exceeds 550, the buzzer is turned on. The following lines of code perform this comparison and sending a {HIGH} signal to digital pin 3 on \arduino: \lstinputlisting[firstline=6,lastline=10]{\LocTHERMscicode/therm-buzzer.sce} A delay of half a second is introduced @@ -551,12 +574,24 @@ The reader should go through the instructions given in \item This experiment is an extension of the previous experiment. Here, we will use a Python script to - turn a buzzer on using the thermistor values. + turn a buzzer on using the thermistor values. This experiment + can be considered as a simple fire alarm circuit that + detects fires based on a sudden change in temperature and + activates the buzzer. + The program for this is available at \pyref{py:therm-buzzer}. As explained earlier, the ADC maps the thermistor voltage readings in to values ranging from 0 to 1023. This means 0 for 0 volts and 1023 for 5 - volts. In this experiment we compare the ADC output value with 550 + volts. In this experiment we compare the ADC output value with a user-defined + threshold, which has been set as 550 in this experiment. One may note that + this threshold would vary according to the location and time of performing + this experiment. Accordingly, the readers are advised to change this threshold + in \pyref{py:therm-buzzer}. For testing purposes, one may note the + normal thermistor readings generated from the execution of \pyref{sci:therm-read} + and set a threshold that is approximately 10 more than these readings. + + In this experiment we compare the ADC output value with 550 and as soon as the value exceeds 550 the buzzer is turned on. The following lines of code perform this comparison and sending a {HIGH} signal to digital pin 3 on \arduino: \lstinputlisting[firstline=30,lastline=34]{\LocTHERMpycode/therm-buzzer.py} @@ -644,12 +679,25 @@ The reader should go through the instructions given in \secref{sec:julia-start} \item This experiment is an extension of the previous experiment. Here, we will use a Julia source file to - turn a buzzer on using the thermistor values. + turn a buzzer on using the thermistor values. This experiment + can be considered as a simple fire alarm circuit that + detects fires based on a sudden change in temperature and + activates the buzzer. + The program for this is available at \juliaref{julia:therm-buzzer}. As explained earlier, the ADC maps the thermistor voltage readings in to values ranging from 0 to 1023. This means 0 for 0 volts and 1023 for 5 - volts. In this experiment we compare the ADC output value with 550 + volts. In this experiment we compare the ADC output value with a user-defined + threshold, which has been set as 550 in this experiment. One may note that + this threshold would vary according to the location and time of performing + this experiment. Accordingly, the readers are advised to change this threshold + in \juliaref{julia:therm-buzzer}. For testing purposes, one may note the + normal thermistor readings generated from the execution of \juliaref{julia:therm-read} + and set a threshold that is approximately 10 more than these readings. + + + In this experiment we compare the ADC output value with 550 and as soon as the value exceeds 550 the buzzer is turned on. The following lines of code perform this comparison and sending a {HIGH} signal to digital pin 3 on \arduino: \lstinputlisting[firstline=9,lastline=13]{\LocTHERMjuliacode/therm-buzzer.jl} @@ -720,17 +768,29 @@ The reader should go through the instructions given in Accordingly, they should observe the change in values being printed on on the output window of OMEdit, as shown in \figref{om-sim-success}. \item This experiment is an extension of the previous experiment. Here, - we will turn a buzzer on using the thermistor values. + we will turn a buzzer on using the thermistor values. This experiment + can be considered as a simple fire alarm circuit that + detects fires based on a sudden change in temperature and + activates the buzzer. + The program for this is available at \OpenModelicaref{OpenModelica:therm-buzzer}. As explained earlier, the ADC maps the thermistor voltage readings in to values ranging from 0 to 1023. This means 0 for 0 volts and 1023 for 5 - volts. In this experiment we compare the ADC output value with 550 + volts. In this experiment we compare the ADC output value with a user-defined + threshold, which has been set as 550 in this experiment. One may note that + this threshold would vary according to the location and time of performing + this experiment. Accordingly, the readers are advised to change this threshold + in \OpenModelicaref{OpenModelica:therm-buzzer}. For testing purposes, one may note the + normal thermistor readings generated from the execution of \OpenModelicaref{OpenModelica:therm-read} + and set a threshold that is approximately 10 more than these readings. + + In this experiment we compare the ADC output value with 550 and as soon as the value exceeds 550 the buzzer is turned on. The following lines of code perform this comparison and sending a {HIGH} signal to digital pin 3 on \arduino: \lstinputlisting[firstline=19,lastline=23]{\LocTHERMOpenModelicacode/therm-buzzer.mo} A delay of 500 milliseconds is introduced - before the next value is read. While simulating this model, + before the next value is read. While simulating this model, the readers should try holding (or rubbing) the thermistor with their fingertips. Doing so will transfer heat from the person holding the thermistor, thereby raising the temperature of the thermistor. @@ -745,9 +805,9 @@ The reader should go through the instructions given in \end{enumerate} \subsection{OpenModelica Code} -Unlike other code files, the code/ model for running experiments using OpenModelica are +Unlike other code files, the code/ model for running experiments using OpenModelica are available inside the OpenModelica-Arduino toolbox, as explained in \secref{sec:load-om-toolbox}. -Please refer to \figref{om-examples-toolbox} to know how to locate the experiments. +Please refer to \figref{om-examples-toolbox} to know how to locate the experiments. \label{sec:therm-OpenModelica-code} \addtocontents{OpenModelicad}{\protect\addvspace{\codclr}} @@ -755,8 +815,8 @@ Please refer to \figref{om-examples-toolbox} to know how to locate the experimen \begin{OpenModelicacode} \mcaption{Read and display the thermistor values} {Read and display the thermistor values. Available at - Arduino -> SerialCommunication -> - Examples -> push -> therm\_read.} + Arduino -> SerialCommunication -> + Examples -> push -> therm\_read.} \label{OpenModelica:therm-read} \lstinputlisting{\LocTHERMOpenModelicacode/therm-read.mo} \end{OpenModelicacode} @@ -765,8 +825,8 @@ Please refer to \figref{om-examples-toolbox} to know how to locate the experimen \mcaption{Turning the buzzer on using thermistor values} {Turning the buzzer on using the thermistor values read by ADC. Available at - Arduino -> SerialCommunication -> - Examples -> push -> therm\_buzzer.} + Arduino -> SerialCommunication -> + Examples -> push -> therm\_buzzer.} \label{OpenModelica:therm-buzzer} \lstinputlisting{\LocTHERMOpenModelicacode/therm-buzzer.mo} \end{OpenModelicacode} |