diff options
author | SudhakarKuma | 2021-05-02 03:56:48 +0530 |
---|---|---|
committer | SudhakarKuma | 2021-05-02 03:56:48 +0530 |
commit | 07e2fb888f85d34efae40eb47d5fa61e055df9c1 (patch) | |
tree | eb8c77302f9cc74da515084a274e47cf87ea4b30 | |
parent | 78da5ee9ffc76a7790de1fb3e7eee1f9c2f754b1 (diff) | |
download | FLOSS-Arduino-Book-07e2fb888f85d34efae40eb47d5fa61e055df9c1.tar.gz FLOSS-Arduino-Book-07e2fb888f85d34efae40eb47d5fa61e055df9c1.tar.bz2 FLOSS-Arduino-Book-07e2fb888f85d34efae40eb47d5fa61e055df9c1.zip |
Update chapter on LDR
-rw-r--r-- | floss-arduino.OpenModelicad | 4 | ||||
-rw-r--r-- | floss-arduino.aux | 120 | ||||
-rw-r--r-- | floss-arduino.fdb_latexmk | 68 | ||||
-rw-r--r-- | floss-arduino.fls | 12 | ||||
-rw-r--r-- | floss-arduino.juliad | 4 | ||||
-rw-r--r-- | floss-arduino.lof | 4 | ||||
-rw-r--r-- | floss-arduino.log | 167 | ||||
-rw-r--r-- | floss-arduino.lot | 2 | ||||
-rw-r--r-- | floss-arduino.pdf | bin | 20907914 -> 21000880 bytes | |||
-rw-r--r-- | floss-arduino.pyd | 4 | ||||
-rw-r--r-- | floss-arduino.thm | 16 | ||||
-rw-r--r-- | floss-arduino.toc | 14 | ||||
-rw-r--r-- | user-code/ldr/OpenModelica/ldr-led.mo | 33 | ||||
-rw-r--r-- | user-code/ldr/OpenModelica/ldr-read.mo | 12 | ||||
-rw-r--r-- | user-code/ldr/figures/ldr-led-2.png | bin | 0 -> 136223 bytes | |||
-rw-r--r-- | user-code/ldr/figures/ldr-led-read-plot.png | bin | 0 -> 24035 bytes | |||
-rw-r--r-- | user-code/ldr/figures/ldr-read-plot.png | bin | 0 -> 24848 bytes | |||
-rw-r--r-- | user-code/ldr/ldr.tex | 32 | ||||
-rw-r--r-- | user-code/push/push.tex | 4 |
19 files changed, 277 insertions, 219 deletions
diff --git a/floss-arduino.OpenModelicad b/floss-arduino.OpenModelicad index e8e5715..f1038e3 100644 --- a/floss-arduino.OpenModelicad +++ b/floss-arduino.OpenModelicad @@ -8,8 +8,8 @@ \contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying on the serial monitor}{111}% \contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{112}% \addvspace {10pt} -\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{131}% -\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{132}% +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{132}% +\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{133}% \addvspace {10pt} \contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{146}% \addvspace {10pt} diff --git a/floss-arduino.aux b/floss-arduino.aux index 59519db..3166b38 100644 --- a/floss-arduino.aux +++ b/floss-arduino.aux @@ -719,78 +719,82 @@ \newlabel{64@xvr}{{}{123}} \newlabel{64@vr}{{}{123}} \newlabel{fig:ldr-read}{{6.5}{123}} +\@writefile{lof}{\contentsline {figure}{\numberline {6.6}{\ignorespaces Plot window in Xcos to read LDR values\relax }}{123}\protected@file@percent } +\newlabel{fig:ldr-read-plot}{{6.6}{123}} \@writefile{lot}{\contentsline {table}{\numberline {6.1}{\ignorespaces Xcos parameters to read LDR\relax }}{124}\protected@file@percent } \newlabel{tab:ldr-read}{{6.1}{124}} \newlabel{65@xvr}{{}{124}} \newlabel{65@vr}{{}{124}} -\@writefile{lof}{\contentsline {figure}{\numberline {6.6}{\ignorespaces Xcos diagram to read the value of the LDR, which is used to turn the blue LED on or off}}{124}\protected@file@percent } -\newlabel{67@xvr}{{}{124}} -\newlabel{67@vr}{{}{124}} -\newlabel{fig:ldr-led}{{6.6}{124}} -\@writefile{lot}{\contentsline {table}{\numberline {6.2}{\ignorespaces Xcos parameters to read LDR and regulate blue LED\relax }}{125}\protected@file@percent } -\newlabel{tab:ldr-led}{{6.2}{125}} -\newlabel{68@xvr}{{}{125}} -\newlabel{68@vr}{{}{125}} +\@writefile{lof}{\contentsline {figure}{\numberline {6.7}{\ignorespaces Xcos diagram to read the value of the LDR, which is used to turn the blue LED on or off}}{125}\protected@file@percent } +\newlabel{67@xvr}{{}{125}} +\newlabel{67@vr}{{}{125}} +\newlabel{fig:ldr-led}{{6.7}{125}} +\@writefile{lof}{\contentsline {figure}{\numberline {6.8}{\ignorespaces Plot window in Xcos to read LDR values and the state of LED\relax }}{125}\protected@file@percent } +\newlabel{fig:ldr-led-read-plot}{{6.8}{125}} \@writefile{toc}{\contentsline {section}{\numberline {6.6}Interfacing the LDR through Python}{125}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {6.6.1}Interfacing the LDR}{125}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash read.py}{125}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {6.2}{\ignorespaces Xcos parameters to read LDR and regulate blue LED\relax }}{126}\protected@file@percent } +\newlabel{tab:ldr-led}{{6.2}{126}} +\newlabel{68@xvr}{{}{126}} +\newlabel{68@vr}{{}{126}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash read.py}{126}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{3}}{}}{126}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.6.2}Python Code}{126}\protected@file@percent } -\newlabel{sec:ldr-python-code}{{6.6.2}{126}} -\@writefile{pyd}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {pymass}{{Python Code}{6.{1}}{}}{126}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{126}\protected@file@percent } -\newlabel{69@xvr}{{}{126}} -\newlabel{69@vr}{{}{126}} -\newlabel{py:ldr-read}{{6.{1}}{126}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash read.py}{126}\protected@file@percent } -\@writefile{thm}{\contentsline {pymass}{{Python Code}{6.{2}}{}}{127}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{127}\protected@file@percent } -\newlabel{70@xvr}{{}{127}} -\newlabel{70@vr}{{}{127}} -\newlabel{py:ldr-led}{{6.{2}}{127}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash led.py}{127}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{3}}{}}{127}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.6.2}Python Code}{127}\protected@file@percent } +\newlabel{sec:ldr-python-code}{{6.6.2}{127}} +\@writefile{pyd}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{6.{1}}{}}{127}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{127}\protected@file@percent } +\newlabel{69@xvr}{{}{127}} +\newlabel{69@vr}{{}{127}} +\newlabel{py:ldr-read}{{6.{1}}{127}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash read.py}{127}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{6.{2}}{}}{128}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{128}\protected@file@percent } +\newlabel{70@xvr}{{}{128}} +\newlabel{70@vr}{{}{128}} +\newlabel{py:ldr-led}{{6.{2}}{128}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash led.py}{128}\protected@file@percent } \citation{julia-serial-ports} -\@writefile{toc}{\contentsline {section}{\numberline {6.7}Interfacing the LDR through Julia}{128}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.7.1}Interfacing the LDR}{128}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash read.jl}{129}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {6.7}Interfacing the LDR through Julia}{129}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.7.1}Interfacing the LDR}{129}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash read.jl}{129}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{4}}{}}{129}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.7.2}Julia Code}{129}\protected@file@percent } -\newlabel{sec:ldr-julia-code}{{6.7.2}{129}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash read.jl}{130}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{4}}{}}{130}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.7.2}Julia Code}{130}\protected@file@percent } +\newlabel{sec:ldr-julia-code}{{6.7.2}{130}} \@writefile{juliad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{6.{1}}{}}{129}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{129}\protected@file@percent } -\newlabel{71@xvr}{{}{129}} -\newlabel{71@vr}{{}{129}} -\newlabel{julia:ldr-read}{{6.{1}}{129}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{6.{1}}{}}{130}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{130}\protected@file@percent } +\newlabel{71@xvr}{{}{130}} +\newlabel{71@vr}{{}{130}} +\newlabel{julia:ldr-read}{{6.{1}}{130}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash read.jl}{130}\protected@file@percent } -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{6.{2}}{}}{130}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{130}\protected@file@percent } -\newlabel{72@xvr}{{}{130}} -\newlabel{72@vr}{{}{130}} -\newlabel{julia:ldr-led}{{6.{2}}{130}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash led.jl}{130}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {6.8}Interfacing the LDR through OpenModelica}{130}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.8.1}Interfacing the LDR}{130}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash read.mo}{131}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{6.{2}}{}}{131}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{131}\protected@file@percent } +\newlabel{72@xvr}{{}{131}} +\newlabel{72@vr}{{}{131}} +\newlabel{julia:ldr-led}{{6.{2}}{131}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash led.jl}{131}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {6.8}Interfacing the LDR through OpenModelica}{131}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.8.1}Interfacing the LDR}{131}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash read.mo}{131}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.8.2}OpenModelica Code}{131}\protected@file@percent } -\newlabel{sec:ldr-OpenModelica-code}{{6.8.2}{131}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash read.mo}{132}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.8.2}OpenModelica Code}{132}\protected@file@percent } +\newlabel{sec:ldr-OpenModelica-code}{{6.8.2}{132}} \@writefile{OpenModelicad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{1}}{}}{131}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{131}\protected@file@percent } -\newlabel{73@xvr}{{}{131}} -\newlabel{73@vr}{{}{131}} -\newlabel{OpenModelica:ldr-read}{{6.{1}}{131}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash read.mo}{131}\protected@file@percent } -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{2}}{}}{132}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{132}\protected@file@percent } -\newlabel{74@xvr}{{}{132}} -\newlabel{74@vr}{{}{132}} -\newlabel{OpenModelica:ldr-led}{{6.{2}}{132}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash led.mo}{132}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{1}}{}}{132}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{132}\protected@file@percent } +\newlabel{73@xvr}{{}{132}} +\newlabel{73@vr}{{}{132}} +\newlabel{OpenModelica:ldr-read}{{6.{1}}{132}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash read.mo}{132}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{2}}{}}{133}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{133}\protected@file@percent } +\newlabel{74@xvr}{{}{133}} +\newlabel{74@vr}{{}{133}} +\newlabel{OpenModelica:ldr-led}{{6.{2}}{133}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash led.mo}{133}\protected@file@percent } \@writefile{toc}{\contentsline {chapter}{\numberline {7}Interfacing a Potentiometer}{135}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} diff --git a/floss-arduino.fdb_latexmk b/floss-arduino.fdb_latexmk index bc39979..50c9b05 100644 --- a/floss-arduino.fdb_latexmk +++ b/floss-arduino.fdb_latexmk @@ -1,19 +1,19 @@ # Fdb version 3 -["bibtex floss-arduino"] 1619894441 "floss-arduino.aux" "floss-arduino.bbl" "floss-arduino" 1619894450 +["bibtex floss-arduino"] 1619906810 "floss-arduino.aux" "floss-arduino.bbl" "floss-arduino" 1619907859 "/usr/share/texlive/texmf-dist/bibtex/bst/base/unsrt.bst" 1292289607 18030 1376b4b231b50c66211e47e42eda2875 "" "bibliography.bib" 1619058609 4121 e0d02327e4bb995867623cd1f708046e "" - "floss-arduino.aux" 1619894450 134662 8fa1f1acece561166cb741b89f675e42 "pdflatex" + "floss-arduino.aux" 1619907827 135069 a8753a273555edbabbbe4bd74c4cb599 "pdflatex" (generated) - "floss-arduino.blg" "floss-arduino.bbl" -["makeindex floss-arduino.idx"] 1619894424 "floss-arduino.idx" "floss-arduino.ind" "floss-arduino" 1619894450 - "floss-arduino.idx" 1619894450 187 99a340d76cc05a666a957e86687e46a4 "pdflatex" + "floss-arduino.blg" +["makeindex floss-arduino.idx"] 1619906358 "floss-arduino.idx" "floss-arduino.ind" "floss-arduino" 1619907859 + "floss-arduino.idx" 1619907827 187 99a340d76cc05a666a957e86687e46a4 "pdflatex" (generated) "floss-arduino.ind" "floss-arduino.ilg" -["pdflatex"] 1619894442 "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" "floss-arduino" 1619894450 +["pdflatex"] 1619907818 "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" "floss-arduino" 1619907859 "/etc/texmf/web2c/texmf.cnf" 1602253014 475 c0e671620eb5563b2130f56340a5fde8 "" - "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.aux" 1619894450 134662 8fa1f1acece561166cb741b89f675e42 "" + "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.aux" 1619907827 135069 a8753a273555edbabbbe4bd74c4cb599 "" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" 1619403261 4558 99e8133d713ce68a01e2f2b59b0d6baf "" "/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 "" @@ -138,18 +138,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" 1619894450 2303 29addb8dec4756135b2c2c70f58f713a "pdflatex" - "floss-arduino.ard" 1619894450 2081 6407f88f364b22d861bc7b888331a36c "pdflatex" - "floss-arduino.aux" 1619894450 134662 8fa1f1acece561166cb741b89f675e42 "pdflatex" - "floss-arduino.bbl" 1619894442 2654 051fbb0ca9f90e7ce7d2577998098d98 "bibtex floss-arduino" - "floss-arduino.cod" 1619894450 2505 9fd134b95bd4f97377f3625aeb93b136 "pdflatex" - "floss-arduino.ind" 1619894424 228 e5d1fef782bcddcfa72d95954d41f91d "makeindex floss-arduino.idx" - "floss-arduino.juliad" 1619894450 2337 848f972bbf18129612758acd9b55b1bb "pdflatex" - "floss-arduino.lof" 1619894450 13055 0b258e4b72e7de82282bcd7c6010a6d7 "pdflatex" - "floss-arduino.lot" 1619894450 3702 9978380ba1174578bddab84a9e505a58 "pdflatex" - "floss-arduino.pyd" 1619894450 2332 8e75708f594ffa2225709c38a31a28c5 "pdflatex" + "floss-arduino.OpenModelicad" 1619907827 2303 76ab30f2f1280093c54d4d217b066428 "pdflatex" + "floss-arduino.ard" 1619907827 2081 6407f88f364b22d861bc7b888331a36c "pdflatex" + "floss-arduino.aux" 1619907827 135069 a8753a273555edbabbbe4bd74c4cb599 "pdflatex" + "floss-arduino.bbl" 1619906810 2654 051fbb0ca9f90e7ce7d2577998098d98 "bibtex floss-arduino" + "floss-arduino.cod" 1619907827 2505 9fd134b95bd4f97377f3625aeb93b136 "pdflatex" + "floss-arduino.ind" 1619906358 228 e5d1fef782bcddcfa72d95954d41f91d "makeindex floss-arduino.idx" + "floss-arduino.juliad" 1619907827 2337 f96b528a88c0f4788147a60d14d47aed "pdflatex" + "floss-arduino.lof" 1619907827 13294 1ef83844f49b6507cee6fce8109b0d40 "pdflatex" + "floss-arduino.lot" 1619907827 3702 9b6553174359ac2f9a780b3123c58a4c "pdflatex" + "floss-arduino.pyd" 1619907827 2332 7b520c7ffc711bd57d4cd91f82470eda "pdflatex" "floss-arduino.tex" 1619403261 4558 99e8133d713ce68a01e2f2b59b0d6baf "" - "floss-arduino.toc" 1619894450 15539 ecce32106114b817a6549635dc00c11f "pdflatex" + "floss-arduino.toc" 1619907827 15539 76dcd7088d68336e891efcaecf1e3192 "pdflatex" "suppl/acr.tex" 1615963613 1926 fd6481c4666ee0d60331b7d4cc24b645 "" "suppl/intro.tex" 1615963613 3437 b09628cf9e20fe17fa65b37a5997653c "" "suppl/styles.tex" 1615963613 8143 aa3280f0b59c8631fe8ec44895c9e871 "" @@ -196,20 +196,22 @@ "user-code/hw-env/figures/shield-crop.jpg" 1615963614 88724 a405ddfd57bdc79018c6674fc399d67f "" "user-code/hw-env/figures/update-driver.png" 1615963614 40170 607a1cd06856f1eecd42ebc14fbe2daf "" "user-code/hw-env/hw-env.tex" 1618082024 19798 b085ac71ceaadcc1086ef83a9d10a2c1 "" - "user-code/ldr/OpenModelica/ldr-led.mo" 1619403218 1248 5d382a596718a83c7a45eb496aa73e62 "" - "user-code/ldr/OpenModelica/ldr-read.mo" 1619403225 990 bca32667a84a63b631d4ecff72b69630 "" + "user-code/ldr/OpenModelica/ldr-led.mo" 1619907259 1180 ff2f15daa818daff789a45cf1ddf6b0f "" + "user-code/ldr/OpenModelica/ldr-read.mo" 1619907363 901 bc807f2ef7b252297ffc7d826042ab88 "" "user-code/ldr/arduino/ldr-led/ldr-led.ino" 1619860114 344 fe2b6dfcfec001fc4b05cb5d62720a01 "" "user-code/ldr/arduino/ldr-read/ldr-read.ino" 1619859177 230 fd4df5d4b791c2cc4a5e5cfd85849c43 "" "user-code/ldr/figures/LDR-led.png" 1617898904 240349 523edd11a7bcb1002c01b0410de0183e "" "user-code/ldr/figures/LDR.png" 1618126813 222329 b099f728f89ec6e9e39f2222e410488c "" "user-code/ldr/figures/ldr-conn.png" 1615963614 27006 651850b554b0e5f042da89db408bd75e "" - "user-code/ldr/figures/ldr-led.png" 1615963614 75341 98a4b1e9dd0f7ee83ee41500716ce940 "" + "user-code/ldr/figures/ldr-led-2.png" 1619906121 136223 7b7c3b7364cc3325f23880eb53d878c2 "" + "user-code/ldr/figures/ldr-led-read-plot.png" 1619903996 24035 ed0d5139439de9ae01beed624c24c5ba "" + "user-code/ldr/figures/ldr-read-plot.png" 1619903662 24848 8d7361073a2c28de3752da61df946a24 "" "user-code/ldr/figures/ldr-read-xcos.PNG" 1615963614 34063 b0eeeea9642553ea0bb2889cb52cfa60 "" "user-code/ldr/figures/ldr.jpg" 1615963614 4060 da1140b101edcf75176b3dfbb765dd42 "" "user-code/ldr/figures/ldr_sym.png" 1615963614 29267 73b70e220429569a98caa86348349aa1 "" "user-code/ldr/julia/ldr-led.jl" 1619893631 309 6120f21761a761fee1f0c75aea7f2c4b "" "user-code/ldr/julia/ldr-read.jl" 1619893494 183 4091d446a9adbb94d781d09d5b88abdb "" - "user-code/ldr/ldr.tex" 1619894422 33181 df226a4b80e884b9d9fcd58db81dfe09 "" + "user-code/ldr/ldr.tex" 1619907470 33766 0099248cb942b8d4850e062df2a34f61 "" "user-code/ldr/python/ldr-led.py" 1619892876 881 dbda35c83c7ff7483db6c9bd8a6b3a63 "" "user-code/ldr/python/ldr-read.py" 1619892935 690 aa838d76cfdd26b26fb76e669b4ff0dd "" "user-code/ldr/scilab/ldr-led.sce" 1619881130 474 be365b56cb8d934670aab6d7d4b2e04b "" @@ -295,7 +297,7 @@ "user-code/push/figures/switch.png" 1617880485 220988 2689323a6f7a00d63e81ef7abb52961a "" "user-code/push/julia/led-push-button.jl" 1619828156 335 a43f32d317c8ee378099da49b62daa26 "" "user-code/push/julia/push-button-status.jl" 1619828150 208 cd2b6d1a00e17a42cd641bd4d61ca5c2 "" - "user-code/push/push.tex" 1619894213 29755 45fef6bf489007df817f927747ee53af "" + "user-code/push/push.tex" 1619907858 29750 33cae326f02bfbe47ab5c02aeb2dd1f3 "" "user-code/push/python/led-push-button.py" 1619825134 855 9f30a1deee363be620eadb9f6985f89a "" "user-code/push/python/push-button-status.py" 1619824991 725 2628feae697431335d3cf663e9e7afeb "" "user-code/push/scilab/led-push-button.sce" 1619834437 366 0deddbfd697be4ff28d1edb657b4abf1 "" @@ -387,18 +389,18 @@ "user-code/thermistor/scilab/therm-read.sce" 1615963614 382 5e743c25b50f9d961a2939ce81d7b633 "" "user-code/thermistor/thermistor.tex" 1619882138 25843 b904c3ccf09d2c95870db0e6590677f9 "" (generated) - "floss-arduino.cod" - "floss-arduino.log" - "floss-arduino.toc" - "floss-arduino.pyd" - "floss-arduino.aux" - "floss-arduino.OpenModelicad" + "floss-arduino.pdf" + "floss-arduino.juliad" "floss-arduino.idx" "floss-arduino.lof" - "floss-arduino.thm" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" + "floss-arduino.lot" + "floss-arduino.aux" + "floss-arduino.OpenModelicad" + "floss-arduino.toc" + "floss-arduino.log" + "floss-arduino.cod" + "floss-arduino.thm" + "floss-arduino.pyd" "floss-arduino.ard" - "floss-arduino.juliad" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.log" - "floss-arduino.lot" - "floss-arduino.pdf" diff --git a/floss-arduino.fls b/floss-arduino.fls index f164e54..2c19940 100644 --- a/floss-arduino.fls +++ b/floss-arduino.fls @@ -693,9 +693,15 @@ INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr-led.sce INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read-xcos.PNG INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read-xcos.PNG INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read-xcos.PNG -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led.png -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led.png -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read-plot.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read-plot.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read-plot.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-2.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-2.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-2.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-read-plot.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-read-plot.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-read-plot.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py diff --git a/floss-arduino.juliad b/floss-arduino.juliad index db88564..33f852a 100644 --- a/floss-arduino.juliad +++ b/floss-arduino.juliad @@ -8,8 +8,8 @@ \contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on Command Prompt or the Terminal.}{109}% \contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{109}% \addvspace {10pt} -\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{129}% -\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{130}% +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{130}% +\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{131}% \addvspace {10pt} \contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{145}% \addvspace {10pt} diff --git a/floss-arduino.lof b/floss-arduino.lof index f1b5a6e..233fe58 100644 --- a/floss-arduino.lof +++ b/floss-arduino.lof @@ -80,7 +80,9 @@ \contentsline {figure}{\numberline {6.3}{\ignorespaces An LDR to read its values with Arduino Uno\ using a breadboard\relax }}{117}% \contentsline {figure}{\numberline {6.4}{\ignorespaces An LDR to control an LED with Arduino Uno using a breadboard\relax }}{118}% \contentsline {figure}{\numberline {6.5}{\ignorespaces Xcos diagram to read LDR values}}{123}% -\contentsline {figure}{\numberline {6.6}{\ignorespaces Xcos diagram to read the value of the LDR, which is used to turn the blue LED on or off}}{124}% +\contentsline {figure}{\numberline {6.6}{\ignorespaces Plot window in Xcos to read LDR values\relax }}{123}% +\contentsline {figure}{\numberline {6.7}{\ignorespaces Xcos diagram to read the value of the LDR, which is used to turn the blue LED on or off}}{125}% +\contentsline {figure}{\numberline {6.8}{\ignorespaces Plot window in Xcos to read LDR values and the state of LED\relax }}{125}% \addvspace {10\p@ } \contentsline {figure}{\numberline {7.1}{\ignorespaces Potentiometer's schematic on the shield\relax }}{136}% \contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of a potentiometer}}}{136}% diff --git a/floss-arduino.log b/floss-arduino.log index b113e9d..7a7d2e0 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) 2 MAY 2021 00:11 +This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex 2020.11.5) 2 MAY 2021 03:56 entering extended mode restricted \write18 enabled. %&-line parsing enabled. @@ -534,7 +534,7 @@ Overfull \hbox (42.2769pt too wide) detected at line 208 [6] (./floss-arduino.lof [7 ] [8] -Overfull \hbox (4.98741pt too wide) in paragraph at lines 89--89 +Overfull \hbox (4.98741pt too wide) in paragraph at lines 91--91 [][] []\T1/cmr/m/n/10.95 Turning LEDs on through Xcos de-pend-ing on the po-te n-tiome-ter thresh- [] @@ -1761,49 +1761,80 @@ cos.PNG> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/ld r/figures/ldr-read-xcos.PNG used on input line 343. (pdftex.def) Requested size: 178.86702pt x 211.2975pt. -</home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led.png, i -d=613, 769.87625pt x 640.3925pt> -File: /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led.p -ng Graphic file (type png) -<use /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led.pn -g> +</home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read-plot. +PNG, id=613, 1284.8pt x 571.13374pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read- +plot.PNG Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read-p +lot.PNG> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/ld -r/figures/ldr-led.png used on input line 399. -(pdftex.def) Requested size: 258.36281pt x 214.91635pt. +r/figures/ldr-read-plot.PNG used on input line 353. +(pdftex.def) Requested size: 357.73405pt x 159.01874pt. -Overfull \hbox (4.77844pt too wide) in paragraph at lines 420--440 +Underfull \vbox (badness 3849) has occurred while \output is active [] + + [123 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read +-xcos.PNG> </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr +-read-plot.png>] +</home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-2.png, + id=619, 764.8575pt x 743.77875pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-2 +.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-2. +png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/ld +r/figures/ldr-led-2.png used on input line 406. +(pdftex.def) Requested size: 258.36281pt x 251.2358pt. +</home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-read-p +lot.PNG, id=620, 1284.8pt x 571.13374pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-r +ead-plot.PNG Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-re +ad-plot.PNG> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/ld +r/figures/ldr-led-read-plot.PNG used on input line 427. +(pdftex.def) Requested size: 357.73405pt x 159.01874pt. + +Overfull \hbox (4.77844pt too wide) in paragraph at lines 436--456 [][] [] -[123 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read- -xcos.PNG>] [124 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figure -s/ldr-led.png>] + +Underfull \vbox (badness 10000) has occurred while \output is active [] + + [124] +Overfull \vbox (38.74051pt too high) has occurred while \output is active [] + + +[125 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-2 +.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led- +read-plot.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py) +[126] (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py -[125]) -(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py -[126]) -(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-led.py [127]) -(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-led.py [128]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl) +[129] (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl -[129]) +[130]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-led.jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read. -mo) [130] -(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read. mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read. -mo [131]) +mo) [131] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read. +mo [132]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-led.m -o [132])) (./user-code/pot/pot.tex [133] [134 +o)) (./user-code/pot/pot.tex [133] [134 ] Chapter 7. </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/potmeter.png, -id=655, 1576.38937pt x 1305.37688pt> +id=659, 1576.38937pt x 1305.37688pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/potmeter. png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/potmeter.p @@ -1812,7 +1843,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/po t/figures/potmeter.png used on input line 65. (pdftex.def) Requested size: 178.86702pt x 148.11337pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/schematic.png, - id=656, 415.5525pt x 417.56pt> + id=660, 415.5525pt x 417.56pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/schematic .png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/schematic. @@ -1824,7 +1855,7 @@ t/figures/schematic.png used on input line 68. meter.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/sch ematic.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/POT-led-bb.png -, id=665, 453.695pt x 243.309pt> +, id=669, 453.695pt x 243.309pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/POT-led-b b.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/POT-led-bb @@ -1858,7 +1889,7 @@ old. Avail- (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot-threshold.s ce) </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot-threshold. -PNG, id=677, 548.80031pt x 493.845pt> +PNG, id=681, 548.80031pt x 493.845pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot-thres hold.PNG Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot-thresh @@ -1913,7 +1944,7 @@ hold.mo [146])) (./user-code/thermistor/thermistor.tex [147] [148 ] Chapter 8. </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/NTC-bea -d.jpg, id=707, 139.9629pt x 126.2316pt> +d.jpg, id=711, 139.9629pt x 126.2316pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/NT C-bead.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/NTC @@ -1928,7 +1959,7 @@ LaTeX Warning: Citation `therm-wiki' on page 149 undefined on input line 70. LaTeX Warning: Citation `therm-wiki' on page 149 undefined on input line 70. </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-s -ym.png, id=708, 1284.8pt x 913.4125pt> +ym.png, id=712, 1284.8pt x 913.4125pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th erm-sym.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/the @@ -1937,7 +1968,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/th ermistor/figures/therm-sym.png used on input line 73. (pdftex.def) Requested size: 119.2467pt x 84.76808pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/THERMIS -TOR-Diagram-crop.pdf, id=709, 329.23pt x 422.57875pt> +TOR-Diagram-crop.pdf, id=713, 329.23pt x 422.57875pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/TH ERMISTOR-Diagram-crop.pdf Graphic file (type pdf) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/THE @@ -1946,7 +1977,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/th ermistor/figures/THERMISTOR-Diagram-crop.pdf used on input line 83. (pdftex.def) Requested size: 178.86702pt x 229.58835pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/BUZZER- -Diagram-crop.pdf, id=710, 307.1475pt x 366.36874pt> +Diagram-crop.pdf, id=714, 307.1475pt x 366.36874pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/BU ZZER-Diagram-crop.pdf Graphic file (type pdf) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/BUZ @@ -1964,7 +1995,7 @@ ures/therm-sym.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/thermi stor/figures/THERMISTOR-Diagram-crop.pdf> </home/fossee/Desktop/floss-scilab-ar duino/user-code/thermistor/figures/BUZZER-Diagram-crop.pdf>] </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/thermis -tor.png, id=731, 453.695pt x 236.885pt> +tor.png, id=735, 453.695pt x 236.885pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th ermistor.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/the @@ -1973,7 +2004,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/th ermistor/figures/thermistor.png used on input line 110. (pdftex.def) Requested size: 397.48499pt x 207.53772pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/thermis -tor-buzzer.png, id=732, 453.695pt x 240.097pt> +tor-buzzer.png, id=736, 453.695pt x 240.097pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th ermistor-buzzer.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/the @@ -1999,7 +2030,7 @@ ad.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm-bu zzer.sce) [156] </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-r -ead-xcos.png, id=756, 617.30624pt x 548.0475pt> +ead-xcos.png, id=760, 617.30624pt x 548.0475pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th erm-read-xcos.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/the @@ -2008,7 +2039,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/th ermistor/figures/therm-read-xcos.png used on input line 306. (pdftex.def) Requested size: 194.76982pt x 172.91183pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-r -ead.png, id=757, 632.3625pt x 529.98pt> +ead.png, id=761, 632.3625pt x 529.98pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th erm-read.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/the @@ -2017,7 +2048,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/th ermistor/figures/therm-read.png used on input line 339. (pdftex.def) Requested size: 194.76982pt x 163.23271pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-b -uzzer-xcos.png, id=758, 627.34375pt x 530.98375pt> +uzzer-xcos.png, id=762, 627.34375pt x 530.98375pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th erm-buzzer-xcos.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/the @@ -2032,7 +2063,7 @@ Overfull \hbox (4.77844pt too wide) in paragraph at lines 373--393 [] </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-b -uzzer.png, id=764, 612.2875pt x 589.20125pt> +uzzer.png, id=768, 612.2875pt x 589.20125pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th erm-buzzer.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/the @@ -2062,7 +2093,7 @@ erm-read.mo) [165] erm-buzzer.mo)) (./user-code/dcmotor/dcmotor.tex [166] Chapter 9. </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor_bo -ard.png, id=796, 247.92625pt x 232.87pt> +ard.png, id=800, 247.92625pt x 232.87pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmot or_board.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmoto @@ -2074,7 +2105,7 @@ motor/figures/dcmotor_board.png used on input line 62. ] </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/schematic. -png, id=800, 415.5525pt x 467.7475pt> +png, id=804, 415.5525pt x 467.7475pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/schem atic.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/schema @@ -2083,7 +2114,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/dc motor/figures/schematic.png used on input line 102. (pdftex.def) Requested size: 178.86702pt x 201.33447pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dc_motor_d -escription.jpg, id=801, 2469.97781pt x 1973.12157pt> +escription.jpg, id=805, 2469.97781pt x 1973.12157pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dc_mo tor_description.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dc_mot @@ -2125,7 +2156,7 @@ h.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor-loo p.sce [175]) </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor-cl -ock.png, id=832, 275.52937pt x 290.58563pt> +ock.png, id=836, 275.52937pt x 290.58563pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmot or-clock.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmoto @@ -2136,7 +2167,7 @@ motor/figures/dcmotor-clock.png used on input line 399. [176 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmo tor-clock.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor-bo -th.png, id=836, 292.09125pt x 322.95656pt> +th.png, id=840, 292.09125pt x 322.95656pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmot or-both.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmoto @@ -2145,7 +2176,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/dc motor/figures/dcmotor-both.png used on input line 453. (pdftex.def) Requested size: 178.86702pt x 197.77196pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor-lo -op.png, id=837, 281.55188pt x 307.90031pt> +op.png, id=841, 281.55188pt x 307.90031pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmot or-loop.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmoto @@ -2210,7 +2241,7 @@ e) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo-pot.sce ) </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-init.p -ng, id=900, 265.74281pt x 309.40594pt> +ng, id=904, 265.74281pt x 309.40594pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-i nit.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-in @@ -2220,7 +2251,7 @@ rvo/figures/servo-init.png used on input line 299. (pdftex.def) Requested size: 178.86702pt x 208.2593pt. [195] </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-revers -e.png, id=904, 244.66406pt x 281.55188pt> +e.png, id=908, 244.66406pt x 281.55188pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-r everse.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-re @@ -2234,7 +2265,7 @@ Underfull \vbox (badness 3199) has occurred while \output is active [] [196 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo- init.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-loop.p -ng, id=908, 281.55188pt x 347.04657pt> +ng, id=912, 281.55188pt x 347.04657pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-l oop.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-lo @@ -2243,7 +2274,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/se rvo/figures/servo-loop.png used on input line 372. (pdftex.def) Requested size: 178.86702pt x 220.47803pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-pot.pn -g, id=909, 286.06876pt x 292.09125pt> +g, id=913, 286.06876pt x 292.09125pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-p ot.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-po @@ -2318,7 +2349,7 @@ ot.mo [210])) (./user-code/modbus/modbus.tex [211] [212 Chapter 11. [213] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig1.png, i -d=964, 672.5125pt x 224.84pt> +d=968, 672.5125pt x 224.84pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig1.p ng Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig1.pn @@ -2327,7 +2358,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/fig1.png used on input line 71. (pdftex.def) Requested size: 357.73405pt x 119.60033pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig2.png, i -d=965, 360.34625pt x 375.4025pt> +d=969, 360.34625pt x 375.4025pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig2.p ng Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig2.pn @@ -2336,7 +2367,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/fig2.png used on input line 79. (pdftex.def) Requested size: 178.86702pt x 186.33748pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig3.png, i -d=966, 481.04718pt x 214.55156pt> +d=970, 481.04718pt x 214.55156pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig3.p ng Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig3.pn @@ -2349,7 +2380,7 @@ png (PNG copy)> </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/fig ures/fig2.png (PNG copy)>] [215 </home/fossee/Desktop/floss-scilab-arduino/user -code/modbus/figures/fig3.png (PNG copy)>] [216] [217] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/Full-Set-Up -.png, id=981, 722.7pt x 542.025pt> +.png, id=985, 722.7pt x 542.025pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/Full-S et-Up.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/Full-Se @@ -2359,7 +2390,7 @@ dbus/figures/Full-Set-Up.png used on input line 300. (pdftex.def) Requested size: 258.36281pt x 193.77246pt. [218] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/block-diagr -am.PNG, id=985, 398.23781pt x 255.95625pt> +am.PNG, id=989, 398.23781pt x 255.95625pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/block- diagram.PNG Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/block-d @@ -2368,7 +2399,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/block-diagram.PNG used on input line 329. (pdftex.def) Requested size: 258.36281pt x 166.06104pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/arduino_cod -e_flowchart.png, id=986, 327.2225pt x 480.79625pt> +e_flowchart.png, id=990, 327.2225pt x 480.79625pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/arduin o_code_flowchart.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/arduino @@ -2379,7 +2410,7 @@ dbus/figures/arduino_code_flowchart.png used on input line 348. [219 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/Full- Set-Up.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowchart.p -ng, id=991, 482.55281pt x 362.10281pt> +ng, id=995, 482.55281pt x 362.10281pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowch art.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowcha @@ -2388,7 +2419,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/flowchart.png used on input line 376. (pdftex.def) Requested size: 357.73405pt x 268.44914pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/current-out -put.png, id=992, 1028.34187pt x 578.16pt> +put.png, id=996, 1028.34187pt x 578.16pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/curren t-output.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/current @@ -2397,7 +2428,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/current-output.png used on input line 393. (pdftex.def) Requested size: 397.48499pt x 223.4789pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/current-out -put-setup.jpg, id=993, 2509.375pt x 1411.2725pt> +put-setup.jpg, id=997, 2509.375pt x 1411.2725pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/curren t-output-setup.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/current @@ -2406,7 +2437,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/current-output-setup.jpg used on input line 400. (pdftex.def) Requested size: 258.36281pt x 145.29163pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/voltage-out -put.png, id=994, 1028.34187pt x 578.16pt> +put.png, id=998, 1028.34187pt x 578.16pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/voltag e-output.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/voltage @@ -2415,7 +2446,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/voltage-output.png used on input line 412. (pdftex.def) Requested size: 397.48499pt x 223.4789pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/voltage-out -put-setup.jpg, id=995, 2509.375pt x 1411.2725pt> +put-setup.jpg, id=999, 2509.375pt x 1411.2725pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/voltag e-output-setup.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/voltage @@ -2424,7 +2455,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/voltage-output-setup.jpg used on input line 419. (pdftex.def) Requested size: 258.36281pt x 145.29163pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active-powe -r-output.png, id=996, 1028.34187pt x 578.16pt> +r-output.png, id=1000, 1028.34187pt x 578.16pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active -power-output.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active- @@ -2436,7 +2467,7 @@ dbus/figures/active-power-output.png used on input line 429. [220 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/block- diagram.PNG>] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active-powe -r-output-setup.jpg, id=1002, 2509.375pt x 1411.2725pt> +r-output-setup.jpg, id=1006, 2509.375pt x 1411.2725pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active -power-output-setup.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active- @@ -2450,7 +2481,7 @@ Underfull \vbox (badness 10000) has occurred while \output is active [] [221 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/ardui no_code_flowchart.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/read_value_ -xcos.png, id=1007, 635.37375pt x 455.7025pt> +xcos.png, id=1011, 635.37375pt x 455.7025pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/read_v alue_xcos.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/read_va @@ -2558,10 +2589,10 @@ LaTeX Warning: There were multiply-defined labels. ) Here is how much of TeX's memory you used: - 9825 strings out of 481239 - 216874 string characters out of 5920377 + 9840 strings out of 481239 + 217841 string characters out of 5920377 742688 words of memory out of 5000000 - 24300 multiletter control sequences out of 15000+600000 + 24312 multiletter control sequences out of 15000+600000 554670 words of font info for 69 fonts, out of 8000000 for 9000 1143 hyphenation exceptions out of 8191 50i,11n,53p,467b,1777s stack positions out of 5000i,500n,10000p,200000b,80000s @@ -2588,10 +2619,10 @@ sr/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-sup er/sfsi1095.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfss1095.pfb></us r/share/texmf/fonts/type1/public/cm-super/sfti1095.pfb> -Output written on floss-arduino.pdf (258 pages, 20907914 bytes). +Output written on floss-arduino.pdf (258 pages, 21000880 bytes). PDF statistics: - 1145 PDF objects out of 1200 (max. 8388607) + 1149 PDF objects out of 1200 (max. 8388607) 668 compressed objects within 7 object streams 0 named destinations out of 1000 (max. 500000) - 571 words of extra memory for PDF output out of 10000 (max. 10000000) + 581 words of extra memory for PDF output out of 10000 (max. 10000000) diff --git a/floss-arduino.lot b/floss-arduino.lot index 7c91890..0176cf4 100644 --- a/floss-arduino.lot +++ b/floss-arduino.lot @@ -14,7 +14,7 @@ \contentsline {table}{\numberline {5.2}{\ignorespaces Xcos parameters to turn the LED on through the pushbutton\relax }}{104}% \addvspace {10\p@ } \contentsline {table}{\numberline {6.1}{\ignorespaces Xcos parameters to read LDR\relax }}{124}% -\contentsline {table}{\numberline {6.2}{\ignorespaces Xcos parameters to read LDR and regulate blue LED\relax }}{125}% +\contentsline {table}{\numberline {6.2}{\ignorespaces Xcos parameters to read LDR and regulate blue LED\relax }}{126}% \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@ } diff --git a/floss-arduino.pdf b/floss-arduino.pdf Binary files differindex e3418dd..0859c6b 100644 --- a/floss-arduino.pdf +++ b/floss-arduino.pdf diff --git a/floss-arduino.pyd b/floss-arduino.pyd index 0ccf258..da185a1 100644 --- a/floss-arduino.pyd +++ b/floss-arduino.pyd @@ -9,8 +9,8 @@ \contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the Command Prompt or the Terminal}{106}% \contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{107}% \addvspace {10pt} -\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{126}% -\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{127}% +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{127}% +\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{128}% \addvspace {10pt} \contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{143}% \addvspace {10pt} diff --git a/floss-arduino.thm b/floss-arduino.thm index b622b44..f6882ec 100644 --- a/floss-arduino.thm +++ b/floss-arduino.thm @@ -44,14 +44,14 @@ \contentsline {egmass}{{Exercise}{6.{2}}{}}{121}% \contentsline {codemass}{{Scilab Code}{6.{1}}{}}{122}% \contentsline {codemass}{{Scilab Code}{6.{2}}{}}{122}% -\contentsline {egmass}{{Exercise}{6.{3}}{}}{126}% -\contentsline {pymass}{{Python Code}{6.{1}}{}}{126}% -\contentsline {pymass}{{Python Code}{6.{2}}{}}{127}% -\contentsline {egmass}{{Exercise}{6.{4}}{}}{129}% -\contentsline {juliamass}{{Julia Code}{6.{1}}{}}{129}% -\contentsline {juliamass}{{Julia Code}{6.{2}}{}}{130}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{1}}{}}{131}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{2}}{}}{132}% +\contentsline {egmass}{{Exercise}{6.{3}}{}}{127}% +\contentsline {pymass}{{Python Code}{6.{1}}{}}{127}% +\contentsline {pymass}{{Python Code}{6.{2}}{}}{128}% +\contentsline {egmass}{{Exercise}{6.{4}}{}}{130}% +\contentsline {juliamass}{{Julia Code}{6.{1}}{}}{130}% +\contentsline {juliamass}{{Julia Code}{6.{2}}{}}{131}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{1}}{}}{132}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{2}}{}}{133}% \contentsline {ardmass}{{Arduino Code}{7.{1}}{}}{138}% \contentsline {codemass}{{Scilab Code}{7.{1}}{}}{140}% \contentsline {pymass}{{Python Code}{7.{1}}{}}{143}% diff --git a/floss-arduino.toc b/floss-arduino.toc index ae4fad6..115ee9a 100644 --- a/floss-arduino.toc +++ b/floss-arduino.toc @@ -108,13 +108,13 @@ \contentsline {section}{\numberline {6.5}Interfacing the LDR through Xcos}{122}% \contentsline {section}{\numberline {6.6}Interfacing the LDR through Python}{125}% \contentsline {subsection}{\numberline {6.6.1}Interfacing the LDR}{125}% -\contentsline {subsection}{\numberline {6.6.2}Python Code}{126}% -\contentsline {section}{\numberline {6.7}Interfacing the LDR through Julia}{128}% -\contentsline {subsection}{\numberline {6.7.1}Interfacing the LDR}{128}% -\contentsline {subsection}{\numberline {6.7.2}Julia Code}{129}% -\contentsline {section}{\numberline {6.8}Interfacing the LDR through OpenModelica}{130}% -\contentsline {subsection}{\numberline {6.8.1}Interfacing the LDR}{130}% -\contentsline {subsection}{\numberline {6.8.2}OpenModelica Code}{131}% +\contentsline {subsection}{\numberline {6.6.2}Python Code}{127}% +\contentsline {section}{\numberline {6.7}Interfacing the LDR through Julia}{129}% +\contentsline {subsection}{\numberline {6.7.1}Interfacing the LDR}{129}% +\contentsline {subsection}{\numberline {6.7.2}Julia Code}{130}% +\contentsline {section}{\numberline {6.8}Interfacing the LDR through OpenModelica}{131}% +\contentsline {subsection}{\numberline {6.8.1}Interfacing the LDR}{131}% +\contentsline {subsection}{\numberline {6.8.2}OpenModelica Code}{132}% \contentsline {chapter}{\numberline {7}Interfacing a Potentiometer}{135}% \contentsline {section}{\numberline {7.1}Preliminaries}{135}% \contentsline {section}{\numberline {7.2}Connecting a potentiometer with Arduino Uno\ using a breadboard}{136}% diff --git a/user-code/ldr/OpenModelica/ldr-led.mo b/user-code/ldr/OpenModelica/ldr-led.mo index 0dafd1d..d6a1727 100644 --- a/user-code/ldr/OpenModelica/ldr-led.mo +++ b/user-code/ldr/OpenModelica/ldr-led.mo @@ -3,32 +3,31 @@ model ldr_led "LED indicating light sensor readings" import sComm = Arduino.SerialCommunication.Functions;
import strm = Modelica.Utilities.Streams;
Integer ok(fixed = false);
- Integer analog_in(fixed = false);
+ Integer val(fixed = false);
Integer digital_out(fixed = false);
Integer c_ok(fixed = false);
algorithm
when initial() then
- ok := sComm.open_serial(1, 2, 115200) "At port 0 with baudrate of 115200";
+ ok := sComm.open_serial(1, 2, 115200) "At port 2 with baudrate of 115200";
sComm.delay(2000);
- if ok <> 0 then
+ end when;
+ if ok <> 0 then
strm.print("Unable to open serial port, please check");
- else
- for i in 1:500 loop
- analog_in := sComm.cmd_analog_in(1, 5) "read analog pin 5 (ldr)";
- if analog_in < 300 then
- digital_out := sComm.cmd_digital_out(1, 9, 1) "Turn ON LED";
- else
- digital_out := sComm.cmd_digital_out(1, 9, 0) "Turn OFF LED";
- end if;
- sComm.delay(200);
- end for;
- end if;
- end when;
+ else
+ val := sComm.cmd_analog_in(1, 5) "read analog pin 5 (ldr)";
+ strm.print("LDR Readings: " + String(val));
+ if val < 300 then
+ digital_out := sComm.cmd_digital_out(1, 11, 1) "Turn ON LED";
+ else
+ digital_out := sComm.cmd_digital_out(1, 11, 0) "Turn OFF LED";
+ end if;
+ sComm.delay(500);
+ end if;
//strm.print(String(time));
- when terminal() then
+ when time >= 10 then
c_ok := sComm.close_serial(1) "To close the connection safely";
end when;
//Run for 500 iterations
//Setting Threshold value of 300
- annotation(experiment(StartTime = 0, StopTime = 10, Tolerance = 1e-6, Interval = 0.02));
+ annotation(experiment(StartTime = 0, StopTime = 10, Tolerance = 1e-6, Interval = 0.2));
end ldr_led;
diff --git a/user-code/ldr/OpenModelica/ldr-read.mo b/user-code/ldr/OpenModelica/ldr-read.mo index e5ab61f..2debeb4 100644 --- a/user-code/ldr/OpenModelica/ldr-read.mo +++ b/user-code/ldr/OpenModelica/ldr-read.mo @@ -3,23 +3,21 @@ model ldr_read "Reading light intensity using ldr" import sComm = Arduino.SerialCommunication.Functions; import strm = Modelica.Utilities.Streams; Integer ok(fixed = false); - Integer analog_in(fixed = false); + Integer val(fixed = false); Integer c_ok(fixed = false); algorithm when initial() then - ok := sComm.open_serial(1, 2, 115200) "At port 0 with baudrate of 115200"; + ok := sComm.open_serial(1, 2, 115200) "At port 2 with baudrate of 115200"; sComm.delay(2000); if ok <> 0 then strm.print("Unable to open serial port, please check"); else - for i in 1:100 loop - analog_in := sComm.cmd_analog_in(1, 5) "read analog pin 5 (ldr)"; - strm.print("LDR Readings at time " + String(time) + " : " + String(analog_in)); + val := sComm.cmd_analog_in(1, 5) "read analog pin 5 (ldr)"; + strm.print("LDR Readings: " + String(val)); sComm.delay(500); - end for; end if; end when; - when terminal() then + when time >= 10 then c_ok := sComm.close_serial(1) "To close the connection safely"; end when; //Run for 10 iterations diff --git a/user-code/ldr/figures/ldr-led-2.png b/user-code/ldr/figures/ldr-led-2.png Binary files differnew file mode 100644 index 0000000..350ad73 --- /dev/null +++ b/user-code/ldr/figures/ldr-led-2.png diff --git a/user-code/ldr/figures/ldr-led-read-plot.png b/user-code/ldr/figures/ldr-led-read-plot.png Binary files differnew file mode 100644 index 0000000..8cf8c72 --- /dev/null +++ b/user-code/ldr/figures/ldr-led-read-plot.png diff --git a/user-code/ldr/figures/ldr-read-plot.png b/user-code/ldr/figures/ldr-read-plot.png Binary files differnew file mode 100644 index 0000000..c6a38e4 --- /dev/null +++ b/user-code/ldr/figures/ldr-read-plot.png diff --git a/user-code/ldr/ldr.tex b/user-code/ldr/ldr.tex index 173363d..4e9e320 100644 --- a/user-code/ldr/ldr.tex +++ b/user-code/ldr/ldr.tex @@ -335,8 +335,8 @@ can see where to locate the file. As discussed in earlier chapters, we start with the initialization
of the serial port. Next, using {\tt Analog Read} block, we read
the values of LDR connected on analog pin 5. Next, we use a scope to plot the values
-coming from this pin. When this Xcos file is simulated, a plot is opened, as shown in
-Fig.
+coming from this pin. When this Xcos file is simulated, a plot is opened,
+as shown in \figref{fig:ldr-read-plot}.
\begin{figure}
\centering
@@ -348,6 +348,13 @@ Fig. \label{fig:ldr-read}
\end{figure}
+ \begin{figure}
+ \centering
+ \includegraphics[width=\hgfig]{\LocLDRfig/ldr-read-plot.PNG}
+ \caption{Plot window in Xcos to read LDR values}
+ \label{fig:ldr-read-plot}
+ \end{figure}
+
We will next explain how to set the parameters for this simulation.
To set value on any block, one needs to right click and open the
{\tt Block Parameters} or double click. The values for each block
@@ -376,7 +383,7 @@ Fig. During this experiment, we vary the light incident on LDR by using
light sources and obstacles such as torch light, paper,
hand (or fingertips), etc. and observe the LDR readings in the plot, as shown in
- Fig. We observe that with a constant light source, the LDR output saturates after some time.
+ \figref{fig:ldr-read-plot}. We observe that with a constant light source, the LDR output saturates after some time.
%The output for this experiment is shown in \figref{fig:ldrsatout}.
% \begin{figure}
@@ -396,7 +403,7 @@ state of red LED in accordance with the LDR values. When the file required for t \begin{figure}
\centering
- \includegraphics[width=\lgfig]{\LocLDRfig/ldr-led.png}
+ \includegraphics[width=\lgfig]{\LocLDRfig/ldr-led-2.png}
% \includegraphics[width=\smfig]{\LocLDRfig/ldr-led-xcos.PNG}
\caption[Xcos diagram to read the value of the LDR, which is used
to turn the blue LED on or off] {Xcos diagram to read the value of
@@ -411,8 +418,17 @@ state of red LED in accordance with the LDR values. When the file required for t {\tt Block Parameters} or double click. The values for each block
is tabulated in \tabref{tab:ldr-led}. In the CSCOPE\_c block, the
two values correspond to two graphs, one for digital write and other
- for analog read values. All other parameters are to be left
- unchanged.
+ for analog read values. All other parameters are to be left
+ unchanged. When this Xcos file is simulated, a plot is opened,
+ as shown in \figref{fig:ldr-led-read-plot}.
+
+ \begin{figure}
+ \centering
+ \includegraphics[width=\hgfig]{\LocLDRfig/ldr-led-read-plot.PNG}
+ \caption{Plot window in Xcos to read LDR values and the state of LED}
+ \label{fig:ldr-led-read-plot}
+ \end{figure}
+
\begin{table}
\centering
\caption{Xcos parameters to read LDR and regulate blue LED}
@@ -618,12 +634,12 @@ The reader should go through the instructions given in we begin with importing the two packages: Streams and SerialCommunication followed
by setting up the serial port. Then, we read the input coming from analog pin 5 using the
following command:
-\lstinputlisting[firstline=16,lastline=16]
+\lstinputlisting[firstline=15,lastline=15]
{\LocLDROpenModelicacode/ldr-read.mo} Note that the one leg of the LDR on
the shield is connected to analog pin 5 of \arduino\,
as given in \figref{fig:ldrconn}. The read value is displayed
by the following command:
-\lstinputlisting[firstline=17,lastline=17]
+\lstinputlisting[firstline=16,lastline=16]
{\LocLDROpenModelicacode/ldr-read.mo} where {\tt val} contains
the LDR values ranging from 0 to 1023. If one does the experiment in a completely dark room, the
reading will be 0. If on the other hand, a bright light, say for instance the torch
diff --git a/user-code/push/push.tex b/user-code/push/push.tex index 5e74593..96c6188 100644 --- a/user-code/push/push.tex +++ b/user-code/push/push.tex @@ -56,7 +56,7 @@ pressed all the terminals short to complete the circuit, thereby allowing the flow of current through the switch. As you might expect,
there is a limit to the maximum current that could flow through a
pushbutton. This maximum current is also called the rated current and
-is provided by the manufacturer in the datasheet.
+is usually provided by the manufacturer in the datasheet.
\begin{figure}
\centering
@@ -564,7 +564,7 @@ Please refer to \figref{om-examples-toolbox} to know how to locate the experimen \begin{OpenModelicacode}
\mcaption{Read the status of the pushbutton and displaying on the
serial monitor}{Read the status of the pushbutton and display it on the output window.
- Available at Available at Arduino -> SerialCommunication ->
+ Available at Arduino -> SerialCommunication ->
Examples -> push -> push\_button\_status. }
\label{OpenModelica:push-100}
\lstinputlisting{\LocPushOpenModelicacode/push-button-status.mo}
|