diff options
author | SudhakarKuma | 2021-05-01 06:24:28 +0530 |
---|---|---|
committer | SudhakarKuma | 2021-05-01 06:24:28 +0530 |
commit | 9604d05f38ea3bd026d7bc2eb4df02f312bc8587 (patch) | |
tree | f9637615f8ca5c532c7d777bfa9052af2dbc52ad | |
parent | f86cd462ed33372b24acd9aa6e6349867b4d39ff (diff) | |
download | FLOSS-Arduino-Book-9604d05f38ea3bd026d7bc2eb4df02f312bc8587.tar.gz FLOSS-Arduino-Book-9604d05f38ea3bd026d7bc2eb4df02f312bc8587.tar.bz2 FLOSS-Arduino-Book-9604d05f38ea3bd026d7bc2eb4df02f312bc8587.zip |
Update chapter 5
-rw-r--r-- | floss-arduino.OpenModelicad | 34 | ||||
-rw-r--r-- | floss-arduino.ard | 26 | ||||
-rw-r--r-- | floss-arduino.aux | 1784 | ||||
-rw-r--r-- | floss-arduino.cod | 34 | ||||
-rw-r--r-- | floss-arduino.fdb_latexmk | 72 | ||||
-rw-r--r-- | floss-arduino.fls | 9 | ||||
-rw-r--r-- | floss-arduino.idx | 10 | ||||
-rw-r--r-- | floss-arduino.ind | 10 | ||||
-rw-r--r-- | floss-arduino.juliad | 34 | ||||
-rw-r--r-- | floss-arduino.lof | 98 | ||||
-rw-r--r-- | floss-arduino.log | 377 | ||||
-rw-r--r-- | floss-arduino.lot | 56 | ||||
-rw-r--r-- | floss-arduino.pdf | bin | 20888397 -> 20894802 bytes | |||
-rw-r--r-- | floss-arduino.pyd | 34 | ||||
-rw-r--r-- | floss-arduino.thm | 178 | ||||
-rw-r--r-- | floss-arduino.toc | 230 | ||||
-rw-r--r-- | user-code/push/arduino/led-push-button/led-push-button.ino | 2 | ||||
-rw-r--r-- | user-code/push/julia/led-push-button.jl | 12 | ||||
-rw-r--r-- | user-code/push/julia/push-button-status.jl | 8 | ||||
-rw-r--r-- | user-code/push/push.tex | 229 | ||||
-rw-r--r-- | user-code/push/python/led-push-button.py | 31 | ||||
-rw-r--r-- | user-code/push/python/push-button-status.py | 21 | ||||
-rw-r--r-- | user-code/push/scilab/led-push-button.sce | 16 | ||||
-rw-r--r-- | user-code/push/scilab/push-button-status.sce | 10 |
24 files changed, 1700 insertions, 1615 deletions
diff --git a/floss-arduino.OpenModelicad b/floss-arduino.OpenModelicad index 4c6f63f..f7fe6da 100644 --- a/floss-arduino.OpenModelicad +++ b/floss-arduino.OpenModelicad @@ -5,26 +5,26 @@ \contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{92}% \contentsline {section}{\numberline {4.{4}}Blinking the green LED}{93}% \addvspace {10pt} -\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying on the serial monitor}{108}% -\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{109}% +\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}{111}% \addvspace {10pt} -\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{126}% -\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{127}% +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{128}% +\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{129}% \addvspace {10pt} -\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{140}% +\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{142}% \addvspace {10pt} -\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{159}% -\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{160}% +\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{161}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{162}% \addvspace {10pt} -\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{180}% -\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{180}% -\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{181}% +\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{182}% +\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{182}% +\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{183}% \addvspace {10pt} -\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{202}% -\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{203}% -\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{204}% -\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{204}% +\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{204}% +\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{205}% +\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{206}% +\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{206}% \addvspace {10pt} -\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{224}% -\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{224}% -\contentsline {section}{\numberline {11.{3}}Code for Single Phase Active Power Output}{225}% +\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{226}% +\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{226}% +\contentsline {section}{\numberline {11.{3}}Code for Single Phase Active Power Output}{227}% diff --git a/floss-arduino.ard b/floss-arduino.ard index 9ff50e4..d7a7b7d 100644 --- a/floss-arduino.ard +++ b/floss-arduino.ard @@ -8,21 +8,21 @@ \contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying on the serial monitor}{99}% \contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{99}% \addvspace {10pt} -\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{115}% -\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{116}% +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{117}% +\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{118}% \addvspace {10pt} -\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{132}% +\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{134}% \addvspace {10pt} -\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{147}% -\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{148}% +\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{149}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{150}% \addvspace {10pt} -\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{165}% -\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{165}% -\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{165}% +\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{167}% +\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{167}% +\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{167}% \addvspace {10pt} -\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{185}% -\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{186}% -\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in increments}{186}% -\contentsline {section}{\numberline {10.{4}}Rotating the servomotor through the potentiometer}{187}% +\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{187}% +\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{188}% +\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in increments}{188}% +\contentsline {section}{\numberline {10.{4}}Rotating the servomotor through the potentiometer}{189}% \addvspace {10pt} -\contentsline {section}{\numberline {11.{1}}First 10 lines of the firmware for Modbus Energy Meter experiment}{219}% +\contentsline {section}{\numberline {11.{1}}First 10 lines of the firmware for Modbus Energy Meter experiment}{221}% diff --git a/floss-arduino.aux b/floss-arduino.aux index eefbf80..5344460 100644 --- a/floss-arduino.aux +++ b/floss-arduino.aux @@ -540,7 +540,7 @@ \@writefile{toc}{\contentsline {subsection}{\numberline {5.3.1}Reading the Pushbutton Status}{98}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/push\textendash button\textendash status/push\textendash button\textendash status.ino}{98}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/push\textendash button\textendash status/push\textendash button\textendash status.ino}{98}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/led\textendash push\textendash button/led\textendash push\textendash button.ino}{98}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/led\textendash push\textendash button/led\textendash push\textendash button.ino}{99}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {5.3.2}Arduino Code}{99}\protected@file@percent } \newlabel{sec:push-arduino-code}{{5.3.2}{99}} \@writefile{ard}{\addvspace {10pt}} @@ -560,12 +560,12 @@ \@writefile{toc}{\contentsline {subsection}{\numberline {5.4.1}Reading the Pushbutton Status}{100}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push\textendash button\textendash status.sce}{100}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push\textendash button\textendash status.sce}{100}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led\textendash push\textendash button.sce}{100}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led\textendash push\textendash button.sce}{101}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {5.4.2}Scilab Code}{101}\protected@file@percent } \newlabel{sec:push-scilab-code}{{5.4.2}{101}} \@writefile{cod}{\addvspace {10pt}} \@writefile{thm}{\contentsline {codemass}{{Scilab Code}{5.{1}}{}}{101}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying on the serial monitor}{101}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying it on the GUI}{101}\protected@file@percent } \newlabel{47@xvr}{{}{101}} \newlabel{47@vr}{{}{101}} \newlabel{sci:push-100}{{5.{1}}{101}} @@ -576,970 +576,974 @@ \newlabel{48@vr}{{}{101}} \newlabel{sci:push-200}{{5.{2}}{101}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led\textendash push\textendash button.sce}{101}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {5.5}Accessing the Pushbutton from Xcos}{101}\protected@file@percent } -\newlabel{sec:push-xcos}{{5.5}{101}} \@writefile{lof}{\contentsline {figure}{\numberline {5.4}{\ignorespaces Printing the push button status on the display block}}{102}\protected@file@percent } \newlabel{50@xvr}{{}{102}} \newlabel{50@vr}{{}{102}} \newlabel{fig:push-button-status}{{5.4}{102}} -\@writefile{lot}{\contentsline {table}{\numberline {5.1}{\ignorespaces Parameters to print the push button status on the display block\relax }}{102}\protected@file@percent } -\newlabel{tab:push-button-status}{{5.1}{102}} -\newlabel{51@xvr}{{}{102}} -\newlabel{51@vr}{{}{102}} +\@writefile{toc}{\contentsline {section}{\numberline {5.5}Accessing the Pushbutton from Xcos}{102}\protected@file@percent } +\newlabel{sec:push-xcos}{{5.5}{102}} +\@writefile{lot}{\contentsline {table}{\numberline {5.1}{\ignorespaces Parameters to print the push button status on the display block\relax }}{103}\protected@file@percent } +\newlabel{tab:push-button-status}{{5.1}{103}} +\newlabel{51@xvr}{{}{103}} +\newlabel{51@vr}{{}{103}} \@writefile{lof}{\contentsline {figure}{\numberline {5.5}{\ignorespaces Turning the LED on or off, depending on the pushbutton}}{103}\protected@file@percent } \newlabel{53@xvr}{{}{103}} \newlabel{53@vr}{{}{103}} \newlabel{fig:led-push-button}{{5.5}{103}} -\@writefile{lot}{\contentsline {table}{\numberline {5.2}{\ignorespaces Xcos parameters to turn the LED on through the pushbutton\relax }}{103}\protected@file@percent } -\newlabel{tab:led-push-button}{{5.2}{103}} -\newlabel{54@xvr}{{}{103}} -\newlabel{54@vr}{{}{103}} \@writefile{thm}{\contentsline {egmass}{{Exercise}{5.{1}}{}}{103}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {5.2}{\ignorespaces Xcos parameters to turn the LED on through the pushbutton\relax }}{104}\protected@file@percent } +\newlabel{tab:led-push-button}{{5.2}{104}} +\newlabel{54@xvr}{{}{104}} +\newlabel{54@vr}{{}{104}} \@writefile{toc}{\contentsline {section}{\numberline {5.6}Reading the Pushbutton Status from Python}{104}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {5.6.1}Reading the Pushbutton Status}{104}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push\textendash button\textendash status.py}{104}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push\textendash button\textendash status.py}{104}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led\textendash push\textendash button.py}{104}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push\textendash button\textendash status.py}{105}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led\textendash push\textendash button.py}{105}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {5.6.2}Python Code}{105}\protected@file@percent } \newlabel{sec:push-python-code}{{5.6.2}{105}} \@writefile{pyd}{\addvspace {10pt}} \@writefile{thm}{\contentsline {pymass}{{Python Code}{5.{1}}{}}{105}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying on the serial monitor}{105}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying it on the Command Prompt or the Terminal}{105}\protected@file@percent } \newlabel{55@xvr}{{}{105}} \newlabel{55@vr}{{}{105}} \newlabel{py:push-100}{{5.{1}}{105}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push\textendash button\textendash status.py}{105}\protected@file@percent } -\@writefile{thm}{\contentsline {pymass}{{Python Code}{5.{2}}{}}{105}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{105}\protected@file@percent } -\newlabel{56@xvr}{{}{105}} -\newlabel{56@vr}{{}{105}} -\newlabel{py:push-200}{{5.{2}}{105}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{5.{2}}{}}{106}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{106}\protected@file@percent } +\newlabel{56@xvr}{{}{106}} +\newlabel{56@vr}{{}{106}} +\newlabel{py:push-200}{{5.{2}}{106}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led\textendash push\textendash button.py}{106}\protected@file@percent } +\citation{julia-serial-ports} \@writefile{toc}{\contentsline {section}{\numberline {5.7}Reading the Pushbutton Status from Julia}{107}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {5.7.1}Reading the Pushbutton Status}{107}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push\textendash button\textendash status.jl}{107}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led\textendash push\textendash button.jl}{107}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {5.7.2}Julia Code}{107}\protected@file@percent } -\newlabel{sec:push-julia-code}{{5.7.2}{107}} -\@writefile{juliad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{5.{1}}{}}{107}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying on the serial monitor}{107}\protected@file@percent } -\newlabel{57@xvr}{{}{107}} -\newlabel{57@vr}{{}{107}} -\newlabel{julia:push-100}{{5.{1}}{107}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push\textendash button\textendash status.jl}{107}\protected@file@percent } -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{5.{2}}{}}{108}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{108}\protected@file@percent } -\newlabel{58@xvr}{{}{108}} -\newlabel{58@vr}{{}{108}} -\newlabel{julia:push-200}{{5.{2}}{108}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push\textendash button\textendash status.jl}{108}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push\textendash button\textendash status.jl}{108}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led\textendash push\textendash button.jl}{108}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {5.8}Reading the Pushbutton Status from OpenModelica}{108}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {5.8.1}Reading the Pushbutton Status}{108}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push\textendash button\textendash status.mo}{108}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {5.8.2}OpenModelica Code}{108}\protected@file@percent } -\newlabel{sec:led-OpenModelica-code}{{5.8.2}{108}} +\@writefile{toc}{\contentsline {subsection}{\numberline {5.7.2}Julia Code}{108}\protected@file@percent } +\newlabel{sec:push-julia-code}{{5.7.2}{108}} +\@writefile{juliad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{5.{1}}{}}{108}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying it on Command Prompt or the Terminal.}{108}\protected@file@percent } +\newlabel{57@xvr}{{}{109}} +\newlabel{57@vr}{{}{109}} +\newlabel{julia:push-100}{{5.{1}}{109}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push\textendash button\textendash status.jl}{109}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{5.{2}}{}}{109}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{109}\protected@file@percent } +\newlabel{58@xvr}{{}{109}} +\newlabel{58@vr}{{}{109}} +\newlabel{julia:push-200}{{5.{2}}{109}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led\textendash push\textendash button.jl}{109}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {5.8}Reading the Pushbutton Status from OpenModelica}{109}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.8.1}Reading the Pushbutton Status}{109}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push\textendash button\textendash status.mo}{110}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push\textendash button\textendash status.mo}{110}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led\textendash push\textendash button.mo}{110}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.8.2}OpenModelica Code}{111}\protected@file@percent } +\newlabel{sec:led-OpenModelica-code}{{5.8.2}{111}} \@writefile{OpenModelicad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{5.{1}}{}}{108}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying on the serial monitor}{108}\protected@file@percent } -\newlabel{59@xvr}{{}{108}} -\newlabel{59@vr}{{}{108}} -\newlabel{OpenModelica:push-100}{{5.{1}}{108}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push\textendash button\textendash status.mo}{109}\protected@file@percent } -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{5.{2}}{}}{109}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{109}\protected@file@percent } -\newlabel{60@xvr}{{}{109}} -\newlabel{60@vr}{{}{109}} -\newlabel{OpenModelica:push-200}{{5.{2}}{109}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led\textendash push\textendash button.mo}{109}\protected@file@percent } -\@writefile{toc}{\contentsline {chapter}{\numberline {6}Interfacing a Light Dependent Resistor}{111}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{5.{1}}{}}{111}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying on the serial monitor}{111}\protected@file@percent } +\newlabel{59@xvr}{{}{111}} +\newlabel{59@vr}{{}{111}} +\newlabel{OpenModelica:push-100}{{5.{1}}{111}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push\textendash button\textendash status.mo}{111}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{5.{2}}{}}{111}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{111}\protected@file@percent } +\newlabel{60@xvr}{{}{111}} +\newlabel{60@vr}{{}{111}} +\newlabel{OpenModelica:push-200}{{5.{2}}{111}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led\textendash push\textendash button.mo}{112}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {6}Interfacing a Light Dependent Resistor}{113}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{ldr}{{6}{111}} -\@writefile{toc}{\contentsline {section}{\numberline {6.1}Preliminaries}{111}\protected@file@percent } -\newlabel{fig:ldr}{{6.1a}{112}} +\newlabel{ldr}{{6}{113}} +\@writefile{toc}{\contentsline {section}{\numberline {6.1}Preliminaries}{113}\protected@file@percent } +\newlabel{fig:ldr}{{6.1a}{114}} \newlabel{sub@fig:ldr}{{(a)}{a}} -\newlabel{fig:ldrsym}{{6.1b}{112}} +\newlabel{fig:ldrsym}{{6.1b}{114}} \newlabel{sub@fig:ldrsym}{{(b)}{b}} -\@writefile{lof}{\contentsline {figure}{\numberline {6.1}{\ignorespaces Light Dependent Resistor\relax }}{112}\protected@file@percent } -\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Pictorial representation of an LDR}}}{112}\protected@file@percent } -\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Symbolic representation of an LDR}}}{112}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {6.2}{\ignorespaces Internal connection diagram for the LDR on the shield\relax }}{112}\protected@file@percent } -\newlabel{fig:ldrconn}{{6.2}{112}} -\@writefile{lof}{\contentsline {figure}{\numberline {6.3}{\ignorespaces An LDR to read its values with Arduino Uno\ using a breadboard\relax }}{113}\protected@file@percent } -\newlabel{fig:ard-ldr}{{6.3}{113}} -\@writefile{toc}{\contentsline {section}{\numberline {6.2}Connecting an LDR with Arduino Uno\ using a breadboard}{113}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {6.4}{\ignorespaces An LDR to control an LED with Arduino Uno using a breadboard\relax }}{114}\protected@file@percent } -\newlabel{fig:ard-ldr-led}{{6.4}{114}} -\@writefile{toc}{\contentsline {section}{\numberline {6.3}Interfacing the LDR through the Arduino IDE}{114}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.3.1}Interfacing the LDR}{114}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{114}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{115}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{115}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{1}}{}}{115}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.3.2}Arduino Code}{115}\protected@file@percent } -\newlabel{sec:ldr-arduino-code}{{6.3.2}{115}} +\@writefile{lof}{\contentsline {figure}{\numberline {6.1}{\ignorespaces Light Dependent Resistor\relax }}{114}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Pictorial representation of an LDR}}}{114}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Symbolic representation of an LDR}}}{114}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {6.2}{\ignorespaces Internal connection diagram for the LDR on the shield\relax }}{114}\protected@file@percent } +\newlabel{fig:ldrconn}{{6.2}{114}} +\@writefile{lof}{\contentsline {figure}{\numberline {6.3}{\ignorespaces An LDR to read its values with Arduino Uno\ using a breadboard\relax }}{115}\protected@file@percent } +\newlabel{fig:ard-ldr}{{6.3}{115}} +\@writefile{toc}{\contentsline {section}{\numberline {6.2}Connecting an LDR with Arduino Uno\ using a breadboard}{115}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {6.4}{\ignorespaces An LDR to control an LED with Arduino Uno using a breadboard\relax }}{116}\protected@file@percent } +\newlabel{fig:ard-ldr-led}{{6.4}{116}} +\@writefile{toc}{\contentsline {section}{\numberline {6.3}Interfacing the LDR through the Arduino IDE}{116}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.3.1}Interfacing the LDR}{116}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{116}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{117}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{117}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{1}}{}}{117}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.3.2}Arduino Code}{117}\protected@file@percent } +\newlabel{sec:ldr-arduino-code}{{6.3.2}{117}} \@writefile{ard}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{6.{1}}{}}{115}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{115}\protected@file@percent } -\newlabel{61@xvr}{{}{115}} -\newlabel{61@vr}{{}{115}} -\newlabel{ard:ldr-read}{{6.{1}}{115}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{115}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{6.{2}}{}}{116}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{116}\protected@file@percent } -\newlabel{62@xvr}{{}{116}} -\newlabel{62@vr}{{}{116}} -\newlabel{ard:ldr-led}{{6.{2}}{116}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash led/ldr\textendash led.ino}{116}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {6.4}Interfacing the LDR through Scilab}{116}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.4.1}Interfacing the LDR}{116}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{2}}{}}{117}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.4.2}Scilab Code}{117}\protected@file@percent } -\newlabel{sec:ldr-scilab-code}{{6.4.2}{117}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{6.{1}}{}}{117}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{117}\protected@file@percent } +\newlabel{61@xvr}{{}{117}} +\newlabel{61@vr}{{}{117}} +\newlabel{ard:ldr-read}{{6.{1}}{117}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{117}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{6.{2}}{}}{118}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{118}\protected@file@percent } +\newlabel{62@xvr}{{}{118}} +\newlabel{62@vr}{{}{118}} +\newlabel{ard:ldr-led}{{6.{2}}{118}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash led/ldr\textendash led.ino}{118}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {6.4}Interfacing the LDR through Scilab}{118}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.4.1}Interfacing the LDR}{118}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{2}}{}}{119}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.4.2}Scilab Code}{119}\protected@file@percent } +\newlabel{sec:ldr-scilab-code}{{6.4.2}{119}} \@writefile{cod}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{6.{1}}{}}{117}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{117}\protected@file@percent } -\newlabel{63@xvr}{{}{117}} -\newlabel{63@vr}{{}{117}} -\newlabel{sci:ldr-read}{{6.{1}}{117}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr\textendash read.sce}{117}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{6.{2}}{}}{118}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{118}\protected@file@percent } -\newlabel{64@xvr}{{}{118}} -\newlabel{64@vr}{{}{118}} -\newlabel{sci:ldr-led}{{6.{2}}{118}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr\textendash led.sce}{118}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {6.5}Interfacing the LDR through Xcos}{118}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {6.5}{\ignorespaces Xcos diagram to read LDR values}}{119}\protected@file@percent } -\newlabel{66@xvr}{{}{119}} -\newlabel{66@vr}{{}{119}} -\newlabel{fig:ldr-read}{{6.5}{119}} -\@writefile{lot}{\contentsline {table}{\numberline {6.1}{\ignorespaces Xcos parameters to read LDR\relax }}{119}\protected@file@percent } -\newlabel{tab:ldr-read}{{6.1}{119}} -\newlabel{67@xvr}{{}{119}} -\newlabel{67@vr}{{}{119}} -\@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}}{120}\protected@file@percent } -\newlabel{69@xvr}{{}{120}} -\newlabel{69@vr}{{}{120}} -\newlabel{fig:ldr-led}{{6.6}{120}} -\@writefile{toc}{\contentsline {section}{\numberline {6.6}Interfacing the LDR through Python}{120}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.6.1}Interfacing the LDR}{120}\protected@file@percent } -\@writefile{lot}{\contentsline {table}{\numberline {6.2}{\ignorespaces Xcos parameters to read LDR and regulate blue LED\relax }}{121}\protected@file@percent } -\newlabel{tab:ldr-led}{{6.2}{121}} -\newlabel{70@xvr}{{}{121}} -\newlabel{70@vr}{{}{121}} -\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{3}}{}}{121}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.6.2}Python Code}{122}\protected@file@percent } -\newlabel{sec:ldr-python-code}{{6.6.2}{122}} +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{6.{1}}{}}{119}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{119}\protected@file@percent } +\newlabel{63@xvr}{{}{119}} +\newlabel{63@vr}{{}{119}} +\newlabel{sci:ldr-read}{{6.{1}}{119}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr\textendash read.sce}{119}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{6.{2}}{}}{120}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{120}\protected@file@percent } +\newlabel{64@xvr}{{}{120}} +\newlabel{64@vr}{{}{120}} +\newlabel{sci:ldr-led}{{6.{2}}{120}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr\textendash led.sce}{120}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {6.5}Interfacing the LDR through Xcos}{120}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {6.5}{\ignorespaces Xcos diagram to read LDR values}}{121}\protected@file@percent } +\newlabel{66@xvr}{{}{121}} +\newlabel{66@vr}{{}{121}} +\newlabel{fig:ldr-read}{{6.5}{121}} +\@writefile{lot}{\contentsline {table}{\numberline {6.1}{\ignorespaces Xcos parameters to read LDR\relax }}{121}\protected@file@percent } +\newlabel{tab:ldr-read}{{6.1}{121}} +\newlabel{67@xvr}{{}{121}} +\newlabel{67@vr}{{}{121}} +\@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}}{122}\protected@file@percent } +\newlabel{69@xvr}{{}{122}} +\newlabel{69@vr}{{}{122}} +\newlabel{fig:ldr-led}{{6.6}{122}} +\@writefile{toc}{\contentsline {section}{\numberline {6.6}Interfacing the LDR through Python}{122}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.6.1}Interfacing the LDR}{122}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {6.2}{\ignorespaces Xcos parameters to read LDR and regulate blue LED\relax }}{123}\protected@file@percent } +\newlabel{tab:ldr-led}{{6.2}{123}} +\newlabel{70@xvr}{{}{123}} +\newlabel{70@vr}{{}{123}} +\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{3}}{}}{123}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.6.2}Python Code}{124}\protected@file@percent } +\newlabel{sec:ldr-python-code}{{6.6.2}{124}} \@writefile{pyd}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {pymass}{{Python Code}{6.{1}}{}}{122}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{122}\protected@file@percent } -\newlabel{71@xvr}{{}{122}} -\newlabel{71@vr}{{}{122}} -\newlabel{py:ldr-read}{{6.{1}}{122}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash read.py}{122}\protected@file@percent } -\@writefile{thm}{\contentsline {pymass}{{Python Code}{6.{2}}{}}{123}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{123}\protected@file@percent } -\newlabel{72@xvr}{{}{123}} -\newlabel{72@vr}{{}{123}} -\newlabel{py:ldr-led}{{6.{2}}{123}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash led.py}{123}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {6.7}Interfacing the LDR through Julia}{124}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.7.1}Interfacing the LDR}{124}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led\textendash push\textendash button.jl}{124}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{4}}{}}{124}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.7.2}Julia Code}{125}\protected@file@percent } -\newlabel{sec:ldr-julia-code}{{6.7.2}{125}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{6.{1}}{}}{124}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{124}\protected@file@percent } +\newlabel{71@xvr}{{}{124}} +\newlabel{71@vr}{{}{124}} +\newlabel{py:ldr-read}{{6.{1}}{124}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash read.py}{124}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{6.{2}}{}}{125}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{125}\protected@file@percent } +\newlabel{72@xvr}{{}{125}} +\newlabel{72@vr}{{}{125}} +\newlabel{py:ldr-led}{{6.{2}}{125}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash led.py}{125}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {6.7}Interfacing the LDR through Julia}{126}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.7.1}Interfacing the LDR}{126}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led\textendash push\textendash button.jl}{126}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{4}}{}}{126}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.7.2}Julia Code}{127}\protected@file@percent } +\newlabel{sec:ldr-julia-code}{{6.7.2}{127}} \@writefile{juliad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{6.{1}}{}}{125}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{125}\protected@file@percent } -\newlabel{73@xvr}{{}{125}} -\newlabel{73@vr}{{}{125}} -\newlabel{julia:ldr-read}{{6.{1}}{125}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash read.jl}{125}\protected@file@percent } -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{6.{2}}{}}{125}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{125}\protected@file@percent } -\newlabel{74@xvr}{{}{125}} -\newlabel{74@vr}{{}{125}} -\newlabel{julia:ldr-led}{{6.{2}}{125}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash led.jl}{125}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {6.8}Interfacing the LDR through OpenModelica}{125}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.8.1}Interfacing the LDR}{125}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led\textendash push\textendash button.mo}{126}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.8.2}OpenModelica Code}{126}\protected@file@percent } -\newlabel{sec:ldr-OpenModelica-code}{{6.8.2}{126}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{6.{1}}{}}{127}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{127}\protected@file@percent } +\newlabel{73@xvr}{{}{127}} +\newlabel{73@vr}{{}{127}} +\newlabel{julia:ldr-read}{{6.{1}}{127}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash read.jl}{127}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{6.{2}}{}}{127}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{127}\protected@file@percent } +\newlabel{74@xvr}{{}{127}} +\newlabel{74@vr}{{}{127}} +\newlabel{julia:ldr-led}{{6.{2}}{127}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash led.jl}{127}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {6.8}Interfacing the LDR through OpenModelica}{127}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.8.1}Interfacing the LDR}{127}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led\textendash push\textendash button.mo}{128}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.8.2}OpenModelica Code}{128}\protected@file@percent } +\newlabel{sec:ldr-OpenModelica-code}{{6.8.2}{128}} \@writefile{OpenModelicad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{1}}{}}{126}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{126}\protected@file@percent } -\newlabel{75@xvr}{{}{126}} -\newlabel{75@vr}{{}{126}} -\newlabel{OpenModelica:ldr-read}{{6.{1}}{126}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash read.mo}{126}\protected@file@percent } -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{2}}{}}{127}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{127}\protected@file@percent } -\newlabel{76@xvr}{{}{127}} -\newlabel{76@vr}{{}{127}} -\newlabel{OpenModelica:ldr-led}{{6.{2}}{127}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash led.mo}{127}\protected@file@percent } -\@writefile{toc}{\contentsline {chapter}{\numberline {7}Interfacing a Potentiometer}{129}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{1}}{}}{128}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{128}\protected@file@percent } +\newlabel{75@xvr}{{}{128}} +\newlabel{75@vr}{{}{128}} +\newlabel{OpenModelica:ldr-read}{{6.{1}}{128}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash read.mo}{128}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{2}}{}}{129}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{129}\protected@file@percent } +\newlabel{76@xvr}{{}{129}} +\newlabel{76@vr}{{}{129}} +\newlabel{OpenModelica:ldr-led}{{6.{2}}{129}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash led.mo}{129}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {7}Interfacing a Potentiometer}{131}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{potmeter}{{7}{129}} -\@writefile{toc}{\contentsline {section}{\numberline {7.1}Preliminaries}{129}\protected@file@percent } -\newlabel{77@xvr}{{}{129}} -\newlabel{77@vr}{{}{129}} -\newlabel{fig:pot}{{7.1a}{130}} +\newlabel{potmeter}{{7}{131}} +\@writefile{toc}{\contentsline {section}{\numberline {7.1}Preliminaries}{131}\protected@file@percent } +\newlabel{77@xvr}{{}{131}} +\newlabel{77@vr}{{}{131}} +\newlabel{fig:pot}{{7.1a}{132}} \newlabel{sub@fig:pot}{{(a)}{a}} -\newlabel{fig:potsch}{{7.1b}{130}} +\newlabel{fig:potsch}{{7.1b}{132}} \newlabel{sub@fig:potsch}{{(b)}{b}} -\@writefile{lof}{\contentsline {figure}{\numberline {7.1}{\ignorespaces Potentiometer's schematic on the shield\relax }}{130}\protected@file@percent } -\newlabel{fig:potmeterconn}{{7.1}{130}} -\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Pictorial representation of a potentiometer}}}{130}\protected@file@percent } -\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Schematic representation of the potentiometer}}}{130}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {7.2}Connecting a potentiometer with Arduino Uno\ using a breadboard}{130}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {7.2}{\ignorespaces A potentiometer to control an LED with Arduino Uno using a breadboard\relax }}{131}\protected@file@percent } -\newlabel{fig:pot-led}{{7.2}{131}} -\@writefile{toc}{\contentsline {section}{\numberline {7.3}Reading the potentiometer from the Arduino IDE}{131}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {7.3.1}Reading the potentiometer}{131}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot\textendash threshold/pot\textendash threshold.ino}{132}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot\textendash threshold/pot\textendash threshold.ino}{132}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {7.3.2}Arduino Code}{132}\protected@file@percent } -\newlabel{sec:pot-arduino-code}{{7.3.2}{132}} +\@writefile{lof}{\contentsline {figure}{\numberline {7.1}{\ignorespaces Potentiometer's schematic on the shield\relax }}{132}\protected@file@percent } +\newlabel{fig:potmeterconn}{{7.1}{132}} +\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Pictorial representation of a potentiometer}}}{132}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Schematic representation of the potentiometer}}}{132}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.2}Connecting a potentiometer with Arduino Uno\ using a breadboard}{132}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {7.2}{\ignorespaces A potentiometer to control an LED with Arduino Uno using a breadboard\relax }}{133}\protected@file@percent } +\newlabel{fig:pot-led}{{7.2}{133}} +\@writefile{toc}{\contentsline {section}{\numberline {7.3}Reading the potentiometer from the Arduino IDE}{133}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.3.1}Reading the potentiometer}{133}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot\textendash threshold/pot\textendash threshold.ino}{134}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot\textendash threshold/pot\textendash threshold.ino}{134}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.3.2}Arduino Code}{134}\protected@file@percent } +\newlabel{sec:pot-arduino-code}{{7.3.2}{134}} \@writefile{ard}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{7.{1}}{}}{132}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{132}\protected@file@percent } -\newlabel{78@xvr}{{}{132}} -\newlabel{78@vr}{{}{132}} -\newlabel{ard:pot-100}{{7.{1}}{132}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot\textendash threshold/pot\textendash threshold.ino}{132}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {7.4}Reading the potentiometer from Scilab}{133}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {7.4.1}Reading the potentiometer}{133}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot\textendash threshold.sce}{133}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot\textendash threshold.sce}{133}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {7.4.2}Scilab Code}{134}\protected@file@percent } -\newlabel{sec:pot-scilab-code}{{7.4.2}{134}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{7.{1}}{}}{134}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{134}\protected@file@percent } +\newlabel{78@xvr}{{}{134}} +\newlabel{78@vr}{{}{134}} +\newlabel{ard:pot-100}{{7.{1}}{134}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot\textendash threshold/pot\textendash threshold.ino}{134}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.4}Reading the potentiometer from Scilab}{135}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.4.1}Reading the potentiometer}{135}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot\textendash threshold.sce}{135}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot\textendash threshold.sce}{135}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.4.2}Scilab Code}{136}\protected@file@percent } +\newlabel{sec:pot-scilab-code}{{7.4.2}{136}} \@writefile{cod}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{7.{1}}{}}{134}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{134}\protected@file@percent } -\newlabel{79@xvr}{{}{134}} -\newlabel{79@vr}{{}{134}} -\newlabel{sci:pot-100}{{7.{1}}{134}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot\textendash threshold.sce}{134}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {7.5}Reading the potentiometer from Xcos}{134}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {7.3}{\ignorespaces Turning LEDs on through Xcos depending on the potentiometer threshold}}{135}\protected@file@percent } -\newlabel{81@xvr}{{}{135}} -\newlabel{81@vr}{{}{135}} -\newlabel{fig:pot-threshold}{{7.3}{135}} -\@writefile{toc}{\contentsline {paragraph}{Exercise:}{135}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {7.6}Reading the potentiometer from Python}{135}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {7.6.1}Reading the potentiometer}{135}\protected@file@percent } -\@writefile{lot}{\contentsline {table}{\numberline {7.1}{\ignorespaces Xcos parameters to turn on different LEDs depending on the potentiometer value\relax }}{136}\protected@file@percent } -\newlabel{tab:pot-threshold}{{7.1}{136}} -\newlabel{82@xvr}{{}{136}} -\newlabel{82@vr}{{}{136}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot\textendash threshold.py}{136}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot\textendash threshold.py}{137}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {7.6.2}Python Code}{137}\protected@file@percent } -\newlabel{sec:pot-python-code}{{7.6.2}{137}} +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{7.{1}}{}}{136}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{136}\protected@file@percent } +\newlabel{79@xvr}{{}{136}} +\newlabel{79@vr}{{}{136}} +\newlabel{sci:pot-100}{{7.{1}}{136}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot\textendash threshold.sce}{136}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.5}Reading the potentiometer from Xcos}{136}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {7.3}{\ignorespaces Turning LEDs on through Xcos depending on the potentiometer threshold}}{137}\protected@file@percent } +\newlabel{81@xvr}{{}{137}} +\newlabel{81@vr}{{}{137}} +\newlabel{fig:pot-threshold}{{7.3}{137}} +\@writefile{toc}{\contentsline {paragraph}{Exercise:}{137}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.6}Reading the potentiometer from Python}{137}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.6.1}Reading the potentiometer}{137}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {7.1}{\ignorespaces Xcos parameters to turn on different LEDs depending on the potentiometer value\relax }}{138}\protected@file@percent } +\newlabel{tab:pot-threshold}{{7.1}{138}} +\newlabel{82@xvr}{{}{138}} +\newlabel{82@vr}{{}{138}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot\textendash threshold.py}{138}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot\textendash threshold.py}{139}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.6.2}Python Code}{139}\protected@file@percent } +\newlabel{sec:pot-python-code}{{7.6.2}{139}} \@writefile{pyd}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {pymass}{{Python Code}{7.{1}}{}}{137}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{137}\protected@file@percent } -\newlabel{83@xvr}{{}{137}} -\newlabel{83@vr}{{}{137}} -\newlabel{py:pot-100}{{7.{1}}{137}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot\textendash threshold.py}{137}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {7.7}Reading the potentiometer from Julia}{138}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {7.7.1}Reading the potentiometer}{138}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot\textendash threshold.jl}{138}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot\textendash threshold.jl}{138}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {7.7.2}Julia Code}{139}\protected@file@percent } -\newlabel{sec:pot-julia-code}{{7.7.2}{139}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{7.{1}}{}}{139}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{139}\protected@file@percent } +\newlabel{83@xvr}{{}{139}} +\newlabel{83@vr}{{}{139}} +\newlabel{py:pot-100}{{7.{1}}{139}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot\textendash threshold.py}{139}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.7}Reading the potentiometer from Julia}{140}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.7.1}Reading the potentiometer}{140}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot\textendash threshold.jl}{140}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot\textendash threshold.jl}{140}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.7.2}Julia Code}{141}\protected@file@percent } +\newlabel{sec:pot-julia-code}{{7.7.2}{141}} \@writefile{juliad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{7.{1}}{}}{139}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{139}\protected@file@percent } -\newlabel{84@xvr}{{}{139}} -\newlabel{84@vr}{{}{139}} -\newlabel{julia:pot-100}{{7.{1}}{139}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot\textendash threshold.jl}{139}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {7.8}Reading the potentiometer from OpenModelica}{139}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {7.8.1}Reading the potentiometer}{139}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot\textendash threshold.mo}{139}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot\textendash threshold.mo}{140}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {7.8.2}OpenModelica Code}{140}\protected@file@percent } -\newlabel{sec:pot-OpenModelica-code}{{7.8.2}{140}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{7.{1}}{}}{141}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{141}\protected@file@percent } +\newlabel{84@xvr}{{}{141}} +\newlabel{84@vr}{{}{141}} +\newlabel{julia:pot-100}{{7.{1}}{141}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot\textendash threshold.jl}{141}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.8}Reading the potentiometer from OpenModelica}{141}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.8.1}Reading the potentiometer}{141}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot\textendash threshold.mo}{141}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot\textendash threshold.mo}{142}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.8.2}OpenModelica Code}{142}\protected@file@percent } +\newlabel{sec:pot-OpenModelica-code}{{7.8.2}{142}} \@writefile{OpenModelicad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{7.{1}}{}}{140}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{140}\protected@file@percent } -\newlabel{85@xvr}{{}{140}} -\newlabel{85@vr}{{}{140}} -\newlabel{OpenModelica:pot-100}{{7.{1}}{140}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot\textendash threshold.mo}{140}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{7.{1}}{}}{142}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{142}\protected@file@percent } +\newlabel{85@xvr}{{}{142}} +\newlabel{85@vr}{{}{142}} +\newlabel{OpenModelica:pot-100}{{7.{1}}{142}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot\textendash threshold.mo}{142}\protected@file@percent } \citation{therm-wiki} \citation{therm-wiki} -\@writefile{toc}{\contentsline {chapter}{\numberline {8}Interfacing a Thermistor}{143}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {8}Interfacing a Thermistor}{145}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{thermistor}{{8}{143}} -\@writefile{toc}{\contentsline {section}{\numberline {8.1}Preliminaries}{143}\protected@file@percent } -\newlabel{fig:therm}{{8.1a}{144}} +\newlabel{thermistor}{{8}{145}} +\@writefile{toc}{\contentsline {section}{\numberline {8.1}Preliminaries}{145}\protected@file@percent } +\newlabel{fig:therm}{{8.1a}{146}} \newlabel{sub@fig:therm}{{(a)}{a}} -\newlabel{fig:thermsym}{{8.1b}{144}} +\newlabel{fig:thermsym}{{8.1b}{146}} \newlabel{sub@fig:thermsym}{{(b)}{b}} -\@writefile{lof}{\contentsline {figure}{\numberline {8.1}{\ignorespaces Pictorial and symbolic representation of a thermistor\relax }}{144}\protected@file@percent } -\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Pictorial representation of a thermistor\cite {therm-wiki}}}}{144}\protected@file@percent } -\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Symbolic representation of a thermistor}}}{144}\protected@file@percent } -\newlabel{fig:therm-conn}{{8.2a}{144}} +\@writefile{lof}{\contentsline {figure}{\numberline {8.1}{\ignorespaces Pictorial and symbolic representation of a thermistor\relax }}{146}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Pictorial representation of a thermistor\cite {therm-wiki}}}}{146}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Symbolic representation of a thermistor}}}{146}\protected@file@percent } +\newlabel{fig:therm-conn}{{8.2a}{146}} \newlabel{sub@fig:therm-conn}{{(a)}{a}} -\newlabel{fig:buzzer-conn}{{8.2b}{144}} +\newlabel{fig:buzzer-conn}{{8.2b}{146}} \newlabel{sub@fig:buzzer-conn}{{(b)}{b}} -\@writefile{lof}{\contentsline {figure}{\numberline {8.2}{\ignorespaces Thermistor and buzzer connection diagrams\relax }}{144}\protected@file@percent } -\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Thermistor connection diagram}}}{144}\protected@file@percent } -\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Buzzer connection diagram}}}{144}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {8.2}Connecting a thermistor with Arduino Uno\ using a breadboard}{144}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {8.3}{\ignorespaces A thermistor to read its values with Arduino Uno using a breadboard\relax }}{145}\protected@file@percent } -\newlabel{fig:ard-therm-bread}{{8.3}{145}} -\@writefile{lof}{\contentsline {figure}{\numberline {8.4}{\ignorespaces A thermistor to control a buzzer with Arduino Uno using a breadboard\relax }}{146}\protected@file@percent } -\newlabel{fig:ard-therm-buzzer}{{8.4}{146}} -\@writefile{toc}{\contentsline {section}{\numberline {8.3}Interfacing the Thermistor from the Arduino IDE}{146}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {8.3.1}Interfacing the Thermistor}{146}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{146}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{146}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{146}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{8.{1}}{}}{147}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {8.3.2}Arduino Code}{147}\protected@file@percent } -\newlabel{sec:therm-arduino-code}{{8.3.2}{147}} +\@writefile{lof}{\contentsline {figure}{\numberline {8.2}{\ignorespaces Thermistor and buzzer connection diagrams\relax }}{146}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Thermistor connection diagram}}}{146}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Buzzer connection diagram}}}{146}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {8.2}Connecting a thermistor with Arduino Uno\ using a breadboard}{146}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {8.3}{\ignorespaces A thermistor to read its values with Arduino Uno using a breadboard\relax }}{147}\protected@file@percent } +\newlabel{fig:ard-therm-bread}{{8.3}{147}} +\@writefile{lof}{\contentsline {figure}{\numberline {8.4}{\ignorespaces A thermistor to control a buzzer with Arduino Uno using a breadboard\relax }}{148}\protected@file@percent } +\newlabel{fig:ard-therm-buzzer}{{8.4}{148}} +\@writefile{toc}{\contentsline {section}{\numberline {8.3}Interfacing the Thermistor from the Arduino IDE}{148}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.3.1}Interfacing the Thermistor}{148}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{148}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{148}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{148}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{8.{1}}{}}{149}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.3.2}Arduino Code}{149}\protected@file@percent } +\newlabel{sec:therm-arduino-code}{{8.3.2}{149}} \@writefile{ard}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{8.{1}}{}}{147}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{147}\protected@file@percent } -\newlabel{86@xvr}{{}{147}} -\newlabel{86@vr}{{}{147}} -\newlabel{ard:therm-read}{{8.{1}}{147}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{147}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{8.{2}}{}}{148}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{148}\protected@file@percent } -\newlabel{87@xvr}{{}{148}} -\newlabel{87@vr}{{}{148}} -\newlabel{ard:therm-buzzer}{{8.{2}}{148}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash buzzer/therm\textendash buzzer.ino}{148}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {8.4}Interfacing the Thermistor from Scilab}{148}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {8.4.1}Interfacing the Thermistor}{148}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{8.{2}}{}}{149}\protected@file@percent } -\newlabel{therm-abc}{{8.1}{149}} -\newlabel{therm-beta}{{8.2}{150}} -\@writefile{toc}{\contentsline {subsection}{\numberline {8.4.2}Scilab Code}{150}\protected@file@percent } -\newlabel{sec:therm-scilab-code}{{8.4.2}{150}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{8.{1}}{}}{149}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{149}\protected@file@percent } +\newlabel{86@xvr}{{}{149}} +\newlabel{86@vr}{{}{149}} +\newlabel{ard:therm-read}{{8.{1}}{149}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{149}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{8.{2}}{}}{150}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{150}\protected@file@percent } +\newlabel{87@xvr}{{}{150}} +\newlabel{87@vr}{{}{150}} +\newlabel{ard:therm-buzzer}{{8.{2}}{150}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash buzzer/therm\textendash buzzer.ino}{150}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {8.4}Interfacing the Thermistor from Scilab}{150}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.4.1}Interfacing the Thermistor}{150}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{8.{2}}{}}{151}\protected@file@percent } +\newlabel{therm-abc}{{8.1}{151}} +\newlabel{therm-beta}{{8.2}{152}} +\@writefile{toc}{\contentsline {subsection}{\numberline {8.4.2}Scilab Code}{152}\protected@file@percent } +\newlabel{sec:therm-scilab-code}{{8.4.2}{152}} \@writefile{cod}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{8.{1}}{}}{150}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{150}\protected@file@percent } -\newlabel{88@xvr}{{}{150}} -\newlabel{88@vr}{{}{150}} -\newlabel{sci:therm-read}{{8.{1}}{150}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash read.sce}{150}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{8.{2}}{}}{150}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{150}\protected@file@percent } -\newlabel{89@xvr}{{}{150}} -\newlabel{89@vr}{{}{150}} -\newlabel{sci:therm-buzzer}{{8.{2}}{150}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash buzzer.sce}{150}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {8.5}{\ignorespaces Xcos diagram to read thermistor values}}{151}\protected@file@percent } -\newlabel{91@xvr}{{}{151}} -\newlabel{91@vr}{{}{151}} -\newlabel{fig:therm-read}{{8.5}{151}} -\@writefile{toc}{\contentsline {section}{\numberline {8.5}Interfacing the Thermistor from Xcos}{151}\protected@file@percent } -\@writefile{lot}{\contentsline {table}{\numberline {8.1}{\ignorespaces Xcos parameters to read thermistor\relax }}{152}\protected@file@percent } -\newlabel{tab:therm-read}{{8.1}{152}} -\newlabel{92@xvr}{{}{152}} -\newlabel{92@vr}{{}{152}} -\@writefile{lof}{\contentsline {figure}{\numberline {8.6}{\ignorespaces Output of Xcos diagram to read thermistor values}}{152}\protected@file@percent } -\newlabel{94@xvr}{{}{152}} -\newlabel{94@vr}{{}{152}} -\newlabel{fig:therm-read-output}{{8.6}{152}} -\@writefile{lof}{\contentsline {figure}{\numberline {8.7}{\ignorespaces Xcos diagram to read the value of thermistor, which is used to turn the buzzer on or off}}{153}\protected@file@percent } -\newlabel{96@xvr}{{}{153}} -\newlabel{96@vr}{{}{153}} -\newlabel{fig:therm-buzzer}{{8.7}{153}} -\@writefile{lof}{\contentsline {figure}{\numberline {8.8}{\ignorespaces Output of Xcos diagram to switch buzzer through thermistor values}}{153}\protected@file@percent } -\newlabel{99@xvr}{{}{153}} -\newlabel{99@vr}{{}{153}} -\newlabel{fig:therm-buzzer-output}{{8.8}{153}} -\@writefile{lot}{\contentsline {table}{\numberline {8.2}{\ignorespaces Xcos parameters to read thermistor and switch the buzzer\relax }}{154}\protected@file@percent } -\newlabel{tab:ldr-led}{{8.2}{154}} -\newlabel{97@xvr}{{}{154}} -\newlabel{97@vr}{{}{154}} -\@writefile{toc}{\contentsline {section}{\numberline {8.6}Interfacing the Thermistor from Python}{154}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {8.6.1}Interfacing the Thermistor}{154}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {8.6.2}Python Code}{155}\protected@file@percent } -\newlabel{sec:therm-pyhton-code}{{8.6.2}{155}} +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{8.{1}}{}}{152}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{152}\protected@file@percent } +\newlabel{88@xvr}{{}{152}} +\newlabel{88@vr}{{}{152}} +\newlabel{sci:therm-read}{{8.{1}}{152}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash read.sce}{152}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{8.{2}}{}}{152}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{152}\protected@file@percent } +\newlabel{89@xvr}{{}{152}} +\newlabel{89@vr}{{}{152}} +\newlabel{sci:therm-buzzer}{{8.{2}}{152}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash buzzer.sce}{152}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {8.5}{\ignorespaces Xcos diagram to read thermistor values}}{153}\protected@file@percent } +\newlabel{91@xvr}{{}{153}} +\newlabel{91@vr}{{}{153}} +\newlabel{fig:therm-read}{{8.5}{153}} +\@writefile{toc}{\contentsline {section}{\numberline {8.5}Interfacing the Thermistor from Xcos}{153}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {8.1}{\ignorespaces Xcos parameters to read thermistor\relax }}{154}\protected@file@percent } +\newlabel{tab:therm-read}{{8.1}{154}} +\newlabel{92@xvr}{{}{154}} +\newlabel{92@vr}{{}{154}} +\@writefile{lof}{\contentsline {figure}{\numberline {8.6}{\ignorespaces Output of Xcos diagram to read thermistor values}}{154}\protected@file@percent } +\newlabel{94@xvr}{{}{154}} +\newlabel{94@vr}{{}{154}} +\newlabel{fig:therm-read-output}{{8.6}{154}} +\@writefile{lof}{\contentsline {figure}{\numberline {8.7}{\ignorespaces Xcos diagram to read the value of thermistor, which is used to turn the buzzer on or off}}{155}\protected@file@percent } +\newlabel{96@xvr}{{}{155}} +\newlabel{96@vr}{{}{155}} +\newlabel{fig:therm-buzzer}{{8.7}{155}} +\@writefile{lof}{\contentsline {figure}{\numberline {8.8}{\ignorespaces Output of Xcos diagram to switch buzzer through thermistor values}}{155}\protected@file@percent } +\newlabel{99@xvr}{{}{155}} +\newlabel{99@vr}{{}{155}} +\newlabel{fig:therm-buzzer-output}{{8.8}{155}} +\@writefile{lot}{\contentsline {table}{\numberline {8.2}{\ignorespaces Xcos parameters to read thermistor and switch the buzzer\relax }}{156}\protected@file@percent } +\newlabel{tab:ldr-led}{{8.2}{156}} +\newlabel{97@xvr}{{}{156}} +\newlabel{97@vr}{{}{156}} +\@writefile{toc}{\contentsline {section}{\numberline {8.6}Interfacing the Thermistor from Python}{156}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.6.1}Interfacing the Thermistor}{156}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.6.2}Python Code}{157}\protected@file@percent } +\newlabel{sec:therm-pyhton-code}{{8.6.2}{157}} \@writefile{pyd}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {pymass}{{Python Code}{8.{1}}{}}{155}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{155}\protected@file@percent } -\newlabel{100@xvr}{{}{155}} -\newlabel{100@vr}{{}{155}} -\newlabel{py:therm-read}{{8.{1}}{155}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash read.py}{155}\protected@file@percent } -\@writefile{thm}{\contentsline {pymass}{{Python Code}{8.{2}}{}}{156}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{156}\protected@file@percent } -\newlabel{101@xvr}{{}{156}} -\newlabel{101@vr}{{}{156}} -\newlabel{py:therm-buzzer}{{8.{2}}{156}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash buzzer.py}{156}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {8.7}Interfacing the Thermistor from Julia}{157}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {8.7.1}Interfacing the Thermistor}{157}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {8.7.2}Julia Code}{157}\protected@file@percent } -\newlabel{sec:therm-julia-code}{{8.7.2}{157}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{8.{1}}{}}{157}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{157}\protected@file@percent } +\newlabel{100@xvr}{{}{157}} +\newlabel{100@vr}{{}{157}} +\newlabel{py:therm-read}{{8.{1}}{157}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash read.py}{157}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{8.{2}}{}}{158}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{158}\protected@file@percent } +\newlabel{101@xvr}{{}{158}} +\newlabel{101@vr}{{}{158}} +\newlabel{py:therm-buzzer}{{8.{2}}{158}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash buzzer.py}{158}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {8.7}Interfacing the Thermistor from Julia}{159}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.7.1}Interfacing the Thermistor}{159}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.7.2}Julia Code}{159}\protected@file@percent } +\newlabel{sec:therm-julia-code}{{8.7.2}{159}} \@writefile{juliad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{8.{1}}{}}{157}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{157}\protected@file@percent } -\newlabel{102@xvr}{{}{157}} -\newlabel{102@vr}{{}{157}} -\newlabel{julia:therm-read}{{8.{1}}{157}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash read.jl}{157}\protected@file@percent } -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{8.{2}}{}}{158}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{158}\protected@file@percent } -\newlabel{103@xvr}{{}{158}} -\newlabel{103@vr}{{}{158}} -\newlabel{julia:therm-buzzer}{{8.{2}}{158}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash buzzer.jl}{158}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {8.8}Interfacing the Thermistor from OpenModelica}{158}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {8.8.1}Interfacing the Thermistor}{158}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {8.8.2}OpenModelica Code}{159}\protected@file@percent } -\newlabel{sec:therm-OpenModelica-code}{{8.8.2}{159}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{8.{1}}{}}{159}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{159}\protected@file@percent } +\newlabel{102@xvr}{{}{159}} +\newlabel{102@vr}{{}{159}} +\newlabel{julia:therm-read}{{8.{1}}{159}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash read.jl}{159}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{8.{2}}{}}{160}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{160}\protected@file@percent } +\newlabel{103@xvr}{{}{160}} +\newlabel{103@vr}{{}{160}} +\newlabel{julia:therm-buzzer}{{8.{2}}{160}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash buzzer.jl}{160}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {8.8}Interfacing the Thermistor from OpenModelica}{160}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.8.1}Interfacing the Thermistor}{160}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.8.2}OpenModelica Code}{161}\protected@file@percent } +\newlabel{sec:therm-OpenModelica-code}{{8.8.2}{161}} \@writefile{OpenModelicad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{1}}{}}{159}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{159}\protected@file@percent } -\newlabel{104@xvr}{{}{159}} -\newlabel{104@vr}{{}{159}} -\newlabel{OpenModelica:therm-read}{{8.{1}}{159}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash read.mo}{159}\protected@file@percent } -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{2}}{}}{160}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{160}\protected@file@percent } -\newlabel{105@xvr}{{}{160}} -\newlabel{105@vr}{{}{160}} -\newlabel{OpenModelica:therm-buzzer}{{8.{2}}{160}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash buzzer.mo}{160}\protected@file@percent } -\@writefile{toc}{\contentsline {chapter}{\numberline {9}Controlling a DC motor}{161}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{1}}{}}{161}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{161}\protected@file@percent } +\newlabel{104@xvr}{{}{161}} +\newlabel{104@vr}{{}{161}} +\newlabel{OpenModelica:therm-read}{{8.{1}}{161}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash read.mo}{161}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{2}}{}}{162}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{162}\protected@file@percent } +\newlabel{105@xvr}{{}{162}} +\newlabel{105@vr}{{}{162}} +\newlabel{OpenModelica:therm-buzzer}{{8.{2}}{162}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash buzzer.mo}{162}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {9}Controlling a DC motor}{163}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{dcmotor}{{9}{161}} -\@writefile{toc}{\contentsline {section}{\numberline {9.1}Preliminaries}{161}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {9.1}{\ignorespaces L293D motor driver board\relax }}{162}\protected@file@percent } -\newlabel{fig:motordriverboard}{{9.1}{162}} -\@writefile{lof}{\contentsline {figure}{\numberline {9.2}{\ignorespaces A schematic of DC motor connections\relax }}{163}\protected@file@percent } -\newlabel{fig:dcm-schematic}{{9.2}{163}} -\@writefile{lof}{\contentsline {figure}{\numberline {9.3}{\ignorespaces How to connect the DC motor to the Arduino Uno\ board\relax }}{163}\protected@file@percent } -\newlabel{fig:dcmotorconn}{{9.3}{163}} -\@writefile{toc}{\contentsline {section}{\numberline {9.2}Controlling the DC motor from Arduino}{163}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {9.2.1}Controlling the DC motor}{163}\protected@file@percent } -\newlabel{sec:dcm-ard}{{9.2.1}{163}} -\@writefile{thm}{\contentsline {egmass}{{Exercise}{9.{1}}{}}{164}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {9.2.2}Arduino Code}{165}\protected@file@percent } -\newlabel{sec:dcmotor-arduino-code}{{9.2.2}{165}} +\newlabel{dcmotor}{{9}{163}} +\@writefile{toc}{\contentsline {section}{\numberline {9.1}Preliminaries}{163}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {9.1}{\ignorespaces L293D motor driver board\relax }}{164}\protected@file@percent } +\newlabel{fig:motordriverboard}{{9.1}{164}} +\@writefile{lof}{\contentsline {figure}{\numberline {9.2}{\ignorespaces A schematic of DC motor connections\relax }}{165}\protected@file@percent } +\newlabel{fig:dcm-schematic}{{9.2}{165}} +\@writefile{lof}{\contentsline {figure}{\numberline {9.3}{\ignorespaces How to connect the DC motor to the Arduino Uno\ board\relax }}{165}\protected@file@percent } +\newlabel{fig:dcmotorconn}{{9.3}{165}} +\@writefile{toc}{\contentsline {section}{\numberline {9.2}Controlling the DC motor from Arduino}{165}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.2.1}Controlling the DC motor}{165}\protected@file@percent } +\newlabel{sec:dcm-ard}{{9.2.1}{165}} +\@writefile{thm}{\contentsline {egmass}{{Exercise}{9.{1}}{}}{166}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.2.2}Arduino Code}{167}\protected@file@percent } +\newlabel{sec:dcmotor-arduino-code}{{9.2.2}{167}} \@writefile{ard}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{1}}{}}{165}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{165}\protected@file@percent } -\newlabel{106@xvr}{{}{165}} -\newlabel{106@vr}{{}{165}} -\newlabel{ard:dcmotor-clock}{{9.{1}}{165}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{165}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{2}}{}}{165}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{165}\protected@file@percent } -\newlabel{107@xvr}{{}{165}} -\newlabel{107@vr}{{}{165}} -\newlabel{ard:dcmotor-both}{{9.{2}}{165}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash both/dcmotor\textendash both.ino}{165}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{3}}{}}{165}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{165}\protected@file@percent } -\newlabel{108@xvr}{{}{165}} -\newlabel{108@vr}{{}{165}} -\newlabel{ard:dcmotor-loop}{{9.{3}}{165}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash loop/dcmotor\textendash loop.ino}{166}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {9.3}Controlling the DC motor from Scilab}{166}\protected@file@percent } -\newlabel{sec:dcm-sci}{{9.3}{166}} -\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.1}Initialization}{166}\protected@file@percent } -\@writefile{lot}{\contentsline {table}{\numberline {9.1}{\ignorespaces A numbering convention used in the DC motor breakout board\relax }}{167}\protected@file@percent } -\newlabel{table:convention}{{9.1}{167}} -\@writefile{lot}{\contentsline {table}{\numberline {9.2}{\ignorespaces Parameters for DC motor initialization\relax }}{167}\protected@file@percent } -\newlabel{tab:dcmotor-init}{{9.2}{167}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{167}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.2}Rotation for a specified time}{167}\protected@file@percent } -\newlabel{sec:dc-both}{{9.3.2}{167}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{167}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{168}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{168}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{9.{2}}{}}{168}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.3}Using the capabilities of Scilab}{168}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.4}Scilab Code}{169}\protected@file@percent } -\newlabel{sec:dcmotor-scilab-code}{{9.3.4}{169}} -\@writefile{cod}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{1}}{}}{169}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{169}\protected@file@percent } -\newlabel{109@xvr}{{}{169}} -\newlabel{109@vr}{{}{169}} -\newlabel{sci:dcmotor-clock}{{9.{1}}{169}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{1}}{}}{167}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{167}\protected@file@percent } +\newlabel{106@xvr}{{}{167}} +\newlabel{106@vr}{{}{167}} +\newlabel{ard:dcmotor-clock}{{9.{1}}{167}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{167}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{2}}{}}{167}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{167}\protected@file@percent } +\newlabel{107@xvr}{{}{167}} +\newlabel{107@vr}{{}{167}} +\newlabel{ard:dcmotor-both}{{9.{2}}{167}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash both/dcmotor\textendash both.ino}{167}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{3}}{}}{167}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{167}\protected@file@percent } +\newlabel{108@xvr}{{}{167}} +\newlabel{108@vr}{{}{167}} +\newlabel{ard:dcmotor-loop}{{9.{3}}{167}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash loop/dcmotor\textendash loop.ino}{168}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {9.3}Controlling the DC motor from Scilab}{168}\protected@file@percent } +\newlabel{sec:dcm-sci}{{9.3}{168}} +\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.1}Initialization}{168}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {9.1}{\ignorespaces A numbering convention used in the DC motor breakout board\relax }}{169}\protected@file@percent } +\newlabel{table:convention}{{9.1}{169}} +\@writefile{lot}{\contentsline {table}{\numberline {9.2}{\ignorespaces Parameters for DC motor initialization\relax }}{169}\protected@file@percent } +\newlabel{tab:dcmotor-init}{{9.2}{169}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{169}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{2}}{}}{169}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{169}\protected@file@percent } -\newlabel{110@xvr}{{}{169}} -\newlabel{110@vr}{{}{169}} -\newlabel{sci:dcmotor-both}{{9.{2}}{169}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash both.sce}{169}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{3}}{}}{169}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{169}\protected@file@percent } -\newlabel{111@xvr}{{}{169}} -\newlabel{111@vr}{{}{169}} -\newlabel{sci:dcmotor-loop}{{9.{3}}{169}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash loop.sce}{169}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {9.4}{\ignorespaces Control of DC motor for a specified time from Xcos}}{170}\protected@file@percent } -\newlabel{113@xvr}{{}{170}} -\newlabel{113@vr}{{}{170}} -\newlabel{fig:dcmotor-clock}{{9.4}{170}} -\@writefile{toc}{\contentsline {section}{\numberline {9.4}Controlling the DC Motor from Xcos}{170}\protected@file@percent } -\@writefile{lot}{\contentsline {table}{\numberline {9.3}{\ignorespaces Xcos parameters to drive the DC motor for a specified time\relax }}{171}\protected@file@percent } -\newlabel{tab:dcmotor-clock}{{9.3}{171}} -\newlabel{114@xvr}{{}{171}} -\newlabel{114@vr}{{}{171}} -\@writefile{thm}{\contentsline {egmass}{{Exercise}{9.{3}}{}}{171}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {9.5}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{172}\protected@file@percent } -\newlabel{116@xvr}{{}{172}} -\newlabel{116@vr}{{}{172}} -\newlabel{fig:dcmotor-both}{{9.5}{172}} -\@writefile{lot}{\contentsline {table}{\numberline {9.4}{\ignorespaces Xcos parameters to drive the DC motor in forward and reverse directions\relax }}{172}\protected@file@percent } -\newlabel{tab:dcmotor-both}{{9.4}{172}} -\newlabel{117@xvr}{{}{172}} -\newlabel{117@vr}{{}{172}} -\@writefile{lof}{\contentsline {figure}{\numberline {9.6}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{173}\protected@file@percent } -\newlabel{119@xvr}{{}{173}} -\newlabel{119@vr}{{}{173}} -\newlabel{fig:dcmotor-loop}{{9.6}{173}} -\@writefile{toc}{\contentsline {section}{\numberline {9.5}Controlling the DC Motor from Python}{173}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {9.5.1}Controlling the DC Motor}{173}\protected@file@percent } -\@writefile{lot}{\contentsline {table}{\numberline {9.5}{\ignorespaces Xcos parameters to drive the DC motor in a loop\relax }}{174}\protected@file@percent } -\newlabel{tab:dcmotor-loop}{{9.5}{174}} -\newlabel{120@xvr}{{}{174}} -\newlabel{120@vr}{{}{174}} -\@writefile{toc}{\contentsline {subsection}{\numberline {9.5.2}Python Code}{175}\protected@file@percent } -\newlabel{sec:dcmotor-python-code}{{9.5.2}{175}} +\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.2}Rotation for a specified time}{169}\protected@file@percent } +\newlabel{sec:dc-both}{{9.3.2}{169}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{169}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{170}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{170}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{9.{2}}{}}{170}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.3}Using the capabilities of Scilab}{170}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.4}Scilab Code}{171}\protected@file@percent } +\newlabel{sec:dcmotor-scilab-code}{{9.3.4}{171}} +\@writefile{cod}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{1}}{}}{171}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{171}\protected@file@percent } +\newlabel{109@xvr}{{}{171}} +\newlabel{109@vr}{{}{171}} +\newlabel{sci:dcmotor-clock}{{9.{1}}{171}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{171}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{2}}{}}{171}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{171}\protected@file@percent } +\newlabel{110@xvr}{{}{171}} +\newlabel{110@vr}{{}{171}} +\newlabel{sci:dcmotor-both}{{9.{2}}{171}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash both.sce}{171}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{3}}{}}{171}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{171}\protected@file@percent } +\newlabel{111@xvr}{{}{171}} +\newlabel{111@vr}{{}{171}} +\newlabel{sci:dcmotor-loop}{{9.{3}}{171}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash loop.sce}{171}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {9.4}{\ignorespaces Control of DC motor for a specified time from Xcos}}{172}\protected@file@percent } +\newlabel{113@xvr}{{}{172}} +\newlabel{113@vr}{{}{172}} +\newlabel{fig:dcmotor-clock}{{9.4}{172}} +\@writefile{toc}{\contentsline {section}{\numberline {9.4}Controlling the DC Motor from Xcos}{172}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {9.3}{\ignorespaces Xcos parameters to drive the DC motor for a specified time\relax }}{173}\protected@file@percent } +\newlabel{tab:dcmotor-clock}{{9.3}{173}} +\newlabel{114@xvr}{{}{173}} +\newlabel{114@vr}{{}{173}} +\@writefile{thm}{\contentsline {egmass}{{Exercise}{9.{3}}{}}{173}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {9.5}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{174}\protected@file@percent } +\newlabel{116@xvr}{{}{174}} +\newlabel{116@vr}{{}{174}} +\newlabel{fig:dcmotor-both}{{9.5}{174}} +\@writefile{lot}{\contentsline {table}{\numberline {9.4}{\ignorespaces Xcos parameters to drive the DC motor in forward and reverse directions\relax }}{174}\protected@file@percent } +\newlabel{tab:dcmotor-both}{{9.4}{174}} +\newlabel{117@xvr}{{}{174}} +\newlabel{117@vr}{{}{174}} +\@writefile{lof}{\contentsline {figure}{\numberline {9.6}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{175}\protected@file@percent } +\newlabel{119@xvr}{{}{175}} +\newlabel{119@vr}{{}{175}} +\newlabel{fig:dcmotor-loop}{{9.6}{175}} +\@writefile{toc}{\contentsline {section}{\numberline {9.5}Controlling the DC Motor from Python}{175}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.5.1}Controlling the DC Motor}{175}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {9.5}{\ignorespaces Xcos parameters to drive the DC motor in a loop\relax }}{176}\protected@file@percent } +\newlabel{tab:dcmotor-loop}{{9.5}{176}} +\newlabel{120@xvr}{{}{176}} +\newlabel{120@vr}{{}{176}} +\@writefile{toc}{\contentsline {subsection}{\numberline {9.5.2}Python Code}{177}\protected@file@percent } +\newlabel{sec:dcmotor-python-code}{{9.5.2}{177}} \@writefile{pyd}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {pymass}{{Python Code}{9.{1}}{}}{175}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{175}\protected@file@percent } -\newlabel{121@xvr}{{}{175}} -\newlabel{121@vr}{{}{175}} -\newlabel{py:dcmotor-clock}{{9.{1}}{175}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash clock.py}{175}\protected@file@percent } -\@writefile{thm}{\contentsline {pymass}{{Python Code}{9.{2}}{}}{176}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{176}\protected@file@percent } -\newlabel{122@xvr}{{}{176}} -\newlabel{122@vr}{{}{176}} -\newlabel{py:dcmotor-both}{{9.{2}}{176}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash both.py}{176}\protected@file@percent } -\@writefile{thm}{\contentsline {pymass}{{Python Code}{9.{3}}{}}{176}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{176}\protected@file@percent } -\newlabel{123@xvr}{{}{177}} -\newlabel{123@vr}{{}{177}} -\newlabel{py:dcmotor-loop}{{9.{3}}{177}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash loop.py}{177}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {9.6}Controlling the DC Motor from Julia}{178}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {9.6.1}Controlling the DC Motor}{178}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {9.6.2}Julia Code}{178}\protected@file@percent } -\newlabel{sec:dcmotor-julia-code}{{9.6.2}{178}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{9.{1}}{}}{177}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{177}\protected@file@percent } +\newlabel{121@xvr}{{}{177}} +\newlabel{121@vr}{{}{177}} +\newlabel{py:dcmotor-clock}{{9.{1}}{177}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash clock.py}{177}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{9.{2}}{}}{178}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{178}\protected@file@percent } +\newlabel{122@xvr}{{}{178}} +\newlabel{122@vr}{{}{178}} +\newlabel{py:dcmotor-both}{{9.{2}}{178}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash both.py}{178}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{9.{3}}{}}{178}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{178}\protected@file@percent } +\newlabel{123@xvr}{{}{179}} +\newlabel{123@vr}{{}{179}} +\newlabel{py:dcmotor-loop}{{9.{3}}{179}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash loop.py}{179}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {9.6}Controlling the DC Motor from Julia}{180}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.6.1}Controlling the DC Motor}{180}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.6.2}Julia Code}{180}\protected@file@percent } +\newlabel{sec:dcmotor-julia-code}{{9.6.2}{180}} \@writefile{juliad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{9.{1}}{}}{178}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{178}\protected@file@percent } -\newlabel{124@xvr}{{}{178}} -\newlabel{124@vr}{{}{178}} -\newlabel{julia:dcmotor-clock}{{9.{1}}{178}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash clock.jl}{178}\protected@file@percent } -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{9.{2}}{}}{179}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{179}\protected@file@percent } -\newlabel{125@xvr}{{}{179}} -\newlabel{125@vr}{{}{179}} -\newlabel{julia:dcmotor-both}{{9.{2}}{179}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash both.jl}{179}\protected@file@percent } -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{9.{3}}{}}{179}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{179}\protected@file@percent } -\newlabel{126@xvr}{{}{179}} -\newlabel{126@vr}{{}{179}} -\newlabel{julia:dcmotor-loop}{{9.{3}}{179}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash loop.jl}{179}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {9.7}Controlling the DC Motor from OpenModelica}{179}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {9.7.1}Controlling the DC Motor}{179}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {9.7.2}OpenModelica Code}{180}\protected@file@percent } -\newlabel{sec:dcmotor-OpenModelica-code}{{9.7.2}{180}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{9.{1}}{}}{180}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{180}\protected@file@percent } +\newlabel{124@xvr}{{}{180}} +\newlabel{124@vr}{{}{180}} +\newlabel{julia:dcmotor-clock}{{9.{1}}{180}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash clock.jl}{180}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{9.{2}}{}}{181}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{181}\protected@file@percent } +\newlabel{125@xvr}{{}{181}} +\newlabel{125@vr}{{}{181}} +\newlabel{julia:dcmotor-both}{{9.{2}}{181}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash both.jl}{181}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{9.{3}}{}}{181}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{181}\protected@file@percent } +\newlabel{126@xvr}{{}{181}} +\newlabel{126@vr}{{}{181}} +\newlabel{julia:dcmotor-loop}{{9.{3}}{181}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash loop.jl}{181}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {9.7}Controlling the DC Motor from OpenModelica}{181}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.7.1}Controlling the DC Motor}{181}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.7.2}OpenModelica Code}{182}\protected@file@percent } +\newlabel{sec:dcmotor-OpenModelica-code}{{9.7.2}{182}} \@writefile{OpenModelicad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{1}}{}}{180}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{180}\protected@file@percent } -\newlabel{127@xvr}{{}{180}} -\newlabel{127@vr}{{}{180}} -\newlabel{OpenModelica:dcmotor-clock}{{9.{1}}{180}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash clock.mo}{180}\protected@file@percent } -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{2}}{}}{180}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{180}\protected@file@percent } -\newlabel{128@xvr}{{}{180}} -\newlabel{128@vr}{{}{180}} -\newlabel{OpenModelica:dcmotor-both}{{9.{2}}{180}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash both.mo}{181}\protected@file@percent } -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{3}}{}}{181}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{181}\protected@file@percent } -\newlabel{129@xvr}{{}{181}} -\newlabel{129@vr}{{}{181}} -\newlabel{OpenModelica:dcmotor-loop}{{9.{3}}{181}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash loop.mo}{181}\protected@file@percent } -\@writefile{toc}{\contentsline {chapter}{\numberline {10}Interfacing a Servomotor}{183}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{1}}{}}{182}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{182}\protected@file@percent } +\newlabel{127@xvr}{{}{182}} +\newlabel{127@vr}{{}{182}} +\newlabel{OpenModelica:dcmotor-clock}{{9.{1}}{182}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash clock.mo}{182}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{2}}{}}{182}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{182}\protected@file@percent } +\newlabel{128@xvr}{{}{182}} +\newlabel{128@vr}{{}{182}} +\newlabel{OpenModelica:dcmotor-both}{{9.{2}}{182}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash both.mo}{183}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{3}}{}}{183}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{183}\protected@file@percent } +\newlabel{129@xvr}{{}{183}} +\newlabel{129@vr}{{}{183}} +\newlabel{OpenModelica:dcmotor-loop}{{9.{3}}{183}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash loop.mo}{183}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {10}Interfacing a Servomotor}{185}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{sec:servo}{{10}{183}} -\@writefile{toc}{\contentsline {section}{\numberline {10.1}Preliminaries}{183}\protected@file@percent } -\@writefile{lot}{\contentsline {table}{\numberline {10.1}{\ignorespaces Connecting a typical servomotor to Arduino Uno\ board\relax }}{184}\protected@file@percent } -\newlabel{tab:servo-connect}{{10.1}{184}} -\@writefile{toc}{\contentsline {section}{\numberline {10.2}Controlling the Servometer through the Arduino IDE}{184}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.2.1}Controlling the Servometer}{184}\protected@file@percent } -\newlabel{sec:servo-ard}{{10.2.1}{184}} -\@writefile{thm}{\contentsline {egmass}{{Exercise}{10.{1}}{}}{185}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.2.2}Arduino Code}{185}\protected@file@percent } -\newlabel{sec:servo-arduino-code}{{10.2.2}{185}} +\newlabel{sec:servo}{{10}{185}} +\@writefile{toc}{\contentsline {section}{\numberline {10.1}Preliminaries}{185}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {10.1}{\ignorespaces Connecting a typical servomotor to Arduino Uno\ board\relax }}{186}\protected@file@percent } +\newlabel{tab:servo-connect}{{10.1}{186}} +\@writefile{toc}{\contentsline {section}{\numberline {10.2}Controlling the Servometer through the Arduino IDE}{186}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.2.1}Controlling the Servometer}{186}\protected@file@percent } +\newlabel{sec:servo-ard}{{10.2.1}{186}} +\@writefile{thm}{\contentsline {egmass}{{Exercise}{10.{1}}{}}{187}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.2.2}Arduino Code}{187}\protected@file@percent } +\newlabel{sec:servo-arduino-code}{{10.2.2}{187}} \@writefile{ard}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{1}}{}}{185}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{185}\protected@file@percent } -\newlabel{130@xvr}{{}{185}} -\newlabel{130@vr}{{}{185}} -\newlabel{ard:servo-init}{{10.{1}}{185}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash init/servo\textendash init.ino}{185}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{2}}{}}{186}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{186}\protected@file@percent } -\newlabel{131@xvr}{{}{186}} -\newlabel{131@vr}{{}{186}} -\newlabel{ard:servo-reverse}{{10.{2}}{186}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash reverse/servo\textendash reverse.ino}{186}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{3}}{}}{186}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in increments}{186}\protected@file@percent } -\newlabel{132@xvr}{{}{186}} -\newlabel{132@vr}{{}{186}} -\newlabel{ard:servo-loop}{{10.{3}}{186}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash loop/servo\textendash loop.ino}{186}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{4}}{}}{187}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {10.{4}}Rotating the servomotor through the potentiometer}{187}\protected@file@percent } -\newlabel{133@xvr}{{}{187}} -\newlabel{133@vr}{{}{187}} -\newlabel{ard:servo-pot}{{10.{4}}{187}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash pot/servo\textendash pot.ino}{187}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {10.3}Controlling the Servomotor through Scilab}{187}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.3.1}Controlling the Servomotor}{187}\protected@file@percent } -\newlabel{sec:servo-sci}{{10.3.1}{187}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash init.sce}{187}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash pot.sce}{188}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash pot.sce}{188}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.3.2}Scilab Code}{188}\protected@file@percent } -\newlabel{sec:servo-scilab-code}{{10.3.2}{188}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{1}}{}}{187}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{187}\protected@file@percent } +\newlabel{130@xvr}{{}{187}} +\newlabel{130@vr}{{}{187}} +\newlabel{ard:servo-init}{{10.{1}}{187}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash init/servo\textendash init.ino}{187}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{2}}{}}{188}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{188}\protected@file@percent } +\newlabel{131@xvr}{{}{188}} +\newlabel{131@vr}{{}{188}} +\newlabel{ard:servo-reverse}{{10.{2}}{188}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash reverse/servo\textendash reverse.ino}{188}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{3}}{}}{188}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in increments}{188}\protected@file@percent } +\newlabel{132@xvr}{{}{188}} +\newlabel{132@vr}{{}{188}} +\newlabel{ard:servo-loop}{{10.{3}}{188}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash loop/servo\textendash loop.ino}{188}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{4}}{}}{189}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {10.{4}}Rotating the servomotor through the potentiometer}{189}\protected@file@percent } +\newlabel{133@xvr}{{}{189}} +\newlabel{133@vr}{{}{189}} +\newlabel{ard:servo-pot}{{10.{4}}{189}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash pot/servo\textendash pot.ino}{189}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {10.3}Controlling the Servomotor through Scilab}{189}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.3.1}Controlling the Servomotor}{189}\protected@file@percent } +\newlabel{sec:servo-sci}{{10.3.1}{189}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash init.sce}{189}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash pot.sce}{190}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash pot.sce}{190}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.3.2}Scilab Code}{190}\protected@file@percent } +\newlabel{sec:servo-scilab-code}{{10.3.2}{190}} \@writefile{cod}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{1}}{}}{188}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{188}\protected@file@percent } -\newlabel{134@xvr}{{}{188}} -\newlabel{134@vr}{{}{188}} -\newlabel{sci:servo-init}{{10.{1}}{188}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash init.sce}{188}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{2}}{}}{188}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{188}\protected@file@percent } -\newlabel{135@xvr}{{}{188}} -\newlabel{135@vr}{{}{188}} -\newlabel{sci:servo-reverse}{{10.{2}}{188}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash reverse.sce}{189}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{3}}{}}{189}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{189}\protected@file@percent } -\newlabel{136@xvr}{{}{189}} -\newlabel{136@vr}{{}{189}} -\newlabel{sci:servo-loop}{{10.{3}}{189}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash loop.sce}{189}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{4}}{}}{189}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{189}\protected@file@percent } -\newlabel{137@xvr}{{}{189}} -\newlabel{137@vr}{{}{189}} -\newlabel{sci:servo-pot}{{10.{4}}{189}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash pot.sce}{189}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {10.4}Controling the Servomotor through Xcos}{189}\protected@file@percent } -\newlabel{sec:servo-xcos}{{10.4}{189}} -\@writefile{lof}{\contentsline {figure}{\numberline {10.1}{\ignorespaces Rotating the servomotor by a fixed angle}}{190}\protected@file@percent } -\newlabel{139@xvr}{{}{190}} -\newlabel{139@vr}{{}{190}} -\newlabel{fig:servo-init}{{10.1}{190}} -\@writefile{lot}{\contentsline {table}{\numberline {10.2}{\ignorespaces Parameters to rotate the servomotor by $30^\circ $\relax }}{190}\protected@file@percent } -\newlabel{tab:servo-init}{{10.2}{190}} -\newlabel{140@xvr}{{}{190}} -\newlabel{140@vr}{{}{190}} -\@writefile{lof}{\contentsline {figure}{\numberline {10.2}{\ignorespaces Rotating the servomotor forward and then reverse}}{191}\protected@file@percent } -\newlabel{142@xvr}{{}{191}} -\newlabel{142@vr}{{}{191}} -\newlabel{fig:servo-reverse}{{10.2}{191}} -\@writefile{lot}{\contentsline {table}{\numberline {10.3}{\ignorespaces Parameters to rotate the servomotor forward and reverse\relax }}{192}\protected@file@percent } -\newlabel{tab:servo-reverse}{{10.3}{192}} -\newlabel{143@xvr}{{}{192}} -\newlabel{143@vr}{{}{192}} -\@writefile{lof}{\contentsline {figure}{\numberline {10.3}{\ignorespaces Rotating the servomotor in increments of $20^\circ $}}{192}\protected@file@percent } -\newlabel{145@xvr}{{}{192}} -\newlabel{145@vr}{{}{192}} -\newlabel{fig:servo-loop}{{10.3}{192}} -\@writefile{lot}{\contentsline {table}{\numberline {10.4}{\ignorespaces Parameters to make the servomotor to sweep the entire range in increments\relax }}{193}\protected@file@percent } -\newlabel{tab:servo-loop}{{10.4}{193}} -\newlabel{146@xvr}{{}{193}} -\newlabel{146@vr}{{}{193}} -\@writefile{lof}{\contentsline {figure}{\numberline {10.4}{\ignorespaces Rotating the servomotor as suggested by the potentiometer}}{193}\protected@file@percent } -\newlabel{148@xvr}{{}{193}} -\newlabel{148@vr}{{}{193}} -\newlabel{fig:servo-pot}{{10.4}{193}} -\@writefile{lot}{\contentsline {table}{\numberline {10.5}{\ignorespaces Parameters to rotate the servomotor based on the input from the potentiometer\relax }}{194}\protected@file@percent } -\newlabel{tab:servo-pot}{{10.5}{194}} -\newlabel{149@xvr}{{}{194}} -\newlabel{149@vr}{{}{194}} -\@writefile{toc}{\contentsline {section}{\numberline {10.5}Controlling the Servomotor through Python}{194}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.5.1}Controlling the Servomotor}{194}\protected@file@percent } -\newlabel{sec:servo-py}{{10.5.1}{194}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash init.py}{194}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash pot.py}{195}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash pot.py}{195}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.5.2}Python Code}{195}\protected@file@percent } -\newlabel{sec:servo-python-code}{{10.5.2}{195}} +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{1}}{}}{190}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{190}\protected@file@percent } +\newlabel{134@xvr}{{}{190}} +\newlabel{134@vr}{{}{190}} +\newlabel{sci:servo-init}{{10.{1}}{190}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash init.sce}{190}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{2}}{}}{190}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{190}\protected@file@percent } +\newlabel{135@xvr}{{}{190}} +\newlabel{135@vr}{{}{190}} +\newlabel{sci:servo-reverse}{{10.{2}}{190}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash reverse.sce}{191}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{3}}{}}{191}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{191}\protected@file@percent } +\newlabel{136@xvr}{{}{191}} +\newlabel{136@vr}{{}{191}} +\newlabel{sci:servo-loop}{{10.{3}}{191}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash loop.sce}{191}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{4}}{}}{191}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{191}\protected@file@percent } +\newlabel{137@xvr}{{}{191}} +\newlabel{137@vr}{{}{191}} +\newlabel{sci:servo-pot}{{10.{4}}{191}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash pot.sce}{191}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {10.4}Controling the Servomotor through Xcos}{191}\protected@file@percent } +\newlabel{sec:servo-xcos}{{10.4}{191}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.1}{\ignorespaces Rotating the servomotor by a fixed angle}}{192}\protected@file@percent } +\newlabel{139@xvr}{{}{192}} +\newlabel{139@vr}{{}{192}} +\newlabel{fig:servo-init}{{10.1}{192}} +\@writefile{lot}{\contentsline {table}{\numberline {10.2}{\ignorespaces Parameters to rotate the servomotor by $30^\circ $\relax }}{192}\protected@file@percent } +\newlabel{tab:servo-init}{{10.2}{192}} +\newlabel{140@xvr}{{}{192}} +\newlabel{140@vr}{{}{192}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.2}{\ignorespaces Rotating the servomotor forward and then reverse}}{193}\protected@file@percent } +\newlabel{142@xvr}{{}{193}} +\newlabel{142@vr}{{}{193}} +\newlabel{fig:servo-reverse}{{10.2}{193}} +\@writefile{lot}{\contentsline {table}{\numberline {10.3}{\ignorespaces Parameters to rotate the servomotor forward and reverse\relax }}{194}\protected@file@percent } +\newlabel{tab:servo-reverse}{{10.3}{194}} +\newlabel{143@xvr}{{}{194}} +\newlabel{143@vr}{{}{194}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.3}{\ignorespaces Rotating the servomotor in increments of $20^\circ $}}{194}\protected@file@percent } +\newlabel{145@xvr}{{}{194}} +\newlabel{145@vr}{{}{194}} +\newlabel{fig:servo-loop}{{10.3}{194}} +\@writefile{lot}{\contentsline {table}{\numberline {10.4}{\ignorespaces Parameters to make the servomotor to sweep the entire range in increments\relax }}{195}\protected@file@percent } +\newlabel{tab:servo-loop}{{10.4}{195}} +\newlabel{146@xvr}{{}{195}} +\newlabel{146@vr}{{}{195}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.4}{\ignorespaces Rotating the servomotor as suggested by the potentiometer}}{195}\protected@file@percent } +\newlabel{148@xvr}{{}{195}} +\newlabel{148@vr}{{}{195}} +\newlabel{fig:servo-pot}{{10.4}{195}} +\@writefile{lot}{\contentsline {table}{\numberline {10.5}{\ignorespaces Parameters to rotate the servomotor based on the input from the potentiometer\relax }}{196}\protected@file@percent } +\newlabel{tab:servo-pot}{{10.5}{196}} +\newlabel{149@xvr}{{}{196}} +\newlabel{149@vr}{{}{196}} +\@writefile{toc}{\contentsline {section}{\numberline {10.5}Controlling the Servomotor through Python}{196}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.5.1}Controlling the Servomotor}{196}\protected@file@percent } +\newlabel{sec:servo-py}{{10.5.1}{196}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash init.py}{196}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash pot.py}{197}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash pot.py}{197}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.5.2}Python Code}{197}\protected@file@percent } +\newlabel{sec:servo-python-code}{{10.5.2}{197}} \@writefile{pyd}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {pymass}{{Python Code}{10.{1}}{}}{195}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{195}\protected@file@percent } -\newlabel{150@xvr}{{}{195}} -\newlabel{150@vr}{{}{195}} -\newlabel{py:servo-init}{{10.{1}}{195}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash init.py}{195}\protected@file@percent } -\@writefile{thm}{\contentsline {pymass}{{Python Code}{10.{2}}{}}{196}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{196}\protected@file@percent } -\newlabel{151@xvr}{{}{196}} -\newlabel{151@vr}{{}{196}} -\newlabel{py:servo-reverse}{{10.{2}}{196}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash reverse.py}{196}\protected@file@percent } -\@writefile{thm}{\contentsline {pymass}{{Python Code}{10.{3}}{}}{197}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{197}\protected@file@percent } -\newlabel{152@xvr}{{}{197}} -\newlabel{152@vr}{{}{197}} -\newlabel{sci:servo-loop}{{10.{3}}{197}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash loop.py}{197}\protected@file@percent } -\@writefile{thm}{\contentsline {pymass}{{Python Code}{10.{4}}{}}{198}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{198}\protected@file@percent } -\newlabel{153@xvr}{{}{198}} -\newlabel{153@vr}{{}{198}} -\newlabel{py:servo-pot}{{10.{4}}{198}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash pot.py}{198}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {10.6}Controlling the Servomotor through Julia}{199}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.6.1}Controlling the Servomotor}{199}\protected@file@percent } -\newlabel{sec:servo-julia}{{10.6.1}{199}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash init.jl}{199}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash pot.jl}{200}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash pot.jl}{200}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.6.2}Julia Code}{200}\protected@file@percent } -\newlabel{sec:servo-julia-code}{{10.6.2}{200}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{10.{1}}{}}{197}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{197}\protected@file@percent } +\newlabel{150@xvr}{{}{197}} +\newlabel{150@vr}{{}{197}} +\newlabel{py:servo-init}{{10.{1}}{197}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash init.py}{197}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{10.{2}}{}}{198}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{198}\protected@file@percent } +\newlabel{151@xvr}{{}{198}} +\newlabel{151@vr}{{}{198}} +\newlabel{py:servo-reverse}{{10.{2}}{198}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash reverse.py}{198}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{10.{3}}{}}{199}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{199}\protected@file@percent } +\newlabel{152@xvr}{{}{199}} +\newlabel{152@vr}{{}{199}} +\newlabel{sci:servo-loop}{{10.{3}}{199}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash loop.py}{199}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{10.{4}}{}}{200}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{200}\protected@file@percent } +\newlabel{153@xvr}{{}{200}} +\newlabel{153@vr}{{}{200}} +\newlabel{py:servo-pot}{{10.{4}}{200}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash pot.py}{200}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {10.6}Controlling the Servomotor through Julia}{201}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.6.1}Controlling the Servomotor}{201}\protected@file@percent } +\newlabel{sec:servo-julia}{{10.6.1}{201}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash init.jl}{201}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash pot.jl}{202}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash pot.jl}{202}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.6.2}Julia Code}{202}\protected@file@percent } +\newlabel{sec:servo-julia-code}{{10.6.2}{202}} \@writefile{juliad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{1}}{}}{200}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{200}\protected@file@percent } -\newlabel{154@xvr}{{}{200}} -\newlabel{154@vr}{{}{200}} -\newlabel{julia:servo-init}{{10.{1}}{200}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash init.jl}{200}\protected@file@percent } -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{2}}{}}{200}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{200}\protected@file@percent } -\newlabel{155@xvr}{{}{200}} -\newlabel{155@vr}{{}{200}} -\newlabel{julia:servo-reverse}{{10.{2}}{200}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash reverse.jl}{200}\protected@file@percent } -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{3}}{}}{201}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{201}\protected@file@percent } -\newlabel{156@xvr}{{}{201}} -\newlabel{156@vr}{{}{201}} -\newlabel{julia:servo-loop}{{10.{3}}{201}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash loop.jl}{201}\protected@file@percent } -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{4}}{}}{201}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{201}\protected@file@percent } -\newlabel{157@xvr}{{}{201}} -\newlabel{157@vr}{{}{201}} -\newlabel{julia:servo-pot}{{10.{4}}{201}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash pot.jl}{201}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {10.7}Controlling the Servomotor through OpenModelica}{201}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.7.1}Controlling the Servomotor}{201}\protected@file@percent } -\newlabel{sec:servo-OpenModelica}{{10.7.1}{201}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash init.mo}{202}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textunderscore pot.mo}{202}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textunderscore pot.mo}{202}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.7.2}OpenModelica Code}{202}\protected@file@percent } -\newlabel{sec:servo-OpenModelica-code}{{10.7.2}{202}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{1}}{}}{202}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{202}\protected@file@percent } +\newlabel{154@xvr}{{}{202}} +\newlabel{154@vr}{{}{202}} +\newlabel{julia:servo-init}{{10.{1}}{202}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash init.jl}{202}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{2}}{}}{202}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{202}\protected@file@percent } +\newlabel{155@xvr}{{}{202}} +\newlabel{155@vr}{{}{202}} +\newlabel{julia:servo-reverse}{{10.{2}}{202}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash reverse.jl}{202}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{3}}{}}{203}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{203}\protected@file@percent } +\newlabel{156@xvr}{{}{203}} +\newlabel{156@vr}{{}{203}} +\newlabel{julia:servo-loop}{{10.{3}}{203}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash loop.jl}{203}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{4}}{}}{203}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{203}\protected@file@percent } +\newlabel{157@xvr}{{}{203}} +\newlabel{157@vr}{{}{203}} +\newlabel{julia:servo-pot}{{10.{4}}{203}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash pot.jl}{203}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {10.7}Controlling the Servomotor through OpenModelica}{203}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.7.1}Controlling the Servomotor}{203}\protected@file@percent } +\newlabel{sec:servo-OpenModelica}{{10.7.1}{203}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash init.mo}{204}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textunderscore pot.mo}{204}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textunderscore pot.mo}{204}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.7.2}OpenModelica Code}{204}\protected@file@percent } +\newlabel{sec:servo-OpenModelica-code}{{10.7.2}{204}} \@writefile{OpenModelicad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{1}}{}}{202}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{202}\protected@file@percent } -\newlabel{158@xvr}{{}{202}} -\newlabel{158@vr}{{}{202}} -\newlabel{OpenModelica:servo-init}{{10.{1}}{202}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash init.mo}{202}\protected@file@percent } -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{2}}{}}{203}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{203}\protected@file@percent } -\newlabel{159@xvr}{{}{203}} -\newlabel{159@vr}{{}{203}} -\newlabel{OpenModelica:servo-reverse}{{10.{2}}{203}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash reverse.mo}{203}\protected@file@percent } -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{3}}{}}{204}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{204}\protected@file@percent } -\newlabel{160@xvr}{{}{204}} -\newlabel{160@vr}{{}{204}} -\newlabel{OpenModelica:servo-loop}{{10.{3}}{204}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash loop.mo}{204}\protected@file@percent } -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{4}}{}}{204}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{204}\protected@file@percent } -\newlabel{161@xvr}{{}{204}} -\newlabel{161@vr}{{}{204}} -\newlabel{OpenModelica:servo-pot}{{10.{4}}{204}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textunderscore pot.mo}{205}\protected@file@percent } -\@writefile{toc}{\contentsline {chapter}{\numberline {11}Implementation of Modbus Protocol}{207}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{1}}{}}{204}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{204}\protected@file@percent } +\newlabel{158@xvr}{{}{204}} +\newlabel{158@vr}{{}{204}} +\newlabel{OpenModelica:servo-init}{{10.{1}}{204}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash init.mo}{204}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{2}}{}}{205}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{205}\protected@file@percent } +\newlabel{159@xvr}{{}{205}} +\newlabel{159@vr}{{}{205}} +\newlabel{OpenModelica:servo-reverse}{{10.{2}}{205}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash reverse.mo}{205}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{3}}{}}{206}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{206}\protected@file@percent } +\newlabel{160@xvr}{{}{206}} +\newlabel{160@vr}{{}{206}} +\newlabel{OpenModelica:servo-loop}{{10.{3}}{206}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash loop.mo}{206}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{4}}{}}{206}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{206}\protected@file@percent } +\newlabel{161@xvr}{{}{206}} +\newlabel{161@vr}{{}{206}} +\newlabel{OpenModelica:servo-pot}{{10.{4}}{206}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textunderscore pot.mo}{207}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {11}Implementation of Modbus Protocol}{209}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{modbus}{{11}{207}} -\@writefile{toc}{\contentsline {section}{\numberline {11.1}Preliminaries}{207}\protected@file@percent } -\newlabel{fig:mod-block}{{\caption@xref {fig:mod-block}{ on input line 72}}{208}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.1}{\ignorespaces Block diagram representation of the Protocol\relax }}{208}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {11.2}{\ignorespaces Master-Slave Query-Response Cycle\relax }}{208}\protected@file@percent } -\newlabel{fig:mod-master-slave}{{11.2}{208}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.3}{\ignorespaces Pins in RS485 module\relax }}{209}\protected@file@percent } -\newlabel{fig:rs-485}{{11.3}{209}} -\@writefile{lot}{\contentsline {table}{\numberline {11.1}{\ignorespaces Interpretation of a request packet\relax }}{210}\protected@file@percent } -\newlabel{tab:request-packet}{{11.1}{210}} -\@writefile{lot}{\contentsline {table}{\numberline {11.2}{\ignorespaces Interpretation of a response packet\relax }}{210}\protected@file@percent } -\newlabel{tab:response-packet}{{11.2}{210}} -\@writefile{lot}{\contentsline {table}{\numberline {11.3}{\ignorespaces Hexadecimal to Decimal\relax }}{211}\protected@file@percent } -\newlabel{tab:ieee-decimal}{{11.3}{211}} -\@writefile{lot}{\contentsline {table}{\numberline {11.4}{\ignorespaces Single and Double Precision Representation\relax }}{211}\protected@file@percent } -\newlabel{tab:single-precision}{{11.4}{211}} -\@writefile{toc}{\contentsline {section}{\numberline {11.2}Objective}{212}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {11.3}Energy Meter set up for Modbus protocol with Arduino Uno}{212}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {11.4}{\ignorespaces MODBUS Set Up for Energy Meter\relax }}{213}\protected@file@percent } -\newlabel{fig:full-set-up}{{11.4}{213}} -\@writefile{toc}{\contentsline {section}{\numberline {11.4}Software}{213}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {11.5}{\ignorespaces Block Diagram for Energy Meter Setup\relax }}{214}\protected@file@percent } -\newlabel{fig:block-diagram}{{11.5}{214}} -\@writefile{toc}{\contentsline {section}{\numberline {11.5}Output}{214}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {11.6}{\ignorespaces Flowchart of Arduino firmware\relax }}{215}\protected@file@percent } -\newlabel{fig:modbus-firmware}{{11.6}{215}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.7}{\ignorespaces Flow Chart of the Modbus Energy Meter Implementation\relax }}{216}\protected@file@percent } -\newlabel{fig:flow-chart}{{11.7}{216}} -\@writefile{toc}{\contentsline {section}{\numberline {11.6}Reading Parameters from Xcos}{216}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {11.8}{\ignorespaces Single Phase Current Output on Scilab Console\relax }}{217}\protected@file@percent } -\newlabel{fig:current-console}{{11.8}{217}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.9}{\ignorespaces Single Phase Current Output on Energy Meter\relax }}{217}\protected@file@percent } -\newlabel{fig:current-meter}{{11.9}{217}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.10}{\ignorespaces Single Phase Voltage Output on Scilab Console\relax }}{218}\protected@file@percent } -\newlabel{fig:voltage-console}{{11.10}{218}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.11}{\ignorespaces Single Phase Voltage Output on Energy Meter\relax }}{218}\protected@file@percent } -\newlabel{fig:voltage-meter}{{11.11}{218}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.12}{\ignorespaces Single Phase Voltage Output on Scilab Console\relax }}{219}\protected@file@percent } -\newlabel{fig:power-console}{{11.12}{219}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.13}{\ignorespaces Single Phase Voltage Output on Energy Meter\relax }}{219}\protected@file@percent } -\newlabel{fig:power-meter}{{11.13}{219}} -\@writefile{toc}{\contentsline {section}{\numberline {11.7}Code}{219}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.1}Arduino Code}{219}\protected@file@percent } -\newlabel{sec:firmware-modbus}{{11.7.1}{219}} +\newlabel{modbus}{{11}{209}} +\@writefile{toc}{\contentsline {section}{\numberline {11.1}Preliminaries}{209}\protected@file@percent } +\newlabel{fig:mod-block}{{\caption@xref {fig:mod-block}{ on input line 72}}{210}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.1}{\ignorespaces Block diagram representation of the Protocol\relax }}{210}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.2}{\ignorespaces Master-Slave Query-Response Cycle\relax }}{210}\protected@file@percent } +\newlabel{fig:mod-master-slave}{{11.2}{210}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.3}{\ignorespaces Pins in RS485 module\relax }}{211}\protected@file@percent } +\newlabel{fig:rs-485}{{11.3}{211}} +\@writefile{lot}{\contentsline {table}{\numberline {11.1}{\ignorespaces Interpretation of a request packet\relax }}{212}\protected@file@percent } +\newlabel{tab:request-packet}{{11.1}{212}} +\@writefile{lot}{\contentsline {table}{\numberline {11.2}{\ignorespaces Interpretation of a response packet\relax }}{212}\protected@file@percent } +\newlabel{tab:response-packet}{{11.2}{212}} +\@writefile{lot}{\contentsline {table}{\numberline {11.3}{\ignorespaces Hexadecimal to Decimal\relax }}{213}\protected@file@percent } +\newlabel{tab:ieee-decimal}{{11.3}{213}} +\@writefile{lot}{\contentsline {table}{\numberline {11.4}{\ignorespaces Single and Double Precision Representation\relax }}{213}\protected@file@percent } +\newlabel{tab:single-precision}{{11.4}{213}} +\@writefile{toc}{\contentsline {section}{\numberline {11.2}Objective}{214}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {11.3}Energy Meter set up for Modbus protocol with Arduino Uno}{214}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.4}{\ignorespaces MODBUS Set Up for Energy Meter\relax }}{215}\protected@file@percent } +\newlabel{fig:full-set-up}{{11.4}{215}} +\@writefile{toc}{\contentsline {section}{\numberline {11.4}Software}{215}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.5}{\ignorespaces Block Diagram for Energy Meter Setup\relax }}{216}\protected@file@percent } +\newlabel{fig:block-diagram}{{11.5}{216}} +\@writefile{toc}{\contentsline {section}{\numberline {11.5}Output}{216}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.6}{\ignorespaces Flowchart of Arduino firmware\relax }}{217}\protected@file@percent } +\newlabel{fig:modbus-firmware}{{11.6}{217}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.7}{\ignorespaces Flow Chart of the Modbus Energy Meter Implementation\relax }}{218}\protected@file@percent } +\newlabel{fig:flow-chart}{{11.7}{218}} +\@writefile{toc}{\contentsline {section}{\numberline {11.6}Reading Parameters from Xcos}{218}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.8}{\ignorespaces Single Phase Current Output on Scilab Console\relax }}{219}\protected@file@percent } +\newlabel{fig:current-console}{{11.8}{219}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.9}{\ignorespaces Single Phase Current Output on Energy Meter\relax }}{219}\protected@file@percent } +\newlabel{fig:current-meter}{{11.9}{219}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.10}{\ignorespaces Single Phase Voltage Output on Scilab Console\relax }}{220}\protected@file@percent } +\newlabel{fig:voltage-console}{{11.10}{220}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.11}{\ignorespaces Single Phase Voltage Output on Energy Meter\relax }}{220}\protected@file@percent } +\newlabel{fig:voltage-meter}{{11.11}{220}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.12}{\ignorespaces Single Phase Voltage Output on Scilab Console\relax }}{221}\protected@file@percent } +\newlabel{fig:power-console}{{11.12}{221}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.13}{\ignorespaces Single Phase Voltage Output on Energy Meter\relax }}{221}\protected@file@percent } +\newlabel{fig:power-meter}{{11.13}{221}} +\@writefile{toc}{\contentsline {section}{\numberline {11.7}Code}{221}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.1}Arduino Code}{221}\protected@file@percent } +\newlabel{sec:firmware-modbus}{{11.7.1}{221}} \@writefile{ard}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{11.{1}}{}}{219}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {11.{1}}First 10 lines of the firmware for Modbus Energy Meter experiment}{219}\protected@file@percent } -\newlabel{164@xvr}{{}{219}} -\newlabel{164@vr}{{}{219}} -\newlabel{ard:firmware-modbus}{{11.{1}}{219}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send\textunderscore packet.ino}{219}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {11.14}{\ignorespaces Xcos diagram to read Energy Meter values}}{220}\protected@file@percent } -\newlabel{163@xvr}{{}{220}} -\newlabel{163@vr}{{}{220}} -\newlabel{fig:mod-read}{{11.14}{220}} -\@writefile{lot}{\contentsline {table}{\numberline {11.5}{\ignorespaces Xcos parameters to read Energy Meter\relax }}{220}\protected@file@percent } -\newlabel{tab:mod-xcos-read}{{11.5}{220}} -\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.2}Scilab Code}{221}\protected@file@percent } -\newlabel{sec:modbus-scilab-code}{{11.7.2}{221}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{11.{1}}{}}{221}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {11.{1}}First 10 lines of the firmware for Modbus Energy Meter experiment}{221}\protected@file@percent } +\newlabel{164@xvr}{{}{221}} +\newlabel{164@vr}{{}{221}} +\newlabel{ard:firmware-modbus}{{11.{1}}{221}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send\textunderscore packet.ino}{221}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.14}{\ignorespaces Xcos diagram to read Energy Meter values}}{222}\protected@file@percent } +\newlabel{163@xvr}{{}{222}} +\newlabel{163@vr}{{}{222}} +\newlabel{fig:mod-read}{{11.14}{222}} +\@writefile{lot}{\contentsline {table}{\numberline {11.5}{\ignorespaces Xcos parameters to read Energy Meter\relax }}{222}\protected@file@percent } +\newlabel{tab:mod-xcos-read}{{11.5}{222}} +\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.2}Scilab Code}{223}\protected@file@percent } +\newlabel{sec:modbus-scilab-code}{{11.7.2}{223}} \@writefile{cod}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{1}}{}}{221}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {11.{1}}First 10 lines of the function for scifunc block}{221}\protected@file@percent } -\newlabel{165@xvr}{{}{221}} -\newlabel{165@vr}{{}{221}} -\newlabel{sci:current-modbus}{{11.{1}}{221}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore val.sce}{221}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{2}}{}}{221}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {11.{2}}First 10 lines of the code for Single Phase Current Output}{221}\protected@file@percent } -\newlabel{166@xvr}{{}{221}} -\newlabel{166@vr}{{}{221}} -\newlabel{sci:current-modbus}{{11.{2}}{221}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore current.sci}{221}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{3}}{}}{221}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Voltage Output}{221}\protected@file@percent } -\newlabel{167@xvr}{{}{221}} -\newlabel{167@vr}{{}{221}} -\newlabel{sci:voltage-modbus}{{11.{3}}{221}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore voltage.sci}{221}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{4}}{}}{222}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {11.{4}}First 10 lines of the code for Single Phase Active Power Output}{222}\protected@file@percent } -\newlabel{168@xvr}{{}{222}} -\newlabel{168@vr}{{}{222}} -\newlabel{sci:modbus-power}{{11.{4}}{222}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore active\textunderscore power.sci}{222}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.3}Python Code}{222}\protected@file@percent } -\newlabel{sec:modbus-python-code}{{11.7.3}{222}} +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{1}}{}}{223}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {11.{1}}First 10 lines of the function for scifunc block}{223}\protected@file@percent } +\newlabel{165@xvr}{{}{223}} +\newlabel{165@vr}{{}{223}} +\newlabel{sci:current-modbus}{{11.{1}}{223}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore val.sce}{223}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{2}}{}}{223}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {11.{2}}First 10 lines of the code for Single Phase Current Output}{223}\protected@file@percent } +\newlabel{166@xvr}{{}{223}} +\newlabel{166@vr}{{}{223}} +\newlabel{sci:current-modbus}{{11.{2}}{223}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore current.sci}{223}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{3}}{}}{223}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Voltage Output}{223}\protected@file@percent } +\newlabel{167@xvr}{{}{223}} +\newlabel{167@vr}{{}{223}} +\newlabel{sci:voltage-modbus}{{11.{3}}{223}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore voltage.sci}{223}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{4}}{}}{224}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {11.{4}}First 10 lines of the code for Single Phase Active Power Output}{224}\protected@file@percent } +\newlabel{168@xvr}{{}{224}} +\newlabel{168@vr}{{}{224}} +\newlabel{sci:modbus-power}{{11.{4}}{224}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore active\textunderscore power.sci}{224}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.3}Python Code}{224}\protected@file@percent } +\newlabel{sec:modbus-python-code}{{11.7.3}{224}} \@writefile{pyd}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {pymass}{{Python Code}{11.{1}}{}}{222}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{222}\protected@file@percent } -\newlabel{169@xvr}{{}{222}} -\newlabel{169@vr}{{}{222}} -\newlabel{py:current-modbus}{{11.{1}}{222}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read\textunderscore current.py}{222}\protected@file@percent } -\@writefile{thm}{\contentsline {pymass}{{Python Code}{11.{2}}{}}{222}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{222}\protected@file@percent } -\newlabel{170@xvr}{{}{222}} -\newlabel{170@vr}{{}{222}} -\newlabel{py:voltage-modbus}{{11.{2}}{222}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read\textunderscore voltage.py}{222}\protected@file@percent } -\@writefile{thm}{\contentsline {pymass}{{Python Code}{11.{3}}{}}{223}\protected@file@percent } -\@writefile{pyd}{\contentsline {section}{\numberline {11.{3}}Code for Single Phase Active Power Output}{223}\protected@file@percent } -\newlabel{171@xvr}{{}{223}} -\newlabel{171@vr}{{}{223}} -\newlabel{py:modbus-power}{{11.{3}}{223}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read\textunderscore active\textunderscore power.py}{223}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.4}Julia Code}{223}\protected@file@percent } -\newlabel{sec:modbus-julia-code}{{11.7.4}{223}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{11.{1}}{}}{224}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{224}\protected@file@percent } +\newlabel{169@xvr}{{}{224}} +\newlabel{169@vr}{{}{224}} +\newlabel{py:current-modbus}{{11.{1}}{224}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read\textunderscore current.py}{224}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{11.{2}}{}}{224}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{224}\protected@file@percent } +\newlabel{170@xvr}{{}{224}} +\newlabel{170@vr}{{}{224}} +\newlabel{py:voltage-modbus}{{11.{2}}{224}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read\textunderscore voltage.py}{224}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{11.{3}}{}}{225}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {11.{3}}Code for Single Phase Active Power Output}{225}\protected@file@percent } +\newlabel{171@xvr}{{}{225}} +\newlabel{171@vr}{{}{225}} +\newlabel{py:modbus-power}{{11.{3}}{225}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read\textunderscore active\textunderscore power.py}{225}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.4}Julia Code}{225}\protected@file@percent } +\newlabel{sec:modbus-julia-code}{{11.7.4}{225}} \@writefile{juliad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{11.{1}}{}}{223}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{223}\protected@file@percent } -\newlabel{172@xvr}{{}{223}} -\newlabel{172@vr}{{}{223}} -\newlabel{julia:current-modbus}{{11.{1}}{223}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readCurrent.jl}{223}\protected@file@percent } -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{11.{2}}{}}{223}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{223}\protected@file@percent } -\newlabel{173@xvr}{{}{223}} -\newlabel{173@vr}{{}{223}} -\newlabel{julia:voltage-modbus}{{11.{2}}{223}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readVoltage.jl}{223}\protected@file@percent } -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{11.{3}}{}}{224}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Active Power Output}{224}\protected@file@percent } -\newlabel{174@xvr}{{}{224}} -\newlabel{174@vr}{{}{224}} -\newlabel{julia:modbus-power}{{11.{3}}{224}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readPower.jl}{224}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.5}OpenModelica Code}{224}\protected@file@percent } -\newlabel{sec:modbus-OpenModelica-code}{{11.7.5}{224}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{11.{1}}{}}{225}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{225}\protected@file@percent } +\newlabel{172@xvr}{{}{225}} +\newlabel{172@vr}{{}{225}} +\newlabel{julia:current-modbus}{{11.{1}}{225}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readCurrent.jl}{225}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{11.{2}}{}}{225}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{225}\protected@file@percent } +\newlabel{173@xvr}{{}{225}} +\newlabel{173@vr}{{}{225}} +\newlabel{julia:voltage-modbus}{{11.{2}}{225}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readVoltage.jl}{225}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{11.{3}}{}}{226}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Active Power Output}{226}\protected@file@percent } +\newlabel{174@xvr}{{}{226}} +\newlabel{174@vr}{{}{226}} +\newlabel{julia:modbus-power}{{11.{3}}{226}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readPower.jl}{226}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.5}OpenModelica Code}{226}\protected@file@percent } +\newlabel{sec:modbus-OpenModelica-code}{{11.7.5}{226}} \@writefile{OpenModelicad}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{1}}{}}{224}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{224}\protected@file@percent } -\newlabel{175@xvr}{{}{224}} -\newlabel{175@vr}{{}{224}} -\newlabel{OpenModelica:current-modbus}{{11.{1}}{224}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readCurrent.mo}{224}\protected@file@percent } -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{2}}{}}{224}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{224}\protected@file@percent } -\newlabel{176@xvr}{{}{224}} -\newlabel{176@vr}{{}{224}} -\newlabel{OpenModelica:voltage-modbus}{{11.{2}}{224}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readVoltage.mo}{224}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{1}}{}}{226}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{226}\protected@file@percent } +\newlabel{175@xvr}{{}{226}} +\newlabel{175@vr}{{}{226}} +\newlabel{OpenModelica:current-modbus}{{11.{1}}{226}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readCurrent.mo}{226}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{2}}{}}{226}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{226}\protected@file@percent } +\newlabel{176@xvr}{{}{226}} +\newlabel{176@vr}{{}{226}} +\newlabel{OpenModelica:voltage-modbus}{{11.{2}}{226}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readVoltage.mo}{226}\protected@file@percent } \bibdata{bibliography.bib} -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{3}}{}}{225}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {11.{3}}Code for Single Phase Active Power Output}{225}\protected@file@percent } -\newlabel{177@xvr}{{}{225}} -\newlabel{177@vr}{{}{225}} -\newlabel{OpenModelica:modbus-power}{{11.{3}}{225}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readPower.mo}{225}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{3}}{}}{227}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {11.{3}}Code for Single Phase Active Power Output}{227}\protected@file@percent } +\newlabel{177@xvr}{{}{227}} +\newlabel{177@vr}{{}{227}} +\newlabel{OpenModelica:modbus-power}{{11.{3}}{227}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readPower.mo}{227}\protected@file@percent } \bibcite{CNES-Scilab}{1} \bibcite{scilab-arduino}{2} \bibcite{oshw-ref}{3} @@ -1554,7 +1558,7 @@ \bibcite{scilab-ref}{12} \bibcite{scilab-interop}{13} \bibcite{xcos-ref}{14} -\@writefile{toc}{\contentsline {chapter}{\numberline {References}}{227}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {References}}{229}\protected@file@percent } \bibcite{python-ref}{15} \bibcite{pySerial}{16} \bibcite{julia-ref}{17} diff --git a/floss-arduino.cod b/floss-arduino.cod index 4d3d15b..4a94a4a 100644 --- a/floss-arduino.cod +++ b/floss-arduino.cod @@ -8,27 +8,27 @@ \contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{76}% \contentsline {section}{\numberline {4.{4}}Blinking the green LED}{76}% \addvspace {10pt} -\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying on the serial monitor}{101}% +\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying it on the GUI}{101}% \contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{101}% \addvspace {10pt} -\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{117}% -\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{118}% +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{119}% +\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{120}% \addvspace {10pt} -\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{134}% +\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{136}% \addvspace {10pt} -\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{150}% -\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{150}% +\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{152}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{152}% \addvspace {10pt} -\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{169}% -\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{169}% -\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{169}% +\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{171}% +\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{171}% +\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{171}% \addvspace {10pt} -\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{188}% -\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{188}% -\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{189}% -\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{189}% +\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{190}% +\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{190}% +\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{191}% +\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{191}% \addvspace {10pt} -\contentsline {section}{\numberline {11.{1}}First 10 lines of the function for scifunc block}{221}% -\contentsline {section}{\numberline {11.{2}}First 10 lines of the code for Single Phase Current Output}{221}% -\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Voltage Output}{221}% -\contentsline {section}{\numberline {11.{4}}First 10 lines of the code for Single Phase Active Power Output}{222}% +\contentsline {section}{\numberline {11.{1}}First 10 lines of the function for scifunc block}{223}% +\contentsline {section}{\numberline {11.{2}}First 10 lines of the code for Single Phase Current Output}{223}% +\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Voltage Output}{223}% +\contentsline {section}{\numberline {11.{4}}First 10 lines of the code for Single Phase Active Power Output}{224}% diff --git a/floss-arduino.fdb_latexmk b/floss-arduino.fdb_latexmk index 5ad06a5..f467db5 100644 --- a/floss-arduino.fdb_latexmk +++ b/floss-arduino.fdb_latexmk @@ -1,19 +1,19 @@ # Fdb version 3 -["bibtex floss-arduino"] 1619780612 "floss-arduino.aux" "floss-arduino.bbl" "floss-arduino" 1619780689 +["bibtex floss-arduino"] 1619829673 "floss-arduino.aux" "floss-arduino.bbl" "floss-arduino" 1619830152 "/usr/share/texlive/texmf-dist/bibtex/bst/base/unsrt.bst" 1292289607 18030 1376b4b231b50c66211e47e42eda2875 "" "bibliography.bib" 1619058609 4121 e0d02327e4bb995867623cd1f708046e "" - "floss-arduino.aux" 1619780688 133003 b9595130c4bf2147f12c7e730de91a1e "pdflatex" + "floss-arduino.aux" 1619829941 133617 e459c4ab00d1a1b990513da0afd45086 "pdflatex" (generated) - "floss-arduino.blg" "floss-arduino.bbl" -["makeindex floss-arduino.idx"] 1619749188 "floss-arduino.idx" "floss-arduino.ind" "floss-arduino" 1619780689 - "floss-arduino.idx" 1619780688 187 9374babcab6e650ef029e1d90c8aca3a "pdflatex" + "floss-arduino.blg" +["makeindex floss-arduino.idx"] 1619829426 "floss-arduino.idx" "floss-arduino.ind" "floss-arduino" 1619830152 + "floss-arduino.idx" 1619829941 187 127d22f171683959438710553c1aeb57 "pdflatex" (generated) "floss-arduino.ind" "floss-arduino.ilg" -["pdflatex"] 1619780680 "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" "floss-arduino" 1619780689 +["pdflatex"] 1619829934 "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" "floss-arduino" 1619830152 "/etc/texmf/web2c/texmf.cnf" 1602253014 475 c0e671620eb5563b2130f56340a5fde8 "" - "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.aux" 1619780688 133003 b9595130c4bf2147f12c7e730de91a1e "" + "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.aux" 1619829941 133617 e459c4ab00d1a1b990513da0afd45086 "" "/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" 1619780688 2304 6fc0f2d9a5bfe4d2f2f6e643e8c9efdb "pdflatex" - "floss-arduino.ard" 1619780688 2082 af0344a36cf6a45a34513b17b6bef8a2 "pdflatex" - "floss-arduino.aux" 1619780688 133003 b9595130c4bf2147f12c7e730de91a1e "pdflatex" - "floss-arduino.bbl" 1619780612 2654 051fbb0ca9f90e7ce7d2577998098d98 "bibtex floss-arduino" - "floss-arduino.cod" 1619780688 2517 304179a2e3ebd76634980debaa37816e "pdflatex" - "floss-arduino.ind" 1619749188 228 3aecfe8fd246b3bf714259f6bf61b4ba "makeindex floss-arduino.idx" - "floss-arduino.juliad" 1619780688 2325 4ae7e45d32e1d98055be849fce04a9a3 "pdflatex" - "floss-arduino.lof" 1619780688 12934 bbc912c241d99e7b40daa8d59a77b229 "pdflatex" - "floss-arduino.lot" 1619780688 3702 6b9b8bff6c5c56dabaa23a4a8575df9d "pdflatex" - "floss-arduino.pyd" 1619780688 2317 50719cf939100cd0323a9fbfa69ae19f "pdflatex" + "floss-arduino.OpenModelicad" 1619829941 2304 8d2c7acad50e6ff6ffe35b414bfc55e2 "pdflatex" + "floss-arduino.ard" 1619829941 2082 9b22610aadee1f8687c4a35b4bda9754 "pdflatex" + "floss-arduino.aux" 1619829941 133617 e459c4ab00d1a1b990513da0afd45086 "pdflatex" + "floss-arduino.bbl" 1619829673 2654 051fbb0ca9f90e7ce7d2577998098d98 "bibtex floss-arduino" + "floss-arduino.cod" 1619829941 2509 52695f77fde311266e71a1edae451272 "pdflatex" + "floss-arduino.ind" 1619829426 228 406d6b8e82a74b8f88d07279eacd2e35 "makeindex floss-arduino.idx" + "floss-arduino.juliad" 1619829941 2341 00f2fb9434ee36919a1cb44ee64c8ec0 "pdflatex" + "floss-arduino.lof" 1619829941 12934 069b7a759e0e8389304444a319b51f34 "pdflatex" + "floss-arduino.lot" 1619829941 3702 b2f2d46871136d51484c568992dbdf61 "pdflatex" + "floss-arduino.pyd" 1619829941 2336 34dcd3f872c4941d47194fef872d21bc "pdflatex" "floss-arduino.tex" 1619403261 4558 99e8133d713ce68a01e2f2b59b0d6baf "" - "floss-arduino.toc" 1619780688 15539 58ea5fecfbc1728da025b984904b0f0b "pdflatex" + "floss-arduino.toc" 1619829941 15539 ddc5fcbed21e55f223ab05e6fceafd98 "pdflatex" "suppl/acr.tex" 1615963613 1926 fd6481c4666ee0d60331b7d4cc24b645 "" "suppl/intro.tex" 1615963613 3437 b09628cf9e20fe17fa65b37a5997653c "" "suppl/styles.tex" 1615963613 8143 aa3280f0b59c8631fe8ec44895c9e871 "" @@ -285,20 +285,20 @@ "user-code/pot/scilab/pot-threshold.sce" 1615963614 624 2bab29d371a2666f033dd6bccad5bb73 "" "user-code/push/OpenModelica/led-push-button.mo" 1619402658 1253 4810c5325e53ee3cedf2d65cc6aad6e0 "" "user-code/push/OpenModelica/push-button-status.mo" 1619402620 1078 0e270b3c447b59263f2348b23a7a1768 "" - "user-code/push/arduino/led-push-button/led-push-button.ino" 1619777073 396 7fd786718c913889409fa7cf97781c53 "" + "user-code/push/arduino/led-push-button/led-push-button.ino" 1619822895 398 332d9ebfa0416fc792c2bf525a995a1a "" "user-code/push/arduino/push-button-status/push-button-status.ino" 1619748698 377 9389a7a25c871ff815e529b8b21e5e20 "" "user-code/push/figures/led-push-button.PNG" 1615963614 29100 9fb97725008a4f858830924290bafd86 "" "user-code/push/figures/push-button-status.PNG" 1615963614 27403 da6c41bb605a3801512422bfefcaf4ea "" "user-code/push/figures/pushbutton-conn.png" 1615963614 25321 c2e109dc82f76507b9a0b5f6e09be7db "" "user-code/push/figures/switch-led.png" 1617880501 240149 ad9fa2cc65d176482fbdf38c633d826f "" "user-code/push/figures/switch.png" 1617880485 220988 2689323a6f7a00d63e81ef7abb52961a "" - "user-code/push/julia/led-push-button.jl" 1617924745 322 d30bfe6d32217f97887be1e16f2fc0d1 "" - "user-code/push/julia/push-button-status.jl" 1617924444 201 a6e3d7882c902f9c4cac399b9ca59eeb "" - "user-code/push/push.tex" 1619749615 23377 4e94337f91305387950c04b79068dc53 "" - "user-code/push/python/led-push-button.py" 1619089065 840 4bb8db9727a8e8653a21fbbc7b7526d7 "" - "user-code/push/python/push-button-status.py" 1619089055 722 f58f02f7b8f3f6ec8ed84f102fba6df1 "" - "user-code/push/scilab/led-push-button.sce" 1615963614 343 cf0876406ea3698e7f8fabac2dd17128 "" - "user-code/push/scilab/push-button-status.sce" 1615963614 363 7b086de623a4106004994824105bed4e "" + "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" 1619830152 29333 12ef08dc9dd5687be9f12c601bf3afbd "" + "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" 1619824200 362 e7e0575e3a28da839b0874159ffa5ca9 "" + "user-code/push/scilab/push-button-status.sce" 1619824238 374 d69c0cfbc0e245b2ddd91134c05c6656 "" "user-code/servo/OpenModelica/servo-init.mo" 1615963614 863 bb87abe9ddfb0a20ffa5730f616de29f "" "user-code/servo/OpenModelica/servo-loop.mo" 1615963614 1082 65457a77509f0c8801012ceebce800b1 "" "user-code/servo/OpenModelica/servo-reverse.mo" 1615963614 1054 ba02e3eef4c1437cfb637edae7dd0f4e "" @@ -386,18 +386,18 @@ "user-code/thermistor/scilab/therm-read.sce" 1615963614 382 5e743c25b50f9d961a2939ce81d7b633 "" "user-code/thermistor/thermistor.tex" 1618567312 25838 1f7c3824e3c28084af6bca0235c3226f "" (generated) - "floss-arduino.pyd" - "floss-arduino.OpenModelicad" - "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" - "floss-arduino.toc" - "floss-arduino.ard" - "floss-arduino.aux" "floss-arduino.cod" + "floss-arduino.lof" + "floss-arduino.idx" + "floss-arduino.pyd" + "floss-arduino.lot" "floss-arduino.juliad" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.log" + "floss-arduino.aux" + "floss-arduino.thm" + "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" + "floss-arduino.ard" + "floss-arduino.OpenModelicad" "floss-arduino.log" - "floss-arduino.lof" "floss-arduino.pdf" - "floss-arduino.lot" - "floss-arduino.idx" - "floss-arduino.thm" + "floss-arduino.toc" diff --git a/floss-arduino.fls b/floss-arduino.fls index 449af61..5ab2968 100644 --- a/floss-arduino.fls +++ b/floss-arduino.fls @@ -616,6 +616,9 @@ INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led-push-b INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-status.jl INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-status.jl INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-status.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-status.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-status.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-status.jl INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led-push-button.jl INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led-push-button.jl INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led-push-button.jl @@ -634,6 +637,12 @@ INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push-button.mo INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push-button.mo INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push-button.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-button-status.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-button-status.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-button-status.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push-button.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push-button.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push-button.mo INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/ldr.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/ldr.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr.jpg diff --git a/floss-arduino.idx b/floss-arduino.idx index 5efd5d4..b0d5cac 100644 --- a/floss-arduino.idx +++ b/floss-arduino.idx @@ -1,5 +1,5 @@ -\indexentry{H-Bridge circuit DC motor}{161} -\indexentry{H-Bridge}{161} -\indexentry{L293D,L298}{161} -\indexentry{PCB breakout board}{161} -\indexentry{pulse width modulation, PWM}{161} +\indexentry{H-Bridge circuit DC motor}{163} +\indexentry{H-Bridge}{163} +\indexentry{L293D,L298}{163} +\indexentry{PCB breakout board}{163} +\indexentry{pulse width modulation, PWM}{163} diff --git a/floss-arduino.ind b/floss-arduino.ind index dcfcfe4..0338622 100644 --- a/floss-arduino.ind +++ b/floss-arduino.ind @@ -1,15 +1,15 @@ \begin{theindex} - \item H-Bridge, 161 - \item H-Bridge circuit DC motor, 161 + \item H-Bridge, 163 + \item H-Bridge circuit DC motor, 163 \indexspace - \item L293D,L298, 161 + \item L293D,L298, 163 \indexspace - \item PCB breakout board, 161 - \item pulse width modulation, PWM, 161 + \item PCB breakout board, 163 + \item pulse width modulation, PWM, 163 \end{theindex} diff --git a/floss-arduino.juliad b/floss-arduino.juliad index a642441..2718dd2 100644 --- a/floss-arduino.juliad +++ b/floss-arduino.juliad @@ -5,26 +5,26 @@ \contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{88}% \contentsline {section}{\numberline {4.{4}}Blinking the green LED}{88}% \addvspace {10pt} -\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying on the serial monitor}{107}% -\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{108}% +\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying it on Command Prompt or the Terminal.}{108}% +\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}{125}% -\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{125}% +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{127}% +\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{127}% \addvspace {10pt} -\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{139}% +\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{141}% \addvspace {10pt} -\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{157}% -\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{158}% +\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{159}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{160}% \addvspace {10pt} -\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{178}% -\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{179}% -\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{179}% +\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{180}% +\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{181}% +\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{181}% \addvspace {10pt} -\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{200}% -\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{200}% -\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{201}% -\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{201}% +\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{202}% +\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{202}% +\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{203}% +\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{203}% \addvspace {10pt} -\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{223}% -\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{223}% -\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Active Power Output}{224}% +\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{225}% +\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{225}% +\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Active Power Output}{226}% diff --git a/floss-arduino.lof b/floss-arduino.lof index 84e7ebd..3d58179 100644 --- a/floss-arduino.lof +++ b/floss-arduino.lof @@ -72,57 +72,57 @@ \contentsline {figure}{\numberline {5.4}{\ignorespaces Printing the push button status on the display block}}{102}% \contentsline {figure}{\numberline {5.5}{\ignorespaces Turning the LED on or off, depending on the pushbutton}}{103}% \addvspace {10\p@ } -\contentsline {figure}{\numberline {6.1}{\ignorespaces Light Dependent Resistor\relax }}{112}% -\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of an LDR}}}{112}% -\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Symbolic representation of an LDR}}}{112}% -\contentsline {figure}{\numberline {6.2}{\ignorespaces Internal connection diagram for the LDR on the shield\relax }}{112}% -\contentsline {figure}{\numberline {6.3}{\ignorespaces An LDR to read its values with Arduino Uno\ using a breadboard\relax }}{113}% -\contentsline {figure}{\numberline {6.4}{\ignorespaces An LDR to control an LED with Arduino Uno using a breadboard\relax }}{114}% -\contentsline {figure}{\numberline {6.5}{\ignorespaces Xcos diagram to read LDR values}}{119}% -\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}}{120}% +\contentsline {figure}{\numberline {6.1}{\ignorespaces Light Dependent Resistor\relax }}{114}% +\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of an LDR}}}{114}% +\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Symbolic representation of an LDR}}}{114}% +\contentsline {figure}{\numberline {6.2}{\ignorespaces Internal connection diagram for the LDR on the shield\relax }}{114}% +\contentsline {figure}{\numberline {6.3}{\ignorespaces An LDR to read its values with Arduino Uno\ using a breadboard\relax }}{115}% +\contentsline {figure}{\numberline {6.4}{\ignorespaces An LDR to control an LED with Arduino Uno using a breadboard\relax }}{116}% +\contentsline {figure}{\numberline {6.5}{\ignorespaces Xcos diagram to read LDR values}}{121}% +\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}}{122}% \addvspace {10\p@ } -\contentsline {figure}{\numberline {7.1}{\ignorespaces Potentiometer's schematic on the shield\relax }}{130}% -\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of a potentiometer}}}{130}% -\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Schematic representation of the potentiometer}}}{130}% -\contentsline {figure}{\numberline {7.2}{\ignorespaces A potentiometer to control an LED with Arduino Uno using a breadboard\relax }}{131}% -\contentsline {figure}{\numberline {7.3}{\ignorespaces Turning LEDs on through Xcos depending on the potentiometer threshold}}{135}% +\contentsline {figure}{\numberline {7.1}{\ignorespaces Potentiometer's schematic on the shield\relax }}{132}% +\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of a potentiometer}}}{132}% +\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Schematic representation of the potentiometer}}}{132}% +\contentsline {figure}{\numberline {7.2}{\ignorespaces A potentiometer to control an LED with Arduino Uno using a breadboard\relax }}{133}% +\contentsline {figure}{\numberline {7.3}{\ignorespaces Turning LEDs on through Xcos depending on the potentiometer threshold}}{137}% \addvspace {10\p@ } -\contentsline {figure}{\numberline {8.1}{\ignorespaces Pictorial and symbolic representation of a thermistor\relax }}{144}% -\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of a thermistor\cite {therm-wiki}}}}{144}% -\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Symbolic representation of a thermistor}}}{144}% -\contentsline {figure}{\numberline {8.2}{\ignorespaces Thermistor and buzzer connection diagrams\relax }}{144}% -\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Thermistor connection diagram}}}{144}% -\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Buzzer connection diagram}}}{144}% -\contentsline {figure}{\numberline {8.3}{\ignorespaces A thermistor to read its values with Arduino Uno using a breadboard\relax }}{145}% -\contentsline {figure}{\numberline {8.4}{\ignorespaces A thermistor to control a buzzer with Arduino Uno using a breadboard\relax }}{146}% -\contentsline {figure}{\numberline {8.5}{\ignorespaces Xcos diagram to read thermistor values}}{151}% -\contentsline {figure}{\numberline {8.6}{\ignorespaces Output of Xcos diagram to read thermistor values}}{152}% -\contentsline {figure}{\numberline {8.7}{\ignorespaces Xcos diagram to read the value of thermistor, which is used to turn the buzzer on or off}}{153}% -\contentsline {figure}{\numberline {8.8}{\ignorespaces Output of Xcos diagram to switch buzzer through thermistor values}}{153}% +\contentsline {figure}{\numberline {8.1}{\ignorespaces Pictorial and symbolic representation of a thermistor\relax }}{146}% +\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of a thermistor\cite {therm-wiki}}}}{146}% +\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Symbolic representation of a thermistor}}}{146}% +\contentsline {figure}{\numberline {8.2}{\ignorespaces Thermistor and buzzer connection diagrams\relax }}{146}% +\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Thermistor connection diagram}}}{146}% +\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Buzzer connection diagram}}}{146}% +\contentsline {figure}{\numberline {8.3}{\ignorespaces A thermistor to read its values with Arduino Uno using a breadboard\relax }}{147}% +\contentsline {figure}{\numberline {8.4}{\ignorespaces A thermistor to control a buzzer with Arduino Uno using a breadboard\relax }}{148}% +\contentsline {figure}{\numberline {8.5}{\ignorespaces Xcos diagram to read thermistor values}}{153}% +\contentsline {figure}{\numberline {8.6}{\ignorespaces Output of Xcos diagram to read thermistor values}}{154}% +\contentsline {figure}{\numberline {8.7}{\ignorespaces Xcos diagram to read the value of thermistor, which is used to turn the buzzer on or off}}{155}% +\contentsline {figure}{\numberline {8.8}{\ignorespaces Output of Xcos diagram to switch buzzer through thermistor values}}{155}% \addvspace {10\p@ } -\contentsline {figure}{\numberline {9.1}{\ignorespaces L293D motor driver board\relax }}{162}% -\contentsline {figure}{\numberline {9.2}{\ignorespaces A schematic of DC motor connections\relax }}{163}% -\contentsline {figure}{\numberline {9.3}{\ignorespaces How to connect the DC motor to the Arduino Uno\ board\relax }}{163}% -\contentsline {figure}{\numberline {9.4}{\ignorespaces Control of DC motor for a specified time from Xcos}}{170}% -\contentsline {figure}{\numberline {9.5}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{172}% -\contentsline {figure}{\numberline {9.6}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{173}% +\contentsline {figure}{\numberline {9.1}{\ignorespaces L293D motor driver board\relax }}{164}% +\contentsline {figure}{\numberline {9.2}{\ignorespaces A schematic of DC motor connections\relax }}{165}% +\contentsline {figure}{\numberline {9.3}{\ignorespaces How to connect the DC motor to the Arduino Uno\ board\relax }}{165}% +\contentsline {figure}{\numberline {9.4}{\ignorespaces Control of DC motor for a specified time from Xcos}}{172}% +\contentsline {figure}{\numberline {9.5}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{174}% +\contentsline {figure}{\numberline {9.6}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{175}% \addvspace {10\p@ } -\contentsline {figure}{\numberline {10.1}{\ignorespaces Rotating the servomotor by a fixed angle}}{190}% -\contentsline {figure}{\numberline {10.2}{\ignorespaces Rotating the servomotor forward and then reverse}}{191}% -\contentsline {figure}{\numberline {10.3}{\ignorespaces Rotating the servomotor in increments of $20^\circ $}}{192}% -\contentsline {figure}{\numberline {10.4}{\ignorespaces Rotating the servomotor as suggested by the potentiometer}}{193}% +\contentsline {figure}{\numberline {10.1}{\ignorespaces Rotating the servomotor by a fixed angle}}{192}% +\contentsline {figure}{\numberline {10.2}{\ignorespaces Rotating the servomotor forward and then reverse}}{193}% +\contentsline {figure}{\numberline {10.3}{\ignorespaces Rotating the servomotor in increments of $20^\circ $}}{194}% +\contentsline {figure}{\numberline {10.4}{\ignorespaces Rotating the servomotor as suggested by the potentiometer}}{195}% \addvspace {10\p@ } -\contentsline {figure}{\numberline {11.1}{\ignorespaces Block diagram representation of the Protocol\relax }}{208}% -\contentsline {figure}{\numberline {11.2}{\ignorespaces Master-Slave Query-Response Cycle\relax }}{208}% -\contentsline {figure}{\numberline {11.3}{\ignorespaces Pins in RS485 module\relax }}{209}% -\contentsline {figure}{\numberline {11.4}{\ignorespaces MODBUS Set Up for Energy Meter\relax }}{213}% -\contentsline {figure}{\numberline {11.5}{\ignorespaces Block Diagram for Energy Meter Setup\relax }}{214}% -\contentsline {figure}{\numberline {11.6}{\ignorespaces Flowchart of Arduino firmware\relax }}{215}% -\contentsline {figure}{\numberline {11.7}{\ignorespaces Flow Chart of the Modbus Energy Meter Implementation\relax }}{216}% -\contentsline {figure}{\numberline {11.8}{\ignorespaces Single Phase Current Output on Scilab Console\relax }}{217}% -\contentsline {figure}{\numberline {11.9}{\ignorespaces Single Phase Current Output on Energy Meter\relax }}{217}% -\contentsline {figure}{\numberline {11.10}{\ignorespaces Single Phase Voltage Output on Scilab Console\relax }}{218}% -\contentsline {figure}{\numberline {11.11}{\ignorespaces Single Phase Voltage Output on Energy Meter\relax }}{218}% -\contentsline {figure}{\numberline {11.12}{\ignorespaces Single Phase Voltage Output on Scilab Console\relax }}{219}% -\contentsline {figure}{\numberline {11.13}{\ignorespaces Single Phase Voltage Output on Energy Meter\relax }}{219}% -\contentsline {figure}{\numberline {11.14}{\ignorespaces Xcos diagram to read Energy Meter values}}{220}% +\contentsline {figure}{\numberline {11.1}{\ignorespaces Block diagram representation of the Protocol\relax }}{210}% +\contentsline {figure}{\numberline {11.2}{\ignorespaces Master-Slave Query-Response Cycle\relax }}{210}% +\contentsline {figure}{\numberline {11.3}{\ignorespaces Pins in RS485 module\relax }}{211}% +\contentsline {figure}{\numberline {11.4}{\ignorespaces MODBUS Set Up for Energy Meter\relax }}{215}% +\contentsline {figure}{\numberline {11.5}{\ignorespaces Block Diagram for Energy Meter Setup\relax }}{216}% +\contentsline {figure}{\numberline {11.6}{\ignorespaces Flowchart of Arduino firmware\relax }}{217}% +\contentsline {figure}{\numberline {11.7}{\ignorespaces Flow Chart of the Modbus Energy Meter Implementation\relax }}{218}% +\contentsline {figure}{\numberline {11.8}{\ignorespaces Single Phase Current Output on Scilab Console\relax }}{219}% +\contentsline {figure}{\numberline {11.9}{\ignorespaces Single Phase Current Output on Energy Meter\relax }}{219}% +\contentsline {figure}{\numberline {11.10}{\ignorespaces Single Phase Voltage Output on Scilab Console\relax }}{220}% +\contentsline {figure}{\numberline {11.11}{\ignorespaces Single Phase Voltage Output on Energy Meter\relax }}{220}% +\contentsline {figure}{\numberline {11.12}{\ignorespaces Single Phase Voltage Output on Scilab Console\relax }}{221}% +\contentsline {figure}{\numberline {11.13}{\ignorespaces Single Phase Voltage Output on Energy Meter\relax }}{221}% +\contentsline {figure}{\numberline {11.14}{\ignorespaces Xcos diagram to read Energy Meter values}}{222}% diff --git a/floss-arduino.log b/floss-arduino.log index 290eeb1..ecf7cd2 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) 30 APR 2021 16:34 +This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex 2020.11.5) 1 MAY 2021 06:19 entering extended mode restricted \write18 enabled. %&-line parsing enabled. @@ -1570,12 +1570,12 @@ ed.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/push-button-s tatus/push-button-status.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/push-button-s -tatus/push-button-status.ino) +tatus/push-button-status.ino) [98] (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/led-push-butt -on/led-push-button.ino) [98] +on/led-push-button.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/push-button-s tatus/push-button-status.ino) -Overfull \hbox (0.16989pt too wide) in paragraph at lines 179--182 +Overfull \hbox (0.16989pt too wide) in paragraph at lines 181--184 []\T1/cmr/m/n/10.95 Turning the LED on or off de-pend-ing on the push-but-ton. Avail- [] @@ -1586,12 +1586,12 @@ on/led-push-button.ino [99]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push-button-st atus.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push-button-st -atus.sce) +atus.sce) [100] (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led-push-butto -n.sce) [100] +n.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push-button-st atus.sce) -Overfull \hbox (0.145pt too wide) in paragraph at lines 232--235 +Overfull \hbox (0.145pt too wide) in paragraph at lines 245--248 \T1/cmr/m/n/10.95 able at \T1/fvm/m/n/10.95 O r i g i n / u s e r - c o d e / p u s h / s c i l a b / l e d - p u s h - b u t t o n . s c e\T1/cmr/m/n/10.95 , see Foot- @@ -1599,23 +1599,23 @@ Overfull \hbox (0.145pt too wide) in paragraph at lines 232--235 (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led-push-butto -n.sce) +n.sce) [101] </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/push-button-s -tatus.PNG, id=527, 264.99pt x 268.00125pt> +tatus.PNG, id=530, 264.99pt x 268.00125pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/push-but ton-status.PNG Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/push-butt on-status.PNG> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/pu -sh/figures/push-button-status.PNG used on input line 263. +sh/figures/push-button-status.PNG used on input line 276. (pdftex.def) Requested size: 178.86702pt x 180.9012pt. -Overfull \hbox (3.33746pt too wide) in paragraph at lines 281--291 +Overfull \hbox (3.33746pt too wide) in paragraph at lines 294--304 [][] [] -[101] [102 </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/pu -sh-button-status.PNG>] +[102 </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/push-but +ton-status.PNG>] </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/led-push-butt on.PNG, id=535, 298.86656pt x 264.99pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/led-push @@ -1623,45 +1623,48 @@ File: /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/led-push <use /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/led-push- button.PNG> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/pu -sh/figures/led-push-button.PNG used on input line 306. +sh/figures/led-push-button.PNG used on input line 319. (pdftex.def) Requested size: 178.86702pt x 158.59492pt. -Overfull \hbox (4.77844pt too wide) in paragraph at lines 323--334 +Overfull \hbox (4.77844pt too wide) in paragraph at lines 336--347 [][] [] [103 </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/led-push -button.PNG>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push-button-st -atus.py) +atus.py) [104] (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push-button-st atus.py) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led-push-butto -n.py) [104] +n.py) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push-button-st -atus.py) +atus.py [105]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led-push-butto -n.py [105]) -Underfull \vbox (badness 10000) has occurred while \output is active [] - - [106] +n.py [106]) [107] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-sta +tus.jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-sta tus.jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led-push-button -.jl) +.jl) [108] (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-sta -tus.jl) [107] +tus.jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led-push-button -.jl) +.jl) [109] (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-but ton-status.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-but -ton-status.mo [108]) +ton-status.mo) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push +-button.mo) [110] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-but +ton-status.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push --button.mo [109])) (./user-code/ldr/ldr.tex [110] +-button.mo [111])) (./user-code/ldr/ldr.tex [112] Chapter 6. </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr.jpg, id=56 -3, 106.89937pt x 94.85437pt> +9, 106.89937pt x 94.85437pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr.jpg G raphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr.jpg> @@ -1669,7 +1672,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/ld r/figures/ldr.jpg used on input line 62. (pdftex.def) Requested size: 178.86702pt x 158.72462pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr_sym.png, i -d=564, 1009.52156pt x 741.52031pt> +d=570, 1009.52156pt x 741.52031pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr_sym.p ng Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr_sym.pn @@ -1678,7 +1681,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/ld r/figures/ldr_sym.png used on input line 65. (pdftex.def) Requested size: 178.86702pt x 131.37468pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-conn.png, -id=565, 415.5525pt x 450.68375pt> +id=571, 415.5525pt x 450.68375pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-conn. png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-conn.p @@ -1686,7 +1689,7 @@ ng> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/ld r/figures/ldr-conn.png used on input line 71. (pdftex.def) Requested size: 178.86702pt x 193.98965pt. -[111 +[113 ] Overfull \hbox (0.60098pt too wide) in paragraph at lines 87--87 @@ -1696,21 +1699,21 @@ Overfull \hbox (0.60098pt too wide) in paragraph at lines 87--87 Underfull \vbox (badness 3333) has occurred while \output is active [] - [112 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr.jpg> + [114 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr.jpg> </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr_sym.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-conn.png>] -</home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/LDR.png, id=57 -4, 455.301pt x 208.78pt> +</home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/LDR.png, id=58 +0, 455.301pt x 208.78pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/LDR.png G raphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/LDR.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/ld r/figures/LDR.png used on input line 102. (pdftex.def) Requested size: 397.48499pt x 182.27425pt. - [113 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/LDR.png> + [115 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/LDR.png> ] </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/LDR-led.png, i -d=579, 455.301pt x 257.763pt> +d=586, 455.301pt x 257.763pt> 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 @@ -1722,21 +1725,21 @@ r/figures/LDR-led.png used on input line 125. (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr-read/ldr-r ead.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr-read/ldr-r -ead.ino) [114 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ +ead.ino) [116 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ LDR-led.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr-read/ldr-r ead.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr-read/ldr-r -ead.ino [115]) +ead.ino [117]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr-led/ldr-le -d.ino) [116] +d.ino) [118] Overfull \hbox (19.20517pt too wide) in paragraph at lines 227--238 []\T1/cmr/m/n/10.95 In this ex-per-i-ment, we will ob-serve the sat-u-ra-tion p oint of LDR, see Scilab Code 6.2[]. [] (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr-read.sce) -[117] +[119] (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr-led.sce) Overfull \hbox (0.34052pt too wide) in paragraph at lines 271--277 \T1/cmr/m/n/10.95 Next, we shall per-form the above men-tioned ex-per-i-ment, t @@ -1744,7 +1747,7 @@ o read LDR val-ues, through [] </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read-xcos. -PNG, id=594, 257.46187pt x 304.13625pt> +PNG, id=600, 257.46187pt x 304.13625pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read- xcos.PNG Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read-x @@ -1753,7 +1756,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/ld r/figures/ldr-read-xcos.PNG used on input line 287. (pdftex.def) Requested size: 178.86702pt x 211.2975pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led.png, i -d=595, 769.87625pt x 640.3925pt> +d=601, 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 @@ -1766,37 +1769,37 @@ Overfull \hbox (4.77844pt too wide) in paragraph at lines 364--384 [][] [] -[118] [119 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr --read-xcos.PNG>] [120 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/ +[120] [121 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr +-read-xcos.PNG>] [122 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/ figures/ldr-led.png>] Overfull \hbox (25.70164pt too wide) in paragraph at lines 411--422 []\T1/cmr/m/n/10.95 In this ex-per-i-ment, we will ob-serve the sat-u-ra-tion p oint of LDR, see Python Code 6.2[]. [] -[121] +[123] (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py) -[122] +[124] (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-led.py) Underfull \vbox (badness 10000) has occurred while \output is active [] - [123] + [125] (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led-push-button .jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl -[124]) +[126]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-led.jl) -[125] +[127] (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push -button.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read. -mo [126]) +mo [128]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-led.m -o)) (./user-code/pot/pot.tex [127] [128 +o)) (./user-code/pot/pot.tex [129] [130 ] Chapter 7. </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/potmeter.png, -id=634, 1576.38937pt x 1305.37688pt> +id=640, 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 @@ -1805,7 +1808,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=635, 415.5525pt x 417.56pt> + id=641, 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. @@ -1813,11 +1816,11 @@ png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/po t/figures/schematic.png used on input line 68. (pdftex.def) Requested size: 178.86702pt x 179.73206pt. -[129] [130 </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot +[131] [132 </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot 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=644, 453.695pt x 243.309pt> +, id=650, 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 @@ -1830,18 +1833,18 @@ Overfull \hbox (9.68646pt too wide) in paragraph at lines 112--114 [] [] [] -[131 </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/POT-led-b +[133 </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/POT-led-b b.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot-threshold/ pot-threshold.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot-threshold/ pot-threshold.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot-threshold/ -pot-threshold.ino [132]) +pot-threshold.ino [134]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot-threshold.s ce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot-threshold.s -ce) [133] +ce) [135] Overfull \hbox (6.93184pt too wide) in paragraph at lines 200--204 []\T1/cmr/m/n/10.95 Turning on LEDs de-pend-ing on the po-ten-tiome-ter thresh- old. Avail- @@ -1851,7 +1854,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=656, 548.80031pt x 493.845pt> +PNG, id=662, 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 @@ -1864,14 +1867,14 @@ Overfull \hbox (4.77844pt too wide) in paragraph at lines 236--265 [][] [] -[134] [135 </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot +[136] [137 </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot -threshold.PNG>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot-threshold.p -y) [136] +y) [138] (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot-threshold.p y) (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot-threshold.p -y [137]) +y [139]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot-threshold.jl ) (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot-threshold.jl @@ -1887,13 +1890,13 @@ Overfull \hbox (0.88127pt too wide) in paragraph at lines 325--329 old. Avail- [] -[138] +[140] (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot-threshold.jl ) (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot-thres hold.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot-thres -hold.mo [139]) +hold.mo [141]) Overfull \hbox (7.95369pt too wide) in paragraph at lines 348--352 []\T1/cmr/m/n/10.95 Turning on LEDs de-pend-ing on the po-ten-tiome-ter thresh- @@ -1901,12 +1904,12 @@ Overfull \hbox (7.95369pt too wide) in paragraph at lines 348--352 (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot-thres -hold.mo [140])) (./user-code/thermistor/thermistor.tex [141] [142 +hold.mo [142])) (./user-code/thermistor/thermistor.tex [143] [144 ] Chapter 8. </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/NTC-bea -d.jpg, id=686, 139.9629pt x 126.2316pt> +d.jpg, id=692, 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 @@ -1915,13 +1918,13 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/th ermistor/figures/NTC-bead.jpg used on input line 70. (pdftex.def) Requested size: 178.86702pt x 161.32933pt. -LaTeX Warning: Citation `therm-wiki' on page 143 undefined on input line 70. +LaTeX Warning: Citation `therm-wiki' on page 145 undefined on input line 70. -LaTeX Warning: Citation `therm-wiki' on page 143 undefined on input line 70. +LaTeX Warning: Citation `therm-wiki' on page 145 undefined on input line 70. </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-s -ym.png, id=687, 1284.8pt x 913.4125pt> +ym.png, id=693, 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 @@ -1930,7 +1933,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=688, 329.23pt x 422.57875pt> +TOR-Diagram-crop.pdf, id=694, 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 @@ -1939,7 +1942,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=689, 307.1475pt x 366.36874pt> +Diagram-crop.pdf, id=695, 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 @@ -1947,17 +1950,17 @@ ZER-Diagram-crop.pdf> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/th ermistor/figures/BUZZER-Diagram-crop.pdf used on input line 87. (pdftex.def) Requested size: 178.86702pt x 213.35492pt. -[143] +[145] Overfull \vbox (30.13353pt too high) has occurred while \output is active [] -[144 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/NT +[146 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/NT C-bead.jpg> </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/fig 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=710, 453.695pt x 236.885pt> +tor.png, id=717, 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 @@ -1966,7 +1969,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=711, 453.695pt x 240.097pt> +tor-buzzer.png, id=718, 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 @@ -1974,25 +1977,25 @@ rmistor-buzzer.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/th ermistor/figures/thermistor-buzzer.png used on input line 124. (pdftex.def) Requested size: 397.48499pt x 210.35179pt. - [145 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/t + [147 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/t hermistor.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-r ead/therm-read.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-r ead/therm-read.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-r -ead/therm-read.ino) [146 </home/fossee/Desktop/floss-scilab-arduino/user-code/t +ead/therm-read.ino) [148 </home/fossee/Desktop/floss-scilab-arduino/user-code/t hermistor/figures/thermistor-buzzer.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-r -ead/therm-read.ino [147]) +ead/therm-read.ino [149]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-b -uzzer/therm-buzzer.ino) [148] [149] +uzzer/therm-buzzer.ino) [150] [151] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm-re ad.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm-bu -zzer.sce) [150] +zzer.sce) [152] </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-r -ead-xcos.png, id=735, 617.30624pt x 548.0475pt> +ead-xcos.png, id=742, 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 @@ -2001,7 +2004,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=736, 632.3625pt x 529.98pt> +ead.png, id=743, 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 @@ -2010,7 +2013,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=737, 627.34375pt x 530.98375pt> +uzzer-xcos.png, id=744, 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 @@ -2018,14 +2021,14 @@ rm-buzzer-xcos.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/th ermistor/figures/therm-buzzer-xcos.png used on input line 355. (pdftex.def) Requested size: 258.36281pt x 218.68509pt. - [151 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/t + [153 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/t herm-read-xcos.png>] 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=743, 612.2875pt x 589.20125pt> +uzzer.png, id=749, 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 @@ -2033,29 +2036,29 @@ rm-buzzer.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/th ermistor/figures/therm-buzzer.png used on input line 399. (pdftex.def) Requested size: 178.86702pt x 172.12265pt. -[152 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th +[154 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th erm-read.png>] -LaTeX Warning: Text page 153 contains only floats. +LaTeX Warning: Text page 155 contains only floats. -[153 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th +[155 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th erm-buzzer-xcos.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/therm -istor/figures/therm-buzzer.png>] [154] +istor/figures/therm-buzzer.png>] [156] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-re -ad.py [155]) +ad.py [157]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-bu -zzer.py [156]) +zzer.py [158]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-rea -d.jl [157]) +d.jl [159]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-buz -zer.jl) [158] +zer.jl) [160] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/th -erm-read.mo) [159] +erm-read.mo) [161] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/th -erm-buzzer.mo)) (./user-code/dcmotor/dcmotor.tex [160] +erm-buzzer.mo)) (./user-code/dcmotor/dcmotor.tex [162] Chapter 9. </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor_bo -ard.png, id=775, 247.92625pt x 232.87pt> +ard.png, id=781, 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 @@ -2063,11 +2066,11 @@ r_board.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/dc motor/figures/dcmotor_board.png used on input line 62. (pdftex.def) Requested size: 258.36281pt x 242.69075pt. -[161 +[163 ] </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/schematic. -png, id=779, 415.5525pt x 467.7475pt> +png, id=786, 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 @@ -2076,7 +2079,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=780, 2469.97781pt x 1973.12157pt> +escription.jpg, id=787, 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 @@ -2084,41 +2087,41 @@ or_description.jpg> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/dc motor/figures/dc_motor_description.jpg used on input line 108. (pdftex.def) Requested size: 258.36281pt x 206.38603pt. - [162 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmo + [164 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmo tor_board.png>] Overfull \vbox (9.00647pt too high) has occurred while \output is active [] -[163 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/schem +[165 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/schem atic.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/ -dc_motor_description.jpg>] [164] +dc_motor_description.jpg>] [166] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor-cl ock/dcmotor-clock.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor-bo th/dcmotor-both.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor-lo -op/dcmotor-loop.ino [165]) +op/dcmotor-loop.ino [167]) Underfull \hbox (badness 10000) in paragraph at lines 221--237 [] -[166] +[168] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor-clo ck.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor-clo -ck.sce) [167] +ck.sce) [169] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor-clo ck.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor-clo -ck.sce) [168] +ck.sce) [170] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor-clo ck.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor-bot h.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor-loo -p.sce [169]) +p.sce [171]) </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor-cl -ock.png, id=810, 275.52937pt x 290.58563pt> +ock.png, id=817, 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 @@ -2126,10 +2129,10 @@ r-clock.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/dc motor/figures/dcmotor-clock.png used on input line 399. (pdftex.def) Requested size: 178.86702pt x 188.64784pt. - [170 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmo + [172 </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=815, 292.09125pt x 322.95656pt> +th.png, id=821, 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 @@ -2138,7 +2141,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=816, 281.55188pt x 307.90031pt> +op.png, id=822, 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 @@ -2146,32 +2149,32 @@ r-loop.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/dc motor/figures/dcmotor-loop.png used on input line 497. (pdftex.def) Requested size: 178.86702pt x 195.60847pt. - [171] [172 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figure -s/dcmotor-both.png>] [173 </home/fossee/Desktop/floss-scilab-arduino/user-code/ -dcmotor/figures/dcmotor-loop.png>] [174] + [173] [174 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figure +s/dcmotor-both.png>] [175 </home/fossee/Desktop/floss-scilab-arduino/user-code/ +dcmotor/figures/dcmotor-loop.png>] [176] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clo -ck.py [175]) +ck.py [177]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-bot -h.py) [176] +h.py) [178] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-loo -p.py) [177] +p.py) [179] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-cloc -k.jl [178]) +k.jl [180]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-both .jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-loop -.jl) [179] +.jl) [181] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmot or-clock.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmot -or-both.mo [180]) +or-both.mo [182]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmot -or-loop.mo [181])) (./user-code/servo/servo.tex [182] +or-loop.mo [183])) (./user-code/servo/servo.tex [184] Chapter 10. Underfull \vbox (badness 1975) has occurred while \output is active [] - [183 + [185 ] Overfull \hbox (23.49748pt too wide) in paragraph at lines 90--98 @@ -2179,17 +2182,17 @@ Overfull \hbox (23.49748pt too wide) in paragraph at lines 90--98 by $\OT1/cmr/m/n/10.95 30[]$ \T1/cmr/m/n/10.95 us-ing Ar-duino Code 10.1[]. [] -[184] +[186] (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo-init/s -ervo-init.ino [185]) +ervo-init.ino [187]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo-revers e/servo-reverse.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo-loop/s -ervo-loop.ino) [186] +ervo-loop.ino) [188] (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo-pot/se rvo-pot.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo-init.sc -e) [187] +e) [189] (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo-pot.sce ) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo-pot.sce @@ -2197,13 +2200,13 @@ e) [187] (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo-init.sc e) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo-reverse -.sce [188]) +.sce [190]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo-loop.sc 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=879, 265.74281pt x 309.40594pt> +ng, id=885, 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 @@ -2211,9 +2214,9 @@ it.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/se rvo/figures/servo-init.png used on input line 299. (pdftex.def) Requested size: 178.86702pt x 208.2593pt. - [189] + [191] </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-revers -e.png, id=883, 244.66406pt x 281.55188pt> +e.png, id=889, 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 @@ -2224,10 +2227,10 @@ rvo/figures/servo-reverse.png used on input line 334. Underfull \vbox (badness 3199) has occurred while \output is active [] - [190 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo- + [192 </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=887, 281.55188pt x 347.04657pt> +ng, id=893, 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 @@ -2236,7 +2239,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=888, 286.06876pt x 292.09125pt> +g, id=894, 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 @@ -2245,38 +2248,38 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/se rvo/figures/servo-pot.png used on input line 415. (pdftex.def) Requested size: 178.86702pt x 182.63234pt. -[191 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-r +[193 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-r everse.png>] Overfull \hbox (17.60953pt too wide) in paragraph at lines 435--446 [][] [] -[192 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-l +[194 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-l oop.png>] -LaTeX Warning: Reference `sec:py-start' on page 193 undefined on input line 459 +LaTeX Warning: Reference `sec:py-start' on page 195 undefined on input line 459 . Underfull \vbox (badness 10000) has occurred while \output is active [] - [193 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo- + [195 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo- pot.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-init.py -) [194] +) [196] (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-pot.py) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-pot.py) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-init.py -[195]) +[197]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-reverse -.py [196]) +.py [198]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-loop.py -[197]) +[199]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-pot.py -[198]) +[200]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-init.jl) -[199] +[201] (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-pot.jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-pot.jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-init.jl) @@ -2288,10 +2291,10 @@ vers-ing. Avail- (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-reverse. -jl) [200] +jl) [202] (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-loop.jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-pot.jl) -[201] +[203] (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-i nit.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo_p @@ -2299,19 +2302,19 @@ ot.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo_p ot.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-i -nit.mo [202]) +nit.mo [204]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-r -everse.mo [203]) +everse.mo [205]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-l oop.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo_p -ot.mo [204])) (./user-code/modbus/modbus.tex [205] [206 +ot.mo [206])) (./user-code/modbus/modbus.tex [207] [208 ] Chapter 11. -[207] +[209] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig1.png, i -d=943, 672.5125pt x 224.84pt> +d=949, 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 @@ -2320,7 +2323,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=944, 360.34625pt x 375.4025pt> +d=950, 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 @@ -2329,7 +2332,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=945, 481.04718pt x 214.55156pt> +d=951, 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 @@ -2337,12 +2340,12 @@ g> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/fig3.png used on input line 106. (pdftex.def) Requested size: 357.73405pt x 159.55464pt. - [208 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig1. + [210 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig1. png (PNG copy)> </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/fig -ures/fig2.png (PNG copy)>] [209 </home/fossee/Desktop/floss-scilab-arduino/user --code/modbus/figures/fig3.png (PNG copy)>] [210] [211] +ures/fig2.png (PNG copy)>] [211 </home/fossee/Desktop/floss-scilab-arduino/user +-code/modbus/figures/fig3.png (PNG copy)>] [212] [213] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/Full-Set-Up -.png, id=960, 722.7pt x 542.025pt> +.png, id=966, 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 @@ -2350,9 +2353,9 @@ t-Up.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/Full-Set-Up.png used on input line 300. (pdftex.def) Requested size: 258.36281pt x 193.77246pt. - [212] + [214] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/block-diagr -am.PNG, id=964, 398.23781pt x 255.95625pt> +am.PNG, id=970, 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 @@ -2361,7 +2364,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=965, 327.2225pt x 480.79625pt> +e_flowchart.png, id=971, 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 @@ -2369,10 +2372,10 @@ _code_flowchart.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/arduino_code_flowchart.png used on input line 348. (pdftex.def) Requested size: 258.36281pt x 379.61945pt. - [213 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/Full- + [215 </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=970, 482.55281pt x 362.10281pt> +ng, id=976, 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 @@ -2381,7 +2384,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=971, 1028.34187pt x 578.16pt> +put.png, id=977, 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 @@ -2390,7 +2393,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=972, 2509.375pt x 1411.2725pt> +put-setup.jpg, id=978, 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 @@ -2399,7 +2402,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=973, 1028.34187pt x 578.16pt> +put.png, id=979, 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 @@ -2408,7 +2411,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=974, 2509.375pt x 1411.2725pt> +put-setup.jpg, id=980, 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 @@ -2417,7 +2420,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=975, 1028.34187pt x 578.16pt> +r-output.png, id=981, 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- @@ -2426,10 +2429,10 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/active-power-output.png used on input line 429. (pdftex.def) Requested size: 397.48499pt x 223.4789pt. -[214 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/block- +[216 </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=980, 2509.375pt x 1411.2725pt> +r-output-setup.jpg, id=986, 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- @@ -2440,10 +2443,10 @@ dbus/figures/active-power-output-setup.jpg used on input line 436. Underfull \vbox (badness 10000) has occurred while \output is active [] - [215 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/ardui + [217 </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=985, 635.37375pt x 455.7025pt> +xcos.png, id=992, 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 @@ -2462,46 +2465,46 @@ Overfull \hbox (16.70493pt too wide) in paragraph at lines 479--491 [][] [] -[216 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowch -art.png (PNG copy)>] [217 </home/fossee/Desktop/floss-scilab-arduino/user-code/ +[218 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowch +art.png (PNG copy)>] [219 </home/fossee/Desktop/floss-scilab-arduino/user-code/ modbus/figures/current-output.png (PNG copy)> </home/fossee/Desktop/floss-scila b-arduino/user-code/modbus/figures/current-output-setup.jpg>] Underfull \vbox (badness 10000) has occurred while \output is active [] - [218 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/volta + [220 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/volta ge-output.png (PNG copy)> </home/fossee/Desktop/floss-scilab-arduino/user-code/ modbus/figures/voltage-output-setup.jpg>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet -.ino [219 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/a +.ino [221 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/a ctive-power-output.png (PNG copy)> </home/fossee/Desktop/floss-scilab-arduino/u -ser-code/modbus/figures/active-power-output-setup.jpg>] [220 </home/fossee/Desk +ser-code/modbus/figures/active-power-output-setup.jpg>] [222 </home/fossee/Desk top/floss-scilab-arduino/user-code/modbus/figures/read_value_xcos.png>]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_val.sce ) (/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_current .sci) (/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_voltage -.sci [221]) +.sci [223]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_active_ power.sci) (/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read_current .py) (/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read_voltage -.py [222]) +.py [224]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read_active_ power.py) (/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readCurrent.j l) (/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readVoltage.j -l [223]) +l [225]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readPower.jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readCu rrent.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readVo -ltage.mo [224]) +ltage.mo [226]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readPo -wer.mo)) (./floss-arduino.bbl [225] [226 +wer.mo)) (./floss-arduino.bbl [227] [228 ] Underfull \hbox (badness 10000) in paragraph at lines 4--9 @@ -2532,7 +2535,7 @@ Overfull \hbox (15.39987pt too wide) in paragraph at lines 49--53 /Skittles_M%26M%27s [] -[227] +[229] Underfull \hbox (badness 1577) in paragraph at lines 95--98 []\T1/cmr/m/n/10.95 Juliaio/serialports.jl: Se-ri-al-port io streams in ju-lia backed by py-se-rial. @@ -2542,7 +2545,7 @@ backed by py-se-rial. \tf@thm=\write13 \openout13 = `floss-arduino.thm'. - [228] (./floss-arduino.aux) + [230] (./floss-arduino.aux) LaTeX Warning: There were undefined references. @@ -2551,8 +2554,8 @@ LaTeX Warning: There were multiply-defined labels. ) Here is how much of TeX's memory you used: - 9815 strings out of 481239 - 215143 string characters out of 5920377 + 9821 strings out of 481239 + 215669 string characters out of 5920377 742688 words of memory out of 5000000 24309 multiletter control sequences out of 15000+600000 554670 words of font info for 69 fonts, out of 8000000 for 9000 @@ -2581,10 +2584,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 (252 pages, 20888397 bytes). +Output written on floss-arduino.pdf (254 pages, 20894802 bytes). PDF statistics: - 1123 PDF objects out of 1200 (max. 8388607) - 654 compressed objects within 7 object streams + 1131 PDF objects out of 1200 (max. 8388607) + 660 compressed objects within 7 object streams 0 named destinations out of 1000 (max. 500000) 566 words of extra memory for PDF output out of 10000 (max. 10000000) diff --git a/floss-arduino.lot b/floss-arduino.lot index 54702c2..a03c1df 100644 --- a/floss-arduino.lot +++ b/floss-arduino.lot @@ -10,31 +10,31 @@ \contentsline {table}{\numberline {4.3}{\ignorespaces Parameters to turn the blue and red LEDs on and then turn them off one by one\relax }}{79}% \contentsline {table}{\numberline {4.4}{\ignorespaces Parameters to make the green LED blink every second\relax }}{80}% \addvspace {10\p@ } -\contentsline {table}{\numberline {5.1}{\ignorespaces Parameters to print the push button status on the display block\relax }}{102}% -\contentsline {table}{\numberline {5.2}{\ignorespaces Xcos parameters to turn the LED on through the pushbutton\relax }}{103}% -\addvspace {10\p@ } -\contentsline {table}{\numberline {6.1}{\ignorespaces Xcos parameters to read LDR\relax }}{119}% -\contentsline {table}{\numberline {6.2}{\ignorespaces Xcos parameters to read LDR and regulate blue LED\relax }}{121}% -\addvspace {10\p@ } -\contentsline {table}{\numberline {7.1}{\ignorespaces Xcos parameters to turn on different LEDs depending on the potentiometer value\relax }}{136}% -\addvspace {10\p@ } -\contentsline {table}{\numberline {8.1}{\ignorespaces Xcos parameters to read thermistor\relax }}{152}% -\contentsline {table}{\numberline {8.2}{\ignorespaces Xcos parameters to read thermistor and switch the buzzer\relax }}{154}% -\addvspace {10\p@ } -\contentsline {table}{\numberline {9.1}{\ignorespaces A numbering convention used in the DC motor breakout board\relax }}{167}% -\contentsline {table}{\numberline {9.2}{\ignorespaces Parameters for DC motor initialization\relax }}{167}% -\contentsline {table}{\numberline {9.3}{\ignorespaces Xcos parameters to drive the DC motor for a specified time\relax }}{171}% -\contentsline {table}{\numberline {9.4}{\ignorespaces Xcos parameters to drive the DC motor in forward and reverse directions\relax }}{172}% -\contentsline {table}{\numberline {9.5}{\ignorespaces Xcos parameters to drive the DC motor in a loop\relax }}{174}% -\addvspace {10\p@ } -\contentsline {table}{\numberline {10.1}{\ignorespaces Connecting a typical servomotor to Arduino Uno\ board\relax }}{184}% -\contentsline {table}{\numberline {10.2}{\ignorespaces Parameters to rotate the servomotor by $30^\circ $\relax }}{190}% -\contentsline {table}{\numberline {10.3}{\ignorespaces Parameters to rotate the servomotor forward and reverse\relax }}{192}% -\contentsline {table}{\numberline {10.4}{\ignorespaces Parameters to make the servomotor to sweep the entire range in increments\relax }}{193}% -\contentsline {table}{\numberline {10.5}{\ignorespaces Parameters to rotate the servomotor based on the input from the potentiometer\relax }}{194}% -\addvspace {10\p@ } -\contentsline {table}{\numberline {11.1}{\ignorespaces Interpretation of a request packet\relax }}{210}% -\contentsline {table}{\numberline {11.2}{\ignorespaces Interpretation of a response packet\relax }}{210}% -\contentsline {table}{\numberline {11.3}{\ignorespaces Hexadecimal to Decimal\relax }}{211}% -\contentsline {table}{\numberline {11.4}{\ignorespaces Single and Double Precision Representation\relax }}{211}% -\contentsline {table}{\numberline {11.5}{\ignorespaces Xcos parameters to read Energy Meter\relax }}{220}% +\contentsline {table}{\numberline {5.1}{\ignorespaces Parameters to print the push button status on the display block\relax }}{103}% +\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 }}{121}% +\contentsline {table}{\numberline {6.2}{\ignorespaces Xcos parameters to read LDR and regulate blue LED\relax }}{123}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {7.1}{\ignorespaces Xcos parameters to turn on different LEDs depending on the potentiometer value\relax }}{138}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {8.1}{\ignorespaces Xcos parameters to read thermistor\relax }}{154}% +\contentsline {table}{\numberline {8.2}{\ignorespaces Xcos parameters to read thermistor and switch the buzzer\relax }}{156}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {9.1}{\ignorespaces A numbering convention used in the DC motor breakout board\relax }}{169}% +\contentsline {table}{\numberline {9.2}{\ignorespaces Parameters for DC motor initialization\relax }}{169}% +\contentsline {table}{\numberline {9.3}{\ignorespaces Xcos parameters to drive the DC motor for a specified time\relax }}{173}% +\contentsline {table}{\numberline {9.4}{\ignorespaces Xcos parameters to drive the DC motor in forward and reverse directions\relax }}{174}% +\contentsline {table}{\numberline {9.5}{\ignorespaces Xcos parameters to drive the DC motor in a loop\relax }}{176}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {10.1}{\ignorespaces Connecting a typical servomotor to Arduino Uno\ board\relax }}{186}% +\contentsline {table}{\numberline {10.2}{\ignorespaces Parameters to rotate the servomotor by $30^\circ $\relax }}{192}% +\contentsline {table}{\numberline {10.3}{\ignorespaces Parameters to rotate the servomotor forward and reverse\relax }}{194}% +\contentsline {table}{\numberline {10.4}{\ignorespaces Parameters to make the servomotor to sweep the entire range in increments\relax }}{195}% +\contentsline {table}{\numberline {10.5}{\ignorespaces Parameters to rotate the servomotor based on the input from the potentiometer\relax }}{196}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {11.1}{\ignorespaces Interpretation of a request packet\relax }}{212}% +\contentsline {table}{\numberline {11.2}{\ignorespaces Interpretation of a response packet\relax }}{212}% +\contentsline {table}{\numberline {11.3}{\ignorespaces Hexadecimal to Decimal\relax }}{213}% +\contentsline {table}{\numberline {11.4}{\ignorespaces Single and Double Precision Representation\relax }}{213}% +\contentsline {table}{\numberline {11.5}{\ignorespaces Xcos parameters to read Energy Meter\relax }}{222}% diff --git a/floss-arduino.pdf b/floss-arduino.pdf Binary files differindex e3b4dab..69870c7 100644 --- a/floss-arduino.pdf +++ b/floss-arduino.pdf diff --git a/floss-arduino.pyd b/floss-arduino.pyd index e264aa0..8d95674 100644 --- a/floss-arduino.pyd +++ b/floss-arduino.pyd @@ -6,26 +6,26 @@ \contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{84}% \contentsline {section}{\numberline {4.{4}}Blinking the green LED}{85}% \addvspace {10pt} -\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying on the serial monitor}{105}% -\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{105}% +\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying it on the Command Prompt or the Terminal}{105}% +\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{106}% \addvspace {10pt} -\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{122}% -\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{123}% +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{124}% +\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{125}% \addvspace {10pt} -\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{137}% +\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{139}% \addvspace {10pt} -\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{155}% -\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{156}% +\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{157}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{158}% \addvspace {10pt} -\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{175}% -\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{176}% -\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{176}% +\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{177}% +\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{178}% +\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{178}% \addvspace {10pt} -\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{195}% -\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{196}% -\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{197}% -\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{198}% +\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{197}% +\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{198}% +\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{199}% +\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{200}% \addvspace {10pt} -\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{222}% -\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{222}% -\contentsline {section}{\numberline {11.{3}}Code for Single Phase Active Power Output}{223}% +\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{224}% +\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{224}% +\contentsline {section}{\numberline {11.{3}}Code for Single Phase Active Power Output}{225}% diff --git a/floss-arduino.thm b/floss-arduino.thm index 1454010..495c214 100644 --- a/floss-arduino.thm +++ b/floss-arduino.thm @@ -33,92 +33,92 @@ \contentsline {codemass}{{Scilab Code}{5.{2}}{}}{101}% \contentsline {egmass}{{Exercise}{5.{1}}{}}{103}% \contentsline {pymass}{{Python Code}{5.{1}}{}}{105}% -\contentsline {pymass}{{Python Code}{5.{2}}{}}{105}% -\contentsline {juliamass}{{Julia Code}{5.{1}}{}}{107}% -\contentsline {juliamass}{{Julia Code}{5.{2}}{}}{108}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{5.{1}}{}}{108}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{5.{2}}{}}{109}% -\contentsline {egmass}{{Exercise}{6.{1}}{}}{115}% -\contentsline {ardmass}{{Arduino Code}{6.{1}}{}}{115}% -\contentsline {ardmass}{{Arduino Code}{6.{2}}{}}{116}% -\contentsline {egmass}{{Exercise}{6.{2}}{}}{117}% -\contentsline {codemass}{{Scilab Code}{6.{1}}{}}{117}% -\contentsline {codemass}{{Scilab Code}{6.{2}}{}}{118}% -\contentsline {egmass}{{Exercise}{6.{3}}{}}{121}% -\contentsline {pymass}{{Python Code}{6.{1}}{}}{122}% -\contentsline {pymass}{{Python Code}{6.{2}}{}}{123}% -\contentsline {egmass}{{Exercise}{6.{4}}{}}{124}% -\contentsline {juliamass}{{Julia Code}{6.{1}}{}}{125}% -\contentsline {juliamass}{{Julia Code}{6.{2}}{}}{125}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{1}}{}}{126}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{2}}{}}{127}% -\contentsline {ardmass}{{Arduino Code}{7.{1}}{}}{132}% -\contentsline {codemass}{{Scilab Code}{7.{1}}{}}{134}% -\contentsline {pymass}{{Python Code}{7.{1}}{}}{137}% -\contentsline {juliamass}{{Julia Code}{7.{1}}{}}{139}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{7.{1}}{}}{140}% -\contentsline {egmass}{{Exercise}{8.{1}}{}}{147}% -\contentsline {ardmass}{{Arduino Code}{8.{1}}{}}{147}% -\contentsline {ardmass}{{Arduino Code}{8.{2}}{}}{148}% -\contentsline {egmass}{{Exercise}{8.{2}}{}}{149}% -\contentsline {codemass}{{Scilab Code}{8.{1}}{}}{150}% -\contentsline {codemass}{{Scilab Code}{8.{2}}{}}{150}% -\contentsline {pymass}{{Python Code}{8.{1}}{}}{155}% -\contentsline {pymass}{{Python Code}{8.{2}}{}}{156}% -\contentsline {juliamass}{{Julia Code}{8.{1}}{}}{157}% -\contentsline {juliamass}{{Julia Code}{8.{2}}{}}{158}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{1}}{}}{159}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{2}}{}}{160}% -\contentsline {egmass}{{Exercise}{9.{1}}{}}{164}% -\contentsline {ardmass}{{Arduino Code}{9.{1}}{}}{165}% -\contentsline {ardmass}{{Arduino Code}{9.{2}}{}}{165}% -\contentsline {ardmass}{{Arduino Code}{9.{3}}{}}{165}% -\contentsline {egmass}{{Exercise}{9.{2}}{}}{168}% -\contentsline {codemass}{{Scilab Code}{9.{1}}{}}{169}% -\contentsline {codemass}{{Scilab Code}{9.{2}}{}}{169}% -\contentsline {codemass}{{Scilab Code}{9.{3}}{}}{169}% -\contentsline {egmass}{{Exercise}{9.{3}}{}}{171}% -\contentsline {pymass}{{Python Code}{9.{1}}{}}{175}% -\contentsline {pymass}{{Python Code}{9.{2}}{}}{176}% -\contentsline {pymass}{{Python Code}{9.{3}}{}}{176}% -\contentsline {juliamass}{{Julia Code}{9.{1}}{}}{178}% -\contentsline {juliamass}{{Julia Code}{9.{2}}{}}{179}% -\contentsline {juliamass}{{Julia Code}{9.{3}}{}}{179}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{1}}{}}{180}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{2}}{}}{180}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{3}}{}}{181}% -\contentsline {egmass}{{Exercise}{10.{1}}{}}{185}% -\contentsline {ardmass}{{Arduino Code}{10.{1}}{}}{185}% -\contentsline {ardmass}{{Arduino Code}{10.{2}}{}}{186}% -\contentsline {ardmass}{{Arduino Code}{10.{3}}{}}{186}% -\contentsline {ardmass}{{Arduino Code}{10.{4}}{}}{187}% -\contentsline {codemass}{{Scilab Code}{10.{1}}{}}{188}% -\contentsline {codemass}{{Scilab Code}{10.{2}}{}}{188}% -\contentsline {codemass}{{Scilab Code}{10.{3}}{}}{189}% -\contentsline {codemass}{{Scilab Code}{10.{4}}{}}{189}% -\contentsline {pymass}{{Python Code}{10.{1}}{}}{195}% -\contentsline {pymass}{{Python Code}{10.{2}}{}}{196}% -\contentsline {pymass}{{Python Code}{10.{3}}{}}{197}% -\contentsline {pymass}{{Python Code}{10.{4}}{}}{198}% -\contentsline {juliamass}{{Julia Code}{10.{1}}{}}{200}% -\contentsline {juliamass}{{Julia Code}{10.{2}}{}}{200}% -\contentsline {juliamass}{{Julia Code}{10.{3}}{}}{201}% -\contentsline {juliamass}{{Julia Code}{10.{4}}{}}{201}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{1}}{}}{202}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{2}}{}}{203}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{3}}{}}{204}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{4}}{}}{204}% -\contentsline {ardmass}{{Arduino Code}{11.{1}}{}}{219}% -\contentsline {codemass}{{Scilab Code}{11.{1}}{}}{221}% -\contentsline {codemass}{{Scilab Code}{11.{2}}{}}{221}% -\contentsline {codemass}{{Scilab Code}{11.{3}}{}}{221}% -\contentsline {codemass}{{Scilab Code}{11.{4}}{}}{222}% -\contentsline {pymass}{{Python Code}{11.{1}}{}}{222}% -\contentsline {pymass}{{Python Code}{11.{2}}{}}{222}% -\contentsline {pymass}{{Python Code}{11.{3}}{}}{223}% -\contentsline {juliamass}{{Julia Code}{11.{1}}{}}{223}% -\contentsline {juliamass}{{Julia Code}{11.{2}}{}}{223}% -\contentsline {juliamass}{{Julia Code}{11.{3}}{}}{224}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{1}}{}}{224}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{2}}{}}{224}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{3}}{}}{225}% +\contentsline {pymass}{{Python Code}{5.{2}}{}}{106}% +\contentsline {juliamass}{{Julia Code}{5.{1}}{}}{108}% +\contentsline {juliamass}{{Julia Code}{5.{2}}{}}{109}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{5.{1}}{}}{111}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{5.{2}}{}}{111}% +\contentsline {egmass}{{Exercise}{6.{1}}{}}{117}% +\contentsline {ardmass}{{Arduino Code}{6.{1}}{}}{117}% +\contentsline {ardmass}{{Arduino Code}{6.{2}}{}}{118}% +\contentsline {egmass}{{Exercise}{6.{2}}{}}{119}% +\contentsline {codemass}{{Scilab Code}{6.{1}}{}}{119}% +\contentsline {codemass}{{Scilab Code}{6.{2}}{}}{120}% +\contentsline {egmass}{{Exercise}{6.{3}}{}}{123}% +\contentsline {pymass}{{Python Code}{6.{1}}{}}{124}% +\contentsline {pymass}{{Python Code}{6.{2}}{}}{125}% +\contentsline {egmass}{{Exercise}{6.{4}}{}}{126}% +\contentsline {juliamass}{{Julia Code}{6.{1}}{}}{127}% +\contentsline {juliamass}{{Julia Code}{6.{2}}{}}{127}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{1}}{}}{128}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{2}}{}}{129}% +\contentsline {ardmass}{{Arduino Code}{7.{1}}{}}{134}% +\contentsline {codemass}{{Scilab Code}{7.{1}}{}}{136}% +\contentsline {pymass}{{Python Code}{7.{1}}{}}{139}% +\contentsline {juliamass}{{Julia Code}{7.{1}}{}}{141}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{7.{1}}{}}{142}% +\contentsline {egmass}{{Exercise}{8.{1}}{}}{149}% +\contentsline {ardmass}{{Arduino Code}{8.{1}}{}}{149}% +\contentsline {ardmass}{{Arduino Code}{8.{2}}{}}{150}% +\contentsline {egmass}{{Exercise}{8.{2}}{}}{151}% +\contentsline {codemass}{{Scilab Code}{8.{1}}{}}{152}% +\contentsline {codemass}{{Scilab Code}{8.{2}}{}}{152}% +\contentsline {pymass}{{Python Code}{8.{1}}{}}{157}% +\contentsline {pymass}{{Python Code}{8.{2}}{}}{158}% +\contentsline {juliamass}{{Julia Code}{8.{1}}{}}{159}% +\contentsline {juliamass}{{Julia Code}{8.{2}}{}}{160}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{1}}{}}{161}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{2}}{}}{162}% +\contentsline {egmass}{{Exercise}{9.{1}}{}}{166}% +\contentsline {ardmass}{{Arduino Code}{9.{1}}{}}{167}% +\contentsline {ardmass}{{Arduino Code}{9.{2}}{}}{167}% +\contentsline {ardmass}{{Arduino Code}{9.{3}}{}}{167}% +\contentsline {egmass}{{Exercise}{9.{2}}{}}{170}% +\contentsline {codemass}{{Scilab Code}{9.{1}}{}}{171}% +\contentsline {codemass}{{Scilab Code}{9.{2}}{}}{171}% +\contentsline {codemass}{{Scilab Code}{9.{3}}{}}{171}% +\contentsline {egmass}{{Exercise}{9.{3}}{}}{173}% +\contentsline {pymass}{{Python Code}{9.{1}}{}}{177}% +\contentsline {pymass}{{Python Code}{9.{2}}{}}{178}% +\contentsline {pymass}{{Python Code}{9.{3}}{}}{178}% +\contentsline {juliamass}{{Julia Code}{9.{1}}{}}{180}% +\contentsline {juliamass}{{Julia Code}{9.{2}}{}}{181}% +\contentsline {juliamass}{{Julia Code}{9.{3}}{}}{181}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{1}}{}}{182}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{2}}{}}{182}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{3}}{}}{183}% +\contentsline {egmass}{{Exercise}{10.{1}}{}}{187}% +\contentsline {ardmass}{{Arduino Code}{10.{1}}{}}{187}% +\contentsline {ardmass}{{Arduino Code}{10.{2}}{}}{188}% +\contentsline {ardmass}{{Arduino Code}{10.{3}}{}}{188}% +\contentsline {ardmass}{{Arduino Code}{10.{4}}{}}{189}% +\contentsline {codemass}{{Scilab Code}{10.{1}}{}}{190}% +\contentsline {codemass}{{Scilab Code}{10.{2}}{}}{190}% +\contentsline {codemass}{{Scilab Code}{10.{3}}{}}{191}% +\contentsline {codemass}{{Scilab Code}{10.{4}}{}}{191}% +\contentsline {pymass}{{Python Code}{10.{1}}{}}{197}% +\contentsline {pymass}{{Python Code}{10.{2}}{}}{198}% +\contentsline {pymass}{{Python Code}{10.{3}}{}}{199}% +\contentsline {pymass}{{Python Code}{10.{4}}{}}{200}% +\contentsline {juliamass}{{Julia Code}{10.{1}}{}}{202}% +\contentsline {juliamass}{{Julia Code}{10.{2}}{}}{202}% +\contentsline {juliamass}{{Julia Code}{10.{3}}{}}{203}% +\contentsline {juliamass}{{Julia Code}{10.{4}}{}}{203}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{1}}{}}{204}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{2}}{}}{205}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{3}}{}}{206}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{4}}{}}{206}% +\contentsline {ardmass}{{Arduino Code}{11.{1}}{}}{221}% +\contentsline {codemass}{{Scilab Code}{11.{1}}{}}{223}% +\contentsline {codemass}{{Scilab Code}{11.{2}}{}}{223}% +\contentsline {codemass}{{Scilab Code}{11.{3}}{}}{223}% +\contentsline {codemass}{{Scilab Code}{11.{4}}{}}{224}% +\contentsline {pymass}{{Python Code}{11.{1}}{}}{224}% +\contentsline {pymass}{{Python Code}{11.{2}}{}}{224}% +\contentsline {pymass}{{Python Code}{11.{3}}{}}{225}% +\contentsline {juliamass}{{Julia Code}{11.{1}}{}}{225}% +\contentsline {juliamass}{{Julia Code}{11.{2}}{}}{225}% +\contentsline {juliamass}{{Julia Code}{11.{3}}{}}{226}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{1}}{}}{226}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{2}}{}}{226}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{3}}{}}{227}% diff --git a/floss-arduino.toc b/floss-arduino.toc index 16cf911..152c8fe 100644 --- a/floss-arduino.toc +++ b/floss-arduino.toc @@ -86,123 +86,123 @@ \contentsline {section}{\numberline {5.4}Reading the Pushbutton Status from Scilab}{100}% \contentsline {subsection}{\numberline {5.4.1}Reading the Pushbutton Status}{100}% \contentsline {subsection}{\numberline {5.4.2}Scilab Code}{101}% -\contentsline {section}{\numberline {5.5}Accessing the Pushbutton from Xcos}{101}% +\contentsline {section}{\numberline {5.5}Accessing the Pushbutton from Xcos}{102}% \contentsline {section}{\numberline {5.6}Reading the Pushbutton Status from Python}{104}% \contentsline {subsection}{\numberline {5.6.1}Reading the Pushbutton Status}{104}% \contentsline {subsection}{\numberline {5.6.2}Python Code}{105}% \contentsline {section}{\numberline {5.7}Reading the Pushbutton Status from Julia}{107}% \contentsline {subsection}{\numberline {5.7.1}Reading the Pushbutton Status}{107}% -\contentsline {subsection}{\numberline {5.7.2}Julia Code}{107}% -\contentsline {section}{\numberline {5.8}Reading the Pushbutton Status from OpenModelica}{108}% -\contentsline {subsection}{\numberline {5.8.1}Reading the Pushbutton Status}{108}% -\contentsline {subsection}{\numberline {5.8.2}OpenModelica Code}{108}% -\contentsline {chapter}{\numberline {6}Interfacing a Light Dependent Resistor}{111}% -\contentsline {section}{\numberline {6.1}Preliminaries}{111}% -\contentsline {section}{\numberline {6.2}Connecting an LDR with Arduino Uno\ using a breadboard}{113}% -\contentsline {section}{\numberline {6.3}Interfacing the LDR through the Arduino IDE}{114}% -\contentsline {subsection}{\numberline {6.3.1}Interfacing the LDR}{114}% -\contentsline {subsection}{\numberline {6.3.2}Arduino Code}{115}% -\contentsline {section}{\numberline {6.4}Interfacing the LDR through Scilab}{116}% -\contentsline {subsection}{\numberline {6.4.1}Interfacing the LDR}{116}% -\contentsline {subsection}{\numberline {6.4.2}Scilab Code}{117}% -\contentsline {section}{\numberline {6.5}Interfacing the LDR through Xcos}{118}% -\contentsline {section}{\numberline {6.6}Interfacing the LDR through Python}{120}% -\contentsline {subsection}{\numberline {6.6.1}Interfacing the LDR}{120}% -\contentsline {subsection}{\numberline {6.6.2}Python Code}{122}% -\contentsline {section}{\numberline {6.7}Interfacing the LDR through Julia}{124}% -\contentsline {subsection}{\numberline {6.7.1}Interfacing the LDR}{124}% -\contentsline {subsection}{\numberline {6.7.2}Julia Code}{125}% -\contentsline {section}{\numberline {6.8}Interfacing the LDR through OpenModelica}{125}% -\contentsline {subsection}{\numberline {6.8.1}Interfacing the LDR}{125}% -\contentsline {subsection}{\numberline {6.8.2}OpenModelica Code}{126}% -\contentsline {chapter}{\numberline {7}Interfacing a Potentiometer}{129}% -\contentsline {section}{\numberline {7.1}Preliminaries}{129}% -\contentsline {section}{\numberline {7.2}Connecting a potentiometer with Arduino Uno\ using a breadboard}{130}% -\contentsline {section}{\numberline {7.3}Reading the potentiometer from the Arduino IDE}{131}% -\contentsline {subsection}{\numberline {7.3.1}Reading the potentiometer}{131}% -\contentsline {subsection}{\numberline {7.3.2}Arduino Code}{132}% -\contentsline {section}{\numberline {7.4}Reading the potentiometer from Scilab}{133}% -\contentsline {subsection}{\numberline {7.4.1}Reading the potentiometer}{133}% -\contentsline {subsection}{\numberline {7.4.2}Scilab Code}{134}% -\contentsline {section}{\numberline {7.5}Reading the potentiometer from Xcos}{134}% -\contentsline {paragraph}{Exercise:}{135}% -\contentsline {section}{\numberline {7.6}Reading the potentiometer from Python}{135}% -\contentsline {subsection}{\numberline {7.6.1}Reading the potentiometer}{135}% -\contentsline {subsection}{\numberline {7.6.2}Python Code}{137}% -\contentsline {section}{\numberline {7.7}Reading the potentiometer from Julia}{138}% -\contentsline {subsection}{\numberline {7.7.1}Reading the potentiometer}{138}% -\contentsline {subsection}{\numberline {7.7.2}Julia Code}{139}% -\contentsline {section}{\numberline {7.8}Reading the potentiometer from OpenModelica}{139}% -\contentsline {subsection}{\numberline {7.8.1}Reading the potentiometer}{139}% -\contentsline {subsection}{\numberline {7.8.2}OpenModelica Code}{140}% -\contentsline {chapter}{\numberline {8}Interfacing a Thermistor}{143}% -\contentsline {section}{\numberline {8.1}Preliminaries}{143}% -\contentsline {section}{\numberline {8.2}Connecting a thermistor with Arduino Uno\ using a breadboard}{144}% -\contentsline {section}{\numberline {8.3}Interfacing the Thermistor from the Arduino IDE}{146}% -\contentsline {subsection}{\numberline {8.3.1}Interfacing the Thermistor}{146}% -\contentsline {subsection}{\numberline {8.3.2}Arduino Code}{147}% -\contentsline {section}{\numberline {8.4}Interfacing the Thermistor from Scilab}{148}% -\contentsline {subsection}{\numberline {8.4.1}Interfacing the Thermistor}{148}% -\contentsline {subsection}{\numberline {8.4.2}Scilab Code}{150}% -\contentsline {section}{\numberline {8.5}Interfacing the Thermistor from Xcos}{151}% -\contentsline {section}{\numberline {8.6}Interfacing the Thermistor from Python}{154}% -\contentsline {subsection}{\numberline {8.6.1}Interfacing the Thermistor}{154}% -\contentsline {subsection}{\numberline {8.6.2}Python Code}{155}% -\contentsline {section}{\numberline {8.7}Interfacing the Thermistor from Julia}{157}% -\contentsline {subsection}{\numberline {8.7.1}Interfacing the Thermistor}{157}% -\contentsline {subsection}{\numberline {8.7.2}Julia Code}{157}% -\contentsline {section}{\numberline {8.8}Interfacing the Thermistor from OpenModelica}{158}% -\contentsline {subsection}{\numberline {8.8.1}Interfacing the Thermistor}{158}% -\contentsline {subsection}{\numberline {8.8.2}OpenModelica Code}{159}% -\contentsline {chapter}{\numberline {9}Controlling a DC motor}{161}% -\contentsline {section}{\numberline {9.1}Preliminaries}{161}% -\contentsline {section}{\numberline {9.2}Controlling the DC motor from Arduino}{163}% -\contentsline {subsection}{\numberline {9.2.1}Controlling the DC motor}{163}% -\contentsline {subsection}{\numberline {9.2.2}Arduino Code}{165}% -\contentsline {section}{\numberline {9.3}Controlling the DC motor from Scilab}{166}% -\contentsline {subsection}{\numberline {9.3.1}Initialization}{166}% -\contentsline {subsection}{\numberline {9.3.2}Rotation for a specified time}{167}% -\contentsline {subsection}{\numberline {9.3.3}Using the capabilities of Scilab}{168}% -\contentsline {subsection}{\numberline {9.3.4}Scilab Code}{169}% -\contentsline {section}{\numberline {9.4}Controlling the DC Motor from Xcos}{170}% -\contentsline {section}{\numberline {9.5}Controlling the DC Motor from Python}{173}% -\contentsline {subsection}{\numberline {9.5.1}Controlling the DC Motor}{173}% -\contentsline {subsection}{\numberline {9.5.2}Python Code}{175}% -\contentsline {section}{\numberline {9.6}Controlling the DC Motor from Julia}{178}% -\contentsline {subsection}{\numberline {9.6.1}Controlling the DC Motor}{178}% -\contentsline {subsection}{\numberline {9.6.2}Julia Code}{178}% -\contentsline {section}{\numberline {9.7}Controlling the DC Motor from OpenModelica}{179}% -\contentsline {subsection}{\numberline {9.7.1}Controlling the DC Motor}{179}% -\contentsline {subsection}{\numberline {9.7.2}OpenModelica Code}{180}% -\contentsline {chapter}{\numberline {10}Interfacing a Servomotor}{183}% -\contentsline {section}{\numberline {10.1}Preliminaries}{183}% -\contentsline {section}{\numberline {10.2}Controlling the Servometer through the Arduino IDE}{184}% -\contentsline {subsection}{\numberline {10.2.1}Controlling the Servometer}{184}% -\contentsline {subsection}{\numberline {10.2.2}Arduino Code}{185}% -\contentsline {section}{\numberline {10.3}Controlling the Servomotor through Scilab}{187}% -\contentsline {subsection}{\numberline {10.3.1}Controlling the Servomotor}{187}% -\contentsline {subsection}{\numberline {10.3.2}Scilab Code}{188}% -\contentsline {section}{\numberline {10.4}Controling the Servomotor through Xcos}{189}% -\contentsline {section}{\numberline {10.5}Controlling the Servomotor through Python}{194}% -\contentsline {subsection}{\numberline {10.5.1}Controlling the Servomotor}{194}% -\contentsline {subsection}{\numberline {10.5.2}Python Code}{195}% -\contentsline {section}{\numberline {10.6}Controlling the Servomotor through Julia}{199}% -\contentsline {subsection}{\numberline {10.6.1}Controlling the Servomotor}{199}% -\contentsline {subsection}{\numberline {10.6.2}Julia Code}{200}% -\contentsline {section}{\numberline {10.7}Controlling the Servomotor through OpenModelica}{201}% -\contentsline {subsection}{\numberline {10.7.1}Controlling the Servomotor}{201}% -\contentsline {subsection}{\numberline {10.7.2}OpenModelica Code}{202}% -\contentsline {chapter}{\numberline {11}Implementation of Modbus Protocol}{207}% -\contentsline {section}{\numberline {11.1}Preliminaries}{207}% -\contentsline {section}{\numberline {11.2}Objective}{212}% -\contentsline {section}{\numberline {11.3}Energy Meter set up for Modbus protocol with Arduino Uno}{212}% -\contentsline {section}{\numberline {11.4}Software}{213}% -\contentsline {section}{\numberline {11.5}Output}{214}% -\contentsline {section}{\numberline {11.6}Reading Parameters from Xcos}{216}% -\contentsline {section}{\numberline {11.7}Code}{219}% -\contentsline {subsection}{\numberline {11.7.1}Arduino Code}{219}% -\contentsline {subsection}{\numberline {11.7.2}Scilab Code}{221}% -\contentsline {subsection}{\numberline {11.7.3}Python Code}{222}% -\contentsline {subsection}{\numberline {11.7.4}Julia Code}{223}% -\contentsline {subsection}{\numberline {11.7.5}OpenModelica Code}{224}% -\contentsline {chapter}{\numberline {References}}{227}% +\contentsline {subsection}{\numberline {5.7.2}Julia Code}{108}% +\contentsline {section}{\numberline {5.8}Reading the Pushbutton Status from OpenModelica}{109}% +\contentsline {subsection}{\numberline {5.8.1}Reading the Pushbutton Status}{109}% +\contentsline {subsection}{\numberline {5.8.2}OpenModelica Code}{111}% +\contentsline {chapter}{\numberline {6}Interfacing a Light Dependent Resistor}{113}% +\contentsline {section}{\numberline {6.1}Preliminaries}{113}% +\contentsline {section}{\numberline {6.2}Connecting an LDR with Arduino Uno\ using a breadboard}{115}% +\contentsline {section}{\numberline {6.3}Interfacing the LDR through the Arduino IDE}{116}% +\contentsline {subsection}{\numberline {6.3.1}Interfacing the LDR}{116}% +\contentsline {subsection}{\numberline {6.3.2}Arduino Code}{117}% +\contentsline {section}{\numberline {6.4}Interfacing the LDR through Scilab}{118}% +\contentsline {subsection}{\numberline {6.4.1}Interfacing the LDR}{118}% +\contentsline {subsection}{\numberline {6.4.2}Scilab Code}{119}% +\contentsline {section}{\numberline {6.5}Interfacing the LDR through Xcos}{120}% +\contentsline {section}{\numberline {6.6}Interfacing the LDR through Python}{122}% +\contentsline {subsection}{\numberline {6.6.1}Interfacing the LDR}{122}% +\contentsline {subsection}{\numberline {6.6.2}Python Code}{124}% +\contentsline {section}{\numberline {6.7}Interfacing the LDR through Julia}{126}% +\contentsline {subsection}{\numberline {6.7.1}Interfacing the LDR}{126}% +\contentsline {subsection}{\numberline {6.7.2}Julia Code}{127}% +\contentsline {section}{\numberline {6.8}Interfacing the LDR through OpenModelica}{127}% +\contentsline {subsection}{\numberline {6.8.1}Interfacing the LDR}{127}% +\contentsline {subsection}{\numberline {6.8.2}OpenModelica Code}{128}% +\contentsline {chapter}{\numberline {7}Interfacing a Potentiometer}{131}% +\contentsline {section}{\numberline {7.1}Preliminaries}{131}% +\contentsline {section}{\numberline {7.2}Connecting a potentiometer with Arduino Uno\ using a breadboard}{132}% +\contentsline {section}{\numberline {7.3}Reading the potentiometer from the Arduino IDE}{133}% +\contentsline {subsection}{\numberline {7.3.1}Reading the potentiometer}{133}% +\contentsline {subsection}{\numberline {7.3.2}Arduino Code}{134}% +\contentsline {section}{\numberline {7.4}Reading the potentiometer from Scilab}{135}% +\contentsline {subsection}{\numberline {7.4.1}Reading the potentiometer}{135}% +\contentsline {subsection}{\numberline {7.4.2}Scilab Code}{136}% +\contentsline {section}{\numberline {7.5}Reading the potentiometer from Xcos}{136}% +\contentsline {paragraph}{Exercise:}{137}% +\contentsline {section}{\numberline {7.6}Reading the potentiometer from Python}{137}% +\contentsline {subsection}{\numberline {7.6.1}Reading the potentiometer}{137}% +\contentsline {subsection}{\numberline {7.6.2}Python Code}{139}% +\contentsline {section}{\numberline {7.7}Reading the potentiometer from Julia}{140}% +\contentsline {subsection}{\numberline {7.7.1}Reading the potentiometer}{140}% +\contentsline {subsection}{\numberline {7.7.2}Julia Code}{141}% +\contentsline {section}{\numberline {7.8}Reading the potentiometer from OpenModelica}{141}% +\contentsline {subsection}{\numberline {7.8.1}Reading the potentiometer}{141}% +\contentsline {subsection}{\numberline {7.8.2}OpenModelica Code}{142}% +\contentsline {chapter}{\numberline {8}Interfacing a Thermistor}{145}% +\contentsline {section}{\numberline {8.1}Preliminaries}{145}% +\contentsline {section}{\numberline {8.2}Connecting a thermistor with Arduino Uno\ using a breadboard}{146}% +\contentsline {section}{\numberline {8.3}Interfacing the Thermistor from the Arduino IDE}{148}% +\contentsline {subsection}{\numberline {8.3.1}Interfacing the Thermistor}{148}% +\contentsline {subsection}{\numberline {8.3.2}Arduino Code}{149}% +\contentsline {section}{\numberline {8.4}Interfacing the Thermistor from Scilab}{150}% +\contentsline {subsection}{\numberline {8.4.1}Interfacing the Thermistor}{150}% +\contentsline {subsection}{\numberline {8.4.2}Scilab Code}{152}% +\contentsline {section}{\numberline {8.5}Interfacing the Thermistor from Xcos}{153}% +\contentsline {section}{\numberline {8.6}Interfacing the Thermistor from Python}{156}% +\contentsline {subsection}{\numberline {8.6.1}Interfacing the Thermistor}{156}% +\contentsline {subsection}{\numberline {8.6.2}Python Code}{157}% +\contentsline {section}{\numberline {8.7}Interfacing the Thermistor from Julia}{159}% +\contentsline {subsection}{\numberline {8.7.1}Interfacing the Thermistor}{159}% +\contentsline {subsection}{\numberline {8.7.2}Julia Code}{159}% +\contentsline {section}{\numberline {8.8}Interfacing the Thermistor from OpenModelica}{160}% +\contentsline {subsection}{\numberline {8.8.1}Interfacing the Thermistor}{160}% +\contentsline {subsection}{\numberline {8.8.2}OpenModelica Code}{161}% +\contentsline {chapter}{\numberline {9}Controlling a DC motor}{163}% +\contentsline {section}{\numberline {9.1}Preliminaries}{163}% +\contentsline {section}{\numberline {9.2}Controlling the DC motor from Arduino}{165}% +\contentsline {subsection}{\numberline {9.2.1}Controlling the DC motor}{165}% +\contentsline {subsection}{\numberline {9.2.2}Arduino Code}{167}% +\contentsline {section}{\numberline {9.3}Controlling the DC motor from Scilab}{168}% +\contentsline {subsection}{\numberline {9.3.1}Initialization}{168}% +\contentsline {subsection}{\numberline {9.3.2}Rotation for a specified time}{169}% +\contentsline {subsection}{\numberline {9.3.3}Using the capabilities of Scilab}{170}% +\contentsline {subsection}{\numberline {9.3.4}Scilab Code}{171}% +\contentsline {section}{\numberline {9.4}Controlling the DC Motor from Xcos}{172}% +\contentsline {section}{\numberline {9.5}Controlling the DC Motor from Python}{175}% +\contentsline {subsection}{\numberline {9.5.1}Controlling the DC Motor}{175}% +\contentsline {subsection}{\numberline {9.5.2}Python Code}{177}% +\contentsline {section}{\numberline {9.6}Controlling the DC Motor from Julia}{180}% +\contentsline {subsection}{\numberline {9.6.1}Controlling the DC Motor}{180}% +\contentsline {subsection}{\numberline {9.6.2}Julia Code}{180}% +\contentsline {section}{\numberline {9.7}Controlling the DC Motor from OpenModelica}{181}% +\contentsline {subsection}{\numberline {9.7.1}Controlling the DC Motor}{181}% +\contentsline {subsection}{\numberline {9.7.2}OpenModelica Code}{182}% +\contentsline {chapter}{\numberline {10}Interfacing a Servomotor}{185}% +\contentsline {section}{\numberline {10.1}Preliminaries}{185}% +\contentsline {section}{\numberline {10.2}Controlling the Servometer through the Arduino IDE}{186}% +\contentsline {subsection}{\numberline {10.2.1}Controlling the Servometer}{186}% +\contentsline {subsection}{\numberline {10.2.2}Arduino Code}{187}% +\contentsline {section}{\numberline {10.3}Controlling the Servomotor through Scilab}{189}% +\contentsline {subsection}{\numberline {10.3.1}Controlling the Servomotor}{189}% +\contentsline {subsection}{\numberline {10.3.2}Scilab Code}{190}% +\contentsline {section}{\numberline {10.4}Controling the Servomotor through Xcos}{191}% +\contentsline {section}{\numberline {10.5}Controlling the Servomotor through Python}{196}% +\contentsline {subsection}{\numberline {10.5.1}Controlling the Servomotor}{196}% +\contentsline {subsection}{\numberline {10.5.2}Python Code}{197}% +\contentsline {section}{\numberline {10.6}Controlling the Servomotor through Julia}{201}% +\contentsline {subsection}{\numberline {10.6.1}Controlling the Servomotor}{201}% +\contentsline {subsection}{\numberline {10.6.2}Julia Code}{202}% +\contentsline {section}{\numberline {10.7}Controlling the Servomotor through OpenModelica}{203}% +\contentsline {subsection}{\numberline {10.7.1}Controlling the Servomotor}{203}% +\contentsline {subsection}{\numberline {10.7.2}OpenModelica Code}{204}% +\contentsline {chapter}{\numberline {11}Implementation of Modbus Protocol}{209}% +\contentsline {section}{\numberline {11.1}Preliminaries}{209}% +\contentsline {section}{\numberline {11.2}Objective}{214}% +\contentsline {section}{\numberline {11.3}Energy Meter set up for Modbus protocol with Arduino Uno}{214}% +\contentsline {section}{\numberline {11.4}Software}{215}% +\contentsline {section}{\numberline {11.5}Output}{216}% +\contentsline {section}{\numberline {11.6}Reading Parameters from Xcos}{218}% +\contentsline {section}{\numberline {11.7}Code}{221}% +\contentsline {subsection}{\numberline {11.7.1}Arduino Code}{221}% +\contentsline {subsection}{\numberline {11.7.2}Scilab Code}{223}% +\contentsline {subsection}{\numberline {11.7.3}Python Code}{224}% +\contentsline {subsection}{\numberline {11.7.4}Julia Code}{225}% +\contentsline {subsection}{\numberline {11.7.5}OpenModelica Code}{226}% +\contentsline {chapter}{\numberline {References}}{229}% diff --git a/user-code/push/arduino/led-push-button/led-push-button.ino b/user-code/push/arduino/led-push-button/led-push-button.ino index 81c75a4..75f580b 100644 --- a/user-code/push/arduino/led-push-button/led-push-button.ino +++ b/user-code/push/arduino/led-push-button/led-push-button.ino @@ -3,7 +3,7 @@ const int ledPin = 9; int sensorValue; int i; void setup() { - Serial.begin(9600); + Serial.begin(115200); pinMode(9, OUTPUT); pinMode(12, INPUT); for (i = 0; i < 1000; i++) { diff --git a/user-code/push/julia/led-push-button.jl b/user-code/push/julia/led-push-button.jl index 568c223..907159e 100644 --- a/user-code/push/julia/led-push-button.jl +++ b/user-code/push/julia/led-push-button.jl @@ -2,14 +2,14 @@ using SerialPorts include("ArduinoTools.jl") ser = ArduinoTools.connectBoard(115200) -ArduinoTools.pinMode(ser,9,"OUTPUT") -ArduinoTools.pinMode(ser,12,"INPUT") +ArduinoTools.pinMode(ser, 9, "OUTPUT") +ArduinoTools.pinMode(ser, 12, "INPUT") for i = 1:200 - p = ArduinoTools.digiRead(ser,12) - if p == 0 - ArduinoTools.digiWrite(ser,9,0) + val = ArduinoTools.digiRead(ser, 12) + if val == 0 + ArduinoTools.digiWrite(ser, 9, 0) else - ArduinoTools.digiWrite(ser,9,1) + ArduinoTools.digiWrite(ser, 9, 1) end end close(ser) diff --git a/user-code/push/julia/push-button-status.jl b/user-code/push/julia/push-button-status.jl index 6dcc1d9..bc51541 100644 --- a/user-code/push/julia/push-button-status.jl +++ b/user-code/push/julia/push-button-status.jl @@ -2,9 +2,9 @@ using SerialPorts include("ArduinoTools.jl") ser = ArduinoTools.connectBoard(115200) -ArduinoTools.pinMode(ser,12,"INPUT") -for i = 1:100 - p = ArduinoTools.digiRead(ser,12) - println(p) +ArduinoTools.pinMode(ser, 12, "INPUT") +for i = 1:200 + val = ArduinoTools.digiRead(ser, 12) + println(val) end close(ser) diff --git a/user-code/push/push.tex b/user-code/push/push.tex index c5c5cd7..5be5438 100644 --- a/user-code/push/push.tex +++ b/user-code/push/push.tex @@ -40,9 +40,9 @@ a circuit. It is commonly available as a \emph{normally open} or the push or depression of the switch. These switches are widely used
in calculators, computer keyboards, home appliances, push-button
telephones and basic mobile phones, etc. In this chapter, we shall
-perform a few experiments to read the status of the pushbutton mounted
+perform an experiment to read the status of the pushbutton mounted
on the shield of the \arduino\ board. Advancing further, we shall
-perform a few tasks depending on the status of the pushbutton. Digital
+perform a task depending on the status of the pushbutton. Digital
logic based status monitoring is a very basic and important task in
many industrial applications. This chapter will enable us to have a
smooth hands-on for such functionalities.
@@ -115,9 +115,12 @@ are same as that in \figref{fig:switch-bread}. \section{Reading the Pushbutton Status from the Arduino IDE}
\subsection{Reading the Pushbutton Status}
-In this section, we shall learn the commands to read the status of a
-pushbutton through Arduino IDE. Later, we shall change the state of
-the LED depending on the status of the pushbutton.
+In this section, we shall describe an experiment that will help
+to read the status of a pushbutton through Arduino IDE.
+Later, we shall change the state of an LED depending on the status of the pushbutton. The shield has to be attached to the \arduino\ board
+before doing these experiments and the \arduino\ needs to be connected to the computer
+with a USB cable, as shown in \figref{arduino}. The reader should go through the
+instructions given in \secref{sec:ard-start} before getting started.
\begin{enumerate}
\item In the first experiment, we shall simply read the status of the
pushbutton. Recall that it is a normally open type of switch. So, in
@@ -127,7 +130,7 @@ the LED depending on the status of the pushbutton. \ardref{ard:push-100}. In the initialization part of the code, we
assign the sensor pin to be read, 12 in this case, to a variable for
ease. Next, we initialize the port for serial port communication at
- data rate of 9600 bits per second and declare the digital pin 12 as an
+ data rate of 115200 bits per second and declare the digital pin 12 as an
input pin using the command {\tt pinMode}. After initialization,
we start reading the status of the pushbutton using the following command:
\lstinputlisting[firstline=7,lastline=7]
@@ -139,10 +142,9 @@ the LED depending on the status of the pushbutton. \lstinputlisting[firstline=8,lastline=8]
{\LocPushardcode/push-button-status/push-button-status.ino} We
repeat this read and print process 1000 times by putting the
- commands in a {\tt for} loop. At the same time, the user must press
- and release the pushbutton and observe the values printed on the
-% \redcolor{Serial monitor}.
-serial monitor.
+ commands in a {\tt for} loop. While running this experiment, the user must press
+ and release the pushbutton and observe the values being printed on the
+ {\tt Serial Monitor} of Arduino IDE.
\item In the second experiment, we shall control the power given to an
LED as per the status of the pushbutton. The code for this
@@ -156,7 +158,7 @@ serial monitor. condition check is performed using {\tt if else} statements. We run
these commands for 1000 iterations. While running this experiment, the reader
must press and release the pushbutton. Accordingly, they can observe whether
- the LED glows when the pushbutton is pressed
+ the LED glows when the pushbutton is pressed.
% \redcolor{Serial monitor}.
\end{enumerate}
@@ -185,22 +187,32 @@ serial monitor. \section{Reading the Pushbutton Status from Scilab}
\subsection{Reading the Pushbutton Status}
-In this section, we shall perform the pushbutton operation using
-Scilab-Arduino toolbox commands.
+In this section, we discuss how to carry out the experiments of the
+previous section from Scilab. We will list the same two experiments,
+in the same order. The shield has to be attached to the \arduino\ board
+before doing these experiments and the \arduino\ needs to be connected to the computer
+with a USB cable, as shown in \figref{arduino}.
+The reader should go through the instructions given in
+\secref{sec:sci-start} before getting started.
\begin{enumerate}
-\item In the first experiment, we will read the pushbutton status in
- \scilab\ Console. The code for this experiment is given in
- \sciref{sci:push-100}. As explained earlier, we begin with serial
- port initialization. Then, using the command,
+\item In the first experiment, we will read the pushbutton status using a
+Graphical user interface (GUI) in Scilab. The code for this experiment is
+given in \sciref{sci:push-100}. As explained earlier in \secref{sec:light-sci},
+we begin with serial port initialization. Then, we read the input coming from
+digital pin 12 using the following command:
\lstinputlisting[firstline=4,lastline=4]
- {\LocPushscicode/push-button-status.sce} we read the input of
- digital pin 12. Note that the middle terminal of the potentiometer
- is connected to this pin. The read value is displayed as a GUI using
- the command, \lstinputlisting[firstline=5,lastline=5]
+ {\LocPushscicode/push-button-status.sce} Note that the one leg of the pushbutton on
+ the shield is connected to digital pin 12 of \arduino\,
+ as given in \figref{fig:pushbuttonconn}. The read value is displayed as a GUI using
+ the following command: \lstinputlisting[firstline=5,lastline=5]
{\LocPushscicode/push-button-status.sce} where {\tt val} contains
- the potentiometer value acquired by the previous command. To
+ the pushbutton value acquired by the previous command.
+ When the pushbutton is not pressed, {\tt val} will be ``0''. On the other hand,
+ when the pushbutton is pressed, {\tt val} will be ``1''. To
encourage the user to have a good hands-on, we run these commands in
- a {\tt for} loop for 1000 iterations.
+ a {\tt for} loop for 1000 iterations. While running this experiment,
+ the user must press and release the pushbutton and observe the values being printed on the
+ GUI, as shown in Fig.
\item This experiment is an extension of the previous
experiment. Here, we control the state of an LED as per the status
@@ -208,10 +220,12 @@ Scilab-Arduino toolbox commands. decided by the digital input received from the pushbutton. The code
for this experiment is given in \sciref{sci:push-200}. After reading
the pushbutton status, we turn the LED on if the pushbutton is
- pressed, otherwise we turn it off. The lines,
+ pressed, otherwise we turn it off. The following lines,
\lstinputlisting[firstline=5,lastline=9]
{\LocPushscicode/led-push-button.sce} perform the condition check
- and corresponding LED state control operation.
+ and corresponding LED state control operation. While running this experiment, the reader
+ must press and release the pushbutton. Accordingly, they can observe whether
+ the LED glows when the pushbutton is pressed.
\end{enumerate}
\subsection{Scilab Code}
@@ -219,9 +233,8 @@ Scilab-Arduino toolbox commands. \addtocontents{cod}{\protect\addvspace{\codclr}}
\begin{scicode}
-\ccaption{Read the status of the pushbutton and displaying on the
- serial monitor}{Read the status of the pushbutton and displaying on
- the serial monitor. Available at
+\ccaption{Read the status of the pushbutton and displaying it on the GUI}
+{Read the status of the pushbutton and displaying it on the GUI. Available at
\LocPushscibrief{push-button-status.sce}.}
\label{sci:push-100}
\lstinputlisting{\LocPushscicode/push-button-status.sce}
@@ -295,8 +308,8 @@ given in \secref{sec:xcos-start} before getting started. Xcos implementation for this experiment is shown in
\figref{fig:led-push-button}. Each time a user presses the
pushbutton, the LED on digital pin 9 of the shield is switched
- on. If the shield is connected, the blue LED comes on. When
- button is released, the LED is switched off. Here, we note that
+ on. If the shield is connected, the blue LED turns on. When
+ the pushbutton is released, the LED is switched off. Here, we note that
the digital logic level of the pin of the \arduino\ board connected
to pushbutton changes only for the time the pushbutton is being
pressed.
@@ -352,22 +365,35 @@ Let us carry out the following exercise: %%%%%%%%%%%%python description starts
\section{Reading the Pushbutton Status from Python}
\subsection{Reading the Pushbutton Status}
-In this section, we shall perform the pushbutton operation using
-Python-Arduino toolbox commands.
+In this section, we discuss how to carry out the experiments of the
+previous section from Python. We will list the same two experiments,
+in the same order. The shield has to be attached to the \arduino\ board
+before doing these experiments and the \arduino\ needs to be connected to the computer
+with a USB cable, as shown in \figref{arduino}.
+The reader should go through the instructions given in
+\secref{sec:python-start} before getting started.
+
\begin{enumerate}
-\item In the first experiment, we will read the pushbutton status in
- python Console. The code for this experiment is given in
- \pyref{py:push-100}. As explained earlier, we begin with serial
- port initialization. Then, using the command,
- \lstinputlisting[firstline=4,lastline=4]
- {\LocPushpycode/push-button-status.py} we read the input of
- digital pin 12. Note that the middle terminal of the potentiometer
- is connected to this pin. The read value is displayed as a GUI using
- the command, \lstinputlisting[firstline=5,lastline=5]
+\item In the first experiment, we will read the pushbutton status. The code for this experiment is given in
+ \pyref{py:push-100}. As explained earlier in \secref{sec:light-py}, we begin with
+ importing necessary modules followed by setting up the serial port.
+ Then, we read the input coming from digital pin 12 using the
+ following command:
+ \lstinputlisting[firstline=26,lastline=26]
+ {\LocPushpycode/push-button-status.py} Note that the one leg of the pushbutton on
+ the shield is connected to digital pin 12 of \arduino\,
+ as given in \figref{fig:pushbuttonconn}. The read value is displayed (or printed)
+ by the following lines:
+ \lstinputlisting[firstline=25,lastline=28]
{\LocPushpycode/push-button-status.py} where {\tt val} contains
- the potentiometer value acquired by the previous command. To
- encourage the user to have a good hands-on, we run these commands in
- a {\tt for} loop for 1000 iterations.
+ the pushbutton value acquired by the previous command. When the pushbutton is not pressed, {\tt val} will be ``0''. On the other hand,
+ when the pushbutton is pressed, {\tt val} will be ``1''.
+ To encourage the user to have a good hands-on, we run these commands in
+ a {\tt for} loop for 20 iterations. The readers are encouraged to change the number
+ of iterations as per their requirements. While running this experiment, the user must press
+ and release the pushbutton and observe the values being printed on the
+ Command Prompt (on Windows) or Terminal (on Linux), as the case maybe.
+
\item This experiment is an extension of the previous
experiment. Here, we control the state of an LED as per the status
@@ -375,10 +401,12 @@ Python-Arduino toolbox commands. decided by the digital input received from the pushbutton. The code
for this experiment is given in \pyref{py:push-200}. After reading
the pushbutton status, we turn the LED on if the pushbutton is
- pressed, otherwise we turn it off. The lines,
- \lstinputlisting[firstline=5,lastline=9]
+ pressed, otherwise we turn it off. The following lines,
+ \lstinputlisting[firstline=28,lastline=33]
{\LocPushpycode/led-push-button.py} perform the condition check
- and corresponding LED state control operation.
+ and corresponding LED state control operation. While running this experiment, the reader must press and release the push-
+ button. Accordingly, they can observe whether the LED glows when the push-
+ button is pressed.
\end{enumerate}
\subsection{Python Code}
@@ -387,9 +415,9 @@ Python-Arduino toolbox commands. \addtocontents{pyd}{\protect\addvspace{\codclr}}
\begin{pycode}
-\pcaption{Read the status of the pushbutton and displaying on the
- serial monitor}{Read the status of the pushbutton and displaying on
- the serial monitor. Available at
+\pcaption{Read the status of the pushbutton and displaying it on the
+ Command Prompt or the Terminal}{Read the status of the pushbutton and displaying it on
+ Command Prompt or the Terminal. Available at
\LocPushpybrief{push-button-status.py}.}
\label{py:push-100}
\lstinputlisting{\LocPushpycode/push-button-status.py}
@@ -406,18 +434,34 @@ Python-Arduino toolbox commands. \section{Reading the Pushbutton Status from Julia}
\subsection{Reading the Pushbutton Status}
-In this section, we shall perform the pushbutton operation using
-Julia-Arduino toolbox commands.
+In this section, we discuss how to carry out the experiments of the
+previous section from Julia. We will list the same two experiments,
+in the same order. The shield has to be attached to the \arduino\ board
+before doing these experiments and the \arduino\ needs to be connected to the computer
+with a USB cable, as shown in \figref{arduino}.
+The reader should go through the instructions given in \secref{sec:julia-start} before getting started.
+
\begin{enumerate}
-\item In the first experiment, we will read the pushbutton status in
- Atoms-text-Editor\ Console. The code for this experiment is given in
- \juliaref{julia:push-100}. As explained earlier, we begin with serial
- port initialization by using the command,\lstinputlisting[firstline=7,lastline=7]
- {\LocPushjuliacode/push-button-status.jl} we read the input of
- digital pin 12. The status of the push button as '0' for off and
- '1' for on is dispalyed on the Atoms-Text-Editor console. To
- encourage the user to have a good hands-on, we run these commands in
- a {\tt for} loop for 100 iterations.
+\item In the first experiment, we will read the pushbutton status.
+The code for this experiment is given in \juliaref{julia:push-100}.
+As explained earlier in \secref{sec:light-julia}, we begin with importing the SerialPorts
+\cite{julia-serial-ports} package and the module ArduinoTools followed by setting up the serial port.
+Then, we read the input coming from digital pin 12 using the following
+command:
+\lstinputlisting[firstline=7,lastline=7]
+ {\LocPushjuliacode/push-button-status.jl}
+ Note that the one leg of the pushbutton on the shield is connected to digital
+pin 12 of Arduino Uno as given in \figref{fig:pushbuttonconn}. The read value is displayed (or
+printed) by the following lines:
+\lstinputlisting[firstline=6,lastline=8]
+ {\LocPushjuliacode/push-button-status.jl} where {\tt val} contains the pushbutton value acquired by the previous command.
+ When the pushbutton is not pressed, {\tt val} will be ``0''. On the other hand,
+ when the pushbutton is pressed, {\tt val} will be ``1''. To encourage the user to have a good hands-on, we run these commands in a
+{\tt for} loop for 200 iterations. The readers are encouraged to change the number
+of iterations as per their requirements. While running this experiment, the user
+must press and release the pushbutton and observe the values being printed
+on the Command Prompt (on Windows) or Terminal (on Linux), as the case
+maybe.
\item This experiment is an extension of the previous
experiment. Here, we control the state of an LED as per the status
@@ -425,10 +469,12 @@ Julia-Arduino toolbox commands. decided by the digital input received from the pushbutton. The code
for this experiment is given in \juliaref{julia:push-200}. After reading
the pushbutton status, we turn the LED on if the pushbutton is
- pressed, otherwise we turn it off. The lines,
- \lstinputlisting[firstline=8,lastline=12]
+ pressed, otherwise we turn it off. The following lines,
+ \lstinputlisting[firstline=7,lastline=12]
{\LocPushjuliacode/led-push-button.jl} perform the condition check
- and corresponding LED state control operation.
+ and corresponding LED state control operation. While running this experiment, the reader must press and release the push-
+ button. Accordingly, they can observe whether the LED glows when the push-
+ button is pressed.
\end{enumerate}
\subsection{Julia Code}
@@ -436,9 +482,7 @@ Julia-Arduino toolbox commands. \addtocontents{juliad}{\protect\addvspace{\codclr}}
\begin{juliacode}
-\jcaption{Read the status of the pushbutton and displaying on the
- serial monitor}{Read the status of the pushbutton and displaying on
- the serial monitor. Available at
+\jcaption{Read the status of the pushbutton and displaying it on Command Prompt or the Terminal.}{Read the status of the pushbutton and displaying it on Command Prompt or the Terminal. Available at
\LocPushjuliabrief{push-button-status.jl}.}
\label{julia:push-100}
\lstinputlisting{\LocPushjuliacode/push-button-status.jl}
@@ -454,17 +498,45 @@ Julia-Arduino toolbox commands. \section{Reading the Pushbutton Status from OpenModelica}
\subsection{Reading the Pushbutton Status}
-In this section, we shall perform the pushbutton operation using
-OpenModelica-Arduino toolbox commands.
+In this section, we discuss how to carry out the experiments of the
+previous section from OpenModelica. We will list the same two experiments,
+in the same order. The shield has to be attached to the \arduino\ board
+before doing these experiments and the \arduino\ needs to be connected to the computer
+with a USB cable, as shown in \figref{arduino}.
+The reader should go through the instructions given in
+\secref{sec:OpenModelica-start} before getting started.
+
\begin{enumerate}
-\item In the first experiment, we will read the pushbutton status in
- OpenModelica output Console. The code for this experiment is given in
- \OpenModelicaref{OpenModelica:push-100}. As explained earlier, we begin with serial
- port initialization. Then, using the command,
- \lstinputlisting[firstline=16,lastline=16]
- {\LocPushOpenModelicacode/push-button-status.mo} we read the input of
- digital pin 12.
-\item This experiment is same as previously done with Scilab-Arduino.
+\item In the first experiment, we will read the pushbutton status. The code for this experiment is given in
+ \OpenModelicaref{OpenModelica:push-100}. As explained earlier in \secref{sec:light-OpenModelica},
+ we begin with importing the two packages: Streams and SerialCommunication followed
+ by setting up the serial port. Then, we read the input coming
+ from digital pin 12 using the following command:
+ \lstinputlisting[firstline=16,lastline=16]
+ {\LocPushOpenModelicacode/push-button-status.mo}
+ Note that the one leg of the pushbutton on the shield is connected to digital
+pin 12 of Arduino Uno as given in \figref{fig:pushbuttonconn}. The read value is displayed (or
+printed) by the following lines:
+\lstinputlisting[firstline=17,lastline=23]
+ {\LocPushOpenModelicacode/push-button-status.mo} where {\tt val} contains the pushbutton value acquired by the previous command.
+ When the pushbutton is not pressed, {\tt val} will be ``0''. On the other hand,
+ when the pushbutton is pressed, {\tt val} will be ``1''. To encourage the user to have a good hands-on, we run these commands in a
+{\tt for} loop for 200 iterations. The readers are encouraged to change the number
+of iterations as per their requirements. While executing this model in OpenModelica,
+the user must press and release the pushbutton and observe the values being printed
+on the output window, as shown in \figref{om-sim-success}.
+\item This experiment is an extension of the previous
+ experiment. Here, we control the state of an LED as per the status
+ of the pushbutton. In other words, digital output to an LED is
+ decided by the digital input received from the pushbutton. The code
+ for this experiment is given in \OpenModelicaref{OpenModelica:push-200}.
+ After reading the pushbutton status, we turn the LED on if the pushbutton is
+ pressed, otherwise we turn it off. The following lines,
+ \lstinputlisting[firstline=17,lastline=23]
+ {\LocPushOpenModelicacode/led-push-button.mo} perform the condition check
+ and corresponding LED state control operation. While running this experiment, the reader must press and release the push-
+ button. Accordingly, they can observe whether the LED glows when the push-
+ button is pressed.
\end{enumerate}
%%%%%%%%%%%%OpenModelica decription ends
@@ -484,8 +556,7 @@ OpenModelica-Arduino toolbox commands. \begin{OpenModelicacode}
\mcaption{Read the status of the pushbutton and displaying on the
- serial monitor}{Read the status of the pushbutton and displaying on
- the serial monitor. Available at
+ serial monitor}{Read the status of the pushbutton and displaying it on the output window. Available at
\LocPushOpenModelicabrief{push-button-status.mo}.}
\label{OpenModelica:push-100}
\lstinputlisting{\LocPushOpenModelicacode/push-button-status.mo}
diff --git a/user-code/push/python/led-push-button.py b/user-code/push/python/led-push-button.py index e5ef6bf..887b4c6 100644 --- a/user-code/push/python/led-push-button.py +++ b/user-code/push/python/led-push-button.py @@ -1,8 +1,7 @@ import os import sys -cwd=os.getcwd() -(setpath,Examples)=os.path.split(cwd) -#print setpath +cwd = os.getcwd() +(setpath,Examples) = os.path.split(cwd) sys.path.append(setpath) from Arduino.Arduino import Arduino @@ -11,32 +10,32 @@ from time import sleep class PUSHBUTTON_LED: def __init__(self,baudrate): - self.baudrate=baudrate + self.baudrate = baudrate self.setup() self.run() self.exit() def setup(self): - self.obj_arduino=Arduino() - self.port=self.obj_arduino.locateport() - self.obj_arduino.open_serial(1,self.port,self.baudrate) + self.obj_arduino = Arduino() + self.port = self.obj_arduino.locateport() + self.obj_arduino.open_serial(1, self.port, self.baudrate) def run(self): - self.blue=9 - self.green=10 - self.red=11 - self.pushbutton=12 + self.blue = 9 + self.green = 10 + self.red = 11 + self.pushbutton = 12 for i in range(20): - val=self.obj_arduino.cmd_digital_in(1,self.pushbutton) - #sleep(0.5) - print (val) - self.obj_arduino.cmd_digital_out(1,self.blue,val) + val = self.obj_arduino.cmd_digital_in(1, self.pushbutton) + # sleep(0.5) + # print (val) + self.obj_arduino.cmd_digital_out(1, self.blue, val) sleep(0.5) def exit(self): self.obj_arduino.close_serial() def main(): - obj_pushbutton=PUSHBUTTON_LED(115200) + obj_pushbutton = PUSHBUTTON_LED(115200) if __name__=='__main__': main() diff --git a/user-code/push/python/push-button-status.py b/user-code/push/python/push-button-status.py index df4168c..a8864c4 100644 --- a/user-code/push/python/push-button-status.py +++ b/user-code/push/python/push-button-status.py @@ -1,8 +1,7 @@ import os import sys -cwd=os.getcwd() -(setpath,Examples)=os.path.split(cwd) -#print setpath +cwd = os.getcwd() +(setpath,Examples) = os.path.split(cwd) sys.path.append(setpath) from Arduino.Arduino import Arduino @@ -11,20 +10,20 @@ from time import sleep class PUSHBUTTON: def __init__(self,baudrate): - self.baudrate=baudrate + self.baudrate = baudrate self.setup() self.run() self.exit() def setup(self): - self.obj_arduino=Arduino() - self.port=self.obj_arduino.locateport() - self.obj_arduino.open_serial(1,self.port,self.baudrate) + self.obj_arduino = Arduino() + self.port = self.obj_arduino.locateport() + self.obj_arduino.open_serial(1, self.port, self.baudrate) def run(self): - self.pushbutton=12 - for i in range(10): - val=self.obj_arduino.cmd_digital_in(1,self.pushbutton) + self.pushbutton = 12 + for i in range(20): + val = self.obj_arduino.cmd_digital_in(1, self.pushbutton) sleep(1) print (val) @@ -32,7 +31,7 @@ class PUSHBUTTON: self.obj_arduino.close_serial() def main(): - obj_pushbutton=PUSHBUTTON(115200) + obj_pushbutton = PUSHBUTTON(115200) if __name__=='__main__': main() diff --git a/user-code/push/scilab/led-push-button.sce b/user-code/push/scilab/led-push-button.sce index 8195e32..a70def1 100644 --- a/user-code/push/scilab/led-push-button.sce +++ b/user-code/push/scilab/led-push-button.sce @@ -1,12 +1,12 @@ -ok=open_serial(1,2,115200); // port 2, baudrate 115200
-if ok~=0 then error('Unable to open serial port, please check'); end
-for i=1:1000 //Run for 1000 iterations
- p=cmd_digital_in(1,12)
- if p==0
- cmd_digital_out(1,9,0)
+ok = open_serial(1, 2, 115200); // port 2, baudrate 115200
+if ok ~= 0 then error('Unable to open serial port, please check'); end
+for i = 1:1000 //Run for 1000 iterations
+ p = cmd_digital_in(1, 12)
+ if p == 0
+ cmd_digital_out(1, 9, 0)
else
- cmd_digital_out(1,9,1)
+ cmd_digital_out(1, 9, 1)
end
end
-close_serial(1)
+close_serial(1);
diff --git a/user-code/push/scilab/push-button-status.sce b/user-code/push/scilab/push-button-status.sce index 24f1214..2f4f74b 100644 --- a/user-code/push/scilab/push-button-status.sce +++ b/user-code/push/scilab/push-button-status.sce @@ -1,9 +1,9 @@ -ok=open_serial(1,2,115200); // port 2, baud rate 115200
-if ok~=0 then error('Unable to open serial port, please check'), end
-for i=1:1000 // Run for 1000 iterations
- val = cmd_digital_in(1,12); // Read the status of pin 12
+ok = open_serial(1, 2, 115200); // port 2, baud rate 115200
+if ok ~= 0 then error('Unable to open serial port, please check'), end
+for i = 1:1000 // Run for 1000 iterations
+ val = cmd_digital_in(1, 12); // Read the status of pin 12
cmd_arduino_meter(val);
end
-close_serial(1) // To close the connection safely
+close_serial(1); // To close the connection safely
|