diff options
author | SudhakarKuma | 2021-05-01 07:47:42 +0530 |
---|---|---|
committer | SudhakarKuma | 2021-05-01 07:47:42 +0530 |
commit | bdffa1c4ec83835e67fac9b1f4d9b0516a95df0c (patch) | |
tree | 9c0cf2174178c8084c06f05e502d2e087b4b332d | |
parent | 9604d05f38ea3bd026d7bc2eb4df02f312bc8587 (diff) | |
download | FLOSS-Arduino-Book-bdffa1c4ec83835e67fac9b1f4d9b0516a95df0c.tar.gz FLOSS-Arduino-Book-bdffa1c4ec83835e67fac9b1f4d9b0516a95df0c.tar.bz2 FLOSS-Arduino-Book-bdffa1c4ec83835e67fac9b1f4d9b0516a95df0c.zip |
Add arduino meter and OM files
-rw-r--r-- | floss-arduino.OpenModelicad | 32 | ||||
-rw-r--r-- | floss-arduino.ard | 28 | ||||
-rw-r--r-- | floss-arduino.aux | 1770 | ||||
-rw-r--r-- | floss-arduino.cod | 36 | ||||
-rw-r--r-- | floss-arduino.fdb_latexmk | 63 | ||||
-rw-r--r-- | floss-arduino.fls | 3 | ||||
-rw-r--r-- | floss-arduino.idx | 10 | ||||
-rw-r--r-- | floss-arduino.ind | 10 | ||||
-rw-r--r-- | floss-arduino.juliad | 32 | ||||
-rw-r--r-- | floss-arduino.lof | 103 | ||||
-rw-r--r-- | floss-arduino.log | 393 | ||||
-rw-r--r-- | floss-arduino.lot | 50 | ||||
-rw-r--r-- | floss-arduino.pdf | bin | 20894802 -> 20904294 bytes | |||
-rw-r--r-- | floss-arduino.pyd | 34 | ||||
-rw-r--r-- | floss-arduino.thm | 178 | ||||
-rw-r--r-- | floss-arduino.toc | 236 | ||||
-rw-r--r-- | user-code/push/OpenModelica/led-push-button.mo | 10 | ||||
-rw-r--r-- | user-code/push/OpenModelica/push-button-status.mo | 13 | ||||
-rw-r--r-- | user-code/push/figures/sci-ard-meter.png | bin | 0 -> 14461 bytes | |||
-rw-r--r-- | user-code/push/push.tex | 48 | ||||
-rw-r--r-- | user-code/push/scilab/led-push-button.sce | 4 |
21 files changed, 1536 insertions, 1517 deletions
diff --git a/floss-arduino.OpenModelicad b/floss-arduino.OpenModelicad index f7fe6da..8df74f6 100644 --- a/floss-arduino.OpenModelicad +++ b/floss-arduino.OpenModelicad @@ -6,25 +6,25 @@ \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}{111}% -\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{111}% +\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{112}% \addvspace {10pt} -\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{128}% -\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{129}% +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{130}% +\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{131}% \addvspace {10pt} -\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{142}% +\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{144}% \addvspace {10pt} -\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}% +\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{163}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{164}% \addvspace {10pt} -\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}% +\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{184}% +\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{184}% +\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{185}% \addvspace {10pt} -\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}% +\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{206}% +\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{207}% +\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{208}% +\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{208}% \addvspace {10pt} -\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}% +\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{228}% +\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{228}% +\contentsline {section}{\numberline {11.{3}}Code for Single Phase Active Power Output}{229}% diff --git a/floss-arduino.ard b/floss-arduino.ard index d7a7b7d..f6ae4ef 100644 --- a/floss-arduino.ard +++ b/floss-arduino.ard @@ -5,24 +5,24 @@ \contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{73}% \contentsline {section}{\numberline {4.{4}}Blinking the green LED}{73}% \addvspace {10pt} -\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying on the serial monitor}{99}% +\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it 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}{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}{149}% -\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}{151}% +\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}{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}% +\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}% \addvspace {10pt} -\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}% +\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{189}% +\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{190}% +\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in increments}{190}% +\contentsline {section}{\numberline {10.{4}}Rotating the servomotor through the potentiometer}{191}% \addvspace {10pt} -\contentsline {section}{\numberline {11.{1}}First 10 lines of the firmware for Modbus Energy Meter experiment}{221}% +\contentsline {section}{\numberline {11.{1}}First 10 lines of the firmware for Modbus Energy Meter experiment}{223}% diff --git a/floss-arduino.aux b/floss-arduino.aux index 5344460..92ea708 100644 --- a/floss-arduino.aux +++ b/floss-arduino.aux @@ -545,7 +545,7 @@ \newlabel{sec:push-arduino-code}{{5.3.2}{99}} \@writefile{ard}{\addvspace {10pt}} \@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{5.{1}}{}}{99}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and displaying on the serial monitor}{99}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the Serial Monitor}{99}\protected@file@percent } \newlabel{45@xvr}{{}{99}} \newlabel{45@vr}{{}{99}} \newlabel{ard:push-100}{{5.{1}}{99}} @@ -560,72 +560,74 @@ \@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{lof}{\contentsline {figure}{\numberline {5.4}{\ignorespaces GUI in Scilab to show the status of the pushbutton\relax }}{101}\protected@file@percent } +\newlabel{fig:ard-meter}{{5.4}{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 {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 it on the GUI}{101}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the GUI}{101}\protected@file@percent } \newlabel{47@xvr}{{}{101}} \newlabel{47@vr}{{}{101}} \newlabel{sci:push-100}{{5.{1}}{101}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push\textendash button\textendash status.sce}{101}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{5.{2}}{}}{101}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{101}\protected@file@percent } -\newlabel{48@xvr}{{}{101}} -\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{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{thm}{\contentsline {codemass}{{Scilab Code}{5.{2}}{}}{102}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{102}\protected@file@percent } +\newlabel{48@xvr}{{}{102}} +\newlabel{48@vr}{{}{102}} +\newlabel{sci:push-200}{{5.{2}}{102}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led\textendash push\textendash button.sce}{102}\protected@file@percent } \@writefile{toc}{\contentsline {section}{\numberline {5.5}Accessing the Pushbutton from Xcos}{102}\protected@file@percent } \newlabel{sec:push-xcos}{{5.5}{102}} +\@writefile{lof}{\contentsline {figure}{\numberline {5.5}{\ignorespaces Printing the push button status on the display block}}{103}\protected@file@percent } +\newlabel{50@xvr}{{}{103}} +\newlabel{50@vr}{{}{103}} +\newlabel{fig:push-button-status}{{5.5}{103}} \@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{thm}{\contentsline {egmass}{{Exercise}{5.{1}}{}}{103}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {5.6}{\ignorespaces Turning the LED on or off, depending on the pushbutton}}{104}\protected@file@percent } +\newlabel{53@xvr}{{}{104}} +\newlabel{53@vr}{{}{104}} +\newlabel{fig:led-push-button}{{5.6}{104}} \@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{toc}{\contentsline {section}{\numberline {5.6}Reading the Pushbutton Status from Python}{105}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.6.1}Reading the Pushbutton Status}{105}\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 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}}{}}{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 } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.6.2}Python Code}{106}\protected@file@percent } +\newlabel{sec:push-python-code}{{5.6.2}{106}} +\@writefile{pyd}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{5.{1}}{}}{106}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the Command Prompt or the Terminal}{106}\protected@file@percent } +\newlabel{55@xvr}{{}{106}} +\newlabel{55@vr}{{}{106}} +\newlabel{py:push-100}{{5.{1}}{106}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push\textendash button\textendash status.py}{106}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{5.{2}}{}}{107}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{107}\protected@file@percent } +\newlabel{56@xvr}{{}{107}} +\newlabel{56@vr}{{}{107}} +\newlabel{py:push-200}{{5.{2}}{107}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led\textendash push\textendash button.py}{107}\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{toc}{\contentsline {section}{\numberline {5.7}Reading the Pushbutton Status from Julia}{108}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.7.1}Reading the Pushbutton Status}{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/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 {subsection}{\numberline {5.7.2}Julia Code}{108}\protected@file@percent } -\newlabel{sec:push-julia-code}{{5.7.2}{108}} +\@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 {subsection}{\numberline {5.7.2}Julia Code}{109}\protected@file@percent } +\newlabel{sec:push-julia-code}{{5.7.2}{109}} \@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 } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{5.{1}}{}}{109}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on Command Prompt or the Terminal.}{109}\protected@file@percent } \newlabel{57@xvr}{{}{109}} \newlabel{57@vr}{{}{109}} \newlabel{julia:push-100}{{5.{1}}{109}} @@ -636,914 +638,910 @@ \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{toc}{\contentsline {section}{\numberline {5.8}Reading the Pushbutton Status from OpenModelica}{110}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.8.1}Reading the Pushbutton Status}{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/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{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led\textendash push\textendash button.mo}{111}\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}}{}}{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{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{5.{2}}{}}{112}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{112}\protected@file@percent } +\newlabel{OpenModelica:push-200}{{5.{2}}{112}} \@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{toc}{\contentsline {chapter}{\numberline {6}Interfacing a Light Dependent Resistor}{115}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{ldr}{{6}{113}} -\@writefile{toc}{\contentsline {section}{\numberline {6.1}Preliminaries}{113}\protected@file@percent } -\newlabel{fig:ldr}{{6.1a}{114}} +\newlabel{ldr}{{6}{115}} +\@writefile{toc}{\contentsline {section}{\numberline {6.1}Preliminaries}{115}\protected@file@percent } +\newlabel{fig:ldr}{{6.1a}{116}} \newlabel{sub@fig:ldr}{{(a)}{a}} -\newlabel{fig:ldrsym}{{6.1b}{114}} +\newlabel{fig:ldrsym}{{6.1b}{116}} \newlabel{sub@fig:ldrsym}{{(b)}{b}} -\@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{lof}{\contentsline {figure}{\numberline {6.1}{\ignorespaces Light Dependent Resistor\relax }}{116}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Pictorial representation of an LDR}}}{116}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Symbolic representation of an LDR}}}{116}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {6.2}{\ignorespaces Internal connection diagram for the LDR on the shield\relax }}{116}\protected@file@percent } +\newlabel{fig:ldrconn}{{6.2}{116}} +\@writefile{lof}{\contentsline {figure}{\numberline {6.3}{\ignorespaces An LDR to read its values with Arduino Uno\ using a breadboard\relax }}{117}\protected@file@percent } +\newlabel{fig:ard-ldr}{{6.3}{117}} +\@writefile{toc}{\contentsline {section}{\numberline {6.2}Connecting an LDR with Arduino Uno\ using a breadboard}{117}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {6.4}{\ignorespaces An LDR to control an LED with Arduino Uno using a breadboard\relax }}{118}\protected@file@percent } +\newlabel{fig:ard-ldr-led}{{6.4}{118}} +\@writefile{toc}{\contentsline {section}{\numberline {6.3}Interfacing the LDR through the Arduino IDE}{118}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.3.1}Interfacing the LDR}{118}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{118}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{119}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{119}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{1}}{}}{119}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.3.2}Arduino Code}{119}\protected@file@percent } +\newlabel{sec:ldr-arduino-code}{{6.3.2}{119}} \@writefile{ard}{\addvspace {10pt}} -\@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{thm}{\contentsline {ardmass}{{Arduino Code}{6.{1}}{}}{119}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{119}\protected@file@percent } +\newlabel{59@xvr}{{}{119}} +\newlabel{59@vr}{{}{119}} +\newlabel{ard:ldr-read}{{6.{1}}{119}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{119}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{6.{2}}{}}{120}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{120}\protected@file@percent } +\newlabel{60@xvr}{{}{120}} +\newlabel{60@vr}{{}{120}} +\newlabel{ard:ldr-led}{{6.{2}}{120}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash led/ldr\textendash led.ino}{120}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {6.4}Interfacing the LDR through Scilab}{120}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.4.1}Interfacing the LDR}{120}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{2}}{}}{121}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.4.2}Scilab Code}{121}\protected@file@percent } +\newlabel{sec:ldr-scilab-code}{{6.4.2}{121}} \@writefile{cod}{\addvspace {10pt}} -\@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{thm}{\contentsline {codemass}{{Scilab Code}{6.{1}}{}}{121}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{121}\protected@file@percent } +\newlabel{61@xvr}{{}{121}} +\newlabel{61@vr}{{}{121}} +\newlabel{sci:ldr-read}{{6.{1}}{121}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr\textendash read.sce}{121}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{6.{2}}{}}{122}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{122}\protected@file@percent } +\newlabel{62@xvr}{{}{122}} +\newlabel{62@vr}{{}{122}} +\newlabel{sci:ldr-led}{{6.{2}}{122}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr\textendash led.sce}{122}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {6.5}Interfacing the LDR through Xcos}{122}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {6.5}{\ignorespaces Xcos diagram to read LDR values}}{123}\protected@file@percent } +\newlabel{64@xvr}{{}{123}} +\newlabel{64@vr}{{}{123}} +\newlabel{fig:ldr-read}{{6.5}{123}} +\@writefile{lot}{\contentsline {table}{\numberline {6.1}{\ignorespaces Xcos parameters to read LDR\relax }}{123}\protected@file@percent } +\newlabel{tab:ldr-read}{{6.1}{123}} +\newlabel{65@xvr}{{}{123}} +\newlabel{65@vr}{{}{123}} +\@writefile{lof}{\contentsline {figure}{\numberline {6.6}{\ignorespaces Xcos diagram to read the value of the LDR, which is used to turn the blue LED on or off}}{124}\protected@file@percent } +\newlabel{67@xvr}{{}{124}} +\newlabel{67@vr}{{}{124}} +\newlabel{fig:ldr-led}{{6.6}{124}} +\@writefile{toc}{\contentsline {section}{\numberline {6.6}Interfacing the LDR through Python}{124}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.6.1}Interfacing the LDR}{124}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {6.2}{\ignorespaces Xcos parameters to read LDR and regulate blue LED\relax }}{125}\protected@file@percent } +\newlabel{tab:ldr-led}{{6.2}{125}} +\newlabel{68@xvr}{{}{125}} +\newlabel{68@vr}{{}{125}} +\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{3}}{}}{125}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.6.2}Python Code}{126}\protected@file@percent } +\newlabel{sec:ldr-python-code}{{6.6.2}{126}} \@writefile{pyd}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {pymass}{{Python Code}{6.{1}}{}}{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{thm}{\contentsline {pymass}{{Python Code}{6.{1}}{}}{126}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{126}\protected@file@percent } +\newlabel{69@xvr}{{}{126}} +\newlabel{69@vr}{{}{126}} +\newlabel{py:ldr-read}{{6.{1}}{126}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash read.py}{126}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{6.{2}}{}}{127}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{127}\protected@file@percent } +\newlabel{70@xvr}{{}{127}} +\newlabel{70@vr}{{}{127}} +\newlabel{py:ldr-led}{{6.{2}}{127}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash led.py}{127}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {6.7}Interfacing the LDR through Julia}{128}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.7.1}Interfacing the LDR}{128}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led\textendash push\textendash button.jl}{128}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{4}}{}}{128}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.7.2}Julia Code}{129}\protected@file@percent } +\newlabel{sec:ldr-julia-code}{{6.7.2}{129}} \@writefile{juliad}{\addvspace {10pt}} -\@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{thm}{\contentsline {juliamass}{{Julia Code}{6.{1}}{}}{129}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{129}\protected@file@percent } +\newlabel{71@xvr}{{}{129}} +\newlabel{71@vr}{{}{129}} +\newlabel{julia:ldr-read}{{6.{1}}{129}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash read.jl}{129}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{6.{2}}{}}{129}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{129}\protected@file@percent } +\newlabel{72@xvr}{{}{129}} +\newlabel{72@vr}{{}{129}} +\newlabel{julia:ldr-led}{{6.{2}}{129}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash led.jl}{129}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {6.8}Interfacing the LDR through OpenModelica}{129}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.8.1}Interfacing the LDR}{129}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led\textendash push\textendash button.mo}{130}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.8.2}OpenModelica Code}{130}\protected@file@percent } +\newlabel{sec:ldr-OpenModelica-code}{{6.8.2}{130}} \@writefile{OpenModelicad}{\addvspace {10pt}} -\@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{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{1}}{}}{130}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{130}\protected@file@percent } +\newlabel{73@xvr}{{}{130}} +\newlabel{73@vr}{{}{130}} +\newlabel{OpenModelica:ldr-read}{{6.{1}}{130}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash read.mo}{130}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{2}}{}}{131}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{131}\protected@file@percent } +\newlabel{74@xvr}{{}{131}} +\newlabel{74@vr}{{}{131}} +\newlabel{OpenModelica:ldr-led}{{6.{2}}{131}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash led.mo}{131}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {7}Interfacing a Potentiometer}{133}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\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{potmeter}{{7}{133}} +\@writefile{toc}{\contentsline {section}{\numberline {7.1}Preliminaries}{133}\protected@file@percent } +\newlabel{75@xvr}{{}{133}} +\newlabel{75@vr}{{}{133}} +\newlabel{fig:pot}{{7.1a}{134}} \newlabel{sub@fig:pot}{{(a)}{a}} -\newlabel{fig:potsch}{{7.1b}{132}} +\newlabel{fig:potsch}{{7.1b}{134}} \newlabel{sub@fig:potsch}{{(b)}{b}} -\@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{lof}{\contentsline {figure}{\numberline {7.1}{\ignorespaces Potentiometer's schematic on the shield\relax }}{134}\protected@file@percent } +\newlabel{fig:potmeterconn}{{7.1}{134}} +\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Pictorial representation of a potentiometer}}}{134}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Schematic representation of the potentiometer}}}{134}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.2}Connecting a potentiometer with Arduino Uno\ using a breadboard}{134}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {7.2}{\ignorespaces A potentiometer to control an LED with Arduino Uno using a breadboard\relax }}{135}\protected@file@percent } +\newlabel{fig:pot-led}{{7.2}{135}} +\@writefile{toc}{\contentsline {section}{\numberline {7.3}Reading the potentiometer from the Arduino IDE}{135}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.3.1}Reading the potentiometer}{135}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot\textendash threshold/pot\textendash threshold.ino}{136}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot\textendash threshold/pot\textendash threshold.ino}{136}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.3.2}Arduino Code}{136}\protected@file@percent } +\newlabel{sec:pot-arduino-code}{{7.3.2}{136}} \@writefile{ard}{\addvspace {10pt}} -\@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{thm}{\contentsline {ardmass}{{Arduino Code}{7.{1}}{}}{136}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{136}\protected@file@percent } +\newlabel{76@xvr}{{}{136}} +\newlabel{76@vr}{{}{136}} +\newlabel{ard:pot-100}{{7.{1}}{136}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot\textendash threshold/pot\textendash threshold.ino}{136}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.4}Reading the potentiometer from Scilab}{137}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.4.1}Reading the potentiometer}{137}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot\textendash threshold.sce}{137}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot\textendash threshold.sce}{137}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.4.2}Scilab Code}{138}\protected@file@percent } +\newlabel{sec:pot-scilab-code}{{7.4.2}{138}} \@writefile{cod}{\addvspace {10pt}} -\@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{thm}{\contentsline {codemass}{{Scilab Code}{7.{1}}{}}{138}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{138}\protected@file@percent } +\newlabel{77@xvr}{{}{138}} +\newlabel{77@vr}{{}{138}} +\newlabel{sci:pot-100}{{7.{1}}{138}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot\textendash threshold.sce}{138}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.5}Reading the potentiometer from Xcos}{138}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {7.3}{\ignorespaces Turning LEDs on through Xcos depending on the potentiometer threshold}}{139}\protected@file@percent } +\newlabel{79@xvr}{{}{139}} +\newlabel{79@vr}{{}{139}} +\newlabel{fig:pot-threshold}{{7.3}{139}} +\@writefile{toc}{\contentsline {paragraph}{Exercise:}{139}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.6}Reading the potentiometer from Python}{139}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.6.1}Reading the potentiometer}{139}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {7.1}{\ignorespaces Xcos parameters to turn on different LEDs depending on the potentiometer value\relax }}{140}\protected@file@percent } +\newlabel{tab:pot-threshold}{{7.1}{140}} +\newlabel{80@xvr}{{}{140}} +\newlabel{80@vr}{{}{140}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot\textendash threshold.py}{140}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot\textendash threshold.py}{141}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.6.2}Python Code}{141}\protected@file@percent } +\newlabel{sec:pot-python-code}{{7.6.2}{141}} \@writefile{pyd}{\addvspace {10pt}} -\@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{thm}{\contentsline {pymass}{{Python Code}{7.{1}}{}}{141}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{141}\protected@file@percent } +\newlabel{81@xvr}{{}{141}} +\newlabel{81@vr}{{}{141}} +\newlabel{py:pot-100}{{7.{1}}{141}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot\textendash threshold.py}{141}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.7}Reading the potentiometer from Julia}{142}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.7.1}Reading the potentiometer}{142}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot\textendash threshold.jl}{142}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot\textendash threshold.jl}{142}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.7.2}Julia Code}{143}\protected@file@percent } +\newlabel{sec:pot-julia-code}{{7.7.2}{143}} \@writefile{juliad}{\addvspace {10pt}} -\@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{thm}{\contentsline {juliamass}{{Julia Code}{7.{1}}{}}{143}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{143}\protected@file@percent } +\newlabel{82@xvr}{{}{143}} +\newlabel{82@vr}{{}{143}} +\newlabel{julia:pot-100}{{7.{1}}{143}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot\textendash threshold.jl}{143}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.8}Reading the potentiometer from OpenModelica}{143}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.8.1}Reading the potentiometer}{143}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot\textendash threshold.mo}{143}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot\textendash threshold.mo}{144}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.8.2}OpenModelica Code}{144}\protected@file@percent } +\newlabel{sec:pot-OpenModelica-code}{{7.8.2}{144}} \@writefile{OpenModelicad}{\addvspace {10pt}} -\@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 } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{7.{1}}{}}{144}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{144}\protected@file@percent } +\newlabel{83@xvr}{{}{144}} +\newlabel{83@vr}{{}{144}} +\newlabel{OpenModelica:pot-100}{{7.{1}}{144}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot\textendash threshold.mo}{144}\protected@file@percent } \citation{therm-wiki} \citation{therm-wiki} -\@writefile{toc}{\contentsline {chapter}{\numberline {8}Interfacing a Thermistor}{145}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {8}Interfacing a Thermistor}{147}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{thermistor}{{8}{145}} -\@writefile{toc}{\contentsline {section}{\numberline {8.1}Preliminaries}{145}\protected@file@percent } -\newlabel{fig:therm}{{8.1a}{146}} +\newlabel{thermistor}{{8}{147}} +\@writefile{toc}{\contentsline {section}{\numberline {8.1}Preliminaries}{147}\protected@file@percent } +\newlabel{fig:therm}{{8.1a}{148}} \newlabel{sub@fig:therm}{{(a)}{a}} -\newlabel{fig:thermsym}{{8.1b}{146}} +\newlabel{fig:thermsym}{{8.1b}{148}} \newlabel{sub@fig:thermsym}{{(b)}{b}} -\@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}} +\@writefile{lof}{\contentsline {figure}{\numberline {8.1}{\ignorespaces Pictorial and symbolic representation of a thermistor\relax }}{148}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Pictorial representation of a thermistor\cite {therm-wiki}}}}{148}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Symbolic representation of a thermistor}}}{148}\protected@file@percent } +\newlabel{fig:therm-conn}{{8.2a}{148}} \newlabel{sub@fig:therm-conn}{{(a)}{a}} -\newlabel{fig:buzzer-conn}{{8.2b}{146}} +\newlabel{fig:buzzer-conn}{{8.2b}{148}} \newlabel{sub@fig:buzzer-conn}{{(b)}{b}} -\@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{lof}{\contentsline {figure}{\numberline {8.2}{\ignorespaces Thermistor and buzzer connection diagrams\relax }}{148}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Thermistor connection diagram}}}{148}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Buzzer connection diagram}}}{148}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {8.2}Connecting a thermistor with Arduino Uno\ using a breadboard}{148}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {8.3}{\ignorespaces A thermistor to read its values with Arduino Uno using a breadboard\relax }}{149}\protected@file@percent } +\newlabel{fig:ard-therm-bread}{{8.3}{149}} +\@writefile{lof}{\contentsline {figure}{\numberline {8.4}{\ignorespaces A thermistor to control a buzzer with Arduino Uno using a breadboard\relax }}{150}\protected@file@percent } +\newlabel{fig:ard-therm-buzzer}{{8.4}{150}} +\@writefile{toc}{\contentsline {section}{\numberline {8.3}Interfacing the Thermistor from the Arduino IDE}{150}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.3.1}Interfacing the Thermistor}{150}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{150}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{150}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{150}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{8.{1}}{}}{151}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.3.2}Arduino Code}{151}\protected@file@percent } +\newlabel{sec:therm-arduino-code}{{8.3.2}{151}} \@writefile{ard}{\addvspace {10pt}} -\@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{thm}{\contentsline {ardmass}{{Arduino Code}{8.{1}}{}}{151}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{151}\protected@file@percent } +\newlabel{84@xvr}{{}{151}} +\newlabel{84@vr}{{}{151}} +\newlabel{ard:therm-read}{{8.{1}}{151}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{151}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{8.{2}}{}}{152}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{152}\protected@file@percent } +\newlabel{85@xvr}{{}{152}} +\newlabel{85@vr}{{}{152}} +\newlabel{ard:therm-buzzer}{{8.{2}}{152}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash buzzer/therm\textendash buzzer.ino}{152}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {8.4}Interfacing the Thermistor from Scilab}{152}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.4.1}Interfacing the Thermistor}{152}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{8.{2}}{}}{153}\protected@file@percent } +\newlabel{therm-abc}{{8.1}{153}} +\newlabel{therm-beta}{{8.2}{154}} +\@writefile{toc}{\contentsline {subsection}{\numberline {8.4.2}Scilab Code}{154}\protected@file@percent } +\newlabel{sec:therm-scilab-code}{{8.4.2}{154}} \@writefile{cod}{\addvspace {10pt}} -\@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{thm}{\contentsline {codemass}{{Scilab Code}{8.{1}}{}}{154}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{154}\protected@file@percent } +\newlabel{86@xvr}{{}{154}} +\newlabel{86@vr}{{}{154}} +\newlabel{sci:therm-read}{{8.{1}}{154}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash read.sce}{154}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{8.{2}}{}}{154}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{154}\protected@file@percent } +\newlabel{87@xvr}{{}{154}} +\newlabel{87@vr}{{}{154}} +\newlabel{sci:therm-buzzer}{{8.{2}}{154}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash buzzer.sce}{154}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {8.5}{\ignorespaces Xcos diagram to read thermistor values}}{155}\protected@file@percent } +\newlabel{89@xvr}{{}{155}} +\newlabel{89@vr}{{}{155}} +\newlabel{fig:therm-read}{{8.5}{155}} +\@writefile{toc}{\contentsline {section}{\numberline {8.5}Interfacing the Thermistor from Xcos}{155}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {8.1}{\ignorespaces Xcos parameters to read thermistor\relax }}{156}\protected@file@percent } +\newlabel{tab:therm-read}{{8.1}{156}} +\newlabel{90@xvr}{{}{156}} +\newlabel{90@vr}{{}{156}} +\@writefile{lof}{\contentsline {figure}{\numberline {8.6}{\ignorespaces Output of Xcos diagram to read thermistor values}}{156}\protected@file@percent } +\newlabel{92@xvr}{{}{156}} +\newlabel{92@vr}{{}{156}} +\newlabel{fig:therm-read-output}{{8.6}{156}} +\@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}}{157}\protected@file@percent } +\newlabel{94@xvr}{{}{157}} +\newlabel{94@vr}{{}{157}} +\newlabel{fig:therm-buzzer}{{8.7}{157}} +\@writefile{lof}{\contentsline {figure}{\numberline {8.8}{\ignorespaces Output of Xcos diagram to switch buzzer through thermistor values}}{157}\protected@file@percent } +\newlabel{97@xvr}{{}{157}} +\newlabel{97@vr}{{}{157}} +\newlabel{fig:therm-buzzer-output}{{8.8}{157}} +\@writefile{lot}{\contentsline {table}{\numberline {8.2}{\ignorespaces Xcos parameters to read thermistor and switch the buzzer\relax }}{158}\protected@file@percent } +\newlabel{tab:ldr-led}{{8.2}{158}} +\newlabel{95@xvr}{{}{158}} +\newlabel{95@vr}{{}{158}} +\@writefile{toc}{\contentsline {section}{\numberline {8.6}Interfacing the Thermistor from Python}{158}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.6.1}Interfacing the Thermistor}{158}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.6.2}Python Code}{159}\protected@file@percent } +\newlabel{sec:therm-pyhton-code}{{8.6.2}{159}} \@writefile{pyd}{\addvspace {10pt}} -\@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{thm}{\contentsline {pymass}{{Python Code}{8.{1}}{}}{159}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{159}\protected@file@percent } +\newlabel{98@xvr}{{}{159}} +\newlabel{98@vr}{{}{159}} +\newlabel{py:therm-read}{{8.{1}}{159}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash read.py}{159}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{8.{2}}{}}{160}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{160}\protected@file@percent } +\newlabel{99@xvr}{{}{160}} +\newlabel{99@vr}{{}{160}} +\newlabel{py:therm-buzzer}{{8.{2}}{160}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash buzzer.py}{160}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {8.7}Interfacing the Thermistor from Julia}{161}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.7.1}Interfacing the Thermistor}{161}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.7.2}Julia Code}{161}\protected@file@percent } +\newlabel{sec:therm-julia-code}{{8.7.2}{161}} \@writefile{juliad}{\addvspace {10pt}} -\@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{thm}{\contentsline {juliamass}{{Julia Code}{8.{1}}{}}{161}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{161}\protected@file@percent } +\newlabel{100@xvr}{{}{161}} +\newlabel{100@vr}{{}{161}} +\newlabel{julia:therm-read}{{8.{1}}{161}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash read.jl}{161}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{8.{2}}{}}{162}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{162}\protected@file@percent } +\newlabel{101@xvr}{{}{162}} +\newlabel{101@vr}{{}{162}} +\newlabel{julia:therm-buzzer}{{8.{2}}{162}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash buzzer.jl}{162}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {8.8}Interfacing the Thermistor from OpenModelica}{162}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.8.1}Interfacing the Thermistor}{162}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.8.2}OpenModelica Code}{163}\protected@file@percent } +\newlabel{sec:therm-OpenModelica-code}{{8.8.2}{163}} \@writefile{OpenModelicad}{\addvspace {10pt}} -\@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{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{1}}{}}{163}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{163}\protected@file@percent } +\newlabel{102@xvr}{{}{163}} +\newlabel{102@vr}{{}{163}} +\newlabel{OpenModelica:therm-read}{{8.{1}}{163}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash read.mo}{163}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{2}}{}}{164}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{164}\protected@file@percent } +\newlabel{103@xvr}{{}{164}} +\newlabel{103@vr}{{}{164}} +\newlabel{OpenModelica:therm-buzzer}{{8.{2}}{164}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash buzzer.mo}{164}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {9}Controlling a DC motor}{165}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\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}} +\newlabel{dcmotor}{{9}{165}} +\@writefile{toc}{\contentsline {section}{\numberline {9.1}Preliminaries}{165}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {9.1}{\ignorespaces L293D motor driver board\relax }}{166}\protected@file@percent } +\newlabel{fig:motordriverboard}{{9.1}{166}} +\@writefile{lof}{\contentsline {figure}{\numberline {9.2}{\ignorespaces A schematic of DC motor connections\relax }}{167}\protected@file@percent } +\newlabel{fig:dcm-schematic}{{9.2}{167}} +\@writefile{lof}{\contentsline {figure}{\numberline {9.3}{\ignorespaces How to connect the DC motor to the Arduino Uno\ board\relax }}{167}\protected@file@percent } +\newlabel{fig:dcmotorconn}{{9.3}{167}} +\@writefile{toc}{\contentsline {section}{\numberline {9.2}Controlling the DC motor from Arduino}{167}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.2.1}Controlling the DC motor}{167}\protected@file@percent } +\newlabel{sec:dcm-ard}{{9.2.1}{167}} +\@writefile{thm}{\contentsline {egmass}{{Exercise}{9.{1}}{}}{168}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.2.2}Arduino Code}{169}\protected@file@percent } +\newlabel{sec:dcmotor-arduino-code}{{9.2.2}{169}} \@writefile{ard}{\addvspace {10pt}} -\@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{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{thm}{\contentsline {ardmass}{{Arduino Code}{9.{1}}{}}{169}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{169}\protected@file@percent } +\newlabel{104@xvr}{{}{169}} +\newlabel{104@vr}{{}{169}} +\newlabel{ard:dcmotor-clock}{{9.{1}}{169}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{169}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{2}}{}}{169}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{169}\protected@file@percent } +\newlabel{105@xvr}{{}{169}} +\newlabel{105@vr}{{}{169}} +\newlabel{ard:dcmotor-both}{{9.{2}}{169}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash both/dcmotor\textendash both.ino}{169}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{3}}{}}{169}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{169}\protected@file@percent } +\newlabel{106@xvr}{{}{169}} +\newlabel{106@vr}{{}{169}} +\newlabel{ard:dcmotor-loop}{{9.{3}}{169}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash loop/dcmotor\textendash loop.ino}{170}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {9.3}Controlling the DC motor from Scilab}{170}\protected@file@percent } +\newlabel{sec:dcm-sci}{{9.3}{170}} +\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.1}Initialization}{170}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {9.1}{\ignorespaces A numbering convention used in the DC motor breakout board\relax }}{171}\protected@file@percent } +\newlabel{table:convention}{{9.1}{171}} +\@writefile{lot}{\contentsline {table}{\numberline {9.2}{\ignorespaces Parameters for DC motor initialization\relax }}{171}\protected@file@percent } +\newlabel{tab:dcmotor-init}{{9.2}{171}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{171}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.2}Rotation for a specified time}{171}\protected@file@percent } +\newlabel{sec:dc-both}{{9.3.2}{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{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{172}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{172}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{9.{2}}{}}{172}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.3}Using the capabilities of Scilab}{172}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.4}Scilab Code}{173}\protected@file@percent } +\newlabel{sec:dcmotor-scilab-code}{{9.3.4}{173}} +\@writefile{cod}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{1}}{}}{173}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{173}\protected@file@percent } +\newlabel{107@xvr}{{}{173}} +\newlabel{107@vr}{{}{173}} +\newlabel{sci:dcmotor-clock}{{9.{1}}{173}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{173}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{2}}{}}{173}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{173}\protected@file@percent } +\newlabel{108@xvr}{{}{173}} +\newlabel{108@vr}{{}{173}} +\newlabel{sci:dcmotor-both}{{9.{2}}{173}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash both.sce}{173}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{3}}{}}{173}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{173}\protected@file@percent } +\newlabel{109@xvr}{{}{173}} +\newlabel{109@vr}{{}{173}} +\newlabel{sci:dcmotor-loop}{{9.{3}}{173}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash loop.sce}{173}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {9.4}{\ignorespaces Control of DC motor for a specified time from Xcos}}{174}\protected@file@percent } +\newlabel{111@xvr}{{}{174}} +\newlabel{111@vr}{{}{174}} +\newlabel{fig:dcmotor-clock}{{9.4}{174}} +\@writefile{toc}{\contentsline {section}{\numberline {9.4}Controlling the DC Motor from Xcos}{174}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {9.3}{\ignorespaces Xcos parameters to drive the DC motor for a specified time\relax }}{175}\protected@file@percent } +\newlabel{tab:dcmotor-clock}{{9.3}{175}} +\newlabel{112@xvr}{{}{175}} +\newlabel{112@vr}{{}{175}} +\@writefile{thm}{\contentsline {egmass}{{Exercise}{9.{3}}{}}{175}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {9.5}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{176}\protected@file@percent } +\newlabel{114@xvr}{{}{176}} +\newlabel{114@vr}{{}{176}} +\newlabel{fig:dcmotor-both}{{9.5}{176}} +\@writefile{lot}{\contentsline {table}{\numberline {9.4}{\ignorespaces Xcos parameters to drive the DC motor in forward and reverse directions\relax }}{176}\protected@file@percent } +\newlabel{tab:dcmotor-both}{{9.4}{176}} +\newlabel{115@xvr}{{}{176}} +\newlabel{115@vr}{{}{176}} +\@writefile{lof}{\contentsline {figure}{\numberline {9.6}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{177}\protected@file@percent } +\newlabel{117@xvr}{{}{177}} +\newlabel{117@vr}{{}{177}} +\newlabel{fig:dcmotor-loop}{{9.6}{177}} +\@writefile{toc}{\contentsline {section}{\numberline {9.5}Controlling the DC Motor from Python}{177}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.5.1}Controlling the DC Motor}{177}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {9.5}{\ignorespaces Xcos parameters to drive the DC motor in a loop\relax }}{178}\protected@file@percent } +\newlabel{tab:dcmotor-loop}{{9.5}{178}} +\newlabel{118@xvr}{{}{178}} +\newlabel{118@vr}{{}{178}} +\@writefile{toc}{\contentsline {subsection}{\numberline {9.5.2}Python Code}{179}\protected@file@percent } +\newlabel{sec:dcmotor-python-code}{{9.5.2}{179}} \@writefile{pyd}{\addvspace {10pt}} -\@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{thm}{\contentsline {pymass}{{Python Code}{9.{1}}{}}{179}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{179}\protected@file@percent } +\newlabel{119@xvr}{{}{179}} +\newlabel{119@vr}{{}{179}} +\newlabel{py:dcmotor-clock}{{9.{1}}{179}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash clock.py}{179}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{9.{2}}{}}{180}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{180}\protected@file@percent } +\newlabel{120@xvr}{{}{180}} +\newlabel{120@vr}{{}{180}} +\newlabel{py:dcmotor-both}{{9.{2}}{180}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash both.py}{180}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{9.{3}}{}}{180}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{180}\protected@file@percent } +\newlabel{121@xvr}{{}{181}} +\newlabel{121@vr}{{}{181}} +\newlabel{py:dcmotor-loop}{{9.{3}}{181}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash loop.py}{181}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {9.6}Controlling the DC Motor from Julia}{182}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.6.1}Controlling the DC Motor}{182}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.6.2}Julia Code}{182}\protected@file@percent } +\newlabel{sec:dcmotor-julia-code}{{9.6.2}{182}} \@writefile{juliad}{\addvspace {10pt}} -\@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{thm}{\contentsline {juliamass}{{Julia Code}{9.{1}}{}}{182}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{182}\protected@file@percent } +\newlabel{122@xvr}{{}{182}} +\newlabel{122@vr}{{}{182}} +\newlabel{julia:dcmotor-clock}{{9.{1}}{182}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash clock.jl}{182}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{9.{2}}{}}{183}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{183}\protected@file@percent } +\newlabel{123@xvr}{{}{183}} +\newlabel{123@vr}{{}{183}} +\newlabel{julia:dcmotor-both}{{9.{2}}{183}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash both.jl}{183}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{9.{3}}{}}{183}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{183}\protected@file@percent } +\newlabel{124@xvr}{{}{183}} +\newlabel{124@vr}{{}{183}} +\newlabel{julia:dcmotor-loop}{{9.{3}}{183}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash loop.jl}{183}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {9.7}Controlling the DC Motor from OpenModelica}{183}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.7.1}Controlling the DC Motor}{183}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.7.2}OpenModelica Code}{184}\protected@file@percent } +\newlabel{sec:dcmotor-OpenModelica-code}{{9.7.2}{184}} \@writefile{OpenModelicad}{\addvspace {10pt}} -\@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{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{1}}{}}{184}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{184}\protected@file@percent } +\newlabel{125@xvr}{{}{184}} +\newlabel{125@vr}{{}{184}} +\newlabel{OpenModelica:dcmotor-clock}{{9.{1}}{184}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash clock.mo}{184}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{2}}{}}{184}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{184}\protected@file@percent } +\newlabel{126@xvr}{{}{184}} +\newlabel{126@vr}{{}{184}} +\newlabel{OpenModelica:dcmotor-both}{{9.{2}}{184}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash both.mo}{185}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{3}}{}}{185}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{185}\protected@file@percent } +\newlabel{127@xvr}{{}{185}} +\newlabel{127@vr}{{}{185}} +\newlabel{OpenModelica:dcmotor-loop}{{9.{3}}{185}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash loop.mo}{185}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {10}Interfacing a Servomotor}{187}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\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}} +\newlabel{sec:servo}{{10}{187}} +\@writefile{toc}{\contentsline {section}{\numberline {10.1}Preliminaries}{187}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {10.1}{\ignorespaces Connecting a typical servomotor to Arduino Uno\ board\relax }}{188}\protected@file@percent } +\newlabel{tab:servo-connect}{{10.1}{188}} +\@writefile{toc}{\contentsline {section}{\numberline {10.2}Controlling the Servometer through the Arduino IDE}{188}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.2.1}Controlling the Servometer}{188}\protected@file@percent } +\newlabel{sec:servo-ard}{{10.2.1}{188}} +\@writefile{thm}{\contentsline {egmass}{{Exercise}{10.{1}}{}}{189}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.2.2}Arduino Code}{189}\protected@file@percent } +\newlabel{sec:servo-arduino-code}{{10.2.2}{189}} \@writefile{ard}{\addvspace {10pt}} -\@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{thm}{\contentsline {ardmass}{{Arduino Code}{10.{1}}{}}{189}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{189}\protected@file@percent } +\newlabel{128@xvr}{{}{189}} +\newlabel{128@vr}{{}{189}} +\newlabel{ard:servo-init}{{10.{1}}{189}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash init/servo\textendash init.ino}{189}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{2}}{}}{190}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{190}\protected@file@percent } +\newlabel{129@xvr}{{}{190}} +\newlabel{129@vr}{{}{190}} +\newlabel{ard:servo-reverse}{{10.{2}}{190}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash reverse/servo\textendash reverse.ino}{190}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{3}}{}}{190}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in increments}{190}\protected@file@percent } +\newlabel{130@xvr}{{}{190}} +\newlabel{130@vr}{{}{190}} +\newlabel{ard:servo-loop}{{10.{3}}{190}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash loop/servo\textendash loop.ino}{190}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{4}}{}}{191}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {10.{4}}Rotating the servomotor through the potentiometer}{191}\protected@file@percent } +\newlabel{131@xvr}{{}{191}} +\newlabel{131@vr}{{}{191}} +\newlabel{ard:servo-pot}{{10.{4}}{191}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash pot/servo\textendash pot.ino}{191}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {10.3}Controlling the Servomotor through Scilab}{191}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.3.1}Controlling the Servomotor}{191}\protected@file@percent } +\newlabel{sec:servo-sci}{{10.3.1}{191}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash init.sce}{191}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash pot.sce}{192}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash pot.sce}{192}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.3.2}Scilab Code}{192}\protected@file@percent } +\newlabel{sec:servo-scilab-code}{{10.3.2}{192}} \@writefile{cod}{\addvspace {10pt}} -\@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{thm}{\contentsline {codemass}{{Scilab Code}{10.{1}}{}}{192}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{192}\protected@file@percent } +\newlabel{132@xvr}{{}{192}} +\newlabel{132@vr}{{}{192}} +\newlabel{sci:servo-init}{{10.{1}}{192}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash init.sce}{192}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{2}}{}}{192}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{192}\protected@file@percent } +\newlabel{133@xvr}{{}{192}} +\newlabel{133@vr}{{}{192}} +\newlabel{sci:servo-reverse}{{10.{2}}{192}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash reverse.sce}{193}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{3}}{}}{193}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{193}\protected@file@percent } +\newlabel{134@xvr}{{}{193}} +\newlabel{134@vr}{{}{193}} +\newlabel{sci:servo-loop}{{10.{3}}{193}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash loop.sce}{193}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{4}}{}}{193}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{193}\protected@file@percent } +\newlabel{135@xvr}{{}{193}} +\newlabel{135@vr}{{}{193}} +\newlabel{sci:servo-pot}{{10.{4}}{193}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash pot.sce}{193}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {10.4}Controling the Servomotor through Xcos}{193}\protected@file@percent } +\newlabel{sec:servo-xcos}{{10.4}{193}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.1}{\ignorespaces Rotating the servomotor by a fixed angle}}{194}\protected@file@percent } +\newlabel{137@xvr}{{}{194}} +\newlabel{137@vr}{{}{194}} +\newlabel{fig:servo-init}{{10.1}{194}} +\@writefile{lot}{\contentsline {table}{\numberline {10.2}{\ignorespaces Parameters to rotate the servomotor by $30^\circ $\relax }}{194}\protected@file@percent } +\newlabel{tab:servo-init}{{10.2}{194}} +\newlabel{138@xvr}{{}{194}} +\newlabel{138@vr}{{}{194}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.2}{\ignorespaces Rotating the servomotor forward and then reverse}}{195}\protected@file@percent } +\newlabel{140@xvr}{{}{195}} +\newlabel{140@vr}{{}{195}} +\newlabel{fig:servo-reverse}{{10.2}{195}} +\@writefile{lot}{\contentsline {table}{\numberline {10.3}{\ignorespaces Parameters to rotate the servomotor forward and reverse\relax }}{196}\protected@file@percent } +\newlabel{tab:servo-reverse}{{10.3}{196}} +\newlabel{141@xvr}{{}{196}} +\newlabel{141@vr}{{}{196}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.3}{\ignorespaces Rotating the servomotor in increments of $20^\circ $}}{196}\protected@file@percent } +\newlabel{143@xvr}{{}{196}} +\newlabel{143@vr}{{}{196}} +\newlabel{fig:servo-loop}{{10.3}{196}} +\@writefile{lot}{\contentsline {table}{\numberline {10.4}{\ignorespaces Parameters to make the servomotor to sweep the entire range in increments\relax }}{197}\protected@file@percent } +\newlabel{tab:servo-loop}{{10.4}{197}} +\newlabel{144@xvr}{{}{197}} +\newlabel{144@vr}{{}{197}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.4}{\ignorespaces Rotating the servomotor as suggested by the potentiometer}}{197}\protected@file@percent } +\newlabel{146@xvr}{{}{197}} +\newlabel{146@vr}{{}{197}} +\newlabel{fig:servo-pot}{{10.4}{197}} +\@writefile{lot}{\contentsline {table}{\numberline {10.5}{\ignorespaces Parameters to rotate the servomotor based on the input from the potentiometer\relax }}{198}\protected@file@percent } +\newlabel{tab:servo-pot}{{10.5}{198}} +\newlabel{147@xvr}{{}{198}} +\newlabel{147@vr}{{}{198}} +\@writefile{toc}{\contentsline {section}{\numberline {10.5}Controlling the Servomotor through Python}{198}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.5.1}Controlling the Servomotor}{198}\protected@file@percent } +\newlabel{sec:servo-py}{{10.5.1}{198}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash init.py}{198}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash pot.py}{199}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash pot.py}{199}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.5.2}Python Code}{199}\protected@file@percent } +\newlabel{sec:servo-python-code}{{10.5.2}{199}} \@writefile{pyd}{\addvspace {10pt}} -\@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{thm}{\contentsline {pymass}{{Python Code}{10.{1}}{}}{199}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{199}\protected@file@percent } +\newlabel{148@xvr}{{}{199}} +\newlabel{148@vr}{{}{199}} +\newlabel{py:servo-init}{{10.{1}}{199}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash init.py}{199}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{10.{2}}{}}{200}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{200}\protected@file@percent } +\newlabel{149@xvr}{{}{200}} +\newlabel{149@vr}{{}{200}} +\newlabel{py:servo-reverse}{{10.{2}}{200}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash reverse.py}{200}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{10.{3}}{}}{201}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{201}\protected@file@percent } +\newlabel{150@xvr}{{}{201}} +\newlabel{150@vr}{{}{201}} +\newlabel{sci:servo-loop}{{10.{3}}{201}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash loop.py}{201}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{10.{4}}{}}{202}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{202}\protected@file@percent } +\newlabel{151@xvr}{{}{202}} +\newlabel{151@vr}{{}{202}} +\newlabel{py:servo-pot}{{10.{4}}{202}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash pot.py}{202}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {10.6}Controlling the Servomotor through Julia}{203}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.6.1}Controlling the Servomotor}{203}\protected@file@percent } +\newlabel{sec:servo-julia}{{10.6.1}{203}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash init.jl}{203}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash pot.jl}{204}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash pot.jl}{204}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.6.2}Julia Code}{204}\protected@file@percent } +\newlabel{sec:servo-julia-code}{{10.6.2}{204}} \@writefile{juliad}{\addvspace {10pt}} -\@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{thm}{\contentsline {juliamass}{{Julia Code}{10.{1}}{}}{204}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{204}\protected@file@percent } +\newlabel{152@xvr}{{}{204}} +\newlabel{152@vr}{{}{204}} +\newlabel{julia:servo-init}{{10.{1}}{204}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash init.jl}{204}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{2}}{}}{204}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{204}\protected@file@percent } +\newlabel{153@xvr}{{}{204}} +\newlabel{153@vr}{{}{204}} +\newlabel{julia:servo-reverse}{{10.{2}}{204}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash reverse.jl}{204}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{3}}{}}{205}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{205}\protected@file@percent } +\newlabel{154@xvr}{{}{205}} +\newlabel{154@vr}{{}{205}} +\newlabel{julia:servo-loop}{{10.{3}}{205}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash loop.jl}{205}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{4}}{}}{205}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{205}\protected@file@percent } +\newlabel{155@xvr}{{}{205}} +\newlabel{155@vr}{{}{205}} +\newlabel{julia:servo-pot}{{10.{4}}{205}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash pot.jl}{205}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {10.7}Controlling the Servomotor through OpenModelica}{205}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.7.1}Controlling the Servomotor}{205}\protected@file@percent } +\newlabel{sec:servo-OpenModelica}{{10.7.1}{205}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash init.mo}{206}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textunderscore pot.mo}{206}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textunderscore pot.mo}{206}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.7.2}OpenModelica Code}{206}\protected@file@percent } +\newlabel{sec:servo-OpenModelica-code}{{10.7.2}{206}} \@writefile{OpenModelicad}{\addvspace {10pt}} -\@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{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{1}}{}}{206}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{206}\protected@file@percent } +\newlabel{156@xvr}{{}{206}} +\newlabel{156@vr}{{}{206}} +\newlabel{OpenModelica:servo-init}{{10.{1}}{206}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash init.mo}{206}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{2}}{}}{207}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{207}\protected@file@percent } +\newlabel{157@xvr}{{}{207}} +\newlabel{157@vr}{{}{207}} +\newlabel{OpenModelica:servo-reverse}{{10.{2}}{207}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash reverse.mo}{207}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{3}}{}}{208}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{208}\protected@file@percent } +\newlabel{158@xvr}{{}{208}} +\newlabel{158@vr}{{}{208}} +\newlabel{OpenModelica:servo-loop}{{10.{3}}{208}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash loop.mo}{208}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{4}}{}}{208}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{208}\protected@file@percent } +\newlabel{159@xvr}{{}{208}} +\newlabel{159@vr}{{}{208}} +\newlabel{OpenModelica:servo-pot}{{10.{4}}{208}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textunderscore pot.mo}{209}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {11}Implementation of Modbus Protocol}{211}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\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}} +\newlabel{modbus}{{11}{211}} +\@writefile{toc}{\contentsline {section}{\numberline {11.1}Preliminaries}{211}\protected@file@percent } +\newlabel{fig:mod-block}{{\caption@xref {fig:mod-block}{ on input line 72}}{212}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.1}{\ignorespaces Block diagram representation of the Protocol\relax }}{212}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.2}{\ignorespaces Master-Slave Query-Response Cycle\relax }}{212}\protected@file@percent } +\newlabel{fig:mod-master-slave}{{11.2}{212}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.3}{\ignorespaces Pins in RS485 module\relax }}{213}\protected@file@percent } +\newlabel{fig:rs-485}{{11.3}{213}} +\@writefile{lot}{\contentsline {table}{\numberline {11.1}{\ignorespaces Interpretation of a request packet\relax }}{214}\protected@file@percent } +\newlabel{tab:request-packet}{{11.1}{214}} +\@writefile{lot}{\contentsline {table}{\numberline {11.2}{\ignorespaces Interpretation of a response packet\relax }}{214}\protected@file@percent } +\newlabel{tab:response-packet}{{11.2}{214}} +\@writefile{lot}{\contentsline {table}{\numberline {11.3}{\ignorespaces Hexadecimal to Decimal\relax }}{215}\protected@file@percent } +\newlabel{tab:ieee-decimal}{{11.3}{215}} +\@writefile{lot}{\contentsline {table}{\numberline {11.4}{\ignorespaces Single and Double Precision Representation\relax }}{215}\protected@file@percent } +\newlabel{tab:single-precision}{{11.4}{215}} +\@writefile{toc}{\contentsline {section}{\numberline {11.2}Objective}{216}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {11.3}Energy Meter set up for Modbus protocol with Arduino Uno}{216}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.4}{\ignorespaces MODBUS Set Up for Energy Meter\relax }}{217}\protected@file@percent } +\newlabel{fig:full-set-up}{{11.4}{217}} +\@writefile{toc}{\contentsline {section}{\numberline {11.4}Software}{217}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.5}{\ignorespaces Block Diagram for Energy Meter Setup\relax }}{218}\protected@file@percent } +\newlabel{fig:block-diagram}{{11.5}{218}} +\@writefile{toc}{\contentsline {section}{\numberline {11.5}Output}{218}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.6}{\ignorespaces Flowchart of Arduino firmware\relax }}{219}\protected@file@percent } +\newlabel{fig:modbus-firmware}{{11.6}{219}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.7}{\ignorespaces Flow Chart of the Modbus Energy Meter Implementation\relax }}{220}\protected@file@percent } +\newlabel{fig:flow-chart}{{11.7}{220}} +\@writefile{toc}{\contentsline {section}{\numberline {11.6}Reading Parameters from Xcos}{220}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.8}{\ignorespaces Single Phase Current Output on Scilab Console\relax }}{221}\protected@file@percent } +\newlabel{fig:current-console}{{11.8}{221}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.9}{\ignorespaces Single Phase Current Output on Energy Meter\relax }}{221}\protected@file@percent } +\newlabel{fig:current-meter}{{11.9}{221}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.10}{\ignorespaces Single Phase Voltage Output on Scilab Console\relax }}{222}\protected@file@percent } +\newlabel{fig:voltage-console}{{11.10}{222}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.11}{\ignorespaces Single Phase Voltage Output on Energy Meter\relax }}{222}\protected@file@percent } +\newlabel{fig:voltage-meter}{{11.11}{222}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.12}{\ignorespaces Single Phase Voltage Output on Scilab Console\relax }}{223}\protected@file@percent } +\newlabel{fig:power-console}{{11.12}{223}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.13}{\ignorespaces Single Phase Voltage Output on Energy Meter\relax }}{223}\protected@file@percent } +\newlabel{fig:power-meter}{{11.13}{223}} +\@writefile{toc}{\contentsline {section}{\numberline {11.7}Code}{223}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.1}Arduino Code}{223}\protected@file@percent } +\newlabel{sec:firmware-modbus}{{11.7.1}{223}} \@writefile{ard}{\addvspace {10pt}} -\@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{thm}{\contentsline {ardmass}{{Arduino Code}{11.{1}}{}}{223}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {11.{1}}First 10 lines of the firmware for Modbus Energy Meter experiment}{223}\protected@file@percent } +\newlabel{162@xvr}{{}{223}} +\newlabel{162@vr}{{}{223}} +\newlabel{ard:firmware-modbus}{{11.{1}}{223}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send\textunderscore packet.ino}{223}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.14}{\ignorespaces Xcos diagram to read Energy Meter values}}{224}\protected@file@percent } +\newlabel{161@xvr}{{}{224}} +\newlabel{161@vr}{{}{224}} +\newlabel{fig:mod-read}{{11.14}{224}} +\@writefile{lot}{\contentsline {table}{\numberline {11.5}{\ignorespaces Xcos parameters to read Energy Meter\relax }}{224}\protected@file@percent } +\newlabel{tab:mod-xcos-read}{{11.5}{224}} +\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.2}Scilab Code}{225}\protected@file@percent } +\newlabel{sec:modbus-scilab-code}{{11.7.2}{225}} \@writefile{cod}{\addvspace {10pt}} -\@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{thm}{\contentsline {codemass}{{Scilab Code}{11.{1}}{}}{225}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {11.{1}}First 10 lines of the function for scifunc block}{225}\protected@file@percent } +\newlabel{163@xvr}{{}{225}} +\newlabel{163@vr}{{}{225}} +\newlabel{sci:current-modbus}{{11.{1}}{225}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore val.sce}{225}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{2}}{}}{225}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {11.{2}}First 10 lines of the code for Single Phase Current Output}{225}\protected@file@percent } +\newlabel{164@xvr}{{}{225}} +\newlabel{164@vr}{{}{225}} +\newlabel{sci:current-modbus}{{11.{2}}{225}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore current.sci}{225}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{3}}{}}{225}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Voltage Output}{225}\protected@file@percent } +\newlabel{165@xvr}{{}{225}} +\newlabel{165@vr}{{}{225}} +\newlabel{sci:voltage-modbus}{{11.{3}}{225}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore voltage.sci}{225}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{4}}{}}{226}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {11.{4}}First 10 lines of the code for Single Phase Active Power Output}{226}\protected@file@percent } +\newlabel{166@xvr}{{}{226}} +\newlabel{166@vr}{{}{226}} +\newlabel{sci:modbus-power}{{11.{4}}{226}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore active\textunderscore power.sci}{226}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.3}Python Code}{226}\protected@file@percent } +\newlabel{sec:modbus-python-code}{{11.7.3}{226}} \@writefile{pyd}{\addvspace {10pt}} -\@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{thm}{\contentsline {pymass}{{Python Code}{11.{1}}{}}{226}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{226}\protected@file@percent } +\newlabel{167@xvr}{{}{226}} +\newlabel{167@vr}{{}{226}} +\newlabel{py:current-modbus}{{11.{1}}{226}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read\textunderscore current.py}{226}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{11.{2}}{}}{226}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{226}\protected@file@percent } +\newlabel{168@xvr}{{}{226}} +\newlabel{168@vr}{{}{226}} +\newlabel{py:voltage-modbus}{{11.{2}}{226}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read\textunderscore voltage.py}{226}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{11.{3}}{}}{227}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {11.{3}}Code for Single Phase Active Power Output}{227}\protected@file@percent } +\newlabel{169@xvr}{{}{227}} +\newlabel{169@vr}{{}{227}} +\newlabel{py:modbus-power}{{11.{3}}{227}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read\textunderscore active\textunderscore power.py}{227}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.4}Julia Code}{227}\protected@file@percent } +\newlabel{sec:modbus-julia-code}{{11.7.4}{227}} \@writefile{juliad}{\addvspace {10pt}} -\@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{thm}{\contentsline {juliamass}{{Julia Code}{11.{1}}{}}{227}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{227}\protected@file@percent } +\newlabel{170@xvr}{{}{227}} +\newlabel{170@vr}{{}{227}} +\newlabel{julia:current-modbus}{{11.{1}}{227}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readCurrent.jl}{227}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{11.{2}}{}}{227}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{227}\protected@file@percent } +\newlabel{171@xvr}{{}{227}} +\newlabel{171@vr}{{}{227}} +\newlabel{julia:voltage-modbus}{{11.{2}}{227}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readVoltage.jl}{227}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{11.{3}}{}}{228}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Active Power Output}{228}\protected@file@percent } +\newlabel{172@xvr}{{}{228}} +\newlabel{172@vr}{{}{228}} +\newlabel{julia:modbus-power}{{11.{3}}{228}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readPower.jl}{228}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.5}OpenModelica Code}{228}\protected@file@percent } +\newlabel{sec:modbus-OpenModelica-code}{{11.7.5}{228}} \@writefile{OpenModelicad}{\addvspace {10pt}} -\@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 } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{1}}{}}{228}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{228}\protected@file@percent } +\newlabel{173@xvr}{{}{228}} +\newlabel{173@vr}{{}{228}} +\newlabel{OpenModelica:current-modbus}{{11.{1}}{228}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readCurrent.mo}{228}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{2}}{}}{228}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{228}\protected@file@percent } +\newlabel{174@xvr}{{}{228}} +\newlabel{174@vr}{{}{228}} +\newlabel{OpenModelica:voltage-modbus}{{11.{2}}{228}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readVoltage.mo}{228}\protected@file@percent } \bibdata{bibliography.bib} -\@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 } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{3}}{}}{229}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {11.{3}}Code for Single Phase Active Power Output}{229}\protected@file@percent } +\newlabel{175@xvr}{{}{229}} +\newlabel{175@vr}{{}{229}} +\newlabel{OpenModelica:modbus-power}{{11.{3}}{229}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readPower.mo}{229}\protected@file@percent } \bibcite{CNES-Scilab}{1} \bibcite{scilab-arduino}{2} \bibcite{oshw-ref}{3} @@ -1558,7 +1556,7 @@ \bibcite{scilab-ref}{12} \bibcite{scilab-interop}{13} \bibcite{xcos-ref}{14} -\@writefile{toc}{\contentsline {chapter}{\numberline {References}}{229}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {References}}{231}\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 4a94a4a..ad52018 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 it on the GUI}{101}% -\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{101}% +\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the GUI}{101}% +\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{102}% \addvspace {10pt} -\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}% +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{121}% +\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{122}% \addvspace {10pt} -\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{136}% +\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{138}% \addvspace {10pt} -\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{152}% -\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{152}% +\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{154}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on and off using thermistor values}{154}% \addvspace {10pt} -\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}% +\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{173}% +\contentsline {section}{\numberline {9.{2}}Rotating the DC motor in both directions}{173}% +\contentsline {section}{\numberline {9.{3}}Rotating the DC motor in both directions in a loop}{173}% \addvspace {10pt} -\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}% +\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{192}% +\contentsline {section}{\numberline {10.{2}}Rotating the servomotor to a specified degree and reversing}{192}% +\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{193}% +\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{193}% \addvspace {10pt} -\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}% +\contentsline {section}{\numberline {11.{1}}First 10 lines of the function for scifunc block}{225}% +\contentsline {section}{\numberline {11.{2}}First 10 lines of the code for Single Phase Current Output}{225}% +\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Voltage Output}{225}% +\contentsline {section}{\numberline {11.{4}}First 10 lines of the code for Single Phase Active Power Output}{226}% diff --git a/floss-arduino.fdb_latexmk b/floss-arduino.fdb_latexmk index f467db5..d2356ac 100644 --- a/floss-arduino.fdb_latexmk +++ b/floss-arduino.fdb_latexmk @@ -1,19 +1,19 @@ # Fdb version 3 -["bibtex floss-arduino"] 1619829673 "floss-arduino.aux" "floss-arduino.bbl" "floss-arduino" 1619830152 +["bibtex floss-arduino"] 1619835293 "floss-arduino.aux" "floss-arduino.bbl" "floss-arduino" 1619835401 "/usr/share/texlive/texmf-dist/bibtex/bst/base/unsrt.bst" 1292289607 18030 1376b4b231b50c66211e47e42eda2875 "" "bibliography.bib" 1619058609 4121 e0d02327e4bb995867623cd1f708046e "" - "floss-arduino.aux" 1619829941 133617 e459c4ab00d1a1b990513da0afd45086 "pdflatex" + "floss-arduino.aux" 1619835301 133697 b147f9bbf48b1de3ab2d335d9c2e059a "pdflatex" (generated) - "floss-arduino.bbl" "floss-arduino.blg" -["makeindex floss-arduino.idx"] 1619829426 "floss-arduino.idx" "floss-arduino.ind" "floss-arduino" 1619830152 - "floss-arduino.idx" 1619829941 187 127d22f171683959438710553c1aeb57 "pdflatex" + "floss-arduino.bbl" +["makeindex floss-arduino.idx"] 1619835275 "floss-arduino.idx" "floss-arduino.ind" "floss-arduino" 1619835401 + "floss-arduino.idx" 1619835301 187 8a3669b7c7aede857beac96d6d022e3d "pdflatex" (generated) "floss-arduino.ind" "floss-arduino.ilg" -["pdflatex"] 1619829934 "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" "floss-arduino" 1619830152 +["pdflatex"] 1619835293 "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" "floss-arduino" 1619835401 "/etc/texmf/web2c/texmf.cnf" 1602253014 475 c0e671620eb5563b2130f56340a5fde8 "" - "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.aux" 1619829941 133617 e459c4ab00d1a1b990513da0afd45086 "" + "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.aux" 1619835301 133697 b147f9bbf48b1de3ab2d335d9c2e059a "" "/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" 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.OpenModelicad" 1619835301 2304 0613fb3cf6c6dacc813779073c1fc8fc "pdflatex" + "floss-arduino.ard" 1619835301 2082 a772c9a12d8cfc94c510a0bf33180ebf "pdflatex" + "floss-arduino.aux" 1619835301 133697 b147f9bbf48b1de3ab2d335d9c2e059a "pdflatex" + "floss-arduino.bbl" 1619835293 2654 051fbb0ca9f90e7ce7d2577998098d98 "bibtex floss-arduino" + "floss-arduino.cod" 1619835301 2506 9256a3ea47eea65e6dbdcdd8be48ab48 "pdflatex" + "floss-arduino.ind" 1619835275 228 20e9ce08a48be0f58ca5bea340253979 "makeindex floss-arduino.idx" + "floss-arduino.juliad" 1619835301 2338 10c3144e165b66ccab0d9bb7edb51883 "pdflatex" + "floss-arduino.lof" 1619835301 13055 21b2fa99f686b5bc73378c164794cd1e "pdflatex" + "floss-arduino.lot" 1619835301 3702 1d94a10703e56f3ffcb129df92279974 "pdflatex" + "floss-arduino.pyd" 1619835301 2333 6dfc0eed2a5f7de9039fa9f65346a6d4 "pdflatex" "floss-arduino.tex" 1619403261 4558 99e8133d713ce68a01e2f2b59b0d6baf "" - "floss-arduino.toc" 1619829941 15539 ddc5fcbed21e55f223ab05e6fceafd98 "pdflatex" + "floss-arduino.toc" 1619835301 15539 7c799a55323af1bdd235051b2b44bf8d "pdflatex" "suppl/acr.tex" 1615963613 1926 fd6481c4666ee0d60331b7d4cc24b645 "" "suppl/intro.tex" 1615963613 3437 b09628cf9e20fe17fa65b37a5997653c "" "suppl/styles.tex" 1615963613 8143 aa3280f0b59c8631fe8ec44895c9e871 "" @@ -283,21 +283,22 @@ "user-code/pot/pot.tex" 1618126907 18399 3bf4147f58d9202940dc09605e898da3 "" "user-code/pot/python/pot-threshold.py" 1567597000 1168 1c8446b4eb191d9326f7c08bd342aa7f "" "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/OpenModelica/led-push-button.mo" 1619834710 1179 3ebcda1f9950867d9c9277914c6ea5ab "" + "user-code/push/OpenModelica/push-button-status.mo" 1619834833 1002 24bae7d78e06a0645e175238514684d5 "" "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/sci-ard-meter.png" 1619834247 14461 903bc95446fd86d03d6cd50e9801d91d "" "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" 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/push.tex" 1619835401 29728 1b8219d43962faf0037e1dc844075a27 "" "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/led-push-button.sce" 1619834437 366 0deddbfd697be4ff28d1edb657b4abf1 "" "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 "" @@ -386,18 +387,18 @@ "user-code/thermistor/scilab/therm-read.sce" 1615963614 382 5e743c25b50f9d961a2939ce81d7b633 "" "user-code/thermistor/thermistor.tex" 1618567312 25838 1f7c3824e3c28084af6bca0235c3226f "" (generated) - "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.thm" "floss-arduino.pdf" + "floss-arduino.juliad" + "floss-arduino.pyd" + "floss-arduino.lof" + "floss-arduino.ard" + "floss-arduino.lot" "floss-arduino.toc" + "floss-arduino.cod" + "floss-arduino.aux" + "floss-arduino.OpenModelicad" diff --git a/floss-arduino.fls b/floss-arduino.fls index 5ab2968..63e5983 100644 --- a/floss-arduino.fls +++ b/floss-arduino.fls @@ -583,6 +583,9 @@ INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push-butto INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push-button-status.sce INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push-button-status.sce INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push-button-status.sce +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/sci-ard-meter.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/sci-ard-meter.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/sci-ard-meter.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led-push-button.sce INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led-push-button.sce INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led-push-button.sce diff --git a/floss-arduino.idx b/floss-arduino.idx index b0d5cac..7270d0d 100644 --- a/floss-arduino.idx +++ b/floss-arduino.idx @@ -1,5 +1,5 @@ -\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} +\indexentry{H-Bridge circuit DC motor}{165} +\indexentry{H-Bridge}{165} +\indexentry{L293D,L298}{165} +\indexentry{PCB breakout board}{165} +\indexentry{pulse width modulation, PWM}{165} diff --git a/floss-arduino.ind b/floss-arduino.ind index 0338622..6d62066 100644 --- a/floss-arduino.ind +++ b/floss-arduino.ind @@ -1,15 +1,15 @@ \begin{theindex} - \item H-Bridge, 163 - \item H-Bridge circuit DC motor, 163 + \item H-Bridge, 165 + \item H-Bridge circuit DC motor, 165 \indexspace - \item L293D,L298, 163 + \item L293D,L298, 165 \indexspace - \item PCB breakout board, 163 - \item pulse width modulation, PWM, 163 + \item PCB breakout board, 165 + \item pulse width modulation, PWM, 165 \end{theindex} diff --git a/floss-arduino.juliad b/floss-arduino.juliad index 2718dd2..fba1877 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 it on Command Prompt or the Terminal.}{108}% +\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on Command Prompt or the Terminal.}{109}% \contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{109}% \addvspace {10pt} -\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{127}% -\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{127}% +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{129}% +\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}{141}% +\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{143}% \addvspace {10pt} -\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{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}{181}% -\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}{183}% +\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}{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}% +\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}{204}% +\contentsline {section}{\numberline {10.{3}}Rotating the servomotor in steps of $20^\circ $}{205}% +\contentsline {section}{\numberline {10.{4}}Rotating the servomotor to a degree specified by the potentiometer}{205}% \addvspace {10pt} -\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}% +\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{227}% +\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{227}% +\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Active Power Output}{228}% diff --git a/floss-arduino.lof b/floss-arduino.lof index 3d58179..6d78204 100644 --- a/floss-arduino.lof +++ b/floss-arduino.lof @@ -69,60 +69,61 @@ \contentsline {figure}{\numberline {5.1}{\ignorespaces Connection Diagram\relax }}{96}% \contentsline {figure}{\numberline {5.2}{\ignorespaces A pushbutton to read its status with Arduino Uno using a breadboard\relax }}{96}% \contentsline {figure}{\numberline {5.3}{\ignorespaces A pushbutton to control an LED with Arduino Uno using a breadboard\relax }}{97}% -\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}% +\contentsline {figure}{\numberline {5.4}{\ignorespaces GUI in Scilab to show the status of the pushbutton\relax }}{101}% +\contentsline {figure}{\numberline {5.5}{\ignorespaces Printing the push button status on the display block}}{103}% +\contentsline {figure}{\numberline {5.6}{\ignorespaces Turning the LED on or off, depending on the pushbutton}}{104}% \addvspace {10\p@ } -\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}% +\contentsline {figure}{\numberline {6.1}{\ignorespaces Light Dependent Resistor\relax }}{116}% +\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of an LDR}}}{116}% +\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Symbolic representation of an LDR}}}{116}% +\contentsline {figure}{\numberline {6.2}{\ignorespaces Internal connection diagram for the LDR on the shield\relax }}{116}% +\contentsline {figure}{\numberline {6.3}{\ignorespaces An LDR to read its values with Arduino Uno\ using a breadboard\relax }}{117}% +\contentsline {figure}{\numberline {6.4}{\ignorespaces An LDR to control an LED with Arduino Uno using a breadboard\relax }}{118}% +\contentsline {figure}{\numberline {6.5}{\ignorespaces Xcos diagram to read LDR values}}{123}% +\contentsline {figure}{\numberline {6.6}{\ignorespaces Xcos diagram to read the value of the LDR, which is used to turn the blue LED on or off}}{124}% \addvspace {10\p@ } -\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}% +\contentsline {figure}{\numberline {7.1}{\ignorespaces Potentiometer's schematic on the shield\relax }}{134}% +\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of a potentiometer}}}{134}% +\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Schematic representation of the potentiometer}}}{134}% +\contentsline {figure}{\numberline {7.2}{\ignorespaces A potentiometer to control an LED with Arduino Uno using a breadboard\relax }}{135}% +\contentsline {figure}{\numberline {7.3}{\ignorespaces Turning LEDs on through Xcos depending on the potentiometer threshold}}{139}% \addvspace {10\p@ } -\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}% +\contentsline {figure}{\numberline {8.1}{\ignorespaces Pictorial and symbolic representation of a thermistor\relax }}{148}% +\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of a thermistor\cite {therm-wiki}}}}{148}% +\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Symbolic representation of a thermistor}}}{148}% +\contentsline {figure}{\numberline {8.2}{\ignorespaces Thermistor and buzzer connection diagrams\relax }}{148}% +\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Thermistor connection diagram}}}{148}% +\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Buzzer connection diagram}}}{148}% +\contentsline {figure}{\numberline {8.3}{\ignorespaces A thermistor to read its values with Arduino Uno using a breadboard\relax }}{149}% +\contentsline {figure}{\numberline {8.4}{\ignorespaces A thermistor to control a buzzer with Arduino Uno using a breadboard\relax }}{150}% +\contentsline {figure}{\numberline {8.5}{\ignorespaces Xcos diagram to read thermistor values}}{155}% +\contentsline {figure}{\numberline {8.6}{\ignorespaces Output of Xcos diagram to read thermistor values}}{156}% +\contentsline {figure}{\numberline {8.7}{\ignorespaces Xcos diagram to read the value of thermistor, which is used to turn the buzzer on or off}}{157}% +\contentsline {figure}{\numberline {8.8}{\ignorespaces Output of Xcos diagram to switch buzzer through thermistor values}}{157}% \addvspace {10\p@ } -\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}% +\contentsline {figure}{\numberline {9.1}{\ignorespaces L293D motor driver board\relax }}{166}% +\contentsline {figure}{\numberline {9.2}{\ignorespaces A schematic of DC motor connections\relax }}{167}% +\contentsline {figure}{\numberline {9.3}{\ignorespaces How to connect the DC motor to the Arduino Uno\ board\relax }}{167}% +\contentsline {figure}{\numberline {9.4}{\ignorespaces Control of DC motor for a specified time from Xcos}}{174}% +\contentsline {figure}{\numberline {9.5}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{176}% +\contentsline {figure}{\numberline {9.6}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{177}% \addvspace {10\p@ } -\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}% +\contentsline {figure}{\numberline {10.1}{\ignorespaces Rotating the servomotor by a fixed angle}}{194}% +\contentsline {figure}{\numberline {10.2}{\ignorespaces Rotating the servomotor forward and then reverse}}{195}% +\contentsline {figure}{\numberline {10.3}{\ignorespaces Rotating the servomotor in increments of $20^\circ $}}{196}% +\contentsline {figure}{\numberline {10.4}{\ignorespaces Rotating the servomotor as suggested by the potentiometer}}{197}% \addvspace {10\p@ } -\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}% +\contentsline {figure}{\numberline {11.1}{\ignorespaces Block diagram representation of the Protocol\relax }}{212}% +\contentsline {figure}{\numberline {11.2}{\ignorespaces Master-Slave Query-Response Cycle\relax }}{212}% +\contentsline {figure}{\numberline {11.3}{\ignorespaces Pins in RS485 module\relax }}{213}% +\contentsline {figure}{\numberline {11.4}{\ignorespaces MODBUS Set Up for Energy Meter\relax }}{217}% +\contentsline {figure}{\numberline {11.5}{\ignorespaces Block Diagram for Energy Meter Setup\relax }}{218}% +\contentsline {figure}{\numberline {11.6}{\ignorespaces Flowchart of Arduino firmware\relax }}{219}% +\contentsline {figure}{\numberline {11.7}{\ignorespaces Flow Chart of the Modbus Energy Meter Implementation\relax }}{220}% +\contentsline {figure}{\numberline {11.8}{\ignorespaces Single Phase Current Output on Scilab Console\relax }}{221}% +\contentsline {figure}{\numberline {11.9}{\ignorespaces Single Phase Current Output on Energy Meter\relax }}{221}% +\contentsline {figure}{\numberline {11.10}{\ignorespaces Single Phase Voltage Output on Scilab Console\relax }}{222}% +\contentsline {figure}{\numberline {11.11}{\ignorespaces Single Phase Voltage Output on Energy Meter\relax }}{222}% +\contentsline {figure}{\numberline {11.12}{\ignorespaces Single Phase Voltage Output on Scilab Console\relax }}{223}% +\contentsline {figure}{\numberline {11.13}{\ignorespaces Single Phase Voltage Output on Energy Meter\relax }}{223}% +\contentsline {figure}{\numberline {11.14}{\ignorespaces Xcos diagram to read Energy Meter values}}{224}% diff --git a/floss-arduino.log b/floss-arduino.log index ecf7cd2..a7b3f8c 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) 1 MAY 2021 06:19 +This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex 2020.11.5) 1 MAY 2021 07:47 entering extended mode restricted \write18 enabled. %&-line parsing enabled. @@ -537,7 +537,7 @@ Overfull \hbox (42.2769pt too wide) detected at line 208 [6] (./floss-arduino.lof [7 ] [8] -Overfull \hbox (4.98741pt too wide) in paragraph at lines 88--88 +Overfull \hbox (4.98741pt too wide) in paragraph at lines 89--89 [][] []\T1/cmr/m/n/10.95 Turning LEDs on through Xcos de-pend-ing on the po-te n-tiome-ter thresh- [] @@ -1586,12 +1586,23 @@ 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) [100] +atus.sce) +</home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/sci-ard-meter +.png, id=524, 428.60126pt x 442.65375pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/sci-ard- +meter.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/sci-ard-m +eter.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/pu +sh/figures/sci-ard-meter.png used on input line 218. +(pdftex.def) Requested size: 178.86702pt x 184.73128pt. + [100] (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led-push-butto 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 245--248 +atus.sce [101 </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures +/sci-ard-meter.png>]) +Overfull \hbox (0.145pt too wide) in paragraph at lines 251--254 \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,72 +1610,74 @@ Overfull \hbox (0.145pt too wide) in paragraph at lines 245--248 (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led-push-butto -n.sce) [101] +n.sce) </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/push-button-s -tatus.PNG, id=530, 264.99pt x 268.00125pt> +tatus.PNG, id=532, 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 276. +sh/figures/push-button-status.PNG used on input line 282. (pdftex.def) Requested size: 178.86702pt x 180.9012pt. -Overfull \hbox (3.33746pt too wide) in paragraph at lines 294--304 +Overfull \hbox (6.968pt too wide) in paragraph at lines 300--310 [][] [] -[102 </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/push-but -ton-status.PNG>] +[102] </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/led-push-butt -on.PNG, id=535, 298.86656pt x 264.99pt> +on.PNG, id=536, 298.86656pt x 264.99pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/led-push -button.PNG Graphic file (type png) <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 319. +sh/figures/led-push-button.PNG used on input line 325. (pdftex.def) Requested size: 178.86702pt x 158.59492pt. -Overfull \hbox (4.77844pt too wide) in paragraph at lines 336--347 +Overfull \hbox (4.77844pt too wide) in paragraph at lines 342--353 [][] [] -[103 </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/led-push --button.PNG>] +[103 </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/push-but +ton-status.PNG>] [104 </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) [104] +atus.py) (/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) +n.py [105]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push-button-st -atus.py [105]) +atus.py [106]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led-push-butto -n.py [106]) [107] +n.py [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) +tus.jl) [108] (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led-push-button -.jl) [108] +.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) [109] +.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) +ton-status.mo) [110] (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push --button.mo) [110] +-button.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-but -ton-status.mo) +ton-status.mo [111]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push --button.mo [111])) (./user-code/ldr/ldr.tex [112] +-button.mo [112])) (./user-code/ldr/ldr.tex [113] [114 + +] Chapter 6. -</home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr.jpg, id=56 -9, 106.89937pt x 94.85437pt> +</home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr.jpg, id=57 +7, 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> @@ -1672,7 +1685,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=570, 1009.52156pt x 741.52031pt> +d=578, 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 @@ -1681,7 +1694,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=571, 415.5525pt x 450.68375pt> +id=579, 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 @@ -1689,9 +1702,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. -[113 - -] +[115] Overfull \hbox (0.60098pt too wide) in paragraph at lines 87--87 []\T1/cmr/bx/n/14.4 Connecting an LDR with Ar-duino Uno us-ing a bread- [] @@ -1699,21 +1710,21 @@ Overfull \hbox (0.60098pt too wide) in paragraph at lines 87--87 Underfull \vbox (badness 3333) has occurred while \output is active [] - [114 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr.jpg> + [116 </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=58 -0, 455.301pt x 208.78pt> +9, 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. - [115 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/LDR.png> + [117 </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=586, 455.301pt x 257.763pt> +d=594, 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 @@ -1725,21 +1736,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) [116 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ +ead.ino) [118 </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 [117]) +ead.ino [119]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr-led/ldr-le -d.ino) [118] +d.ino) [120] 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) -[119] +[121] (/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 @@ -1747,7 +1758,7 @@ o read LDR val-ues, through [] </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read-xcos. -PNG, id=600, 257.46187pt x 304.13625pt> +PNG, id=609, 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 @@ -1756,7 +1767,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=601, 769.87625pt x 640.3925pt> +d=610, 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 @@ -1769,37 +1780,37 @@ Overfull \hbox (4.77844pt too wide) in paragraph at lines 364--384 [][] [] -[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/ +[122] [123 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr +-read-xcos.PNG>] [124 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/ 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[]. [] -[123] +[125] (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py) -[124] +[126] (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-led.py) Underfull \vbox (badness 10000) has occurred while \output is active [] - [125] + [127] (/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 -[126]) +[128]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-led.jl) -[127] +[129] (/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 [128]) +mo [130]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-led.m -o)) (./user-code/pot/pot.tex [129] [130 +o)) (./user-code/pot/pot.tex [131] [132 ] Chapter 7. </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/potmeter.png, -id=640, 1576.38937pt x 1305.37688pt> +id=648, 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 @@ -1808,7 +1819,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=641, 415.5525pt x 417.56pt> + id=649, 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. @@ -1816,11 +1827,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. -[131] [132 </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot +[133] [134 </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=650, 453.695pt x 243.309pt> +, id=659, 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 @@ -1833,18 +1844,18 @@ Overfull \hbox (9.68646pt too wide) in paragraph at lines 112--114 [] [] [] -[133 </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/POT-led-b +[135 </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 [134]) +pot-threshold.ino [136]) (/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) [135] +ce) [137] 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- @@ -1854,7 +1865,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=662, 548.80031pt x 493.845pt> +PNG, id=670, 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 @@ -1867,14 +1878,14 @@ Overfull \hbox (4.77844pt too wide) in paragraph at lines 236--265 [][] [] -[136] [137 </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot +[138] [139 </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) [138] +y) [140] (/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 [139]) +y [141]) (/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 @@ -1890,13 +1901,13 @@ Overfull \hbox (0.88127pt too wide) in paragraph at lines 325--329 old. Avail- [] -[140] +[142] (/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 [141]) +hold.mo [143]) 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- @@ -1904,12 +1915,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 [142])) (./user-code/thermistor/thermistor.tex [143] [144 +hold.mo [144])) (./user-code/thermistor/thermistor.tex [145] [146 ] Chapter 8. </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/NTC-bea -d.jpg, id=692, 139.9629pt x 126.2316pt> +d.jpg, id=701, 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 @@ -1918,13 +1929,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 145 undefined on input line 70. +LaTeX Warning: Citation `therm-wiki' on page 147 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 147 undefined on input line 70. </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-s -ym.png, id=693, 1284.8pt x 913.4125pt> +ym.png, id=702, 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 @@ -1933,7 +1944,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=694, 329.23pt x 422.57875pt> +TOR-Diagram-crop.pdf, id=703, 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 @@ -1942,7 +1953,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=695, 307.1475pt x 366.36874pt> +Diagram-crop.pdf, id=704, 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 @@ -1950,17 +1961,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. -[145] +[147] Overfull \vbox (30.13353pt too high) has occurred while \output is active [] -[146 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/NT +[148 </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=717, 453.695pt x 236.885pt> +tor.png, id=725, 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 @@ -1969,7 +1980,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=718, 453.695pt x 240.097pt> +tor-buzzer.png, id=726, 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 @@ -1977,25 +1988,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. - [147 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/t + [149 </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) [148 </home/fossee/Desktop/floss-scilab-arduino/user-code/t +ead/therm-read.ino) [150 </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 [149]) +ead/therm-read.ino [151]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-b -uzzer/therm-buzzer.ino) [150] [151] +uzzer/therm-buzzer.ino) [152] [153] (/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) [152] +zzer.sce) [154] </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-r -ead-xcos.png, id=742, 617.30624pt x 548.0475pt> +ead-xcos.png, id=750, 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 @@ -2004,7 +2015,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=743, 632.3625pt x 529.98pt> +ead.png, id=751, 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 @@ -2013,7 +2024,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=744, 627.34375pt x 530.98375pt> +uzzer-xcos.png, id=752, 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 @@ -2021,14 +2032,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. - [153 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/t + [155 </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=749, 612.2875pt x 589.20125pt> +uzzer.png, id=757, 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 @@ -2036,29 +2047,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. -[154 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th +[156 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th erm-read.png>] -LaTeX Warning: Text page 155 contains only floats. +LaTeX Warning: Text page 157 contains only floats. -[155 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th +[157 </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>] [156] +istor/figures/therm-buzzer.png>] [158] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-re -ad.py [157]) +ad.py [159]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-bu -zzer.py [158]) +zzer.py [160]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-rea -d.jl [159]) +d.jl [161]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-buz -zer.jl) [160] +zer.jl) [162] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/th -erm-read.mo) [161] +erm-read.mo) [163] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/th -erm-buzzer.mo)) (./user-code/dcmotor/dcmotor.tex [162] +erm-buzzer.mo)) (./user-code/dcmotor/dcmotor.tex [164] Chapter 9. </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor_bo -ard.png, id=781, 247.92625pt x 232.87pt> +ard.png, id=790, 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 @@ -2066,11 +2077,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. -[163 +[165 ] </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/schematic. -png, id=786, 415.5525pt x 467.7475pt> +png, id=794, 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 @@ -2079,7 +2090,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=787, 2469.97781pt x 1973.12157pt> +escription.jpg, id=795, 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 @@ -2087,41 +2098,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. - [164 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmo + [166 </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 [] -[165 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/schem +[167 </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>] [166] +dc_motor_description.jpg>] [168] (/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 [167]) +op/dcmotor-loop.ino [169]) Underfull \hbox (badness 10000) in paragraph at lines 221--237 [] -[168] +[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-clo -ck.sce) [169] +ck.sce) [171] (/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) [170] +ck.sce) [172] (/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 [171]) +p.sce [173]) </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor-cl -ock.png, id=817, 275.52937pt x 290.58563pt> +ock.png, id=825, 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 @@ -2129,10 +2140,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. - [172 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmo + [174 </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=821, 292.09125pt x 322.95656pt> +th.png, id=829, 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 @@ -2141,7 +2152,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=822, 281.55188pt x 307.90031pt> +op.png, id=830, 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 @@ -2149,32 +2160,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. - [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] + [175] [176 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figure +s/dcmotor-both.png>] [177 </home/fossee/Desktop/floss-scilab-arduino/user-code/ +dcmotor/figures/dcmotor-loop.png>] [178] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clo -ck.py [177]) +ck.py [179]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-bot -h.py) [178] +h.py) [180] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-loo -p.py) [179] +p.py) [181] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-cloc -k.jl [180]) +k.jl [182]) (/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) [181] +.jl) [183] (/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 [182]) +or-both.mo [184]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmot -or-loop.mo [183])) (./user-code/servo/servo.tex [184] +or-loop.mo [185])) (./user-code/servo/servo.tex [186] Chapter 10. Underfull \vbox (badness 1975) has occurred while \output is active [] - [185 + [187 ] Overfull \hbox (23.49748pt too wide) in paragraph at lines 90--98 @@ -2182,17 +2193,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[]. [] -[186] +[188] (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo-init/s -ervo-init.ino [187]) +ervo-init.ino [189]) (/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) [188] +ervo-loop.ino) [190] (/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) [189] +e) [191] (/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 @@ -2200,13 +2211,13 @@ e) [189] (/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 [190]) +.sce [192]) (/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=885, 265.74281pt x 309.40594pt> +ng, id=893, 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 @@ -2214,9 +2225,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. - [191] + [193] </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-revers -e.png, id=889, 244.66406pt x 281.55188pt> +e.png, id=898, 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 @@ -2227,10 +2238,10 @@ rvo/figures/servo-reverse.png used on input line 334. Underfull \vbox (badness 3199) has occurred while \output is active [] - [192 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo- + [194 </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=893, 281.55188pt x 347.04657pt> +ng, id=902, 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 @@ -2239,7 +2250,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=894, 286.06876pt x 292.09125pt> +g, id=903, 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 @@ -2248,38 +2259,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. -[193 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-r +[195 </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 [][] [] -[194 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-l +[196 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-l oop.png>] -LaTeX Warning: Reference `sec:py-start' on page 195 undefined on input line 459 +LaTeX Warning: Reference `sec:py-start' on page 197 undefined on input line 459 . Underfull \vbox (badness 10000) has occurred while \output is active [] - [195 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo- + [197 </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 -) [196] +) [198] (/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 -[197]) +[199]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-reverse -.py [198]) +.py [200]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-loop.py -[199]) +[201]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-pot.py -[200]) +[202]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-init.jl) -[201] +[203] (/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) @@ -2291,10 +2302,10 @@ vers-ing. Avail- (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-reverse. -jl) [202] +jl) [204] (/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) -[203] +[205] (/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 @@ -2302,19 +2313,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 [204]) +nit.mo [206]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-r -everse.mo [205]) +everse.mo [207]) (/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 [206])) (./user-code/modbus/modbus.tex [207] [208 +ot.mo [208])) (./user-code/modbus/modbus.tex [209] [210 ] Chapter 11. -[209] +[211] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig1.png, i -d=949, 672.5125pt x 224.84pt> +d=958, 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 @@ -2323,7 +2334,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=950, 360.34625pt x 375.4025pt> +d=959, 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 @@ -2332,7 +2343,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=951, 481.04718pt x 214.55156pt> +d=960, 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 @@ -2340,12 +2351,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. - [210 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig1. + [212 </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)>] [211 </home/fossee/Desktop/floss-scilab-arduino/user --code/modbus/figures/fig3.png (PNG copy)>] [212] [213] +ures/fig2.png (PNG copy)>] [213 </home/fossee/Desktop/floss-scilab-arduino/user +-code/modbus/figures/fig3.png (PNG copy)>] [214] [215] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/Full-Set-Up -.png, id=966, 722.7pt x 542.025pt> +.png, id=974, 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 @@ -2353,9 +2364,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. - [214] + [216] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/block-diagr -am.PNG, id=970, 398.23781pt x 255.95625pt> +am.PNG, id=978, 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 @@ -2364,7 +2375,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=971, 327.2225pt x 480.79625pt> +e_flowchart.png, id=979, 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 @@ -2372,10 +2383,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. - [215 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/Full- + [217 </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=976, 482.55281pt x 362.10281pt> +ng, id=985, 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 @@ -2384,7 +2395,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=977, 1028.34187pt x 578.16pt> +put.png, id=986, 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 @@ -2393,7 +2404,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=978, 2509.375pt x 1411.2725pt> +put-setup.jpg, id=987, 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 @@ -2402,7 +2413,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=979, 1028.34187pt x 578.16pt> +put.png, id=988, 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 @@ -2411,7 +2422,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=980, 2509.375pt x 1411.2725pt> +put-setup.jpg, id=989, 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 @@ -2420,7 +2431,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=981, 1028.34187pt x 578.16pt> +r-output.png, id=990, 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- @@ -2429,10 +2440,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. -[216 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/block- +[218 </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=986, 2509.375pt x 1411.2725pt> +r-output-setup.jpg, id=995, 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- @@ -2443,10 +2454,10 @@ dbus/figures/active-power-output-setup.jpg used on input line 436. Underfull \vbox (badness 10000) has occurred while \output is active [] - [217 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/ardui + [219 </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=992, 635.37375pt x 455.7025pt> +xcos.png, id=1000, 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 @@ -2465,46 +2476,46 @@ Overfull \hbox (16.70493pt too wide) in paragraph at lines 479--491 [][] [] -[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/ +[220 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowch +art.png (PNG copy)>] [221 </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 [] - [220 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/volta + [222 </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 [221 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/a +.ino [223 </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>] [222 </home/fossee/Desk +ser-code/modbus/figures/active-power-output-setup.jpg>] [224 </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 [223]) +.sci [225]) (/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 [224]) +.py [226]) (/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 [225]) +l [227]) (/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 [226]) +ltage.mo [228]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readPo -wer.mo)) (./floss-arduino.bbl [227] [228 +wer.mo)) (./floss-arduino.bbl [229] [230 ] Underfull \hbox (badness 10000) in paragraph at lines 4--9 @@ -2535,7 +2546,7 @@ Overfull \hbox (15.39987pt too wide) in paragraph at lines 49--53 /Skittles_M%26M%27s [] -[229] +[231] 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. @@ -2545,7 +2556,7 @@ backed by py-se-rial. \tf@thm=\write13 \openout13 = `floss-arduino.thm'. - [230] (./floss-arduino.aux) + [232] (./floss-arduino.aux) LaTeX Warning: There were undefined references. @@ -2554,10 +2565,10 @@ LaTeX Warning: There were multiply-defined labels. ) Here is how much of TeX's memory you used: - 9821 strings out of 481239 - 215669 string characters out of 5920377 + 9820 strings out of 481239 + 216046 string characters out of 5920377 742688 words of memory out of 5000000 - 24309 multiletter control sequences out of 15000+600000 + 24307 multiletter control sequences out of 15000+600000 554670 words of font info for 69 fonts, out of 8000000 for 9000 1143 hyphenation exceptions out of 8191 50i,11n,53p,467b,1777s stack positions out of 5000i,500n,10000p,200000b,80000s @@ -2584,10 +2595,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 (254 pages, 20894802 bytes). +Output written on floss-arduino.pdf (256 pages, 20904294 bytes). PDF statistics: - 1131 PDF objects out of 1200 (max. 8388607) - 660 compressed objects within 7 object streams + 1139 PDF objects out of 1200 (max. 8388607) + 664 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) + 571 words of extra memory for PDF output out of 10000 (max. 10000000) diff --git a/floss-arduino.lot b/floss-arduino.lot index a03c1df..2eb7e9d 100644 --- a/floss-arduino.lot +++ b/floss-arduino.lot @@ -13,28 +13,28 @@ \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}% +\contentsline {table}{\numberline {6.1}{\ignorespaces Xcos parameters to read LDR\relax }}{123}% +\contentsline {table}{\numberline {6.2}{\ignorespaces Xcos parameters to read LDR and regulate blue LED\relax }}{125}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {7.1}{\ignorespaces Xcos parameters to turn on different LEDs depending on the potentiometer value\relax }}{140}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {8.1}{\ignorespaces Xcos parameters to read thermistor\relax }}{156}% +\contentsline {table}{\numberline {8.2}{\ignorespaces Xcos parameters to read thermistor and switch the buzzer\relax }}{158}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {9.1}{\ignorespaces A numbering convention used in the DC motor breakout board\relax }}{171}% +\contentsline {table}{\numberline {9.2}{\ignorespaces Parameters for DC motor initialization\relax }}{171}% +\contentsline {table}{\numberline {9.3}{\ignorespaces Xcos parameters to drive the DC motor for a specified time\relax }}{175}% +\contentsline {table}{\numberline {9.4}{\ignorespaces Xcos parameters to drive the DC motor in forward and reverse directions\relax }}{176}% +\contentsline {table}{\numberline {9.5}{\ignorespaces Xcos parameters to drive the DC motor in a loop\relax }}{178}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {10.1}{\ignorespaces Connecting a typical servomotor to Arduino Uno\ board\relax }}{188}% +\contentsline {table}{\numberline {10.2}{\ignorespaces Parameters to rotate the servomotor by $30^\circ $\relax }}{194}% +\contentsline {table}{\numberline {10.3}{\ignorespaces Parameters to rotate the servomotor forward and reverse\relax }}{196}% +\contentsline {table}{\numberline {10.4}{\ignorespaces Parameters to make the servomotor to sweep the entire range in increments\relax }}{197}% +\contentsline {table}{\numberline {10.5}{\ignorespaces Parameters to rotate the servomotor based on the input from the potentiometer\relax }}{198}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {11.1}{\ignorespaces Interpretation of a request packet\relax }}{214}% +\contentsline {table}{\numberline {11.2}{\ignorespaces Interpretation of a response packet\relax }}{214}% +\contentsline {table}{\numberline {11.3}{\ignorespaces Hexadecimal to Decimal\relax }}{215}% +\contentsline {table}{\numberline {11.4}{\ignorespaces Single and Double Precision Representation\relax }}{215}% +\contentsline {table}{\numberline {11.5}{\ignorespaces Xcos parameters to read Energy Meter\relax }}{224}% diff --git a/floss-arduino.pdf b/floss-arduino.pdf Binary files differindex 69870c7..d6a6497 100644 --- a/floss-arduino.pdf +++ b/floss-arduino.pdf diff --git a/floss-arduino.pyd b/floss-arduino.pyd index 8d95674..8172d47 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 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}% +\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the Command Prompt or the Terminal}{106}% +\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{107}% \addvspace {10pt} -\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{124}% -\contentsline {section}{\numberline {6.{2}}Turning the blue LED on and off}{125}% +\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}% \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}{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}% +\contentsline {section}{\numberline {9.{1}}Rotating the DC motor}{179}% +\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}{180}% \addvspace {10pt} -\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}% +\contentsline {section}{\numberline {10.{1}}Rotating the servomotor to a specified degree}{199}% +\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}{202}% \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.thm b/floss-arduino.thm index 495c214..85fc9f0 100644 --- a/floss-arduino.thm +++ b/floss-arduino.thm @@ -30,95 +30,95 @@ \contentsline {ardmass}{{Arduino Code}{5.{1}}{}}{99}% \contentsline {ardmass}{{Arduino Code}{5.{2}}{}}{99}% \contentsline {codemass}{{Scilab Code}{5.{1}}{}}{101}% -\contentsline {codemass}{{Scilab Code}{5.{2}}{}}{101}% +\contentsline {codemass}{{Scilab Code}{5.{2}}{}}{102}% \contentsline {egmass}{{Exercise}{5.{1}}{}}{103}% -\contentsline {pymass}{{Python Code}{5.{1}}{}}{105}% -\contentsline {pymass}{{Python Code}{5.{2}}{}}{106}% -\contentsline {juliamass}{{Julia Code}{5.{1}}{}}{108}% +\contentsline {pymass}{{Python Code}{5.{1}}{}}{106}% +\contentsline {pymass}{{Python Code}{5.{2}}{}}{107}% +\contentsline {juliamass}{{Julia Code}{5.{1}}{}}{109}% \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}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{5.{2}}{}}{112}% +\contentsline {egmass}{{Exercise}{6.{1}}{}}{119}% +\contentsline {ardmass}{{Arduino Code}{6.{1}}{}}{119}% +\contentsline {ardmass}{{Arduino Code}{6.{2}}{}}{120}% +\contentsline {egmass}{{Exercise}{6.{2}}{}}{121}% +\contentsline {codemass}{{Scilab Code}{6.{1}}{}}{121}% +\contentsline {codemass}{{Scilab Code}{6.{2}}{}}{122}% +\contentsline {egmass}{{Exercise}{6.{3}}{}}{125}% +\contentsline {pymass}{{Python Code}{6.{1}}{}}{126}% +\contentsline {pymass}{{Python Code}{6.{2}}{}}{127}% +\contentsline {egmass}{{Exercise}{6.{4}}{}}{128}% +\contentsline {juliamass}{{Julia Code}{6.{1}}{}}{129}% +\contentsline {juliamass}{{Julia Code}{6.{2}}{}}{129}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{1}}{}}{130}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{2}}{}}{131}% +\contentsline {ardmass}{{Arduino Code}{7.{1}}{}}{136}% +\contentsline {codemass}{{Scilab Code}{7.{1}}{}}{138}% +\contentsline {pymass}{{Python Code}{7.{1}}{}}{141}% +\contentsline {juliamass}{{Julia Code}{7.{1}}{}}{143}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{7.{1}}{}}{144}% +\contentsline {egmass}{{Exercise}{8.{1}}{}}{151}% +\contentsline {ardmass}{{Arduino Code}{8.{1}}{}}{151}% +\contentsline {ardmass}{{Arduino Code}{8.{2}}{}}{152}% +\contentsline {egmass}{{Exercise}{8.{2}}{}}{153}% +\contentsline {codemass}{{Scilab Code}{8.{1}}{}}{154}% +\contentsline {codemass}{{Scilab Code}{8.{2}}{}}{154}% +\contentsline {pymass}{{Python Code}{8.{1}}{}}{159}% +\contentsline {pymass}{{Python Code}{8.{2}}{}}{160}% +\contentsline {juliamass}{{Julia Code}{8.{1}}{}}{161}% +\contentsline {juliamass}{{Julia Code}{8.{2}}{}}{162}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{1}}{}}{163}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{2}}{}}{164}% +\contentsline {egmass}{{Exercise}{9.{1}}{}}{168}% +\contentsline {ardmass}{{Arduino Code}{9.{1}}{}}{169}% +\contentsline {ardmass}{{Arduino Code}{9.{2}}{}}{169}% +\contentsline {ardmass}{{Arduino Code}{9.{3}}{}}{169}% +\contentsline {egmass}{{Exercise}{9.{2}}{}}{172}% +\contentsline {codemass}{{Scilab Code}{9.{1}}{}}{173}% +\contentsline {codemass}{{Scilab Code}{9.{2}}{}}{173}% +\contentsline {codemass}{{Scilab Code}{9.{3}}{}}{173}% +\contentsline {egmass}{{Exercise}{9.{3}}{}}{175}% +\contentsline {pymass}{{Python Code}{9.{1}}{}}{179}% +\contentsline {pymass}{{Python Code}{9.{2}}{}}{180}% +\contentsline {pymass}{{Python Code}{9.{3}}{}}{180}% +\contentsline {juliamass}{{Julia Code}{9.{1}}{}}{182}% +\contentsline {juliamass}{{Julia Code}{9.{2}}{}}{183}% +\contentsline {juliamass}{{Julia Code}{9.{3}}{}}{183}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{1}}{}}{184}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{2}}{}}{184}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{3}}{}}{185}% +\contentsline {egmass}{{Exercise}{10.{1}}{}}{189}% +\contentsline {ardmass}{{Arduino Code}{10.{1}}{}}{189}% +\contentsline {ardmass}{{Arduino Code}{10.{2}}{}}{190}% +\contentsline {ardmass}{{Arduino Code}{10.{3}}{}}{190}% +\contentsline {ardmass}{{Arduino Code}{10.{4}}{}}{191}% +\contentsline {codemass}{{Scilab Code}{10.{1}}{}}{192}% +\contentsline {codemass}{{Scilab Code}{10.{2}}{}}{192}% +\contentsline {codemass}{{Scilab Code}{10.{3}}{}}{193}% +\contentsline {codemass}{{Scilab Code}{10.{4}}{}}{193}% +\contentsline {pymass}{{Python Code}{10.{1}}{}}{199}% +\contentsline {pymass}{{Python Code}{10.{2}}{}}{200}% +\contentsline {pymass}{{Python Code}{10.{3}}{}}{201}% +\contentsline {pymass}{{Python Code}{10.{4}}{}}{202}% +\contentsline {juliamass}{{Julia Code}{10.{1}}{}}{204}% +\contentsline {juliamass}{{Julia Code}{10.{2}}{}}{204}% +\contentsline {juliamass}{{Julia Code}{10.{3}}{}}{205}% +\contentsline {juliamass}{{Julia Code}{10.{4}}{}}{205}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{1}}{}}{206}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{2}}{}}{207}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{3}}{}}{208}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{4}}{}}{208}% +\contentsline {ardmass}{{Arduino Code}{11.{1}}{}}{223}% +\contentsline {codemass}{{Scilab Code}{11.{1}}{}}{225}% +\contentsline {codemass}{{Scilab Code}{11.{2}}{}}{225}% +\contentsline {codemass}{{Scilab Code}{11.{3}}{}}{225}% +\contentsline {codemass}{{Scilab Code}{11.{4}}{}}{226}% +\contentsline {pymass}{{Python Code}{11.{1}}{}}{226}% +\contentsline {pymass}{{Python Code}{11.{2}}{}}{226}% +\contentsline {pymass}{{Python Code}{11.{3}}{}}{227}% +\contentsline {juliamass}{{Julia Code}{11.{1}}{}}{227}% +\contentsline {juliamass}{{Julia Code}{11.{2}}{}}{227}% +\contentsline {juliamass}{{Julia Code}{11.{3}}{}}{228}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{1}}{}}{228}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{2}}{}}{228}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{3}}{}}{229}% diff --git a/floss-arduino.toc b/floss-arduino.toc index 152c8fe..2bb42a5 100644 --- a/floss-arduino.toc +++ b/floss-arduino.toc @@ -87,122 +87,122 @@ \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}{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}{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 {section}{\numberline {5.6}Reading the Pushbutton Status from Python}{105}% +\contentsline {subsection}{\numberline {5.6.1}Reading the Pushbutton Status}{105}% +\contentsline {subsection}{\numberline {5.6.2}Python Code}{106}% +\contentsline {section}{\numberline {5.7}Reading the Pushbutton Status from Julia}{108}% +\contentsline {subsection}{\numberline {5.7.1}Reading the Pushbutton Status}{108}% +\contentsline {subsection}{\numberline {5.7.2}Julia Code}{109}% +\contentsline {section}{\numberline {5.8}Reading the Pushbutton Status from OpenModelica}{110}% +\contentsline {subsection}{\numberline {5.8.1}Reading the Pushbutton Status}{110}% \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}% +\contentsline {chapter}{\numberline {6}Interfacing a Light Dependent Resistor}{115}% +\contentsline {section}{\numberline {6.1}Preliminaries}{115}% +\contentsline {section}{\numberline {6.2}Connecting an LDR with Arduino Uno\ using a breadboard}{117}% +\contentsline {section}{\numberline {6.3}Interfacing the LDR through the Arduino IDE}{118}% +\contentsline {subsection}{\numberline {6.3.1}Interfacing the LDR}{118}% +\contentsline {subsection}{\numberline {6.3.2}Arduino Code}{119}% +\contentsline {section}{\numberline {6.4}Interfacing the LDR through Scilab}{120}% +\contentsline {subsection}{\numberline {6.4.1}Interfacing the LDR}{120}% +\contentsline {subsection}{\numberline {6.4.2}Scilab Code}{121}% +\contentsline {section}{\numberline {6.5}Interfacing the LDR through Xcos}{122}% +\contentsline {section}{\numberline {6.6}Interfacing the LDR through Python}{124}% +\contentsline {subsection}{\numberline {6.6.1}Interfacing the LDR}{124}% +\contentsline {subsection}{\numberline {6.6.2}Python Code}{126}% +\contentsline {section}{\numberline {6.7}Interfacing the LDR through Julia}{128}% +\contentsline {subsection}{\numberline {6.7.1}Interfacing the LDR}{128}% +\contentsline {subsection}{\numberline {6.7.2}Julia Code}{129}% +\contentsline {section}{\numberline {6.8}Interfacing the LDR through OpenModelica}{129}% +\contentsline {subsection}{\numberline {6.8.1}Interfacing the LDR}{129}% +\contentsline {subsection}{\numberline {6.8.2}OpenModelica Code}{130}% +\contentsline {chapter}{\numberline {7}Interfacing a Potentiometer}{133}% +\contentsline {section}{\numberline {7.1}Preliminaries}{133}% +\contentsline {section}{\numberline {7.2}Connecting a potentiometer with Arduino Uno\ using a breadboard}{134}% +\contentsline {section}{\numberline {7.3}Reading the potentiometer from the Arduino IDE}{135}% +\contentsline {subsection}{\numberline {7.3.1}Reading the potentiometer}{135}% +\contentsline {subsection}{\numberline {7.3.2}Arduino Code}{136}% +\contentsline {section}{\numberline {7.4}Reading the potentiometer from Scilab}{137}% +\contentsline {subsection}{\numberline {7.4.1}Reading the potentiometer}{137}% +\contentsline {subsection}{\numberline {7.4.2}Scilab Code}{138}% +\contentsline {section}{\numberline {7.5}Reading the potentiometer from Xcos}{138}% +\contentsline {paragraph}{Exercise:}{139}% +\contentsline {section}{\numberline {7.6}Reading the potentiometer from Python}{139}% +\contentsline {subsection}{\numberline {7.6.1}Reading the potentiometer}{139}% +\contentsline {subsection}{\numberline {7.6.2}Python Code}{141}% +\contentsline {section}{\numberline {7.7}Reading the potentiometer from Julia}{142}% +\contentsline {subsection}{\numberline {7.7.1}Reading the potentiometer}{142}% +\contentsline {subsection}{\numberline {7.7.2}Julia Code}{143}% +\contentsline {section}{\numberline {7.8}Reading the potentiometer from OpenModelica}{143}% +\contentsline {subsection}{\numberline {7.8.1}Reading the potentiometer}{143}% +\contentsline {subsection}{\numberline {7.8.2}OpenModelica Code}{144}% +\contentsline {chapter}{\numberline {8}Interfacing a Thermistor}{147}% +\contentsline {section}{\numberline {8.1}Preliminaries}{147}% +\contentsline {section}{\numberline {8.2}Connecting a thermistor with Arduino Uno\ using a breadboard}{148}% +\contentsline {section}{\numberline {8.3}Interfacing the Thermistor from the Arduino IDE}{150}% +\contentsline {subsection}{\numberline {8.3.1}Interfacing the Thermistor}{150}% +\contentsline {subsection}{\numberline {8.3.2}Arduino Code}{151}% +\contentsline {section}{\numberline {8.4}Interfacing the Thermistor from Scilab}{152}% +\contentsline {subsection}{\numberline {8.4.1}Interfacing the Thermistor}{152}% +\contentsline {subsection}{\numberline {8.4.2}Scilab Code}{154}% +\contentsline {section}{\numberline {8.5}Interfacing the Thermistor from Xcos}{155}% +\contentsline {section}{\numberline {8.6}Interfacing the Thermistor from Python}{158}% +\contentsline {subsection}{\numberline {8.6.1}Interfacing the Thermistor}{158}% +\contentsline {subsection}{\numberline {8.6.2}Python Code}{159}% +\contentsline {section}{\numberline {8.7}Interfacing the Thermistor from Julia}{161}% +\contentsline {subsection}{\numberline {8.7.1}Interfacing the Thermistor}{161}% +\contentsline {subsection}{\numberline {8.7.2}Julia Code}{161}% +\contentsline {section}{\numberline {8.8}Interfacing the Thermistor from OpenModelica}{162}% +\contentsline {subsection}{\numberline {8.8.1}Interfacing the Thermistor}{162}% +\contentsline {subsection}{\numberline {8.8.2}OpenModelica Code}{163}% +\contentsline {chapter}{\numberline {9}Controlling a DC motor}{165}% +\contentsline {section}{\numberline {9.1}Preliminaries}{165}% +\contentsline {section}{\numberline {9.2}Controlling the DC motor from Arduino}{167}% +\contentsline {subsection}{\numberline {9.2.1}Controlling the DC motor}{167}% +\contentsline {subsection}{\numberline {9.2.2}Arduino Code}{169}% +\contentsline {section}{\numberline {9.3}Controlling the DC motor from Scilab}{170}% +\contentsline {subsection}{\numberline {9.3.1}Initialization}{170}% +\contentsline {subsection}{\numberline {9.3.2}Rotation for a specified time}{171}% +\contentsline {subsection}{\numberline {9.3.3}Using the capabilities of Scilab}{172}% +\contentsline {subsection}{\numberline {9.3.4}Scilab Code}{173}% +\contentsline {section}{\numberline {9.4}Controlling the DC Motor from Xcos}{174}% +\contentsline {section}{\numberline {9.5}Controlling the DC Motor from Python}{177}% +\contentsline {subsection}{\numberline {9.5.1}Controlling the DC Motor}{177}% +\contentsline {subsection}{\numberline {9.5.2}Python Code}{179}% +\contentsline {section}{\numberline {9.6}Controlling the DC Motor from Julia}{182}% +\contentsline {subsection}{\numberline {9.6.1}Controlling the DC Motor}{182}% +\contentsline {subsection}{\numberline {9.6.2}Julia Code}{182}% +\contentsline {section}{\numberline {9.7}Controlling the DC Motor from OpenModelica}{183}% +\contentsline {subsection}{\numberline {9.7.1}Controlling the DC Motor}{183}% +\contentsline {subsection}{\numberline {9.7.2}OpenModelica Code}{184}% +\contentsline {chapter}{\numberline {10}Interfacing a Servomotor}{187}% +\contentsline {section}{\numberline {10.1}Preliminaries}{187}% +\contentsline {section}{\numberline {10.2}Controlling the Servometer through the Arduino IDE}{188}% +\contentsline {subsection}{\numberline {10.2.1}Controlling the Servometer}{188}% +\contentsline {subsection}{\numberline {10.2.2}Arduino Code}{189}% +\contentsline {section}{\numberline {10.3}Controlling the Servomotor through Scilab}{191}% +\contentsline {subsection}{\numberline {10.3.1}Controlling the Servomotor}{191}% +\contentsline {subsection}{\numberline {10.3.2}Scilab Code}{192}% +\contentsline {section}{\numberline {10.4}Controling the Servomotor through Xcos}{193}% +\contentsline {section}{\numberline {10.5}Controlling the Servomotor through Python}{198}% +\contentsline {subsection}{\numberline {10.5.1}Controlling the Servomotor}{198}% +\contentsline {subsection}{\numberline {10.5.2}Python Code}{199}% +\contentsline {section}{\numberline {10.6}Controlling the Servomotor through Julia}{203}% +\contentsline {subsection}{\numberline {10.6.1}Controlling the Servomotor}{203}% +\contentsline {subsection}{\numberline {10.6.2}Julia Code}{204}% +\contentsline {section}{\numberline {10.7}Controlling the Servomotor through OpenModelica}{205}% +\contentsline {subsection}{\numberline {10.7.1}Controlling the Servomotor}{205}% +\contentsline {subsection}{\numberline {10.7.2}OpenModelica Code}{206}% +\contentsline {chapter}{\numberline {11}Implementation of Modbus Protocol}{211}% +\contentsline {section}{\numberline {11.1}Preliminaries}{211}% +\contentsline {section}{\numberline {11.2}Objective}{216}% +\contentsline {section}{\numberline {11.3}Energy Meter set up for Modbus protocol with Arduino Uno}{216}% +\contentsline {section}{\numberline {11.4}Software}{217}% +\contentsline {section}{\numberline {11.5}Output}{218}% +\contentsline {section}{\numberline {11.6}Reading Parameters from Xcos}{220}% +\contentsline {section}{\numberline {11.7}Code}{223}% +\contentsline {subsection}{\numberline {11.7.1}Arduino Code}{223}% +\contentsline {subsection}{\numberline {11.7.2}Scilab Code}{225}% +\contentsline {subsection}{\numberline {11.7.3}Python Code}{226}% +\contentsline {subsection}{\numberline {11.7.4}Julia Code}{227}% +\contentsline {subsection}{\numberline {11.7.5}OpenModelica Code}{228}% +\contentsline {chapter}{\numberline {References}}{231}% diff --git a/user-code/push/OpenModelica/led-push-button.mo b/user-code/push/OpenModelica/led-push-button.mo index cc18478..50f1f04 100644 --- a/user-code/push/OpenModelica/led-push-button.mo +++ b/user-code/push/OpenModelica/led-push-button.mo @@ -3,7 +3,7 @@ model led_push_button "Conrolling LED with PushButton" import sComm = Arduino.SerialCommunication.Functions;
import strm = Modelica.Utilities.Streams;
Integer ok(fixed = false);
- Integer digital_in(fixed = false);
+ Integer val(fixed = false);
Integer digital_out(fixed = false);
Integer c_ok(fixed = false);
algorithm
@@ -13,13 +13,11 @@ algorithm if ok <> 0 then
strm.print("Unable to open serial port, please check");
else
- digital_in := sComm.cmd_digital_in(1, 12) "Read from digital pin 12";
- if digital_in == 0 then
- strm.print("LOW");
+ val := sComm.cmd_digital_in(1, 12) "Read from digital pin 12";
+ if val == 0 then
digital_out := sComm.cmd_digital_out(1, 9, 0) "This will turn OFF the blue LED";
sComm.delay(200);
else
- strm.print("HIGH");
digital_out := sComm.cmd_digital_out(1, 9, 1) "This will turn ON the blue LED";
sComm.delay(200);
end if;
@@ -30,5 +28,5 @@ algorithm when terminal() then
c_ok := sComm.close_serial(1) "To close the connection safely";
end when;
- annotation(experiment(StartTime = 0, StopTime = 1, Tolerance = 1e-6, Interval = 0.01));
+ annotation(experiment(StartTime = 0, StopTime = 10, Tolerance = 1e-6, Interval = 0.1));
end led_push_button;
diff --git a/user-code/push/OpenModelica/push-button-status.mo b/user-code/push/OpenModelica/push-button-status.mo index 22f6b74..d31ebd7 100644 --- a/user-code/push/OpenModelica/push-button-status.mo +++ b/user-code/push/OpenModelica/push-button-status.mo @@ -3,8 +3,7 @@ model push_button_status "Checking Status of PushButton" import sComm = Arduino.SerialCommunication.Functions;
import strm = Modelica.Utilities.Streams;
Integer ok(fixed = false);
- Integer digital_in(fixed = false);
- Integer digital_out(start = 0, fixed = false);
+ Integer val(fixed = false);
Integer c_ok(fixed = false);
algorithm
when initial() then
@@ -13,12 +12,12 @@ algorithm if ok <> 0 then
strm.print("Unable to open serial port, please check");
else
- digital_in := sComm.cmd_digital_in(1, 12);
- if digital_in == 0 then
- strm.print("LOW");
+ val := sComm.cmd_digital_in(1, 12);
+ if val == 0 then
+ strm.print("0");
sComm.delay(200);
else
- strm.print("HIGH");
+ strm.print("1");
sComm.delay(200);
end if;
end if;
@@ -28,5 +27,5 @@ algorithm c_ok := sComm.close_serial(1) "To close the connection safely";
end when;
//sComm.cmd_arduino_meter(digital_in);
- annotation(experiment(StartTime = 0, StopTime = 1, Tolerance = 1e-6, Interval = 0.01));
+ annotation(experiment(StartTime = 0, StopTime = 10, Tolerance = 1e-6, Interval = 0.1));
end push_button_status;
diff --git a/user-code/push/figures/sci-ard-meter.png b/user-code/push/figures/sci-ard-meter.png Binary files differnew file mode 100644 index 0000000..a37713a --- /dev/null +++ b/user-code/push/figures/sci-ard-meter.png diff --git a/user-code/push/push.tex b/user-code/push/push.tex index 5be5438..d17046f 100644 --- a/user-code/push/push.tex +++ b/user-code/push/push.tex @@ -168,9 +168,9 @@ instructions given in \secref{sec:ard-start} before getting started. \addtocontents{ard}{\protect\addvspace{\codclr}}
\begin{ardcode}
- \acaption{Read the status of the pushbutton and displaying on the
- serial monitor}{Read the status of the pushbutton and display it on
- the serial monitor. Available at
+ \acaption{Read the status of the pushbutton and display it on the
+ Serial Monitor}{Read the status of the pushbutton and display it on
+ the Serial Monitor. Available at
\LocPushardbrief{push-button-status/push-button-status.ino}.}
\label{ard:push-100}
\lstinputlisting{\LocPushardcode/push-button-status/push-button-status.ino}
@@ -212,8 +212,14 @@ digital pin 12 using the following command: encourage the user to have a good hands-on, we run these commands in
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.
-
+ GUI, as shown in \figref{fig:ard-meter}.
+ \begin{figure}
+ \centering
+ \includegraphics[width=\smfig]{\LocPushfig/sci-ard-meter.png}
+ \caption{GUI in Scilab to show the status of the pushbutton}
+ %\redcolor{connected on pin no. D12}}
+ \label{fig:ard-meter}
+ \end{figure}
\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
@@ -233,8 +239,8 @@ digital pin 12 using the following command: \addtocontents{cod}{\protect\addvspace{\codclr}}
\begin{scicode}
-\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
+\ccaption{Read the status of the pushbutton and display it on the GUI}
+{Read the status of the pushbutton and display it on the GUI. Available at
\LocPushscibrief{push-button-status.sce}.}
\label{sci:push-100}
\lstinputlisting{\LocPushscicode/push-button-status.sce}
@@ -299,7 +305,7 @@ given in \secref{sec:xcos-start} before getting started. & Sampling period(s) & 0.1 \\ \hline
DIGITAL\_READ\_SB & Digital pin & 12 \\
& Arduino card number & 1 \\ \hline
- AFFICH\_m & Block inherits(1) or not (0) & 1 \\ \hline
+ AFFICH\_m & Block inherits (1) or not (0) & 1 \\ \hline
\end{tabular}
\end{table}
@@ -415,8 +421,8 @@ The reader should go through the instructions given in \addtocontents{pyd}{\protect\addvspace{\codclr}}
\begin{pycode}
-\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
+\pcaption{Read the status of the pushbutton and display it on the
+ Command Prompt or the Terminal}{Read the status of the pushbutton and display it on
Command Prompt or the Terminal. Available at
\LocPushpybrief{push-button-status.py}.}
\label{py:push-100}
@@ -482,7 +488,7 @@ maybe. \addtocontents{juliad}{\protect\addvspace{\codclr}}
\begin{juliacode}
-\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
+\jcaption{Read the status of the pushbutton and display it on Command Prompt or the Terminal.}{Read the status of the pushbutton and display it on Command Prompt or the Terminal. Available at
\LocPushjuliabrief{push-button-status.jl}.}
\label{julia:push-100}
\lstinputlisting{\LocPushjuliacode/push-button-status.jl}
@@ -512,17 +518,15 @@ The reader should go through the instructions given in we begin with importing the two packages: Streams and SerialCommunication followed
by setting up the serial port. Then, we read the input coming
from digital pin 12 using the following command:
- \lstinputlisting[firstline=16,lastline=16]
+ \lstinputlisting[firstline=15,lastline=15]
{\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]
+\lstinputlisting[firstline=16,lastline=22]
{\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,
+ when the pushbutton is pressed, {\tt val} will be ``1''. 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
@@ -551,21 +555,25 @@ on the output window, as shown in \figref{om-sim-success}. \subsection{OpenModelica Code}
+Unlike other code files, the code/ model for running experiments using OpenModelica are
+available inside the OpenModelica-Arduino toolbox, as explained in \secref{sec:load-om-toolbox}.
+Please refer to \figref{om-examples-toolbox} to know how to locate the experiments.
\label{sec:led-OpenModelica-code}
\addtocontents{OpenModelicad}{\protect\addvspace{\codclr}}
\begin{OpenModelicacode}
\mcaption{Read the status of the pushbutton and displaying on the
- serial monitor}{Read the status of the pushbutton and displaying it on the output window. Available at
- \LocPushOpenModelicabrief{push-button-status.mo}.}
+ serial monitor}{Read the status of the pushbutton and display it on the output window.
+ Available at Available at Arduino -> SerialCommunication ->
+ Examples -> push -> push\_button\_status. }
\label{OpenModelica:push-100}
\lstinputlisting{\LocPushOpenModelicacode/push-button-status.mo}
\end{OpenModelicacode}
\begin{OpenModelicacode}
\mcaption{Turning the LED on or off depending on the pushbutton}
- {Turning the LED on or off depending on the pushbutton. Available at
- \LocPushOpenModelicabrief{led-push-button.mo}.}
+ {Turning the LED on or off depending on the pushbutton. Available at Arduino -> SerialCommunication ->
+ Examples -> push -> led\_push\_button.}
\label{OpenModelica:push-200}
\lstinputlisting{\LocPushOpenModelicacode/led-push-button.mo}
\end{OpenModelicacode}
diff --git a/user-code/push/scilab/led-push-button.sce b/user-code/push/scilab/led-push-button.sce index a70def1..21c4045 100644 --- a/user-code/push/scilab/led-push-button.sce +++ b/user-code/push/scilab/led-push-button.sce @@ -1,8 +1,8 @@ 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
+ val = cmd_digital_in(1, 12)
+ if val == 0
cmd_digital_out(1, 9, 0)
else
cmd_digital_out(1, 9, 1)
|