diff options
author | SudhakarKuma | 2021-05-22 05:52:42 +0530 |
---|---|---|
committer | SudhakarKuma | 2021-05-22 05:52:42 +0530 |
commit | f357d013e35b152d77eaa84579336592d64df708 (patch) | |
tree | 8770d6f4d4448167f5a307282347122ad6c5c6a8 | |
parent | 175e9679af5e24ffb14c4417d7cfa237f7a3376d (diff) | |
download | FLOSS-Arduino-Book-f357d013e35b152d77eaa84579336592d64df708.tar.gz FLOSS-Arduino-Book-f357d013e35b152d77eaa84579336592d64df708.tar.bz2 FLOSS-Arduino-Book-f357d013e35b152d77eaa84579336592d64df708.zip |
Segment Modbus chapter
31 files changed, 5364 insertions, 2352 deletions
diff --git a/OM-floss-arduino.pdf b/OM-floss-arduino.pdf Binary files differindex 3f061b6..4046d92 100644 --- a/OM-floss-arduino.pdf +++ b/OM-floss-arduino.pdf diff --git a/floss-arduino.OpenModelicad b/floss-arduino.OpenModelicad index e69de29..4037c7c 100644 --- a/floss-arduino.OpenModelicad +++ b/floss-arduino.OpenModelicad @@ -0,0 +1,30 @@ +\contentsline {section}{\numberline {3.{1}}An OpenModelica code/model to check whether the firmware is properly installed or not}{65}{OpenModelicamass.3.1}% +\addvspace {10pt} +\contentsline {section}{\numberline {4.{1}}Turning on the blue LED}{91}{OpenModelicamass.4.1}% +\contentsline {section}{\numberline {4.{2}}Turning on the blue LED and turning it off after two seconds}{91}{OpenModelicamass.4.2}% +\contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{92}{OpenModelicamass.4.3}% +\contentsline {section}{\numberline {4.{4}}Blinking the green LED}{93}{OpenModelicamass.4.4}% +\addvspace {10pt} +\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the output window}{111}{OpenModelicamass.5.1}% +\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{112}{OpenModelicamass.5.2}% +\addvspace {10pt} +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{132}{OpenModelicamass.6.1}% +\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{133}{OpenModelicamass.6.2}% +\addvspace {10pt} +\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{147}{OpenModelicamass.7.1}% +\addvspace {10pt} +\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{171}{OpenModelicamass.8.1}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{172}{OpenModelicamass.8.2}% +\addvspace {10pt} +\contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{198}{OpenModelicamass.9.1}% +\contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{199}{OpenModelicamass.9.2}% +\contentsline {section}{\numberline {9.{3}}Rotating the servomotor in steps of $20^\circ $}{199}{OpenModelicamass.9.3}% +\contentsline {section}{\numberline {9.{4}}Rotating the servomotor to a degree specified by the potentiometer}{200}{OpenModelicamass.9.4}% +\addvspace {10pt} +\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{228}{OpenModelicamass.10.1}% +\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{229}{OpenModelicamass.10.2}% +\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{229}{OpenModelicamass.10.3}% +\addvspace {10pt} +\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{261}{OpenModelicamass.11.1}% +\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{261}{OpenModelicamass.11.2}% +\contentsline {section}{\numberline {11.{3}}Code for Single Phase Active Power Output}{262}{OpenModelicamass.11.3}% diff --git a/floss-arduino.ard b/floss-arduino.ard index 9749077..f40e56b 100644 --- a/floss-arduino.ard +++ b/floss-arduino.ard @@ -1,28 +1,34 @@ \contentsline {section}{\numberline {3.{1}}First 10 lines of the FLOSS firmware}{25}{ardmass.3.1}% \addvspace {10pt} -\contentsline {section}{\numberline {4.{1}}Turning on the blue LED}{48}{ardmass.4.1}% -\contentsline {section}{\numberline {4.{2}}Turning on the blue LED and turning it off after two seconds}{48}{ardmass.4.2}% -\contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{49}{ardmass.4.3}% -\contentsline {section}{\numberline {4.{4}}Blinking the green LED}{49}{ardmass.4.4}% +\contentsline {section}{\numberline {4.{1}}Turning on the blue LED}{72}{ardmass.4.1}% +\contentsline {section}{\numberline {4.{2}}Turning on the blue LED and turning it off after two seconds}{72}{ardmass.4.2}% +\contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{73}{ardmass.4.3}% +\contentsline {section}{\numberline {4.{4}}Blinking the green LED}{73}{ardmass.4.4}% \addvspace {10pt} -\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the Serial Monitor}{61}{ardmass.5.1}% -\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{61}{ardmass.5.2}% +\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the Serial Monitor}{99}{ardmass.5.1}% +\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{99}{ardmass.5.2}% \addvspace {10pt} -\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{74}{ardmass.6.1}% -\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{74}{ardmass.6.2}% +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{120}{ardmass.6.1}% +\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{120}{ardmass.6.2}% \addvspace {10pt} -\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{84}{ardmass.7.1}% +\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{138}{ardmass.7.1}% \addvspace {10pt} -\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{94}{ardmass.8.1}% -\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{95}{ardmass.8.2}% +\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{154}{ardmass.8.1}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{155}{ardmass.8.2}% \addvspace {10pt} -\contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{110}{ardmass.9.1}% -\contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{111}{ardmass.9.2}% -\contentsline {section}{\numberline {9.{3}}Rotating the servomotor in increments}{111}{ardmass.9.3}% -\contentsline {section}{\numberline {9.{4}}Rotating the servomotor through the potentiometer}{111}{ardmass.9.4}% +\contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{178}{ardmass.9.1}% +\contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{179}{ardmass.9.2}% +\contentsline {section}{\numberline {9.{3}}Rotating the servomotor in increments}{179}{ardmass.9.3}% +\contentsline {section}{\numberline {9.{4}}Rotating the servomotor through the potentiometer}{179}{ardmass.9.4}% \addvspace {10pt} -\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{126}{ardmass.10.1}% -\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{126}{ardmass.10.2}% -\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{127}{ardmass.10.3}% +\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{208}{ardmass.10.1}% +\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{208}{ardmass.10.2}% +\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{209}{ardmass.10.3}% \addvspace {10pt} -\contentsline {section}{\numberline {11.{1}}First 10 lines of the firmware for Modbus Energy Meter experiment}{151}{ardmass.11.1}% +\contentsline {section}{\numberline {11.{1}}First 10 lines of the firmware for Modbus Energy Meter experiment}{242}{ardmass.11.1}% +\addvspace {10pt} +\contentsline {section}{\numberline {11.{2}}First 10 lines of the firmware for Modbus Energy Meter experiment}{251}{ardmass.11.2}% +\addvspace {10pt} +\contentsline {section}{\numberline {11.{3}}First 10 lines of the firmware for Modbus Energy Meter experiment}{255}{ardmass.11.3}% +\addvspace {10pt} +\contentsline {section}{\numberline {11.{4}}First 10 lines of the firmware for Modbus Energy Meter experiment}{261}{ardmass.11.4}% diff --git a/floss-arduino.aux b/floss-arduino.aux index d0ceeca..653d8e8 100644 --- a/floss-arduino.aux +++ b/floss-arduino.aux @@ -17,15 +17,15 @@ \providecommand\HyField@AuxAddToFields[1]{} \providecommand\HyField@AuxAddToCoFields[2]{} \bibstyle{unsrt} -\@writefile{toc}{\contentsline {chapter}{\numberline {List of Figures}}{v}{chapter*.2}\protected@file@percent } -\@writefile{toc}{\contentsline {chapter}{\numberline {List of Tables}}{ix}{chapter*.3}\protected@file@percent } -\@writefile{toc}{\contentsline {chapter}{\numberline {List of Arduino \ Code}}{xi}{chapter*.4}\protected@file@percent } -\@writefile{toc}{\contentsline {chapter}{\numberline {List of Scilab Code}}{xiii}{chapter*.5}\protected@file@percent } -\@writefile{toc}{\contentsline {chapter}{\numberline {List of Python \ Code}}{xv}{chapter*.6}\protected@file@percent } -\@writefile{toc}{\contentsline {chapter}{\numberline {List of Julia\ Code}}{xvii}{chapter*.7}\protected@file@percent } -\@writefile{toc}{\contentsline {chapter}{\numberline {List of OpenModelica\ Code}}{xix}{chapter*.8}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {List of Figures}}{ix}{chapter*.2}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {List of Tables}}{xiii}{chapter*.3}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {List of Arduino \ Code}}{xv}{chapter*.4}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {List of Scilab Code}}{xvii}{chapter*.5}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {List of Python \ Code}}{xix}{chapter*.6}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {List of Julia\ Code}}{xxi}{chapter*.7}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {List of OpenModelica\ Code}}{xxiii}{chapter*.8}\protected@file@percent } \@writefile{toc}{\thispagestyle {empty}} -\@writefile{toc}{\contentsline {chapter}{\numberline {List of Acronyms}}{xxi}{chapter*.9}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {List of Acronyms}}{xxv}{chapter*.9}\protected@file@percent } \citation{CNES-Scilab} \citation{scilab-arduino} \@writefile{toc}{\contentsline {chapter}{\numberline {1}Introduction}{1}{chapter.1}\protected@file@percent } @@ -191,6 +191,7 @@ \newlabel{sine-output}{{3.19}{38}{Sine generator Xcos output\relax }{figure.caption.46}{}} \@writefile{lof}{\contentsline {figure}{\numberline {3.20}{\ignorespaces CSCOPE configuration window\relax }}{39}{figure.caption.47}\protected@file@percent } \newlabel{cscope-config}{{3.20}{39}{CSCOPE configuration window\relax }{figure.caption.47}{}} +\citation{python-ref} \@writefile{lof}{\contentsline {figure}{\numberline {3.21}{\ignorespaces Simulation setup window\relax }}{40}{figure.caption.48}\protected@file@percent } \newlabel{sim-setup}{{3.21}{40}{Simulation setup window\relax }{figure.caption.48}{}} \@writefile{lof}{\contentsline {figure}{\numberline {3.22}{\ignorespaces Palette browser showing Arduino blocks\relax }}{40}{figure.caption.49}\protected@file@percent } @@ -198,765 +199,1489 @@ \@writefile{toc}{\contentsline {subsection}{\numberline {3.3.3}Xcos-Arduino}{40}{subsection.3.3.3}\protected@file@percent } \@writefile{lof}{\contentsline {figure}{\numberline {3.23}{\ignorespaces Xcos block help\relax }}{41}{figure.caption.50}\protected@file@percent } \newlabel{blk-help}{{3.23}{41}{Xcos block help\relax }{figure.caption.50}{}} -\@writefile{toc}{\contentsline {chapter}{\numberline {4}Interfacing a Light Emitting Diode}{43}{chapter.4}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {3.4}Python}{41}{section.3.4}\protected@file@percent } +\newlabel{sec:python-start}{{3.4}{41}{Python}{section.3.4}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.4.1}Downloading and installing on Windows}{41}{subsection.3.4.1}\protected@file@percent } +\newlabel{py-windows}{{3.4.1}{41}{Downloading and installing on Windows}{subsection.3.4.1}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {3.24}{\ignorespaces Installing Python 3 on Windows\relax }}{42}{figure.caption.51}\protected@file@percent } +\newlabel{python-windows}{{3.24}{42}{Installing Python 3 on Windows\relax }{figure.caption.51}{}} +\citation{pySerial} +\@writefile{lof}{\contentsline {figure}{\numberline {3.25}{\ignorespaces Launching the Command Prompt on Windows\relax }}{43}{figure.caption.52}\protected@file@percent } +\newlabel{windows-run}{{3.25}{43}{Launching the Command Prompt on Windows\relax }{figure.caption.52}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {3.26}{\ignorespaces Command Prompt on Windows\relax }}{43}{figure.caption.53}\protected@file@percent } +\newlabel{windows-cmd}{{3.26}{43}{Command Prompt on Windows\relax }{figure.caption.53}{}} +\citation{pySerial} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.4.2}Downloading and installing on GNU/Linux Ubuntu}{44}{subsection.3.4.2}\protected@file@percent } +\newlabel{py-linux}{{3.4.2}{44}{Downloading and installing on GNU/Linux Ubuntu}{subsection.3.4.2}{}} +\citation{pySerial} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.4.3}Python-Arduino toolbox}{45}{subsection.3.4.3}\protected@file@percent } +\newlabel{sec:python-toolbox}{{3.4.3}{45}{Python-Arduino toolbox}{subsection.3.4.3}{}} +\newlabel{6@xvr}{{}{45}} +\newlabel{6@vr}{{}{45}} +\citation{julia-ref} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.4.4}Firmware}{46}{subsection.3.4.4}\protected@file@percent } +\newlabel{sec:test-firmware-python}{{3.4.4}{46}{Firmware}{subsection.3.4.4}{}} +\@writefile{pyd}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{3.{1}}{}}{46}{pymass.3.1}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {3.{1}}A Python script to check whether the firmware is properly installed or not}{46}{pymass.3.1}\protected@file@percent } +\newlabel{7@xvr}{{}{46}} +\newlabel{7@vr}{{}{46}} +\newlabel{py:test-firmware}{{3.{1}}{46}{Firmware}{pymass.3.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/tools/python/test\textunderscore firmware.py}{46}{lstlisting.3.-5}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {3.5}Julia}{47}{section.3.5}\protected@file@percent } +\newlabel{sec:julia-start}{{3.5}{47}{Julia}{section.3.5}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.5.1}Downloading and installing on Windows}{47}{subsection.3.5.1}\protected@file@percent } +\newlabel{julia-install-windows}{{3.5.1}{47}{Downloading and installing on Windows}{subsection.3.5.1}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {3.27}{\ignorespaces Julia's website to download 64-bit Windows/Linux binaries\relax }}{48}{figure.caption.54}\protected@file@percent } +\newlabel{julia-download}{{3.27}{48}{Julia's website to download 64-bit Windows/Linux binaries\relax }{figure.caption.54}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {3.28}{\ignorespaces Installing Julia 1.6.0 on Windows\relax }}{48}{figure.caption.55}\protected@file@percent } +\newlabel{julia-windows-install}{{3.28}{48}{Installing Julia 1.6.0 on Windows\relax }{figure.caption.55}{}} +\citation{julia-serial-ports} +\@writefile{lof}{\contentsline {figure}{\numberline {3.29}{\ignorespaces Windows command prompt to launch Julia REPL\relax }}{50}{figure.caption.56}\protected@file@percent } +\newlabel{julia-repl-windows}{{3.29}{50}{Windows command prompt to launch Julia REPL\relax }{figure.caption.56}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {3.30}{\ignorespaces Windows command prompt to enter Pkg REPL in Julia\relax }}{50}{figure.caption.57}\protected@file@percent } +\newlabel{julia-pkg-windows}{{3.30}{50}{Windows command prompt to enter Pkg REPL in Julia\relax }{figure.caption.57}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.5.2}Downloading and installing GNU/Linux Ubuntu}{51}{subsection.3.5.2}\protected@file@percent } +\newlabel{julia-install-linux}{{3.5.2}{51}{Downloading and installing GNU/Linux Ubuntu}{subsection.3.5.2}{}} +\citation{julia-serial-ports} +\@writefile{lof}{\contentsline {figure}{\numberline {3.31}{\ignorespaces Linux terminal to launch Julia REPL\relax }}{53}{figure.caption.58}\protected@file@percent } +\newlabel{julia-repl}{{3.31}{53}{Linux terminal to launch Julia REPL\relax }{figure.caption.58}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {3.32}{\ignorespaces Linux terminal to enter Pkg REPL in Julia\relax }}{54}{figure.caption.59}\protected@file@percent } +\newlabel{julia-pkg}{{3.32}{54}{Linux terminal to enter Pkg REPL in Julia\relax }{figure.caption.59}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.5.3}Julia-Arduino toolbox}{54}{subsection.3.5.3}\protected@file@percent } +\newlabel{sec:julia-toolbox}{{3.5.3}{54}{Julia-Arduino toolbox}{subsection.3.5.3}{}} +\newlabel{8@xvr}{{}{54}} +\newlabel{8@vr}{{}{54}} +\citation{om-ref} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.5.4}Firmware}{55}{subsection.3.5.4}\protected@file@percent } +\newlabel{sec:test-firmware-julia}{{3.5.4}{55}{Firmware}{subsection.3.5.4}{}} +\@writefile{cod}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{3.{1}}{}}{55}{juliamass.3.1}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {3.{1}}A Julia source file to check whether the firmware is properly installed or not}{55}{juliamass.3.1}\protected@file@percent } +\newlabel{9@xvr}{{}{55}} +\newlabel{9@vr}{{}{55}} +\newlabel{julia:test-firmware}{{3.{1}}{55}{Firmware}{juliamass.3.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/tools/julia/test\textunderscore firmware.jl}{55}{lstlisting.3.-6}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {3.6}OpenModelica}{55}{section.3.6}\protected@file@percent } +\newlabel{sec:OpenModelica-start}{{3.6}{55}{OpenModelica}{section.3.6}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.6.1}Downloading and installing on Windows}{56}{subsection.3.6.1}\protected@file@percent } +\newlabel{openmodelica-install-windows}{{3.6.1}{56}{Downloading and installing on Windows}{subsection.3.6.1}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {3.33}{\ignorespaces Allowing Microsoft Defender to run the executable file\relax }}{57}{figure.caption.60}\protected@file@percent } +\newlabel{om-run-anyway}{{3.33}{57}{Allowing Microsoft Defender to run the executable file\relax }{figure.caption.60}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.6.2}Downloading and installing on GNU/Linux Ubuntu}{57}{subsection.3.6.2}\protected@file@percent } +\newlabel{openmodelica-install-linux}{{3.6.2}{57}{Downloading and installing on GNU/Linux Ubuntu}{subsection.3.6.2}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.6.3}Simulating models in OpenModelica}{57}{subsection.3.6.3}\protected@file@percent } +\newlabel{OpenModelica-code-execution}{{3.6.3}{57}{Simulating models in OpenModelica}{subsection.3.6.3}{}} +\citation{om-ref} +\@writefile{lof}{\contentsline {figure}{\numberline {3.34}{\ignorespaces Setup of Modelica Standard Library version\relax }}{58}{figure.caption.61}\protected@file@percent } +\newlabel{om-help}{{3.34}{58}{Setup of Modelica Standard Library version\relax }{figure.caption.61}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {3.35}{\ignorespaces User Interface of OMEdit\relax }}{59}{figure.caption.62}\protected@file@percent } +\newlabel{om-ui}{{3.35}{59}{User Interface of OMEdit\relax }{figure.caption.62}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {3.36}{\ignorespaces Opening a model in OMEdit\relax }}{60}{figure.caption.63}\protected@file@percent } +\newlabel{om-model-open}{{3.36}{60}{Opening a model in OMEdit\relax }{figure.caption.63}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {3.37}{\ignorespaces Opening a model in diagram view in OMEdit\relax }}{61}{figure.caption.64}\protected@file@percent } +\newlabel{om-modeling}{{3.37}{61}{Opening a model in diagram view in OMEdit\relax }{figure.caption.64}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {3.38}{\ignorespaces Different views of a model in OMEdit\relax }}{61}{figure.caption.65}\protected@file@percent } +\newlabel{om-views}{{3.38}{61}{Different views of a model in OMEdit\relax }{figure.caption.65}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {3.39}{\ignorespaces Opening a model in text view in OMEdit\relax }}{62}{figure.caption.66}\protected@file@percent } +\newlabel{om-text-view}{{3.39}{62}{Opening a model in text view in OMEdit\relax }{figure.caption.66}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {3.40}{\ignorespaces Simulating a model in OMEdit\relax }}{62}{figure.caption.67}\protected@file@percent } +\newlabel{om-simulate}{{3.40}{62}{Simulating a model in OMEdit\relax }{figure.caption.67}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {3.41}{\ignorespaces Output window of OMEdit\relax }}{63}{figure.caption.68}\protected@file@percent } +\newlabel{om-sim-success}{{3.41}{63}{Output window of OMEdit\relax }{figure.caption.68}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.6.4}OpenModelica-Arduino toolbox}{63}{subsection.3.6.4}\protected@file@percent } +\newlabel{sec:load-om-toolbox}{{3.6.4}{63}{OpenModelica-Arduino toolbox}{subsection.3.6.4}{}} +\newlabel{10@xvr}{{}{63}} +\newlabel{10@vr}{{}{63}} +\newlabel{itm:library}{{4}{64}{OpenModelica-Arduino toolbox}{Item.158}{}} +\newlabel{itm:locate}{{5}{64}{OpenModelica-Arduino toolbox}{Item.159}{}} +\newlabel{itm:simulate}{{6}{64}{OpenModelica-Arduino toolbox}{Item.160}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {3.6.5}Firmware}{64}{subsection.3.6.5}\protected@file@percent } +\newlabel{om-firmware}{{3.6.5}{64}{Firmware}{subsection.3.6.5}{}} +\newlabel{sec:test-firmware-OpenModelica}{{3.6.5}{64}{Firmware}{subsection.3.6.5}{}} +\@writefile{cod}{\addvspace {10pt}} +\@writefile{lof}{\contentsline {figure}{\numberline {3.42}{\ignorespaces Examples provided in the OpenModelica-Arduino toolbox\relax }}{65}{figure.caption.69}\protected@file@percent } +\newlabel{om-examples-toolbox}{{3.42}{65}{Examples provided in the OpenModelica-Arduino toolbox\relax }{figure.caption.69}{}} +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{3.{1}}{}}{65}{OpenModelicamass.3.1}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {3.{1}}An OpenModelica code/model to check whether the firmware is properly installed or not}{65}{OpenModelicamass.3.1}\protected@file@percent } +\newlabel{11@xvr}{{}{65}} +\newlabel{11@vr}{{}{65}} +\newlabel{OpenModelica:test-firmware}{{3.{1}}{65}{Firmware}{OpenModelicamass.3.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/tools/openmodelica/windows//test\textunderscore firmware.mo}{65}{lstlisting.3.-7}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {4}Interfacing a Light Emitting Diode}{67}{chapter.4}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{led}{{4}{43}{Interfacing a Light Emitting Diode}{chapter.4}{}} -\@writefile{toc}{\contentsline {section}{\numberline {4.1}Preliminaries}{43}{section.4.1}\protected@file@percent } -\newlabel{sec:led-pril}{{4.1}{43}{Preliminaries}{section.4.1}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {4.1}{\ignorespaces Light Emitting Diode\relax }}{43}{figure.caption.51}\protected@file@percent } -\newlabel{fig:ledsym}{{4.1}{43}{Light Emitting Diode\relax }{figure.caption.51}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {4.2}{\ignorespaces Internal connection diagram for the RGB LED on the shield\relax }}{44}{figure.caption.52}\protected@file@percent } -\newlabel{fig:ledblock}{{4.2}{44}{Internal connection diagram for the RGB LED on the shield\relax }{figure.caption.52}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {4.3}{\ignorespaces Connecting Arduino Uno\ and shield\relax }}{44}{figure.caption.53}\protected@file@percent } -\newlabel{fig:uno-shield-connect}{{4.3}{44}{Connecting \arduino \ and shield\relax }{figure.caption.53}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {4.4}{\ignorespaces An RGB LED with Arduino Uno\ using a breadboard\relax }}{45}{figure.caption.54}\protected@file@percent } -\newlabel{fig:ard-rgb-bread}{{4.4}{45}{An RGB LED with \arduino \ using a breadboard\relax }{figure.caption.54}{}} -\@writefile{toc}{\contentsline {section}{\numberline {4.2}Connecting an RGB LED with Arduino Uno\ using a breadboard}{45}{section.4.2}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {4.3}Lighting the LED from the Arduino IDE}{46}{section.4.3}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {4.3.1}Lighting the LED}{46}{subsection.4.3.1}\protected@file@percent } -\newlabel{sec:light-ard}{{4.3.1}{46}{Lighting the LED}{subsection.4.3.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash blue/led\textendash blue.ino}{46}{lstlisting.4.-5}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash blue/led\textendash blue.ino}{46}{lstlisting.4.-6}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash blue\textendash delay/led\textendash blue\textendash delay.ino}{46}{lstlisting.4.-7}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash blue\textendash delay/led\textendash blue\textendash delay.ino}{46}{lstlisting.4.-8}\protected@file@percent } -\@writefile{toc}{\contentsline {paragraph}{Note:}{47}{section*.55}\protected@file@percent } -\@writefile{toc}{\contentsline {paragraph}{Note:}{47}{section*.57}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{4.{1}}{}}{47}{egmass.4.1}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {4.5}{\ignorespaces LED experiments directly on Arduino Uno\ board, without the shield\relax }}{48}{figure.caption.56}\protected@file@percent } -\newlabel{fig:led-uno}{{4.5}{48}{LED experiments directly on \arduino \ board, without the shield\relax }{figure.caption.56}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {4.3.2}Arduino Code}{48}{subsection.4.3.2}\protected@file@percent } -\newlabel{sec:led-arduino-code}{{4.3.2}{48}{Arduino Code}{subsection.4.3.2}{}} +\newlabel{led}{{4}{67}{Interfacing a Light Emitting Diode}{chapter.4}{}} +\@writefile{toc}{\contentsline {section}{\numberline {4.1}Preliminaries}{67}{section.4.1}\protected@file@percent } +\newlabel{sec:led-pril}{{4.1}{67}{Preliminaries}{section.4.1}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {4.1}{\ignorespaces Light Emitting Diode\relax }}{67}{figure.caption.70}\protected@file@percent } +\newlabel{fig:ledsym}{{4.1}{67}{Light Emitting Diode\relax }{figure.caption.70}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {4.2}{\ignorespaces Internal connection diagram for the RGB LED on the shield\relax }}{68}{figure.caption.71}\protected@file@percent } +\newlabel{fig:ledblock}{{4.2}{68}{Internal connection diagram for the RGB LED on the shield\relax }{figure.caption.71}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {4.3}{\ignorespaces Connecting Arduino Uno\ and shield\relax }}{68}{figure.caption.72}\protected@file@percent } +\newlabel{fig:uno-shield-connect}{{4.3}{68}{Connecting \arduino \ and shield\relax }{figure.caption.72}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {4.4}{\ignorespaces An RGB LED with Arduino Uno\ using a breadboard\relax }}{69}{figure.caption.73}\protected@file@percent } +\newlabel{fig:ard-rgb-bread}{{4.4}{69}{An RGB LED with \arduino \ using a breadboard\relax }{figure.caption.73}{}} +\@writefile{toc}{\contentsline {section}{\numberline {4.2}Connecting an RGB LED with Arduino Uno\ using a breadboard}{69}{section.4.2}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {4.3}Lighting the LED from the Arduino IDE}{70}{section.4.3}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {4.3.1}Lighting the LED}{70}{subsection.4.3.1}\protected@file@percent } +\newlabel{sec:light-ard}{{4.3.1}{70}{Lighting the LED}{subsection.4.3.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash blue/led\textendash blue.ino}{70}{lstlisting.4.-8}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash blue/led\textendash blue.ino}{70}{lstlisting.4.-9}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash blue\textendash delay/led\textendash blue\textendash delay.ino}{70}{lstlisting.4.-10}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash blue\textendash delay/led\textendash blue\textendash delay.ino}{70}{lstlisting.4.-11}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{71}{section*.74}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{71}{section*.76}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{4.{1}}{}}{71}{egmass.4.1}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {4.5}{\ignorespaces LED experiments directly on Arduino Uno\ board, without the shield\relax }}{72}{figure.caption.75}\protected@file@percent } +\newlabel{fig:led-uno}{{4.5}{72}{LED experiments directly on \arduino \ board, without the shield\relax }{figure.caption.75}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {4.3.2}Arduino Code}{72}{subsection.4.3.2}\protected@file@percent } +\newlabel{sec:led-arduino-code}{{4.3.2}{72}{Arduino Code}{subsection.4.3.2}{}} \@writefile{ard}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{4.{1}}{}}{48}{ardmass.4.1}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {4.{1}}Turning on the blue LED}{48}{ardmass.4.1}\protected@file@percent } -\newlabel{6@xvr}{{}{48}} -\newlabel{6@vr}{{}{48}} -\newlabel{ard:led-blue}{{4.{1}}{48}{Arduino Code}{ardmass.4.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash blue/led\textendash blue.ino}{48}{lstlisting.4.-10}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{4.{2}}{}}{48}{ardmass.4.2}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {4.{2}}Turning on the blue LED and turning it off after two seconds}{48}{ardmass.4.2}\protected@file@percent } -\newlabel{7@xvr}{{}{48}} -\newlabel{7@vr}{{}{48}} -\newlabel{ard:led-blue-delay}{{4.{2}}{48}{Arduino Code}{ardmass.4.2}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash blue\textendash delay/led\textendash blue\textendash delay.ino}{48}{lstlisting.4.-11}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{4.{3}}{}}{49}{ardmass.4.3}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{49}{ardmass.4.3}\protected@file@percent } -\newlabel{8@xvr}{{}{49}} -\newlabel{8@vr}{{}{49}} -\newlabel{ard:led-blue-red}{{4.{3}}{49}{Arduino Code}{ardmass.4.3}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash blue\textendash red/led\textendash blue\textendash red.ino}{49}{lstlisting.4.-12}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{4.{4}}{}}{49}{ardmass.4.4}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {4.{4}}Blinking the green LED}{49}{ardmass.4.4}\protected@file@percent } -\newlabel{9@xvr}{{}{49}} -\newlabel{9@vr}{{}{49}} -\newlabel{ard:led-blink}{{4.{4}}{49}{Arduino Code}{ardmass.4.4}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash green\textendash blink/led\textendash green\textendash blink.ino}{49}{lstlisting.4.-13}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {4.4}Lighting the LED from Scilab}{50}{section.4.4}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {4.4.1}Lighting the LED}{50}{subsection.4.4.1}\protected@file@percent } -\newlabel{sec:light-sci}{{4.4.1}{50}{Lighting the LED}{subsection.4.4.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue.sce}{50}{lstlisting.4.-15}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue.sce}{50}{lstlisting.4.-17}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue.sce}{51}{lstlisting.4.-19}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue\textendash delay.sce}{51}{lstlisting.4.-20}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue\textendash delay.sce}{51}{lstlisting.4.-21}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{4.{2}}{}}{51}{egmass.4.2}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {4.4.2}Scilab Code}{51}{subsection.4.4.2}\protected@file@percent } -\newlabel{sec:led-scilab-code}{{4.4.2}{51}{Scilab Code}{subsection.4.4.2}{}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{4.{1}}{}}{72}{ardmass.4.1}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {4.{1}}Turning on the blue LED}{72}{ardmass.4.1}\protected@file@percent } +\newlabel{12@xvr}{{}{72}} +\newlabel{12@vr}{{}{72}} +\newlabel{ard:led-blue}{{4.{1}}{72}{Arduino Code}{ardmass.4.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash blue/led\textendash blue.ino}{72}{lstlisting.4.-13}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{4.{2}}{}}{72}{ardmass.4.2}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {4.{2}}Turning on the blue LED and turning it off after two seconds}{72}{ardmass.4.2}\protected@file@percent } +\newlabel{13@xvr}{{}{72}} +\newlabel{13@vr}{{}{72}} +\newlabel{ard:led-blue-delay}{{4.{2}}{72}{Arduino Code}{ardmass.4.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash blue\textendash delay/led\textendash blue\textendash delay.ino}{72}{lstlisting.4.-14}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{4.{3}}{}}{73}{ardmass.4.3}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{73}{ardmass.4.3}\protected@file@percent } +\newlabel{14@xvr}{{}{73}} +\newlabel{14@vr}{{}{73}} +\newlabel{ard:led-blue-red}{{4.{3}}{73}{Arduino Code}{ardmass.4.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash blue\textendash red/led\textendash blue\textendash red.ino}{73}{lstlisting.4.-15}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{4.{4}}{}}{73}{ardmass.4.4}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {4.{4}}Blinking the green LED}{73}{ardmass.4.4}\protected@file@percent } +\newlabel{15@xvr}{{}{73}} +\newlabel{15@vr}{{}{73}} +\newlabel{ard:led-blink}{{4.{4}}{73}{Arduino Code}{ardmass.4.4}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led\textendash green\textendash blink/led\textendash green\textendash blink.ino}{73}{lstlisting.4.-16}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {4.4}Lighting the LED from Scilab}{74}{section.4.4}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {4.4.1}Lighting the LED}{74}{subsection.4.4.1}\protected@file@percent } +\newlabel{sec:light-sci}{{4.4.1}{74}{Lighting the LED}{subsection.4.4.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue.sce}{74}{lstlisting.4.-18}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue.sce}{74}{lstlisting.4.-20}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue.sce}{75}{lstlisting.4.-22}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue\textendash delay.sce}{75}{lstlisting.4.-23}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue\textendash delay.sce}{75}{lstlisting.4.-24}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{4.{2}}{}}{75}{egmass.4.2}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {4.4.2}Scilab Code}{75}{subsection.4.4.2}\protected@file@percent } +\newlabel{sec:led-scilab-code}{{4.4.2}{75}{Scilab Code}{subsection.4.4.2}{}} \@writefile{cod}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{4.{1}}{}}{51}{codemass.4.1}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {4.{1}}Turning on the blue LED}{51}{codemass.4.1}\protected@file@percent } -\newlabel{10@xvr}{{}{51}} -\newlabel{10@vr}{{}{51}} -\newlabel{sci:led-blue}{{4.{1}}{51}{Scilab Code}{codemass.4.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue.sce}{51}{lstlisting.4.-22}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{4.{2}}{}}{52}{codemass.4.2}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {4.{2}}Turning on the blue LED and turning it off after two seconds}{52}{codemass.4.2}\protected@file@percent } -\newlabel{11@xvr}{{}{52}} -\newlabel{11@vr}{{}{52}} -\newlabel{sci:led-blue-delay}{{4.{2}}{52}{Scilab Code}{codemass.4.2}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue\textendash delay.sce}{52}{lstlisting.4.-23}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{4.{3}}{}}{52}{codemass.4.3}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{52}{codemass.4.3}\protected@file@percent } -\newlabel{12@xvr}{{}{52}} -\newlabel{12@vr}{{}{52}} -\newlabel{sci:led-blue-red}{{4.{3}}{52}{Scilab Code}{codemass.4.3}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue\textendash red.sce}{52}{lstlisting.4.-24}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{4.{4}}{}}{52}{codemass.4.4}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {4.{4}}Blinking the green LED}{52}{codemass.4.4}\protected@file@percent } -\newlabel{13@xvr}{{}{52}} -\newlabel{13@vr}{{}{52}} -\newlabel{sci:led-green-blink}{{4.{4}}{52}{Scilab Code}{codemass.4.4}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash green\textendash blink.sce}{52}{lstlisting.4.-25}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {4.5}Lighting the LED from Scilab Xcos}{52}{section.4.5}\protected@file@percent } -\newlabel{sec:light-xcos}{{4.5}{52}{Lighting the LED from Scilab Xcos}{section.4.5}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {4.6}{\ignorespaces Turning the blue LED on through Xcos}}{53}{figure.caption.58}\protected@file@percent } -\newlabel{15@xvr}{{}{53}} -\newlabel{15@vr}{{}{53}} -\newlabel{fig:led-blue}{{4.6}{53}{Turning the blue LED on through Xcos}{figure.caption.58}{}} -\@writefile{lot}{\contentsline {table}{\numberline {4.1}{\ignorespaces Parameters to light the blue LED in Xcos\relax }}{53}{table.caption.59}\protected@file@percent } -\newlabel{tab:led-blue}{{4.1}{53}{Parameters to light the blue LED in Xcos\relax }{table.caption.59}{}} -\newlabel{16@xvr}{{}{53}} -\newlabel{16@vr}{{}{53}} -\@writefile{lof}{\contentsline {figure}{\numberline {4.7}{\ignorespaces Turning the blue LED on through Xcos for two seconds}}{54}{figure.caption.60}\protected@file@percent } -\newlabel{18@xvr}{{}{54}} -\newlabel{18@vr}{{}{54}} -\newlabel{fig:led-blue-delay}{{4.7}{54}{Turning the blue LED on through Xcos for two seconds}{figure.caption.60}{}} -\@writefile{lot}{\contentsline {table}{\numberline {4.2}{\ignorespaces Parameters to light the blue LED in Xcos for two seconds\relax }}{54}{table.caption.61}\protected@file@percent } -\newlabel{tab:led-blue-delay}{{4.2}{54}{Parameters to light the blue LED in Xcos for two seconds\relax }{table.caption.61}{}} -\newlabel{19@xvr}{{}{54}} -\newlabel{19@vr}{{}{54}} -\@writefile{lof}{\contentsline {figure}{\numberline {4.8}{\ignorespaces Turning the blue and red LEDs on through Xcos and turning them off one by one}}{55}{figure.caption.62}\protected@file@percent } -\newlabel{21@xvr}{{}{55}} -\newlabel{21@vr}{{}{55}} -\newlabel{fig:led-blue-red}{{4.8}{55}{Turning the blue and red LEDs on through Xcos and turning them off one by one}{figure.caption.62}{}} -\@writefile{lot}{\contentsline {table}{\numberline {4.3}{\ignorespaces Parameters to turn the blue and red LEDs on and then turn them off one by one\relax }}{55}{table.caption.63}\protected@file@percent } -\newlabel{tab:led-blue-red}{{4.3}{55}{Parameters to turn the blue and red LEDs on and then turn them off one by one\relax }{table.caption.63}{}} -\newlabel{22@xvr}{{}{55}} -\newlabel{22@vr}{{}{55}} -\@writefile{lof}{\contentsline {figure}{\numberline {4.9}{\ignorespaces Blinking the green LED every second through Xcos}}{56}{figure.caption.64}\protected@file@percent } -\newlabel{24@xvr}{{}{56}} -\newlabel{24@vr}{{}{56}} -\newlabel{fig:led-green-blink}{{4.9}{56}{Blinking the green LED every second through Xcos}{figure.caption.64}{}} -\@writefile{lot}{\contentsline {table}{\numberline {4.4}{\ignorespaces Parameters to make the green LED blink every second\relax }}{56}{table.caption.65}\protected@file@percent } -\newlabel{tab:led-green-blink}{{4.4}{56}{Parameters to make the green LED blink every second\relax }{table.caption.65}{}} -\newlabel{25@xvr}{{}{56}} -\newlabel{25@vr}{{}{56}} -\@writefile{thm}{\contentsline {egmass}{{Exercise}{4.{3}}{}}{56}{egmass.4.3}\protected@file@percent } -\@writefile{toc}{\contentsline {chapter}{\numberline {5}Interfacing a Pushbutton}{57}{chapter.5}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{4.{1}}{}}{75}{codemass.4.1}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {4.{1}}Turning on the blue LED}{75}{codemass.4.1}\protected@file@percent } +\newlabel{16@xvr}{{}{75}} +\newlabel{16@vr}{{}{75}} +\newlabel{sci:led-blue}{{4.{1}}{75}{Scilab Code}{codemass.4.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue.sce}{75}{lstlisting.4.-25}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{4.{2}}{}}{76}{codemass.4.2}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {4.{2}}Turning on the blue LED and turning it off after two seconds}{76}{codemass.4.2}\protected@file@percent } +\newlabel{17@xvr}{{}{76}} +\newlabel{17@vr}{{}{76}} +\newlabel{sci:led-blue-delay}{{4.{2}}{76}{Scilab Code}{codemass.4.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue\textendash delay.sce}{76}{lstlisting.4.-26}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{4.{3}}{}}{76}{codemass.4.3}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{76}{codemass.4.3}\protected@file@percent } +\newlabel{18@xvr}{{}{76}} +\newlabel{18@vr}{{}{76}} +\newlabel{sci:led-blue-red}{{4.{3}}{76}{Scilab Code}{codemass.4.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash blue\textendash red.sce}{76}{lstlisting.4.-27}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{4.{4}}{}}{76}{codemass.4.4}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {4.{4}}Blinking the green LED}{76}{codemass.4.4}\protected@file@percent } +\newlabel{19@xvr}{{}{76}} +\newlabel{19@vr}{{}{76}} +\newlabel{sci:led-green-blink}{{4.{4}}{76}{Scilab Code}{codemass.4.4}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led\textendash green\textendash blink.sce}{76}{lstlisting.4.-28}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {4.5}Lighting the LED from Scilab Xcos}{76}{section.4.5}\protected@file@percent } +\newlabel{sec:light-xcos}{{4.5}{76}{Lighting the LED from Scilab Xcos}{section.4.5}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {4.6}{\ignorespaces Turning the blue LED on through Xcos}}{77}{figure.caption.77}\protected@file@percent } +\newlabel{21@xvr}{{}{77}} +\newlabel{21@vr}{{}{77}} +\newlabel{fig:led-blue}{{4.6}{77}{Turning the blue LED on through Xcos}{figure.caption.77}{}} +\@writefile{lot}{\contentsline {table}{\numberline {4.1}{\ignorespaces Parameters to light the blue LED in Xcos\relax }}{77}{table.caption.78}\protected@file@percent } +\newlabel{tab:led-blue}{{4.1}{77}{Parameters to light the blue LED in Xcos\relax }{table.caption.78}{}} +\newlabel{22@xvr}{{}{77}} +\newlabel{22@vr}{{}{77}} +\@writefile{lof}{\contentsline {figure}{\numberline {4.7}{\ignorespaces Turning the blue LED on through Xcos for two seconds}}{78}{figure.caption.79}\protected@file@percent } +\newlabel{24@xvr}{{}{78}} +\newlabel{24@vr}{{}{78}} +\newlabel{fig:led-blue-delay}{{4.7}{78}{Turning the blue LED on through Xcos for two seconds}{figure.caption.79}{}} +\@writefile{lot}{\contentsline {table}{\numberline {4.2}{\ignorespaces Parameters to light the blue LED in Xcos for two seconds\relax }}{78}{table.caption.80}\protected@file@percent } +\newlabel{tab:led-blue-delay}{{4.2}{78}{Parameters to light the blue LED in Xcos for two seconds\relax }{table.caption.80}{}} +\newlabel{25@xvr}{{}{78}} +\newlabel{25@vr}{{}{78}} +\@writefile{lof}{\contentsline {figure}{\numberline {4.8}{\ignorespaces Turning the blue and red LEDs on through Xcos and turning them off one by one}}{79}{figure.caption.81}\protected@file@percent } +\newlabel{27@xvr}{{}{79}} +\newlabel{27@vr}{{}{79}} +\newlabel{fig:led-blue-red}{{4.8}{79}{Turning the blue and red LEDs on through Xcos and turning them off one by one}{figure.caption.81}{}} +\@writefile{lot}{\contentsline {table}{\numberline {4.3}{\ignorespaces Parameters to turn the blue and red LEDs on and then turn them off one by one\relax }}{79}{table.caption.82}\protected@file@percent } +\newlabel{tab:led-blue-red}{{4.3}{79}{Parameters to turn the blue and red LEDs on and then turn them off one by one\relax }{table.caption.82}{}} +\newlabel{28@xvr}{{}{79}} +\newlabel{28@vr}{{}{79}} +\@writefile{lof}{\contentsline {figure}{\numberline {4.9}{\ignorespaces Blinking the green LED every second through Xcos}}{80}{figure.caption.83}\protected@file@percent } +\newlabel{30@xvr}{{}{80}} +\newlabel{30@vr}{{}{80}} +\newlabel{fig:led-green-blink}{{4.9}{80}{Blinking the green LED every second through Xcos}{figure.caption.83}{}} +\@writefile{lot}{\contentsline {table}{\numberline {4.4}{\ignorespaces Parameters to make the green LED blink every second\relax }}{80}{table.caption.84}\protected@file@percent } +\newlabel{tab:led-green-blink}{{4.4}{80}{Parameters to make the green LED blink every second\relax }{table.caption.84}{}} +\newlabel{31@xvr}{{}{80}} +\newlabel{31@vr}{{}{80}} +\@writefile{thm}{\contentsline {egmass}{{Exercise}{4.{3}}{}}{80}{egmass.4.3}\protected@file@percent } +\citation{pySerial} +\@writefile{toc}{\contentsline {section}{\numberline {4.6}Lighting the LED from Python}{81}{section.4.6}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {4.6.1}Lighting the LED}{81}{subsection.4.6.1}\protected@file@percent } +\newlabel{sec:light-py}{{4.6.1}{81}{Lighting the LED}{subsection.4.6.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led\textendash blue.py}{81}{lstlisting.4.-29}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led\textendash blue.py}{81}{lstlisting.4.-30}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led\textendash blue.py}{81}{lstlisting.4.-31}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led\textendash blue.py}{81}{lstlisting.4.-32}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led\textendash blue.py}{82}{lstlisting.4.-33}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led\textendash blue.py}{82}{lstlisting.4.-34}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led\textendash blue\textendash delay.py}{82}{lstlisting.4.-35}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led\textendash blue\textendash delay.py}{82}{lstlisting.4.-36}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{4.{4}}{}}{82}{egmass.4.4}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {4.6.2}Python Code}{83}{subsection.4.6.2}\protected@file@percent } +\newlabel{sec:led-python-code}{{4.6.2}{83}{Python Code}{subsection.4.6.2}{}} +\@writefile{pyd}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{4.{1}}{}}{83}{pymass.4.1}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {4.{1}}Turning on the blue LED}{83}{pymass.4.1}\protected@file@percent } +\newlabel{32@xvr}{{}{83}} +\newlabel{32@vr}{{}{83}} +\newlabel{py:led-blue}{{4.{1}}{83}{Python Code}{pymass.4.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led\textendash blue.py}{83}{lstlisting.4.-37}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{4.{2}}{}}{83}{pymass.4.2}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {4.{2}}Turning on the blue LED and turning it off after two seconds}{83}{pymass.4.2}\protected@file@percent } +\newlabel{33@xvr}{{}{83}} +\newlabel{33@vr}{{}{83}} +\newlabel{py:led-blue-delay}{{4.{2}}{83}{Python Code}{pymass.4.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led\textendash blue\textendash delay.py}{83}{lstlisting.4.-38}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{4.{3}}{}}{84}{pymass.4.3}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{84}{pymass.4.3}\protected@file@percent } +\newlabel{34@xvr}{{}{84}} +\newlabel{34@vr}{{}{84}} +\newlabel{py:led-blue-red}{{4.{3}}{84}{Python Code}{pymass.4.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led\textendash blue\textendash red.py}{84}{lstlisting.4.-39}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{4.{4}}{}}{85}{pymass.4.4}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {4.{4}}Blinking the green LED}{85}{pymass.4.4}\protected@file@percent } +\newlabel{35@xvr}{{}{85}} +\newlabel{35@vr}{{}{85}} +\newlabel{py:led-green-blink}{{4.{4}}{85}{Python Code}{pymass.4.4}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led\textendash green\textendash blink.py}{85}{lstlisting.4.-40}\protected@file@percent } +\citation{julia-serial-ports} +\@writefile{toc}{\contentsline {section}{\numberline {4.7}Lighting the LED from Julia}{86}{section.4.7}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {4.7.1}Lighting the LED}{86}{subsection.4.7.1}\protected@file@percent } +\newlabel{sec:light-julia}{{4.7.1}{86}{Lighting the LED}{subsection.4.7.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led\textendash blue.jl}{86}{lstlisting.4.-41}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led\textendash blue.jl}{86}{lstlisting.4.-42}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led\textendash blue.jl}{87}{lstlisting.4.-43}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led\textendash blue.jl}{87}{lstlisting.4.-44}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led\textendash blue\textendash delay.jl}{87}{lstlisting.4.-45}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led\textendash blue\textendash delay.jl}{87}{lstlisting.4.-46}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {4.7.2}Julia Code}{87}{subsection.4.7.2}\protected@file@percent } +\newlabel{sec:led-julia-code}{{4.7.2}{87}{Julia Code}{subsection.4.7.2}{}} +\@writefile{juliad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{4.{1}}{}}{87}{juliamass.4.1}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {4.{1}}Turning on the blue LED}{87}{juliamass.4.1}\protected@file@percent } +\newlabel{36@xvr}{{}{87}} +\newlabel{36@vr}{{}{87}} +\newlabel{julia:led-blue}{{4.{1}}{87}{Julia Code}{juliamass.4.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led\textendash blue.jl}{87}{lstlisting.4.-47}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{4.{2}}{}}{88}{juliamass.4.2}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {4.{2}}Turning on the blue LED and turning it off after two seconds}{88}{juliamass.4.2}\protected@file@percent } +\newlabel{37@xvr}{{}{88}} +\newlabel{37@vr}{{}{88}} +\newlabel{julia:led-blue-delay}{{4.{2}}{88}{Julia Code}{juliamass.4.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led\textendash blue\textendash delay.jl}{88}{lstlisting.4.-48}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{4.{3}}{}}{88}{juliamass.4.3}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{88}{juliamass.4.3}\protected@file@percent } +\newlabel{38@xvr}{{}{88}} +\newlabel{38@vr}{{}{88}} +\newlabel{julia:led-blue-red}{{4.{3}}{88}{Julia Code}{juliamass.4.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led\textendash blue\textendash red.jl}{88}{lstlisting.4.-49}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{4.{4}}{}}{88}{juliamass.4.4}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {4.{4}}Blinking the green LED}{88}{juliamass.4.4}\protected@file@percent } +\newlabel{39@xvr}{{}{88}} +\newlabel{39@vr}{{}{88}} +\newlabel{julia:led-green-blink}{{4.{4}}{88}{Julia Code}{juliamass.4.4}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led\textendash green\textendash blink.jl}{88}{lstlisting.4.-50}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {4.8}Lighting the LED from OpenModelica}{89}{section.4.8}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {4.8.1}Lighting the LED}{89}{subsection.4.8.1}\protected@file@percent } +\newlabel{sec:light-OpenModelica}{{4.8.1}{89}{Lighting the LED}{subsection.4.8.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led\textendash blue.mo}{89}{lstlisting.4.-51}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led\textendash blue.mo}{89}{lstlisting.4.-52}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led\textendash blue.mo}{89}{lstlisting.4.-54}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led\textendash blue.mo}{90}{lstlisting.4.-57}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led\textendash blue\textendash delay.mo}{90}{lstlisting.4.-58}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led\textendash blue\textendash delay.mo}{90}{lstlisting.4.-59}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {4.8.2}OpenModelica Code}{90}{subsection.4.8.2}\protected@file@percent } +\newlabel{sec:led-OpenModelica-code}{{4.8.2}{90}{OpenModelica Code}{subsection.4.8.2}{}} +\@writefile{OpenModelicad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{4.{1}}{}}{91}{OpenModelicamass.4.1}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {4.{1}}Turning on the blue LED}{91}{OpenModelicamass.4.1}\protected@file@percent } +\newlabel{OpenModelica:led-blue}{{4.{1}}{91}{OpenModelica Code}{OpenModelicamass.4.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led\textendash blue.mo}{91}{lstlisting.4.-60}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{4.{2}}{}}{91}{OpenModelicamass.4.2}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {4.{2}}Turning on the blue LED and turning it off after two seconds}{91}{OpenModelicamass.4.2}\protected@file@percent } +\newlabel{OpenModelica:led-blue-delay}{{4.{2}}{91}{OpenModelica Code}{OpenModelicamass.4.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led\textendash blue\textendash delay.mo}{91}{lstlisting.4.-61}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{4.{3}}{}}{92}{OpenModelicamass.4.3}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{92}{OpenModelicamass.4.3}\protected@file@percent } +\newlabel{OpenModelica:led-blue-red}{{4.{3}}{92}{OpenModelica Code}{OpenModelicamass.4.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led\textendash blue\textendash red.mo}{92}{lstlisting.4.-62}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{4.{4}}{}}{93}{OpenModelicamass.4.4}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {4.{4}}Blinking the green LED}{93}{OpenModelicamass.4.4}\protected@file@percent } +\newlabel{OpenModelica:led-green-blink}{{4.{4}}{93}{OpenModelica Code}{OpenModelicamass.4.4}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led\textendash green\textendash blink.mo}{93}{lstlisting.4.-63}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {5}Interfacing a Pushbutton}{95}{chapter.5}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{pushbutton}{{5}{57}{Interfacing a Pushbutton}{chapter.5}{}} -\@writefile{toc}{\contentsline {section}{\numberline {5.1}Preliminaries}{57}{section.5.1}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {5.2}Connecting a pushbutton with Arduino Uno\ using a breadboard}{57}{section.5.2}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {5.1}{\ignorespaces Internal connection diagram for the pushbutton on the shield\relax }}{58}{figure.caption.66}\protected@file@percent } -\newlabel{fig:pushbuttonconn}{{5.1}{58}{Internal connection diagram for the pushbutton on the shield\relax }{figure.caption.66}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {5.2}{\ignorespaces A pushbutton to read its status with Arduino Uno using a breadboard\relax }}{58}{figure.caption.67}\protected@file@percent } -\newlabel{fig:switch-bread}{{5.2}{58}{A pushbutton to read its status with Arduino Uno using a breadboard\relax }{figure.caption.67}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {5.3}{\ignorespaces A pushbutton to control an LED with Arduino Uno using a breadboard\relax }}{59}{figure.caption.68}\protected@file@percent } -\newlabel{fig:switch-led}{{5.3}{59}{A pushbutton to control an LED with Arduino Uno using a breadboard\relax }{figure.caption.68}{}} -\@writefile{toc}{\contentsline {section}{\numberline {5.3}Reading the pushbutton status from the Arduino IDE}{60}{section.5.3}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {5.3.1}Reading the pushbutton status}{60}{subsection.5.3.1}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/push\textendash button\textendash status/push\textendash button\textendash status.ino}{60}{lstlisting.5.-26}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/push\textendash button\textendash status/push\textendash button\textendash status.ino}{60}{lstlisting.5.-27}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/led\textendash push\textendash button/led\textendash push\textendash button.ino}{61}{lstlisting.5.-28}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {5.3.2}Arduino Code}{61}{subsection.5.3.2}\protected@file@percent } -\newlabel{sec:push-arduino-code}{{5.3.2}{61}{Arduino Code}{subsection.5.3.2}{}} +\newlabel{pushbutton}{{5}{95}{Interfacing a Pushbutton}{chapter.5}{}} +\@writefile{toc}{\contentsline {section}{\numberline {5.1}Preliminaries}{95}{section.5.1}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {5.2}Connecting a pushbutton with Arduino Uno\ using a breadboard}{95}{section.5.2}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {5.1}{\ignorespaces Internal connection diagram for the pushbutton on the shield\relax }}{96}{figure.caption.85}\protected@file@percent } +\newlabel{fig:pushbuttonconn}{{5.1}{96}{Internal connection diagram for the pushbutton on the shield\relax }{figure.caption.85}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {5.2}{\ignorespaces A pushbutton to read its status with Arduino Uno using a breadboard\relax }}{96}{figure.caption.86}\protected@file@percent } +\newlabel{fig:switch-bread}{{5.2}{96}{A pushbutton to read its status with Arduino Uno using a breadboard\relax }{figure.caption.86}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {5.3}{\ignorespaces A pushbutton to control an LED with Arduino Uno using a breadboard\relax }}{97}{figure.caption.87}\protected@file@percent } +\newlabel{fig:switch-led}{{5.3}{97}{A pushbutton to control an LED with Arduino Uno using a breadboard\relax }{figure.caption.87}{}} +\@writefile{toc}{\contentsline {section}{\numberline {5.3}Reading the pushbutton status from the Arduino IDE}{98}{section.5.3}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.3.1}Reading the pushbutton status}{98}{subsection.5.3.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/push\textendash button\textendash status/push\textendash button\textendash status.ino}{98}{lstlisting.5.-64}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/push\textendash button\textendash status/push\textendash button\textendash status.ino}{98}{lstlisting.5.-65}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/led\textendash push\textendash button/led\textendash push\textendash button.ino}{99}{lstlisting.5.-66}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.3.2}Arduino Code}{99}{subsection.5.3.2}\protected@file@percent } +\newlabel{sec:push-arduino-code}{{5.3.2}{99}{Arduino Code}{subsection.5.3.2}{}} \@writefile{ard}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{5.{1}}{}}{61}{ardmass.5.1}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the Serial Monitor}{61}{ardmass.5.1}\protected@file@percent } -\newlabel{26@xvr}{{}{61}} -\newlabel{26@vr}{{}{61}} -\newlabel{ard:push-100}{{5.{1}}{61}{Arduino Code}{ardmass.5.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/push\textendash button\textendash status/push\textendash button\textendash status.ino}{61}{lstlisting.5.-29}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{5.{2}}{}}{61}{ardmass.5.2}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{61}{ardmass.5.2}\protected@file@percent } -\newlabel{27@xvr}{{}{61}} -\newlabel{27@vr}{{}{61}} -\newlabel{ard:push-200}{{5.{2}}{61}{Arduino Code}{ardmass.5.2}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/led\textendash push\textendash button/led\textendash push\textendash button.ino}{61}{lstlisting.5.-30}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {5.4}Reading the pushbutton Status from Scilab}{62}{section.5.4}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {5.4.1}Reading the pushbutton Status}{62}{subsection.5.4.1}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push\textendash button\textendash status.sce}{62}{lstlisting.5.-31}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push\textendash button\textendash status.sce}{62}{lstlisting.5.-32}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {5.4}{\ignorespaces GUI in Scilab to show the status of the pushbutton\relax }}{63}{figure.caption.69}\protected@file@percent } -\newlabel{fig:ard-meter}{{5.4}{63}{GUI in Scilab to show the status of the pushbutton\relax }{figure.caption.69}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led\textendash push\textendash button.sce}{63}{lstlisting.5.-33}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {5.4.2}Scilab Code}{63}{subsection.5.4.2}\protected@file@percent } -\newlabel{sec:push-scilab-code}{{5.4.2}{63}{Scilab Code}{subsection.5.4.2}{}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{5.{1}}{}}{99}{ardmass.5.1}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the Serial Monitor}{99}{ardmass.5.1}\protected@file@percent } +\newlabel{40@xvr}{{}{99}} +\newlabel{40@vr}{{}{99}} +\newlabel{ard:push-100}{{5.{1}}{99}{Arduino Code}{ardmass.5.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/push\textendash button\textendash status/push\textendash button\textendash status.ino}{99}{lstlisting.5.-67}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{5.{2}}{}}{99}{ardmass.5.2}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{99}{ardmass.5.2}\protected@file@percent } +\newlabel{41@xvr}{{}{99}} +\newlabel{41@vr}{{}{99}} +\newlabel{ard:push-200}{{5.{2}}{99}{Arduino Code}{ardmass.5.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/led\textendash push\textendash button/led\textendash push\textendash button.ino}{99}{lstlisting.5.-68}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {5.4}Reading the pushbutton Status from Scilab}{100}{section.5.4}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.4.1}Reading the pushbutton Status}{100}{subsection.5.4.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push\textendash button\textendash status.sce}{100}{lstlisting.5.-69}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push\textendash button\textendash status.sce}{100}{lstlisting.5.-70}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {5.4}{\ignorespaces GUI in Scilab to show the status of the pushbutton\relax }}{101}{figure.caption.88}\protected@file@percent } +\newlabel{fig:ard-meter}{{5.4}{101}{GUI in Scilab to show the status of the pushbutton\relax }{figure.caption.88}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led\textendash push\textendash button.sce}{101}{lstlisting.5.-71}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.4.2}Scilab Code}{101}{subsection.5.4.2}\protected@file@percent } +\newlabel{sec:push-scilab-code}{{5.4.2}{101}{Scilab Code}{subsection.5.4.2}{}} \@writefile{cod}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{5.{1}}{}}{63}{codemass.5.1}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the GUI}{63}{codemass.5.1}\protected@file@percent } -\newlabel{28@xvr}{{}{63}} -\newlabel{28@vr}{{}{63}} -\newlabel{sci:push-100}{{5.{1}}{63}{Scilab Code}{codemass.5.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push\textendash button\textendash status.sce}{63}{lstlisting.5.-34}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{5.{2}}{}}{64}{codemass.5.2}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{64}{codemass.5.2}\protected@file@percent } -\newlabel{29@xvr}{{}{64}} -\newlabel{29@vr}{{}{64}} -\newlabel{sci:push-200}{{5.{2}}{64}{Scilab Code}{codemass.5.2}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led\textendash push\textendash button.sce}{64}{lstlisting.5.-35}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {5.5}Accessing the pushbutton from Xcos}{64}{section.5.5}\protected@file@percent } -\newlabel{sec:push-xcos}{{5.5}{64}{Accessing the pushbutton from Xcos}{section.5.5}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {5.5}{\ignorespaces Printing the push button status on the display block}}{65}{figure.caption.70}\protected@file@percent } -\newlabel{31@xvr}{{}{65}} -\newlabel{31@vr}{{}{65}} -\newlabel{fig:push-button-status}{{5.5}{65}{Printing the push button status on the display block}{figure.caption.70}{}} -\@writefile{lot}{\contentsline {table}{\numberline {5.1}{\ignorespaces Parameters to print the push button status on the display block\relax }}{65}{table.caption.71}\protected@file@percent } -\newlabel{tab:push-button-status}{{5.1}{65}{Parameters to print the push button status on the display block\relax }{table.caption.71}{}} -\newlabel{32@xvr}{{}{65}} -\newlabel{32@vr}{{}{65}} -\@writefile{lof}{\contentsline {figure}{\numberline {5.6}{\ignorespaces Turning the LED on or off, depending on the pushbutton}}{66}{figure.caption.72}\protected@file@percent } -\newlabel{34@xvr}{{}{66}} -\newlabel{34@vr}{{}{66}} -\newlabel{fig:led-push-button}{{5.6}{66}{Turning the LED on or off, depending on the pushbutton}{figure.caption.72}{}} -\@writefile{lot}{\contentsline {table}{\numberline {5.2}{\ignorespaces Xcos parameters to turn the LED on through the pushbutton\relax }}{66}{table.caption.73}\protected@file@percent } -\newlabel{tab:led-push-button}{{5.2}{66}{Xcos parameters to turn the LED on through the pushbutton\relax }{table.caption.73}{}} -\newlabel{35@xvr}{{}{66}} -\newlabel{35@vr}{{}{66}} -\@writefile{thm}{\contentsline {egmass}{{Exercise}{5.{1}}{}}{66}{egmass.5.1}\protected@file@percent } -\@writefile{toc}{\contentsline {chapter}{\numberline {6}Interfacing a Light Dependent Resistor}{69}{chapter.6}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{5.{1}}{}}{101}{codemass.5.1}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the GUI}{101}{codemass.5.1}\protected@file@percent } +\newlabel{42@xvr}{{}{101}} +\newlabel{42@vr}{{}{101}} +\newlabel{sci:push-100}{{5.{1}}{101}{Scilab Code}{codemass.5.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/push\textendash button\textendash status.sce}{101}{lstlisting.5.-72}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{5.{2}}{}}{102}{codemass.5.2}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{102}{codemass.5.2}\protected@file@percent } +\newlabel{43@xvr}{{}{102}} +\newlabel{43@vr}{{}{102}} +\newlabel{sci:push-200}{{5.{2}}{102}{Scilab Code}{codemass.5.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led\textendash push\textendash button.sce}{102}{lstlisting.5.-73}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {5.5}Accessing the pushbutton from Xcos}{102}{section.5.5}\protected@file@percent } +\newlabel{sec:push-xcos}{{5.5}{102}{Accessing the pushbutton from Xcos}{section.5.5}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {5.5}{\ignorespaces Printing the push button status on the display block}}{103}{figure.caption.89}\protected@file@percent } +\newlabel{45@xvr}{{}{103}} +\newlabel{45@vr}{{}{103}} +\newlabel{fig:push-button-status}{{5.5}{103}{Printing the push button status on the display block}{figure.caption.89}{}} +\@writefile{lot}{\contentsline {table}{\numberline {5.1}{\ignorespaces Parameters to print the push button status on the display block\relax }}{103}{table.caption.90}\protected@file@percent } +\newlabel{tab:push-button-status}{{5.1}{103}{Parameters to print the push button status on the display block\relax }{table.caption.90}{}} +\newlabel{46@xvr}{{}{103}} +\newlabel{46@vr}{{}{103}} +\@writefile{lof}{\contentsline {figure}{\numberline {5.6}{\ignorespaces Turning the LED on or off, depending on the pushbutton}}{104}{figure.caption.91}\protected@file@percent } +\newlabel{48@xvr}{{}{104}} +\newlabel{48@vr}{{}{104}} +\newlabel{fig:led-push-button}{{5.6}{104}{Turning the LED on or off, depending on the pushbutton}{figure.caption.91}{}} +\@writefile{lot}{\contentsline {table}{\numberline {5.2}{\ignorespaces Xcos parameters to turn the LED on through the pushbutton\relax }}{104}{table.caption.92}\protected@file@percent } +\newlabel{tab:led-push-button}{{5.2}{104}{Xcos parameters to turn the LED on through the pushbutton\relax }{table.caption.92}{}} +\newlabel{49@xvr}{{}{104}} +\newlabel{49@vr}{{}{104}} +\@writefile{thm}{\contentsline {egmass}{{Exercise}{5.{1}}{}}{104}{egmass.5.1}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {5.6}Reading the pushbutton status from Python}{105}{section.5.6}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.6.1}Reading the pushbutton status}{105}{subsection.5.6.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push\textendash button\textendash status.py}{105}{lstlisting.5.-74}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push\textendash button\textendash status.py}{105}{lstlisting.5.-75}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led\textendash push\textendash button.py}{106}{lstlisting.5.-76}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.6.2}Python Code}{106}{subsection.5.6.2}\protected@file@percent } +\newlabel{sec:push-python-code}{{5.6.2}{106}{Python Code}{subsection.5.6.2}{}} +\@writefile{pyd}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{5.{1}}{}}{106}{pymass.5.1}\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}{pymass.5.1}\protected@file@percent } +\newlabel{50@xvr}{{}{106}} +\newlabel{50@vr}{{}{106}} +\newlabel{py:push-100}{{5.{1}}{106}{Python Code}{pymass.5.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push\textendash button\textendash status.py}{106}{lstlisting.5.-77}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{5.{2}}{}}{107}{pymass.5.2}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{107}{pymass.5.2}\protected@file@percent } +\newlabel{51@xvr}{{}{107}} +\newlabel{51@vr}{{}{107}} +\newlabel{py:push-200}{{5.{2}}{107}{Python Code}{pymass.5.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led\textendash push\textendash button.py}{107}{lstlisting.5.-78}\protected@file@percent } +\citation{julia-serial-ports} +\@writefile{toc}{\contentsline {section}{\numberline {5.7}Reading the pushbutton status from Julia}{108}{section.5.7}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.7.1}Reading the pushbutton status}{108}{subsection.5.7.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push\textendash button\textendash status.jl}{108}{lstlisting.5.-79}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push\textendash button\textendash status.jl}{108}{lstlisting.5.-80}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led\textendash push\textendash button.jl}{109}{lstlisting.5.-81}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.7.2}Julia Code}{109}{subsection.5.7.2}\protected@file@percent } +\newlabel{sec:push-julia-code}{{5.7.2}{109}{Julia Code}{subsection.5.7.2}{}} +\@writefile{juliad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{5.{1}}{}}{109}{juliamass.5.1}\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}{juliamass.5.1}\protected@file@percent } +\newlabel{52@xvr}{{}{109}} +\newlabel{52@vr}{{}{109}} +\newlabel{julia:push-100}{{5.{1}}{109}{Julia Code}{juliamass.5.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push\textendash button\textendash status.jl}{109}{lstlisting.5.-82}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{5.{2}}{}}{109}{juliamass.5.2}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{109}{juliamass.5.2}\protected@file@percent } +\newlabel{53@xvr}{{}{109}} +\newlabel{53@vr}{{}{109}} +\newlabel{julia:push-200}{{5.{2}}{109}{Julia Code}{juliamass.5.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led\textendash push\textendash button.jl}{109}{lstlisting.5.-83}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {5.8}Reading the pushbutton status from OpenModelica}{110}{section.5.8}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.8.1}Reading the pushbutton status}{110}{subsection.5.8.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push\textendash button\textendash status.mo}{110}{lstlisting.5.-84}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push\textendash button\textendash status.mo}{110}{lstlisting.5.-85}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led\textendash push\textendash button.mo}{111}{lstlisting.5.-86}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {5.8.2}OpenModelica Code}{111}{subsection.5.8.2}\protected@file@percent } +\newlabel{sec:led-OpenModelica-code}{{5.8.2}{111}{OpenModelica Code}{subsection.5.8.2}{}} +\@writefile{OpenModelicad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{5.{1}}{}}{111}{OpenModelicamass.5.1}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the output window}{111}{OpenModelicamass.5.1}\protected@file@percent } +\newlabel{OpenModelica:push-100}{{5.{1}}{111}{OpenModelica Code}{OpenModelicamass.5.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push\textendash button\textendash status.mo}{111}{lstlisting.5.-87}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{5.{2}}{}}{112}{OpenModelicamass.5.2}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{112}{OpenModelicamass.5.2}\protected@file@percent } +\newlabel{OpenModelica:push-200}{{5.{2}}{112}{OpenModelica Code}{OpenModelicamass.5.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led\textendash push\textendash button.mo}{112}{lstlisting.5.-88}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {6}Interfacing a Light Dependent Resistor}{115}{chapter.6}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{ldr}{{6}{69}{Interfacing a Light Dependent Resistor}{chapter.6}{}} -\@writefile{toc}{\contentsline {section}{\numberline {6.1}Preliminaries}{69}{section.6.1}\protected@file@percent } -\newlabel{fig:ldr}{{6.1a}{70}{Subfigure 6 6.1a}{subfigure.6.1.1}{}} +\newlabel{ldr}{{6}{115}{Interfacing a Light Dependent Resistor}{chapter.6}{}} +\@writefile{toc}{\contentsline {section}{\numberline {6.1}Preliminaries}{115}{section.6.1}\protected@file@percent } +\newlabel{fig:ldr}{{6.1a}{116}{Subfigure 6 6.1a}{subfigure.6.1.1}{}} \newlabel{sub@fig:ldr}{{(a)}{a}{Subfigure 6 6.1a\relax }{subfigure.6.1.1}{}} -\newlabel{fig:ldrsym}{{6.1b}{70}{Subfigure 6 6.1b}{subfigure.6.1.2}{}} +\newlabel{fig:ldrsym}{{6.1b}{116}{Subfigure 6 6.1b}{subfigure.6.1.2}{}} \newlabel{sub@fig:ldrsym}{{(b)}{b}{Subfigure 6 6.1b\relax }{subfigure.6.1.2}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {6.1}{\ignorespaces Light Dependent Resistor\relax }}{70}{figure.caption.74}\protected@file@percent } -\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Pictorial representation of an LDR}}}{70}{subfigure.1.1}\protected@file@percent } -\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Symbolic representation of an LDR}}}{70}{subfigure.1.2}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {6.2}{\ignorespaces Internal connection diagram for the LDR on the shield\relax }}{70}{figure.caption.75}\protected@file@percent } -\newlabel{fig:ldrconn}{{6.2}{70}{Internal connection diagram for the LDR on the shield\relax }{figure.caption.75}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {6.3}{\ignorespaces An LDR to read its values with Arduino Uno\ using a breadboard\relax }}{71}{figure.caption.76}\protected@file@percent } -\newlabel{fig:ard-ldr}{{6.3}{71}{An LDR to read its values with \arduino \ using a breadboard\relax }{figure.caption.76}{}} -\@writefile{toc}{\contentsline {section}{\numberline {6.2}Connecting an LDR with Arduino Uno\ using a breadboard}{71}{section.6.2}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {6.4}{\ignorespaces An LDR to control an LED with Arduino Uno using a breadboard\relax }}{72}{figure.caption.77}\protected@file@percent } -\newlabel{fig:ard-ldr-led}{{6.4}{72}{An LDR to control an LED with Arduino Uno using a breadboard\relax }{figure.caption.77}{}} -\@writefile{toc}{\contentsline {section}{\numberline {6.3}Interfacing the LDR through the Arduino IDE}{72}{section.6.3}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.3.1}Interfacing the LDR}{72}{subsection.6.3.1}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{72}{lstlisting.6.-36}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{73}{lstlisting.6.-37}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{73}{lstlisting.6.-38}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{1}}{}}{73}{egmass.6.1}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.3.2}Arduino Code}{74}{subsection.6.3.2}\protected@file@percent } -\newlabel{sec:ldr-arduino-code}{{6.3.2}{74}{Arduino Code}{subsection.6.3.2}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {6.1}{\ignorespaces Light Dependent Resistor\relax }}{116}{figure.caption.93}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Pictorial representation of an LDR}}}{116}{subfigure.1.1}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Symbolic representation of an LDR}}}{116}{subfigure.1.2}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {6.2}{\ignorespaces Internal connection diagram for the LDR on the shield\relax }}{116}{figure.caption.94}\protected@file@percent } +\newlabel{fig:ldrconn}{{6.2}{116}{Internal connection diagram for the LDR on the shield\relax }{figure.caption.94}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {6.3}{\ignorespaces An LDR to read its values with Arduino Uno\ using a breadboard\relax }}{117}{figure.caption.95}\protected@file@percent } +\newlabel{fig:ard-ldr}{{6.3}{117}{An LDR to read its values with \arduino \ using a breadboard\relax }{figure.caption.95}{}} +\@writefile{toc}{\contentsline {section}{\numberline {6.2}Connecting an LDR with Arduino Uno\ using a breadboard}{117}{section.6.2}\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}{figure.caption.96}\protected@file@percent } +\newlabel{fig:ard-ldr-led}{{6.4}{118}{An LDR to control an LED with Arduino Uno using a breadboard\relax }{figure.caption.96}{}} +\@writefile{toc}{\contentsline {section}{\numberline {6.3}Interfacing the LDR through the Arduino IDE}{118}{section.6.3}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.3.1}Interfacing the LDR}{118}{subsection.6.3.1}\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}{lstlisting.6.-89}\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}{lstlisting.6.-90}\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}{lstlisting.6.-91}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{1}}{}}{119}{egmass.6.1}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.3.2}Arduino Code}{120}{subsection.6.3.2}\protected@file@percent } +\newlabel{sec:ldr-arduino-code}{{6.3.2}{120}{Arduino Code}{subsection.6.3.2}{}} \@writefile{ard}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{6.{1}}{}}{74}{ardmass.6.1}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{74}{ardmass.6.1}\protected@file@percent } -\newlabel{36@xvr}{{}{74}} -\newlabel{36@vr}{{}{74}} -\newlabel{ard:ldr-read}{{6.{1}}{74}{Arduino Code}{ardmass.6.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{74}{lstlisting.6.-39}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{6.{2}}{}}{74}{ardmass.6.2}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{74}{ardmass.6.2}\protected@file@percent } -\newlabel{37@xvr}{{}{74}} -\newlabel{37@vr}{{}{74}} -\newlabel{ard:ldr-led}{{6.{2}}{74}{Arduino Code}{ardmass.6.2}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash led/ldr\textendash led.ino}{74}{lstlisting.6.-40}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {6.4}Interfacing the LDR through Scilab}{74}{section.6.4}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.4.1}Interfacing the LDR}{74}{subsection.6.4.1}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr\textendash read.sce}{75}{lstlisting.6.-41}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr\textendash read.sce}{75}{lstlisting.6.-42}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{2}}{}}{75}{egmass.6.2}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {6.4.2}Scilab Code}{76}{subsection.6.4.2}\protected@file@percent } -\newlabel{sec:ldr-scilab-code}{{6.4.2}{76}{Scilab Code}{subsection.6.4.2}{}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{6.{1}}{}}{120}{ardmass.6.1}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{120}{ardmass.6.1}\protected@file@percent } +\newlabel{54@xvr}{{}{120}} +\newlabel{54@vr}{{}{120}} +\newlabel{ard:ldr-read}{{6.{1}}{120}{Arduino Code}{ardmass.6.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash read/ldr\textendash read.ino}{120}{lstlisting.6.-92}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{6.{2}}{}}{120}{ardmass.6.2}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{120}{ardmass.6.2}\protected@file@percent } +\newlabel{55@xvr}{{}{120}} +\newlabel{55@vr}{{}{120}} +\newlabel{ard:ldr-led}{{6.{2}}{120}{Arduino Code}{ardmass.6.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr\textendash led/ldr\textendash led.ino}{120}{lstlisting.6.-93}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {6.4}Interfacing the LDR through Scilab}{120}{section.6.4}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.4.1}Interfacing the LDR}{120}{subsection.6.4.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr\textendash read.sce}{121}{lstlisting.6.-94}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr\textendash read.sce}{121}{lstlisting.6.-95}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{2}}{}}{121}{egmass.6.2}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.4.2}Scilab Code}{122}{subsection.6.4.2}\protected@file@percent } +\newlabel{sec:ldr-scilab-code}{{6.4.2}{122}{Scilab Code}{subsection.6.4.2}{}} \@writefile{cod}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{6.{1}}{}}{76}{codemass.6.1}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{76}{codemass.6.1}\protected@file@percent } -\newlabel{38@xvr}{{}{76}} -\newlabel{38@vr}{{}{76}} -\newlabel{sci:ldr-read}{{6.{1}}{76}{Scilab Code}{codemass.6.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr\textendash read.sce}{76}{lstlisting.6.-43}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{6.{2}}{}}{76}{codemass.6.2}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{76}{codemass.6.2}\protected@file@percent } -\newlabel{39@xvr}{{}{76}} -\newlabel{39@vr}{{}{76}} -\newlabel{sci:ldr-led}{{6.{2}}{76}{Scilab Code}{codemass.6.2}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr\textendash led.sce}{76}{lstlisting.6.-44}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {6.5}Interfacing the LDR through Xcos}{76}{section.6.5}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {6.5}{\ignorespaces Xcos diagram to read LDR values}}{77}{figure.caption.78}\protected@file@percent } -\newlabel{41@xvr}{{}{77}} -\newlabel{41@vr}{{}{77}} -\newlabel{fig:ldr-read}{{6.5}{77}{Xcos diagram to read LDR values}{figure.caption.78}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {6.6}{\ignorespaces Plot window in Xcos to read LDR values\relax }}{77}{figure.caption.79}\protected@file@percent } -\newlabel{fig:ldr-read-plot}{{6.6}{77}{Plot window in Xcos to read LDR values\relax }{figure.caption.79}{}} -\@writefile{lot}{\contentsline {table}{\numberline {6.1}{\ignorespaces Xcos parameters to read LDR\relax }}{78}{table.caption.80}\protected@file@percent } -\newlabel{tab:ldr-read}{{6.1}{78}{Xcos parameters to read LDR\relax }{table.caption.80}{}} -\newlabel{42@xvr}{{}{78}} -\newlabel{42@vr}{{}{78}} -\@writefile{lof}{\contentsline {figure}{\numberline {6.7}{\ignorespaces Xcos diagram to read the value of the LDR, which is used to turn the blue LED on or off}}{79}{figure.caption.81}\protected@file@percent } -\newlabel{44@xvr}{{}{79}} -\newlabel{44@vr}{{}{79}} -\newlabel{fig:ldr-led}{{6.7}{79}{Xcos diagram to read the value of the LDR, which is used to turn the blue LED on or off}{figure.caption.81}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {6.8}{\ignorespaces Plot window in Xcos to read LDR values and the state of LED\relax }}{79}{figure.caption.82}\protected@file@percent } -\newlabel{fig:ldr-led-read-plot}{{6.8}{79}{Plot window in Xcos to read LDR values and the state of LED\relax }{figure.caption.82}{}} -\@writefile{lot}{\contentsline {table}{\numberline {6.2}{\ignorespaces Xcos parameters to read LDR and regulate blue LED\relax }}{80}{table.caption.83}\protected@file@percent } -\newlabel{tab:ldr-led}{{6.2}{80}{Xcos parameters to read LDR and regulate blue LED\relax }{table.caption.83}{}} -\newlabel{45@xvr}{{}{80}} -\newlabel{45@vr}{{}{80}} -\@writefile{toc}{\contentsline {chapter}{\numberline {7}Interfacing a Potentiometer}{81}{chapter.7}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{6.{1}}{}}{122}{codemass.6.1}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{122}{codemass.6.1}\protected@file@percent } +\newlabel{56@xvr}{{}{122}} +\newlabel{56@vr}{{}{122}} +\newlabel{sci:ldr-read}{{6.{1}}{122}{Scilab Code}{codemass.6.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr\textendash read.sce}{122}{lstlisting.6.-96}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{6.{2}}{}}{122}{codemass.6.2}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{122}{codemass.6.2}\protected@file@percent } +\newlabel{57@xvr}{{}{122}} +\newlabel{57@vr}{{}{122}} +\newlabel{sci:ldr-led}{{6.{2}}{122}{Scilab Code}{codemass.6.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr\textendash led.sce}{122}{lstlisting.6.-97}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {6.5}Interfacing the LDR through Xcos}{122}{section.6.5}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {6.5}{\ignorespaces Xcos diagram to read LDR values}}{123}{figure.caption.97}\protected@file@percent } +\newlabel{59@xvr}{{}{123}} +\newlabel{59@vr}{{}{123}} +\newlabel{fig:ldr-read}{{6.5}{123}{Xcos diagram to read LDR values}{figure.caption.97}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {6.6}{\ignorespaces Plot window in Xcos to read LDR values\relax }}{123}{figure.caption.98}\protected@file@percent } +\newlabel{fig:ldr-read-plot}{{6.6}{123}{Plot window in Xcos to read LDR values\relax }{figure.caption.98}{}} +\@writefile{lot}{\contentsline {table}{\numberline {6.1}{\ignorespaces Xcos parameters to read LDR\relax }}{124}{table.caption.99}\protected@file@percent } +\newlabel{tab:ldr-read}{{6.1}{124}{Xcos parameters to read LDR\relax }{table.caption.99}{}} +\newlabel{60@xvr}{{}{124}} +\newlabel{60@vr}{{}{124}} +\@writefile{lof}{\contentsline {figure}{\numberline {6.7}{\ignorespaces Xcos diagram to read the value of the LDR, which is used to turn the blue LED on or off}}{125}{figure.caption.100}\protected@file@percent } +\newlabel{62@xvr}{{}{125}} +\newlabel{62@vr}{{}{125}} +\newlabel{fig:ldr-led}{{6.7}{125}{Xcos diagram to read the value of the LDR, which is used to turn the blue LED on or off}{figure.caption.100}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {6.8}{\ignorespaces Plot window in Xcos to read LDR values and the state of LED\relax }}{125}{figure.caption.101}\protected@file@percent } +\newlabel{fig:ldr-led-read-plot}{{6.8}{125}{Plot window in Xcos to read LDR values and the state of LED\relax }{figure.caption.101}{}} +\@writefile{lot}{\contentsline {table}{\numberline {6.2}{\ignorespaces Xcos parameters to read LDR and regulate blue LED\relax }}{126}{table.caption.102}\protected@file@percent } +\newlabel{tab:ldr-led}{{6.2}{126}{Xcos parameters to read LDR and regulate blue LED\relax }{table.caption.102}{}} +\newlabel{63@xvr}{{}{126}} +\newlabel{63@vr}{{}{126}} +\@writefile{toc}{\contentsline {section}{\numberline {6.6}Interfacing the LDR through Python}{126}{section.6.6}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.6.1}Interfacing the LDR}{126}{subsection.6.6.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash read.py}{126}{lstlisting.6.-98}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash read.py}{127}{lstlisting.6.-99}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{3}}{}}{127}{egmass.6.3}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.6.2}Python Code}{127}{subsection.6.6.2}\protected@file@percent } +\newlabel{sec:ldr-python-code}{{6.6.2}{127}{Python Code}{subsection.6.6.2}{}} +\@writefile{pyd}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{6.{1}}{}}{127}{pymass.6.1}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{127}{pymass.6.1}\protected@file@percent } +\newlabel{64@xvr}{{}{127}} +\newlabel{64@vr}{{}{127}} +\newlabel{py:ldr-read}{{6.{1}}{127}{Python Code}{pymass.6.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash read.py}{127}{lstlisting.6.-100}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{6.{2}}{}}{128}{pymass.6.2}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{128}{pymass.6.2}\protected@file@percent } +\newlabel{65@xvr}{{}{128}} +\newlabel{65@vr}{{}{128}} +\newlabel{py:ldr-led}{{6.{2}}{128}{Python Code}{pymass.6.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr\textendash led.py}{128}{lstlisting.6.-101}\protected@file@percent } +\citation{julia-serial-ports} +\@writefile{toc}{\contentsline {section}{\numberline {6.7}Interfacing the LDR through Julia}{129}{section.6.7}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.7.1}Interfacing the LDR}{129}{subsection.6.7.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash read.jl}{130}{lstlisting.6.-102}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash read.jl}{130}{lstlisting.6.-103}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{6.{4}}{}}{130}{egmass.6.4}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.7.2}Julia Code}{130}{subsection.6.7.2}\protected@file@percent } +\newlabel{sec:ldr-julia-code}{{6.7.2}{130}{Julia Code}{subsection.6.7.2}{}} +\@writefile{juliad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{6.{1}}{}}{130}{juliamass.6.1}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{130}{juliamass.6.1}\protected@file@percent } +\newlabel{66@xvr}{{}{130}} +\newlabel{66@vr}{{}{130}} +\newlabel{julia:ldr-read}{{6.{1}}{130}{Julia Code}{juliamass.6.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash read.jl}{131}{lstlisting.6.-104}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{6.{2}}{}}{131}{juliamass.6.2}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{131}{juliamass.6.2}\protected@file@percent } +\newlabel{67@xvr}{{}{131}} +\newlabel{67@vr}{{}{131}} +\newlabel{julia:ldr-led}{{6.{2}}{131}{Julia Code}{juliamass.6.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr\textendash led.jl}{131}{lstlisting.6.-105}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {6.8}Interfacing the LDR through OpenModelica}{131}{section.6.8}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.8.1}Interfacing the LDR}{131}{subsection.6.8.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash read.mo}{132}{lstlisting.6.-106}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash read.mo}{132}{lstlisting.6.-107}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {6.8.2}OpenModelica Code}{132}{subsection.6.8.2}\protected@file@percent } +\newlabel{sec:ldr-OpenModelica-code}{{6.8.2}{132}{OpenModelica Code}{subsection.6.8.2}{}} +\@writefile{OpenModelicad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{1}}{}}{132}{OpenModelicamass.6.1}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{132}{OpenModelicamass.6.1}\protected@file@percent } +\newlabel{OpenModelica:ldr-read}{{6.{1}}{132}{OpenModelica Code}{OpenModelicamass.6.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash read.mo}{132}{lstlisting.6.-108}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{2}}{}}{133}{OpenModelicamass.6.2}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{133}{OpenModelicamass.6.2}\protected@file@percent } +\newlabel{OpenModelica:ldr-led}{{6.{2}}{133}{OpenModelica Code}{OpenModelicamass.6.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr\textendash led.mo}{133}{lstlisting.6.-109}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {7}Interfacing a Potentiometer}{135}{chapter.7}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{potmeter}{{7}{81}{Interfacing a Potentiometer}{chapter.7}{}} -\@writefile{toc}{\contentsline {section}{\numberline {7.1}Preliminaries}{81}{section.7.1}\protected@file@percent } -\newlabel{46@xvr}{{}{81}} -\newlabel{46@vr}{{}{81}} -\newlabel{fig:pot}{{7.1a}{82}{Subfigure 7 7.1a}{subfigure.7.1.1}{}} +\newlabel{potmeter}{{7}{135}{Interfacing a Potentiometer}{chapter.7}{}} +\@writefile{toc}{\contentsline {section}{\numberline {7.1}Preliminaries}{135}{section.7.1}\protected@file@percent } +\newlabel{68@xvr}{{}{135}} +\newlabel{68@vr}{{}{135}} +\newlabel{fig:pot}{{7.1a}{136}{Subfigure 7 7.1a}{subfigure.7.1.1}{}} \newlabel{sub@fig:pot}{{(a)}{a}{Subfigure 7 7.1a\relax }{subfigure.7.1.1}{}} -\newlabel{fig:potsch}{{7.1b}{82}{Subfigure 7 7.1b}{subfigure.7.1.2}{}} +\newlabel{fig:potsch}{{7.1b}{136}{Subfigure 7 7.1b}{subfigure.7.1.2}{}} \newlabel{sub@fig:potsch}{{(b)}{b}{Subfigure 7 7.1b\relax }{subfigure.7.1.2}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {7.1}{\ignorespaces Potentiometer's schematic on the shield\relax }}{82}{figure.caption.84}\protected@file@percent } -\newlabel{fig:potmeterconn}{{7.1}{82}{Potentiometer's schematic on the shield\relax }{figure.caption.84}{}} -\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Pictorial representation of a potentiometer}}}{82}{subfigure.1.1}\protected@file@percent } -\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Internal connection diagram for the potentiometer on the shield}}}{82}{subfigure.1.2}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {7.2}Connecting a potentiometer with Arduino Uno\ using a breadboard}{82}{section.7.2}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {7.2}{\ignorespaces A potentiometer to control an LED with Arduino Uno using a breadboard\relax }}{83}{figure.caption.85}\protected@file@percent } -\newlabel{fig:pot-led}{{7.2}{83}{A potentiometer to control an LED with Arduino Uno using a breadboard\relax }{figure.caption.85}{}} -\@writefile{toc}{\contentsline {section}{\numberline {7.3}Reading the potentiometer from the Arduino IDE}{83}{section.7.3}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {7.3.1}Reading the potentiometer}{83}{subsection.7.3.1}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot\textendash threshold/pot\textendash threshold.ino}{84}{lstlisting.7.-45}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot\textendash threshold/pot\textendash threshold.ino}{84}{lstlisting.7.-46}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {7.3.2}Arduino Code}{84}{subsection.7.3.2}\protected@file@percent } -\newlabel{sec:pot-arduino-code}{{7.3.2}{84}{Arduino Code}{subsection.7.3.2}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {7.1}{\ignorespaces Potentiometer's schematic on the shield\relax }}{136}{figure.caption.103}\protected@file@percent } +\newlabel{fig:potmeterconn}{{7.1}{136}{Potentiometer's schematic on the shield\relax }{figure.caption.103}{}} +\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Pictorial representation of a potentiometer}}}{136}{subfigure.1.1}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Internal connection diagram for the potentiometer on the shield}}}{136}{subfigure.1.2}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.2}Connecting a potentiometer with Arduino Uno\ using a breadboard}{136}{section.7.2}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {7.2}{\ignorespaces A potentiometer to control an LED with Arduino Uno using a breadboard\relax }}{137}{figure.caption.104}\protected@file@percent } +\newlabel{fig:pot-led}{{7.2}{137}{A potentiometer to control an LED with Arduino Uno using a breadboard\relax }{figure.caption.104}{}} +\@writefile{toc}{\contentsline {section}{\numberline {7.3}Reading the potentiometer from the Arduino IDE}{137}{section.7.3}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.3.1}Reading the potentiometer}{137}{subsection.7.3.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot\textendash threshold/pot\textendash threshold.ino}{138}{lstlisting.7.-110}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot\textendash threshold/pot\textendash threshold.ino}{138}{lstlisting.7.-111}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.3.2}Arduino Code}{138}{subsection.7.3.2}\protected@file@percent } +\newlabel{sec:pot-arduino-code}{{7.3.2}{138}{Arduino Code}{subsection.7.3.2}{}} \@writefile{ard}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{7.{1}}{}}{84}{ardmass.7.1}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{84}{ardmass.7.1}\protected@file@percent } -\newlabel{47@xvr}{{}{84}} -\newlabel{47@vr}{{}{84}} -\newlabel{ard:pot-100}{{7.{1}}{84}{Arduino Code}{ardmass.7.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot\textendash threshold/pot\textendash threshold.ino}{84}{lstlisting.7.-47}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {7.4}Reading the potentiometer from Scilab}{85}{section.7.4}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {7.4.1}Reading the potentiometer}{85}{subsection.7.4.1}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot\textendash threshold.sce}{86}{lstlisting.7.-48}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot\textendash threshold.sce}{86}{lstlisting.7.-49}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {7.4.2}Scilab Code}{86}{subsection.7.4.2}\protected@file@percent } -\newlabel{sec:pot-scilab-code}{{7.4.2}{86}{Scilab Code}{subsection.7.4.2}{}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{7.{1}}{}}{138}{ardmass.7.1}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{138}{ardmass.7.1}\protected@file@percent } +\newlabel{69@xvr}{{}{138}} +\newlabel{69@vr}{{}{138}} +\newlabel{ard:pot-100}{{7.{1}}{138}{Arduino Code}{ardmass.7.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/arduino/pot\textendash threshold/pot\textendash threshold.ino}{138}{lstlisting.7.-112}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.4}Reading the potentiometer from Scilab}{139}{section.7.4}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.4.1}Reading the potentiometer}{139}{subsection.7.4.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot\textendash threshold.sce}{140}{lstlisting.7.-113}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot\textendash threshold.sce}{140}{lstlisting.7.-114}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.4.2}Scilab Code}{140}{subsection.7.4.2}\protected@file@percent } +\newlabel{sec:pot-scilab-code}{{7.4.2}{140}{Scilab Code}{subsection.7.4.2}{}} \@writefile{cod}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{7.{1}}{}}{86}{codemass.7.1}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{86}{codemass.7.1}\protected@file@percent } -\newlabel{48@xvr}{{}{86}} -\newlabel{48@vr}{{}{86}} -\newlabel{sci:pot-100}{{7.{1}}{86}{Scilab Code}{codemass.7.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot\textendash threshold.sce}{86}{lstlisting.7.-50}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {7.3}{\ignorespaces Turning LEDs on through Xcos depending on the potentiometer threshold}}{87}{figure.caption.86}\protected@file@percent } -\newlabel{50@xvr}{{}{87}} -\newlabel{50@vr}{{}{87}} -\newlabel{fig:pot-threshold}{{7.3}{87}{Turning LEDs on through Xcos depending on the potentiometer threshold}{figure.caption.86}{}} -\@writefile{toc}{\contentsline {section}{\numberline {7.5}Reading the potentiometer from Xcos}{87}{section.7.5}\protected@file@percent } -\@writefile{lot}{\contentsline {table}{\numberline {7.1}{\ignorespaces Xcos parameters to turn on different LEDs depending on the potentiometer value\relax }}{88}{table.caption.87}\protected@file@percent } -\newlabel{tab:pot-threshold}{{7.1}{88}{Xcos parameters to turn on different LEDs depending on the potentiometer value\relax }{table.caption.87}{}} -\newlabel{51@xvr}{{}{88}} -\newlabel{51@vr}{{}{88}} -\@writefile{thm}{\contentsline {egmass}{{Exercise}{7.{1}}{}}{88}{egmass.7.1}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{7.{1}}{}}{140}{codemass.7.1}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{140}{codemass.7.1}\protected@file@percent } +\newlabel{70@xvr}{{}{140}} +\newlabel{70@vr}{{}{140}} +\newlabel{sci:pot-100}{{7.{1}}{140}{Scilab Code}{codemass.7.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot\textendash threshold.sce}{140}{lstlisting.7.-115}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {7.3}{\ignorespaces Turning LEDs on through Xcos depending on the potentiometer threshold}}{141}{figure.caption.105}\protected@file@percent } +\newlabel{72@xvr}{{}{141}} +\newlabel{72@vr}{{}{141}} +\newlabel{fig:pot-threshold}{{7.3}{141}{Turning LEDs on through Xcos depending on the potentiometer threshold}{figure.caption.105}{}} +\@writefile{toc}{\contentsline {section}{\numberline {7.5}Reading the potentiometer from Xcos}{141}{section.7.5}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {7.1}{\ignorespaces Xcos parameters to turn on different LEDs depending on the potentiometer value\relax }}{142}{table.caption.106}\protected@file@percent } +\newlabel{tab:pot-threshold}{{7.1}{142}{Xcos parameters to turn on different LEDs depending on the potentiometer value\relax }{table.caption.106}{}} +\newlabel{73@xvr}{{}{142}} +\newlabel{73@vr}{{}{142}} +\@writefile{thm}{\contentsline {egmass}{{Exercise}{7.{1}}{}}{142}{egmass.7.1}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.6}Reading the potentiometer from Python}{143}{section.7.6}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.6.1}Reading the potentiometer}{143}{subsection.7.6.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot\textendash threshold.py}{143}{lstlisting.7.-116}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot\textendash threshold.py}{143}{lstlisting.7.-117}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.6.2}Python Code}{143}{subsection.7.6.2}\protected@file@percent } +\newlabel{sec:pot-python-code}{{7.6.2}{143}{Python Code}{subsection.7.6.2}{}} +\@writefile{pyd}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{7.{1}}{}}{143}{pymass.7.1}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{143}{pymass.7.1}\protected@file@percent } +\newlabel{74@xvr}{{}{143}} +\newlabel{74@vr}{{}{143}} +\newlabel{py:pot-100}{{7.{1}}{143}{Python Code}{pymass.7.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot\textendash threshold.py}{143}{lstlisting.7.-118}\protected@file@percent } +\citation{julia-serial-ports} +\@writefile{toc}{\contentsline {section}{\numberline {7.7}Reading the potentiometer from Julia}{145}{section.7.7}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.7.1}Reading the potentiometer}{145}{subsection.7.7.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot\textendash threshold.jl}{145}{lstlisting.7.-119}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot\textendash threshold.jl}{145}{lstlisting.7.-120}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.7.2}Julia Code}{145}{subsection.7.7.2}\protected@file@percent } +\newlabel{sec:pot-julia-code}{{7.7.2}{145}{Julia Code}{subsection.7.7.2}{}} +\@writefile{juliad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{7.{1}}{}}{145}{juliamass.7.1}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{145}{juliamass.7.1}\protected@file@percent } +\newlabel{75@xvr}{{}{145}} +\newlabel{75@vr}{{}{145}} +\newlabel{julia:pot-100}{{7.{1}}{145}{Julia Code}{juliamass.7.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot\textendash threshold.jl}{145}{lstlisting.7.-121}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {7.8}Reading the potentiometer from OpenModelica}{146}{section.7.8}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.8.1}Reading the potentiometer}{146}{subsection.7.8.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot\textendash threshold.mo}{146}{lstlisting.7.-122}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot\textendash threshold.mo}{146}{lstlisting.7.-123}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {7.8.2}OpenModelica Code}{147}{subsection.7.8.2}\protected@file@percent } +\newlabel{sec:pot-OpenModelica-code}{{7.8.2}{147}{OpenModelica Code}{subsection.7.8.2}{}} +\@writefile{OpenModelicad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{7.{1}}{}}{147}{OpenModelicamass.7.1}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{147}{OpenModelicamass.7.1}\protected@file@percent } +\newlabel{OpenModelica:pot-100}{{7.{1}}{147}{OpenModelica Code}{OpenModelicamass.7.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot\textendash threshold.mo}{147}{lstlisting.7.-124}\protected@file@percent } \citation{therm-wiki} \citation{therm-wiki} -\@writefile{toc}{\contentsline {chapter}{\numberline {8}Interfacing a Thermistor}{89}{chapter.8}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {8}Interfacing a Thermistor}{149}{chapter.8}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{thermistor}{{8}{89}{Interfacing a Thermistor}{chapter.8}{}} -\@writefile{toc}{\contentsline {section}{\numberline {8.1}Preliminaries}{89}{section.8.1}\protected@file@percent } -\newlabel{fig:therm}{{8.1a}{90}{Subfigure 8 8.1a}{subfigure.8.1.1}{}} +\newlabel{thermistor}{{8}{149}{Interfacing a Thermistor}{chapter.8}{}} +\@writefile{toc}{\contentsline {section}{\numberline {8.1}Preliminaries}{149}{section.8.1}\protected@file@percent } +\newlabel{fig:therm}{{8.1a}{150}{Subfigure 8 8.1a}{subfigure.8.1.1}{}} \newlabel{sub@fig:therm}{{(a)}{a}{Subfigure 8 8.1a\relax }{subfigure.8.1.1}{}} -\newlabel{fig:thermsym}{{8.1b}{90}{Subfigure 8 8.1b}{subfigure.8.1.2}{}} +\newlabel{fig:thermsym}{{8.1b}{150}{Subfigure 8 8.1b}{subfigure.8.1.2}{}} \newlabel{sub@fig:thermsym}{{(b)}{b}{Subfigure 8 8.1b\relax }{subfigure.8.1.2}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {8.1}{\ignorespaces Pictorial and symbolic representation of a thermistor\relax }}{90}{figure.caption.88}\protected@file@percent } -\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Pictorial representation of a thermistor\cite {therm-wiki}}}}{90}{subfigure.1.1}\protected@file@percent } -\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Symbolic representation of a thermistor}}}{90}{subfigure.1.2}\protected@file@percent } -\newlabel{fig:therm-conn}{{8.2a}{90}{Subfigure 8 8.2a}{subfigure.8.2.1}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {8.1}{\ignorespaces Pictorial and symbolic representation of a thermistor\relax }}{150}{figure.caption.107}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Pictorial representation of a thermistor\cite {therm-wiki}}}}{150}{subfigure.1.1}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Symbolic representation of a thermistor}}}{150}{subfigure.1.2}\protected@file@percent } +\newlabel{fig:therm-conn}{{8.2a}{150}{Subfigure 8 8.2a}{subfigure.8.2.1}{}} \newlabel{sub@fig:therm-conn}{{(a)}{a}{Subfigure 8 8.2a\relax }{subfigure.8.2.1}{}} -\newlabel{fig:buzzer-conn}{{8.2b}{90}{Subfigure 8 8.2b}{subfigure.8.2.2}{}} +\newlabel{fig:buzzer-conn}{{8.2b}{150}{Subfigure 8 8.2b}{subfigure.8.2.2}{}} \newlabel{sub@fig:buzzer-conn}{{(b)}{b}{Subfigure 8 8.2b\relax }{subfigure.8.2.2}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {8.2}{\ignorespaces Internal connection diagrams for thermistor and buzzer on the shield\relax }}{90}{figure.caption.89}\protected@file@percent } -\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Thermistor connection diagram}}}{90}{subfigure.2.1}\protected@file@percent } -\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Buzzer connection diagram}}}{90}{subfigure.2.2}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {8.3}{\ignorespaces A thermistor to read its values with Arduino Uno using a breadboard\relax }}{91}{figure.caption.90}\protected@file@percent } -\newlabel{fig:ard-therm-bread}{{8.3}{91}{A thermistor to read its values with Arduino Uno using a breadboard\relax }{figure.caption.90}{}} -\@writefile{toc}{\contentsline {section}{\numberline {8.2}Connecting a thermistor with Arduino Uno\ using a breadboard}{91}{section.8.2}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {8.4}{\ignorespaces A thermistor to control a buzzer with Arduino Uno using a breadboard\relax }}{92}{figure.caption.91}\protected@file@percent } -\newlabel{fig:ard-therm-buzzer}{{8.4}{92}{A thermistor to control a buzzer with Arduino Uno using a breadboard\relax }{figure.caption.91}{}} -\@writefile{toc}{\contentsline {section}{\numberline {8.3}Interfacing the thermistor from the Arduino IDE}{92}{section.8.3}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {8.3.1}Interfacing the thermistor}{92}{subsection.8.3.1}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{92}{lstlisting.8.-51}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{93}{lstlisting.8.-52}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{93}{lstlisting.8.-53}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash buzzer/therm\textendash buzzer.ino}{94}{lstlisting.8.-54}\protected@file@percent } -\@writefile{toc}{\contentsline {paragraph}{Note:}{94}{section*.92}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{8.{1}}{}}{94}{egmass.8.1}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {8.3.2}Arduino Code}{94}{subsection.8.3.2}\protected@file@percent } -\newlabel{sec:therm-arduino-code}{{8.3.2}{94}{Arduino Code}{subsection.8.3.2}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {8.2}{\ignorespaces Internal connection diagrams for thermistor and buzzer on the shield\relax }}{150}{figure.caption.108}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(a)}{\ignorespaces {Thermistor connection diagram}}}{150}{subfigure.2.1}\protected@file@percent } +\@writefile{lof}{\contentsline {subfigure}{\numberline{(b)}{\ignorespaces {Buzzer connection diagram}}}{150}{subfigure.2.2}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {8.3}{\ignorespaces A thermistor to read its values with Arduino Uno using a breadboard\relax }}{151}{figure.caption.109}\protected@file@percent } +\newlabel{fig:ard-therm-bread}{{8.3}{151}{A thermistor to read its values with Arduino Uno using a breadboard\relax }{figure.caption.109}{}} +\@writefile{toc}{\contentsline {section}{\numberline {8.2}Connecting a thermistor with Arduino Uno\ using a breadboard}{151}{section.8.2}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {8.4}{\ignorespaces A thermistor to control a buzzer with Arduino Uno using a breadboard\relax }}{152}{figure.caption.110}\protected@file@percent } +\newlabel{fig:ard-therm-buzzer}{{8.4}{152}{A thermistor to control a buzzer with Arduino Uno using a breadboard\relax }{figure.caption.110}{}} +\@writefile{toc}{\contentsline {section}{\numberline {8.3}Interfacing the thermistor from the Arduino IDE}{152}{section.8.3}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.3.1}Interfacing the thermistor}{152}{subsection.8.3.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{152}{lstlisting.8.-125}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{153}{lstlisting.8.-126}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{153}{lstlisting.8.-127}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash buzzer/therm\textendash buzzer.ino}{154}{lstlisting.8.-128}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{154}{section*.111}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{8.{1}}{}}{154}{egmass.8.1}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.3.2}Arduino Code}{154}{subsection.8.3.2}\protected@file@percent } +\newlabel{sec:therm-arduino-code}{{8.3.2}{154}{Arduino Code}{subsection.8.3.2}{}} \@writefile{ard}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{8.{1}}{}}{94}{ardmass.8.1}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{94}{ardmass.8.1}\protected@file@percent } -\newlabel{52@xvr}{{}{94}} -\newlabel{52@vr}{{}{94}} -\newlabel{ard:therm-read}{{8.{1}}{94}{Arduino Code}{ardmass.8.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{94}{lstlisting.8.-55}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{8.{2}}{}}{95}{ardmass.8.2}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{95}{ardmass.8.2}\protected@file@percent } -\newlabel{53@xvr}{{}{95}} -\newlabel{53@vr}{{}{95}} -\newlabel{ard:therm-buzzer}{{8.{2}}{95}{Arduino Code}{ardmass.8.2}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash buzzer/therm\textendash buzzer.ino}{95}{lstlisting.8.-56}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {8.4}Interfacing the thermistor from Scilab}{96}{section.8.4}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {8.4.1}Interfacing the thermistor}{96}{subsection.8.4.1}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash read.sce}{96}{lstlisting.8.-57}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash read.sce}{96}{lstlisting.8.-58}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash buzzer.sce}{97}{lstlisting.8.-59}\protected@file@percent } -\@writefile{toc}{\contentsline {paragraph}{Note:}{97}{section*.93}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{8.{2}}{}}{97}{egmass.8.2}\protected@file@percent } -\newlabel{therm-abc}{{8.1}{97}{Interfacing the thermistor}{equation.8.4.1}{}} -\newlabel{therm-beta}{{8.2}{98}{Interfacing the thermistor}{equation.8.4.2}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {8.4.2}Scilab Code}{98}{subsection.8.4.2}\protected@file@percent } -\newlabel{sec:therm-scilab-code}{{8.4.2}{98}{Scilab Code}{subsection.8.4.2}{}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{8.{1}}{}}{154}{ardmass.8.1}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{154}{ardmass.8.1}\protected@file@percent } +\newlabel{76@xvr}{{}{154}} +\newlabel{76@vr}{{}{154}} +\newlabel{ard:therm-read}{{8.{1}}{154}{Arduino Code}{ardmass.8.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash read/therm\textendash read.ino}{154}{lstlisting.8.-129}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{8.{2}}{}}{155}{ardmass.8.2}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{155}{ardmass.8.2}\protected@file@percent } +\newlabel{77@xvr}{{}{155}} +\newlabel{77@vr}{{}{155}} +\newlabel{ard:therm-buzzer}{{8.{2}}{155}{Arduino Code}{ardmass.8.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm\textendash buzzer/therm\textendash buzzer.ino}{155}{lstlisting.8.-130}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {8.4}Interfacing the thermistor from Scilab}{156}{section.8.4}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.4.1}Interfacing the thermistor}{156}{subsection.8.4.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash read.sce}{156}{lstlisting.8.-131}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash read.sce}{156}{lstlisting.8.-132}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash buzzer.sce}{157}{lstlisting.8.-133}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{157}{section*.112}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{8.{2}}{}}{157}{egmass.8.2}\protected@file@percent } +\newlabel{therm-abc}{{8.1}{157}{Interfacing the thermistor}{equation.8.4.1}{}} +\newlabel{therm-beta}{{8.2}{158}{Interfacing the thermistor}{equation.8.4.2}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {8.4.2}Scilab Code}{158}{subsection.8.4.2}\protected@file@percent } +\newlabel{sec:therm-scilab-code}{{8.4.2}{158}{Scilab Code}{subsection.8.4.2}{}} \@writefile{cod}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{8.{1}}{}}{98}{codemass.8.1}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{98}{codemass.8.1}\protected@file@percent } -\newlabel{54@xvr}{{}{98}} -\newlabel{54@vr}{{}{98}} -\newlabel{sci:therm-read}{{8.{1}}{98}{Scilab Code}{codemass.8.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash read.sce}{98}{lstlisting.8.-60}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{8.{2}}{}}{98}{codemass.8.2}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{98}{codemass.8.2}\protected@file@percent } -\newlabel{55@xvr}{{}{98}} -\newlabel{55@vr}{{}{98}} -\newlabel{sci:therm-buzzer}{{8.{2}}{98}{Scilab Code}{codemass.8.2}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash buzzer.sce}{99}{lstlisting.8.-61}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {8.5}Interfacing the thermistor from Xcos}{99}{section.8.5}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {8.5}{\ignorespaces Xcos diagram to read thermistor values}}{100}{figure.caption.94}\protected@file@percent } -\newlabel{57@xvr}{{}{100}} -\newlabel{57@vr}{{}{100}} -\newlabel{fig:therm-read}{{8.5}{100}{Xcos diagram to read thermistor values}{figure.caption.94}{}} -\@writefile{lot}{\contentsline {table}{\numberline {8.1}{\ignorespaces Xcos parameters to read thermistor\relax }}{100}{table.caption.95}\protected@file@percent } -\newlabel{tab:therm-read}{{8.1}{100}{Xcos parameters to read thermistor\relax }{table.caption.95}{}} -\newlabel{58@xvr}{{}{100}} -\newlabel{58@vr}{{}{100}} -\@writefile{lof}{\contentsline {figure}{\numberline {8.6}{\ignorespaces Plot window in Xcos to read thermistor values\relax }}{101}{figure.caption.96}\protected@file@percent } -\newlabel{fig:therm-read-output}{{8.6}{101}{Plot window in Xcos to read thermistor values\relax }{figure.caption.96}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {8.7}{\ignorespaces Xcos diagram to read the value of thermistor, which is used to turn the buzzer on}}{101}{figure.caption.97}\protected@file@percent } -\newlabel{60@xvr}{{}{101}} -\newlabel{60@vr}{{}{101}} -\newlabel{fig:therm-buzzer}{{8.7}{101}{Xcos diagram to read the value of thermistor, which is used to turn the buzzer on}{figure.caption.97}{}} -\@writefile{lot}{\contentsline {table}{\numberline {8.2}{\ignorespaces Xcos parameters to read thermistor and switch the buzzer\relax }}{102}{table.caption.98}\protected@file@percent } -\newlabel{tab:therm-buzzer}{{8.2}{102}{Xcos parameters to read thermistor and switch the buzzer\relax }{table.caption.98}{}} -\newlabel{61@xvr}{{}{102}} -\newlabel{61@vr}{{}{102}} -\@writefile{toc}{\contentsline {paragraph}{Note:}{102}{section*.100}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {8.8}{\ignorespaces Plot window in Xcos to read thermistor values and the state of LED\relax }}{103}{figure.caption.99}\protected@file@percent } -\newlabel{fig:therm-buzzer-output}{{8.8}{103}{Plot window in Xcos to read thermistor values and the state of LED\relax }{figure.caption.99}{}} +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{8.{1}}{}}{158}{codemass.8.1}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{158}{codemass.8.1}\protected@file@percent } +\newlabel{78@xvr}{{}{158}} +\newlabel{78@vr}{{}{158}} +\newlabel{sci:therm-read}{{8.{1}}{158}{Scilab Code}{codemass.8.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash read.sce}{158}{lstlisting.8.-134}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{8.{2}}{}}{158}{codemass.8.2}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{158}{codemass.8.2}\protected@file@percent } +\newlabel{79@xvr}{{}{158}} +\newlabel{79@vr}{{}{158}} +\newlabel{sci:therm-buzzer}{{8.{2}}{158}{Scilab Code}{codemass.8.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm\textendash buzzer.sce}{159}{lstlisting.8.-135}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {8.5}Interfacing the thermistor from Xcos}{159}{section.8.5}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {8.5}{\ignorespaces Xcos diagram to read thermistor values}}{160}{figure.caption.113}\protected@file@percent } +\newlabel{81@xvr}{{}{160}} +\newlabel{81@vr}{{}{160}} +\newlabel{fig:therm-read}{{8.5}{160}{Xcos diagram to read thermistor values}{figure.caption.113}{}} +\@writefile{lot}{\contentsline {table}{\numberline {8.1}{\ignorespaces Xcos parameters to read thermistor\relax }}{160}{table.caption.114}\protected@file@percent } +\newlabel{tab:therm-read}{{8.1}{160}{Xcos parameters to read thermistor\relax }{table.caption.114}{}} +\newlabel{82@xvr}{{}{160}} +\newlabel{82@vr}{{}{160}} +\@writefile{lof}{\contentsline {figure}{\numberline {8.6}{\ignorespaces Plot window in Xcos to read thermistor values\relax }}{161}{figure.caption.115}\protected@file@percent } +\newlabel{fig:therm-read-output}{{8.6}{161}{Plot window in Xcos to read thermistor values\relax }{figure.caption.115}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {8.7}{\ignorespaces Xcos diagram to read the value of thermistor, which is used to turn the buzzer on}}{161}{figure.caption.116}\protected@file@percent } +\newlabel{84@xvr}{{}{161}} +\newlabel{84@vr}{{}{161}} +\newlabel{fig:therm-buzzer}{{8.7}{161}{Xcos diagram to read the value of thermistor, which is used to turn the buzzer on}{figure.caption.116}{}} +\@writefile{lot}{\contentsline {table}{\numberline {8.2}{\ignorespaces Xcos parameters to read thermistor and switch the buzzer\relax }}{162}{table.caption.117}\protected@file@percent } +\newlabel{tab:therm-buzzer}{{8.2}{162}{Xcos parameters to read thermistor and switch the buzzer\relax }{table.caption.117}{}} +\newlabel{85@xvr}{{}{162}} +\newlabel{85@vr}{{}{162}} +\@writefile{toc}{\contentsline {paragraph}{Note:}{162}{section*.119}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {8.6}Interfacing the thermistor from Python}{162}{section.8.6}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.6.1}Interfacing the thermistor}{162}{subsection.8.6.1}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {8.8}{\ignorespaces Plot window in Xcos to read thermistor values and the state of LED\relax }}{163}{figure.caption.118}\protected@file@percent } +\newlabel{fig:therm-buzzer-output}{{8.8}{163}{Plot window in Xcos to read thermistor values and the state of LED\relax }{figure.caption.118}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash read.py}{163}{lstlisting.8.-136}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash read.py}{163}{lstlisting.8.-137}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash buzzer.py}{164}{lstlisting.8.-138}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{164}{section*.120}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.6.2}Python Code}{165}{subsection.8.6.2}\protected@file@percent } +\newlabel{sec:therm-pyhton-code}{{8.6.2}{165}{Python Code}{subsection.8.6.2}{}} +\@writefile{pyd}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{8.{1}}{}}{165}{pymass.8.1}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{165}{pymass.8.1}\protected@file@percent } +\newlabel{86@xvr}{{}{165}} +\newlabel{86@vr}{{}{165}} +\newlabel{py:therm-read}{{8.{1}}{165}{Python Code}{pymass.8.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash read.py}{165}{lstlisting.8.-139}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{8.{2}}{}}{165}{pymass.8.2}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{165}{pymass.8.2}\protected@file@percent } +\newlabel{87@xvr}{{}{166}} +\newlabel{87@vr}{{}{166}} +\newlabel{py:therm-buzzer}{{8.{2}}{166}{Python Code}{pymass.8.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm\textendash buzzer.py}{166}{lstlisting.8.-140}\protected@file@percent } +\citation{julia-serial-ports} +\@writefile{toc}{\contentsline {section}{\numberline {8.7}Interfacing the thermistor from Julia}{167}{section.8.7}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.7.1}Interfacing the thermistor}{167}{subsection.8.7.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash read.jl}{167}{lstlisting.8.-141}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash read.jl}{167}{lstlisting.8.-142}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash buzzer.jl}{168}{lstlisting.8.-143}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{168}{section*.121}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.7.2}Julia Code}{168}{subsection.8.7.2}\protected@file@percent } +\newlabel{sec:therm-julia-code}{{8.7.2}{168}{Julia Code}{subsection.8.7.2}{}} +\@writefile{juliad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{8.{1}}{}}{168}{juliamass.8.1}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{168}{juliamass.8.1}\protected@file@percent } +\newlabel{88@xvr}{{}{168}} +\newlabel{88@vr}{{}{168}} +\newlabel{julia:therm-read}{{8.{1}}{168}{Julia Code}{juliamass.8.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash read.jl}{168}{lstlisting.8.-144}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{8.{2}}{}}{169}{juliamass.8.2}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{169}{juliamass.8.2}\protected@file@percent } +\newlabel{89@xvr}{{}{169}} +\newlabel{89@vr}{{}{169}} +\newlabel{julia:therm-buzzer}{{8.{2}}{169}{Julia Code}{juliamass.8.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm\textendash buzzer.jl}{169}{lstlisting.8.-145}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {8.8}Interfacing the thermistor from OpenModelica}{169}{section.8.8}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.8.1}Interfacing the thermistor}{169}{subsection.8.8.1}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash read.mo}{169}{lstlisting.8.-146}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash read.mo}{170}{lstlisting.8.-147}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash buzzer.mo}{170}{lstlisting.8.-148}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{171}{section*.122}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {8.8.2}OpenModelica Code}{171}{subsection.8.8.2}\protected@file@percent } +\newlabel{sec:therm-OpenModelica-code}{{8.8.2}{171}{OpenModelica Code}{subsection.8.8.2}{}} +\@writefile{OpenModelicad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{1}}{}}{171}{OpenModelicamass.8.1}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{171}{OpenModelicamass.8.1}\protected@file@percent } +\newlabel{OpenModelica:therm-read}{{8.{1}}{171}{OpenModelica Code}{OpenModelicamass.8.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash read.mo}{171}{lstlisting.8.-149}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{2}}{}}{172}{OpenModelicamass.8.2}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{172}{OpenModelicamass.8.2}\protected@file@percent } +\newlabel{OpenModelica:therm-buzzer}{{8.{2}}{172}{OpenModelica Code}{OpenModelicamass.8.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm\textendash buzzer.mo}{172}{lstlisting.8.-150}\protected@file@percent } \citation{arduino-pwm} -\@writefile{toc}{\contentsline {chapter}{\numberline {9}Interfacing a Servomotor}{105}{chapter.9}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {9}Interfacing a Servomotor}{173}{chapter.9}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{sec:servo}{{9}{105}{Interfacing a Servomotor}{chapter.9}{}} -\@writefile{toc}{\contentsline {section}{\numberline {9.1}Preliminaries}{105}{section.9.1}\protected@file@percent } -\newlabel{sec:servo-pril}{{9.1}{105}{Preliminaries}{section.9.1}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {9.1}{\ignorespaces Connecting servomotor to the shield attached on Arduino Uno\relax }}{106}{figure.caption.101}\protected@file@percent } -\newlabel{fig:servo-shield}{{9.1}{106}{Connecting servomotor to the shield attached on \arduino \relax }{figure.caption.101}{}} -\@writefile{lot}{\contentsline {table}{\numberline {9.1}{\ignorespaces Connecting a typical servomotor to Arduino Uno\ board\relax }}{106}{table.caption.102}\protected@file@percent } -\newlabel{tab:servo-connect}{{9.1}{106}{Connecting a typical servomotor to \arduino \ board\relax }{table.caption.102}{}} -\@writefile{toc}{\contentsline {section}{\numberline {9.2}Connecting a servomotor with Arduino Uno\ using a breadboard}{106}{section.9.2}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {9.2}{\ignorespaces A servomotor with Arduino Uno\ using a breadboard\relax }}{107}{figure.caption.103}\protected@file@percent } -\newlabel{fig:servo-bread}{{9.2}{107}{A servomotor with \arduino \ using a breadboard\relax }{figure.caption.103}{}} -\@writefile{toc}{\contentsline {section}{\numberline {9.3}Controlling the servomotor through the Arduino IDE}{107}{section.9.3}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.1}Controlling the servomotor}{107}{subsection.9.3.1}\protected@file@percent } -\newlabel{sec:servo-ard}{{9.3.1}{107}{Controlling the servomotor}{subsection.9.3.1}{}} +\newlabel{sec:servo}{{9}{173}{Interfacing a Servomotor}{chapter.9}{}} +\@writefile{toc}{\contentsline {section}{\numberline {9.1}Preliminaries}{173}{section.9.1}\protected@file@percent } +\newlabel{sec:servo-pril}{{9.1}{173}{Preliminaries}{section.9.1}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {9.1}{\ignorespaces Connecting servomotor to the shield attached on Arduino Uno\relax }}{174}{figure.caption.123}\protected@file@percent } +\newlabel{fig:servo-shield}{{9.1}{174}{Connecting servomotor to the shield attached on \arduino \relax }{figure.caption.123}{}} +\@writefile{lot}{\contentsline {table}{\numberline {9.1}{\ignorespaces Connecting a typical servomotor to Arduino Uno\ board\relax }}{174}{table.caption.124}\protected@file@percent } +\newlabel{tab:servo-connect}{{9.1}{174}{Connecting a typical servomotor to \arduino \ board\relax }{table.caption.124}{}} +\@writefile{toc}{\contentsline {section}{\numberline {9.2}Connecting a servomotor with Arduino Uno\ using a breadboard}{174}{section.9.2}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {9.2}{\ignorespaces A servomotor with Arduino Uno\ using a breadboard\relax }}{175}{figure.caption.125}\protected@file@percent } +\newlabel{fig:servo-bread}{{9.2}{175}{A servomotor with \arduino \ using a breadboard\relax }{figure.caption.125}{}} +\@writefile{toc}{\contentsline {section}{\numberline {9.3}Controlling the servomotor through the Arduino IDE}{175}{section.9.3}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.1}Controlling the servomotor}{175}{subsection.9.3.1}\protected@file@percent } +\newlabel{sec:servo-ard}{{9.3.1}{175}{Controlling the servomotor}{subsection.9.3.1}{}} \citation{servo-lib} -\@writefile{lof}{\contentsline {figure}{\numberline {9.3}{\ignorespaces A servomotor and a potentiometer with Arduino Uno\ using a breadboard\relax }}{108}{figure.caption.104}\protected@file@percent } -\newlabel{fig:servo-pot-bread}{{9.3}{108}{A servomotor and a potentiometer with \arduino \ using a breadboard\relax }{figure.caption.104}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash init/servo\textendash init.ino}{108}{lstlisting.9.-62}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash init/servo\textendash init.ino}{108}{lstlisting.9.-63}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash init/servo\textendash init.ino}{108}{lstlisting.9.-64}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash init/servo\textendash init.ino}{109}{lstlisting.9.-65}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash reverse/servo\textendash reverse.ino}{109}{lstlisting.9.-66}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash pot/servo\textendash pot.ino}{109}{lstlisting.9.-67}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{9.{1}}{}}{110}{egmass.9.1}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.2}Arduino Code}{110}{subsection.9.3.2}\protected@file@percent } -\newlabel{sec:servo-arduino-code}{{9.3.2}{110}{Arduino Code}{subsection.9.3.2}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {9.3}{\ignorespaces A servomotor and a potentiometer with Arduino Uno\ using a breadboard\relax }}{176}{figure.caption.126}\protected@file@percent } +\newlabel{fig:servo-pot-bread}{{9.3}{176}{A servomotor and a potentiometer with \arduino \ using a breadboard\relax }{figure.caption.126}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash init/servo\textendash init.ino}{176}{lstlisting.9.-151}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash init/servo\textendash init.ino}{176}{lstlisting.9.-152}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash init/servo\textendash init.ino}{176}{lstlisting.9.-153}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash init/servo\textendash init.ino}{177}{lstlisting.9.-154}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash reverse/servo\textendash reverse.ino}{177}{lstlisting.9.-155}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash pot/servo\textendash pot.ino}{177}{lstlisting.9.-156}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{9.{1}}{}}{178}{egmass.9.1}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.3.2}Arduino Code}{178}{subsection.9.3.2}\protected@file@percent } +\newlabel{sec:servo-arduino-code}{{9.3.2}{178}{Arduino Code}{subsection.9.3.2}{}} \@writefile{ard}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{1}}{}}{110}{ardmass.9.1}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{110}{ardmass.9.1}\protected@file@percent } -\newlabel{62@xvr}{{}{110}} -\newlabel{62@vr}{{}{110}} -\newlabel{ard:servo-init}{{9.{1}}{110}{Arduino Code}{ardmass.9.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash init/servo\textendash init.ino}{110}{lstlisting.9.-68}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{2}}{}}{111}{ardmass.9.2}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{111}{ardmass.9.2}\protected@file@percent } -\newlabel{63@xvr}{{}{111}} -\newlabel{63@vr}{{}{111}} -\newlabel{ard:servo-reverse}{{9.{2}}{111}{Arduino Code}{ardmass.9.2}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash reverse/servo\textendash reverse.ino}{111}{lstlisting.9.-69}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{3}}{}}{111}{ardmass.9.3}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {9.{3}}Rotating the servomotor in increments}{111}{ardmass.9.3}\protected@file@percent } -\newlabel{64@xvr}{{}{111}} -\newlabel{64@vr}{{}{111}} -\newlabel{ard:servo-loop}{{9.{3}}{111}{Arduino Code}{ardmass.9.3}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash loop/servo\textendash loop.ino}{111}{lstlisting.9.-70}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{4}}{}}{111}{ardmass.9.4}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {9.{4}}Rotating the servomotor through the potentiometer}{111}{ardmass.9.4}\protected@file@percent } -\newlabel{65@xvr}{{}{111}} -\newlabel{65@vr}{{}{111}} -\newlabel{ard:servo-pot}{{9.{4}}{111}{Arduino Code}{ardmass.9.4}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash pot/servo\textendash pot.ino}{111}{lstlisting.9.-71}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {9.4}Controlling the servomotor through Scilab}{112}{section.9.4}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {9.4.1}Controlling the servomotor}{112}{subsection.9.4.1}\protected@file@percent } -\newlabel{sec:servo-sci}{{9.4.1}{112}{Controlling the servomotor}{subsection.9.4.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash init.sce}{112}{lstlisting.9.-72}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash init.sce}{112}{lstlisting.9.-73}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash reverse.sce}{113}{lstlisting.9.-74}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash pot.sce}{113}{lstlisting.9.-75}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {9.4.2}Scilab Code}{114}{subsection.9.4.2}\protected@file@percent } -\newlabel{sec:servo-scilab-code}{{9.4.2}{114}{Scilab Code}{subsection.9.4.2}{}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{1}}{}}{178}{ardmass.9.1}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{178}{ardmass.9.1}\protected@file@percent } +\newlabel{90@xvr}{{}{178}} +\newlabel{90@vr}{{}{178}} +\newlabel{ard:servo-init}{{9.{1}}{178}{Arduino Code}{ardmass.9.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash init/servo\textendash init.ino}{178}{lstlisting.9.-157}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{2}}{}}{179}{ardmass.9.2}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{179}{ardmass.9.2}\protected@file@percent } +\newlabel{91@xvr}{{}{179}} +\newlabel{91@vr}{{}{179}} +\newlabel{ard:servo-reverse}{{9.{2}}{179}{Arduino Code}{ardmass.9.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash reverse/servo\textendash reverse.ino}{179}{lstlisting.9.-158}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{3}}{}}{179}{ardmass.9.3}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {9.{3}}Rotating the servomotor in increments}{179}{ardmass.9.3}\protected@file@percent } +\newlabel{92@xvr}{{}{179}} +\newlabel{92@vr}{{}{179}} +\newlabel{ard:servo-loop}{{9.{3}}{179}{Arduino Code}{ardmass.9.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash loop/servo\textendash loop.ino}{179}{lstlisting.9.-159}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{9.{4}}{}}{179}{ardmass.9.4}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {9.{4}}Rotating the servomotor through the potentiometer}{179}{ardmass.9.4}\protected@file@percent } +\newlabel{93@xvr}{{}{179}} +\newlabel{93@vr}{{}{179}} +\newlabel{ard:servo-pot}{{9.{4}}{179}{Arduino Code}{ardmass.9.4}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo\textendash pot/servo\textendash pot.ino}{179}{lstlisting.9.-160}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {9.4}Controlling the servomotor through Scilab}{180}{section.9.4}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.4.1}Controlling the servomotor}{180}{subsection.9.4.1}\protected@file@percent } +\newlabel{sec:servo-sci}{{9.4.1}{180}{Controlling the servomotor}{subsection.9.4.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash init.sce}{180}{lstlisting.9.-161}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash init.sce}{180}{lstlisting.9.-162}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash reverse.sce}{181}{lstlisting.9.-163}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash pot.sce}{181}{lstlisting.9.-164}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.4.2}Scilab Code}{182}{subsection.9.4.2}\protected@file@percent } +\newlabel{sec:servo-scilab-code}{{9.4.2}{182}{Scilab Code}{subsection.9.4.2}{}} \@writefile{cod}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{1}}{}}{114}{codemass.9.1}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{114}{codemass.9.1}\protected@file@percent } -\newlabel{66@xvr}{{}{114}} -\newlabel{66@vr}{{}{114}} -\newlabel{sci:servo-init}{{9.{1}}{114}{Scilab Code}{codemass.9.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash init.sce}{114}{lstlisting.9.-76}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{2}}{}}{114}{codemass.9.2}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{114}{codemass.9.2}\protected@file@percent } -\newlabel{67@xvr}{{}{114}} -\newlabel{67@vr}{{}{114}} -\newlabel{sci:servo-reverse}{{9.{2}}{114}{Scilab Code}{codemass.9.2}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash reverse.sce}{114}{lstlisting.9.-77}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{3}}{}}{114}{codemass.9.3}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {9.{3}}Rotating the servomotor in steps of $20^\circ $}{114}{codemass.9.3}\protected@file@percent } -\newlabel{68@xvr}{{}{114}} -\newlabel{68@vr}{{}{114}} -\newlabel{sci:servo-loop}{{9.{3}}{114}{Scilab Code}{codemass.9.3}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash loop.sce}{114}{lstlisting.9.-78}\protected@file@percent } -\@writefile{lot}{\contentsline {table}{\numberline {9.2}{\ignorespaces Parameters to rotate the servomotor by $30^\circ $\relax }}{115}{table.caption.106}\protected@file@percent } -\newlabel{tab:servo-init}{{9.2}{115}{Parameters to rotate the servomotor by $30^\circ $\relax }{table.caption.106}{}} -\newlabel{72@xvr}{{}{115}} -\newlabel{72@vr}{{}{115}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{4}}{}}{115}{codemass.9.4}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {9.{4}}Rotating the servomotor to a degree specified by the potentiometer}{115}{codemass.9.4}\protected@file@percent } -\newlabel{69@xvr}{{}{115}} -\newlabel{69@vr}{{}{115}} -\newlabel{sci:servo-pot}{{9.{4}}{115}{Scilab Code}{codemass.9.4}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash pot.sce}{115}{lstlisting.9.-79}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {9.5}Controling the servomotor through Xcos}{115}{section.9.5}\protected@file@percent } -\newlabel{sec:servo-xcos}{{9.5}{115}{Controling the servomotor through Xcos}{section.9.5}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {9.4}{\ignorespaces Rotating the servomotor by a fixed angle}}{116}{figure.caption.105}\protected@file@percent } -\newlabel{71@xvr}{{}{116}} -\newlabel{71@vr}{{}{116}} -\newlabel{fig:servo-init}{{9.4}{116}{Rotating the servomotor by a fixed angle}{figure.caption.105}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {9.5}{\ignorespaces Rotating the servomotor forward and then reverse}}{117}{figure.caption.107}\protected@file@percent } -\newlabel{74@xvr}{{}{117}} -\newlabel{74@vr}{{}{117}} -\newlabel{fig:servo-reverse}{{9.5}{117}{Rotating the servomotor forward and then reverse}{figure.caption.107}{}} -\@writefile{lot}{\contentsline {table}{\numberline {9.3}{\ignorespaces Parameters to rotate the servomotor forward and reverse\relax }}{117}{table.caption.108}\protected@file@percent } -\newlabel{tab:servo-reverse}{{9.3}{117}{Parameters to rotate the servomotor forward and reverse\relax }{table.caption.108}{}} -\newlabel{75@xvr}{{}{117}} -\newlabel{75@vr}{{}{117}} -\@writefile{lof}{\contentsline {figure}{\numberline {9.6}{\ignorespaces Rotating the servomotor in increments of $20^\circ $}}{118}{figure.caption.109}\protected@file@percent } -\newlabel{77@xvr}{{}{118}} -\newlabel{77@vr}{{}{118}} -\newlabel{fig:servo-loop}{{9.6}{118}{Rotating the servomotor in increments of $20^\circ $}{figure.caption.109}{}} -\@writefile{lot}{\contentsline {table}{\numberline {9.4}{\ignorespaces Parameters to make the servomotor to sweep the entire range in increments\relax }}{118}{table.caption.110}\protected@file@percent } -\newlabel{tab:servo-loop}{{9.4}{118}{Parameters to make the servomotor to sweep the entire range in increments\relax }{table.caption.110}{}} -\newlabel{78@xvr}{{}{118}} -\newlabel{78@vr}{{}{118}} -\@writefile{lof}{\contentsline {figure}{\numberline {9.7}{\ignorespaces Rotating the servomotor as suggested by the potentiometer}}{119}{figure.caption.111}\protected@file@percent } -\newlabel{80@xvr}{{}{119}} -\newlabel{80@vr}{{}{119}} -\newlabel{fig:servo-pot}{{9.7}{119}{Rotating the servomotor as suggested by the potentiometer}{figure.caption.111}{}} -\@writefile{lot}{\contentsline {table}{\numberline {9.5}{\ignorespaces Parameters to rotate the servomotor based on the input from the potentiometer\relax }}{119}{table.caption.112}\protected@file@percent } -\newlabel{tab:servo-pot}{{9.5}{119}{Parameters to rotate the servomotor based on the input from the potentiometer\relax }{table.caption.112}{}} -\newlabel{81@xvr}{{}{119}} -\newlabel{81@vr}{{}{119}} +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{1}}{}}{182}{codemass.9.1}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{182}{codemass.9.1}\protected@file@percent } +\newlabel{94@xvr}{{}{182}} +\newlabel{94@vr}{{}{182}} +\newlabel{sci:servo-init}{{9.{1}}{182}{Scilab Code}{codemass.9.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash init.sce}{182}{lstlisting.9.-165}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{2}}{}}{182}{codemass.9.2}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{182}{codemass.9.2}\protected@file@percent } +\newlabel{95@xvr}{{}{182}} +\newlabel{95@vr}{{}{182}} +\newlabel{sci:servo-reverse}{{9.{2}}{182}{Scilab Code}{codemass.9.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash reverse.sce}{182}{lstlisting.9.-166}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{3}}{}}{182}{codemass.9.3}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {9.{3}}Rotating the servomotor in steps of $20^\circ $}{182}{codemass.9.3}\protected@file@percent } +\newlabel{96@xvr}{{}{182}} +\newlabel{96@vr}{{}{182}} +\newlabel{sci:servo-loop}{{9.{3}}{182}{Scilab Code}{codemass.9.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash loop.sce}{182}{lstlisting.9.-167}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {9.2}{\ignorespaces Parameters to rotate the servomotor by $30^\circ $\relax }}{183}{table.caption.128}\protected@file@percent } +\newlabel{tab:servo-init}{{9.2}{183}{Parameters to rotate the servomotor by $30^\circ $\relax }{table.caption.128}{}} +\newlabel{100@xvr}{{}{183}} +\newlabel{100@vr}{{}{183}} +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{9.{4}}{}}{183}{codemass.9.4}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {9.{4}}Rotating the servomotor to a degree specified by the potentiometer}{183}{codemass.9.4}\protected@file@percent } +\newlabel{97@xvr}{{}{183}} +\newlabel{97@vr}{{}{183}} +\newlabel{sci:servo-pot}{{9.{4}}{183}{Scilab Code}{codemass.9.4}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo\textendash pot.sce}{183}{lstlisting.9.-168}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {9.5}Controling the servomotor through Xcos}{183}{section.9.5}\protected@file@percent } +\newlabel{sec:servo-xcos}{{9.5}{183}{Controling the servomotor through Xcos}{section.9.5}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {9.4}{\ignorespaces Rotating the servomotor by a fixed angle}}{184}{figure.caption.127}\protected@file@percent } +\newlabel{99@xvr}{{}{184}} +\newlabel{99@vr}{{}{184}} +\newlabel{fig:servo-init}{{9.4}{184}{Rotating the servomotor by a fixed angle}{figure.caption.127}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {9.5}{\ignorespaces Rotating the servomotor forward and then reverse}}{185}{figure.caption.129}\protected@file@percent } +\newlabel{102@xvr}{{}{185}} +\newlabel{102@vr}{{}{185}} +\newlabel{fig:servo-reverse}{{9.5}{185}{Rotating the servomotor forward and then reverse}{figure.caption.129}{}} +\@writefile{lot}{\contentsline {table}{\numberline {9.3}{\ignorespaces Parameters to rotate the servomotor forward and reverse\relax }}{185}{table.caption.130}\protected@file@percent } +\newlabel{tab:servo-reverse}{{9.3}{185}{Parameters to rotate the servomotor forward and reverse\relax }{table.caption.130}{}} +\newlabel{103@xvr}{{}{185}} +\newlabel{103@vr}{{}{185}} +\@writefile{lof}{\contentsline {figure}{\numberline {9.6}{\ignorespaces Rotating the servomotor in increments of $20^\circ $}}{186}{figure.caption.131}\protected@file@percent } +\newlabel{105@xvr}{{}{186}} +\newlabel{105@vr}{{}{186}} +\newlabel{fig:servo-loop}{{9.6}{186}{Rotating the servomotor in increments of $20^\circ $}{figure.caption.131}{}} +\@writefile{lot}{\contentsline {table}{\numberline {9.4}{\ignorespaces Parameters to make the servomotor to sweep the entire range in increments\relax }}{186}{table.caption.132}\protected@file@percent } +\newlabel{tab:servo-loop}{{9.4}{186}{Parameters to make the servomotor to sweep the entire range in increments\relax }{table.caption.132}{}} +\newlabel{106@xvr}{{}{186}} +\newlabel{106@vr}{{}{186}} +\@writefile{lof}{\contentsline {figure}{\numberline {9.7}{\ignorespaces Rotating the servomotor as suggested by the potentiometer}}{187}{figure.caption.133}\protected@file@percent } +\newlabel{108@xvr}{{}{187}} +\newlabel{108@vr}{{}{187}} +\newlabel{fig:servo-pot}{{9.7}{187}{Rotating the servomotor as suggested by the potentiometer}{figure.caption.133}{}} +\@writefile{lot}{\contentsline {table}{\numberline {9.5}{\ignorespaces Parameters to rotate the servomotor based on the input from the potentiometer\relax }}{187}{table.caption.134}\protected@file@percent } +\newlabel{tab:servo-pot}{{9.5}{187}{Parameters to rotate the servomotor based on the input from the potentiometer\relax }{table.caption.134}{}} +\newlabel{109@xvr}{{}{187}} +\newlabel{109@vr}{{}{187}} +\@writefile{toc}{\contentsline {section}{\numberline {9.6}Controlling the servomotor through Python}{188}{section.9.6}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.6.1}Controlling the servomotor}{188}{subsection.9.6.1}\protected@file@percent } +\newlabel{sec:servo-py}{{9.6.1}{188}{Controlling the servomotor}{subsection.9.6.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash init.py}{188}{lstlisting.9.-169}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash init.py}{188}{lstlisting.9.-170}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash reverse.py}{188}{lstlisting.9.-171}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash pot.py}{189}{lstlisting.9.-172}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.6.2}Python Code}{189}{subsection.9.6.2}\protected@file@percent } +\newlabel{sec:servo-python-code}{{9.6.2}{189}{Python Code}{subsection.9.6.2}{}} +\@writefile{pyd}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{9.{1}}{}}{189}{pymass.9.1}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{189}{pymass.9.1}\protected@file@percent } +\newlabel{110@xvr}{{}{189}} +\newlabel{110@vr}{{}{189}} +\newlabel{py:servo-init}{{9.{1}}{189}{Python Code}{pymass.9.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash init.py}{189}{lstlisting.9.-173}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{9.{2}}{}}{190}{pymass.9.2}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{190}{pymass.9.2}\protected@file@percent } +\newlabel{111@xvr}{{}{190}} +\newlabel{111@vr}{{}{190}} +\newlabel{py:servo-reverse}{{9.{2}}{190}{Python Code}{pymass.9.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash reverse.py}{190}{lstlisting.9.-174}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{9.{3}}{}}{191}{pymass.9.3}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {9.{3}}Rotating the servomotor in steps of $20^\circ $}{191}{pymass.9.3}\protected@file@percent } +\newlabel{112@xvr}{{}{191}} +\newlabel{112@vr}{{}{191}} +\newlabel{py:servo-loop}{{9.{3}}{191}{Python Code}{pymass.9.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash loop.py}{191}{lstlisting.9.-175}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{9.{4}}{}}{192}{pymass.9.4}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {9.{4}}Rotating the servomotor to a degree specified by the potentiometer}{192}{pymass.9.4}\protected@file@percent } +\newlabel{113@xvr}{{}{192}} +\newlabel{113@vr}{{}{192}} +\newlabel{py:servo-pot}{{9.{4}}{192}{Python Code}{pymass.9.4}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo\textendash pot.py}{192}{lstlisting.9.-176}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {9.7}Controlling the servomotor through Julia}{193}{section.9.7}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.7.1}Controlling the servomotor}{193}{subsection.9.7.1}\protected@file@percent } +\newlabel{sec:servo-julia}{{9.7.1}{193}{Controlling the servomotor}{subsection.9.7.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash init.jl}{193}{lstlisting.9.-177}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash init.jl}{193}{lstlisting.9.-178}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash reverse.jl}{194}{lstlisting.9.-179}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash pot.jl}{194}{lstlisting.9.-180}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.7.2}Julia Code}{195}{subsection.9.7.2}\protected@file@percent } +\newlabel{sec:servo-julia-code}{{9.7.2}{195}{Julia Code}{subsection.9.7.2}{}} +\@writefile{juliad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{9.{1}}{}}{195}{juliamass.9.1}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{195}{juliamass.9.1}\protected@file@percent } +\newlabel{114@xvr}{{}{195}} +\newlabel{114@vr}{{}{195}} +\newlabel{julia:servo-init}{{9.{1}}{195}{Julia Code}{juliamass.9.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash init.jl}{195}{lstlisting.9.-181}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{9.{2}}{}}{195}{juliamass.9.2}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{195}{juliamass.9.2}\protected@file@percent } +\newlabel{115@xvr}{{}{195}} +\newlabel{115@vr}{{}{195}} +\newlabel{julia:servo-reverse}{{9.{2}}{195}{Julia Code}{juliamass.9.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash reverse.jl}{195}{lstlisting.9.-182}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{9.{3}}{}}{195}{juliamass.9.3}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {9.{3}}Rotating the servomotor in steps of $20^\circ $}{195}{juliamass.9.3}\protected@file@percent } +\newlabel{116@xvr}{{}{195}} +\newlabel{116@vr}{{}{195}} +\newlabel{julia:servo-loop}{{9.{3}}{195}{Julia Code}{juliamass.9.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash loop.jl}{195}{lstlisting.9.-183}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{9.{4}}{}}{196}{juliamass.9.4}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {9.{4}}Rotating the servomotor to a degree specified by the potentiometer}{196}{juliamass.9.4}\protected@file@percent } +\newlabel{117@xvr}{{}{196}} +\newlabel{117@vr}{{}{196}} +\newlabel{julia:servo-pot}{{9.{4}}{196}{Julia Code}{juliamass.9.4}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo\textendash pot.jl}{196}{lstlisting.9.-184}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {9.8}Controlling the servomotor through OpenModelica}{196}{section.9.8}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.8.1}Controlling the servomotor}{196}{subsection.9.8.1}\protected@file@percent } +\newlabel{sec:servo-OpenModelica}{{9.8.1}{196}{Controlling the servomotor}{subsection.9.8.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash init.mo}{196}{lstlisting.9.-185}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash init.mo}{197}{lstlisting.9.-186}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash reverse.mo}{197}{lstlisting.9.-187}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash pot.mo}{197}{lstlisting.9.-188}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {9.8.2}OpenModelica Code}{198}{subsection.9.8.2}\protected@file@percent } +\newlabel{sec:servo-OpenModelica-code}{{9.8.2}{198}{OpenModelica Code}{subsection.9.8.2}{}} +\@writefile{OpenModelicad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{1}}{}}{198}{OpenModelicamass.9.1}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{198}{OpenModelicamass.9.1}\protected@file@percent } +\newlabel{OpenModelica:servo-init}{{9.{1}}{198}{OpenModelica Code}{OpenModelicamass.9.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash init.mo}{198}{lstlisting.9.-189}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{2}}{}}{199}{OpenModelicamass.9.2}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{199}{OpenModelicamass.9.2}\protected@file@percent } +\newlabel{OpenModelica:servo-reverse}{{9.{2}}{199}{OpenModelica Code}{OpenModelicamass.9.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash reverse.mo}{199}{lstlisting.9.-190}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{3}}{}}{199}{OpenModelicamass.9.3}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {9.{3}}Rotating the servomotor in steps of $20^\circ $}{199}{OpenModelicamass.9.3}\protected@file@percent } +\newlabel{OpenModelica:servo-loop}{{9.{3}}{199}{OpenModelica Code}{OpenModelicamass.9.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash loop.mo}{199}{lstlisting.9.-191}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{4}}{}}{200}{OpenModelicamass.9.4}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {9.{4}}Rotating the servomotor to a degree specified by the potentiometer}{200}{OpenModelicamass.9.4}\protected@file@percent } +\newlabel{OpenModelica:servo-pot}{{9.{4}}{200}{OpenModelica Code}{OpenModelicamass.9.4}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo\textendash pot.mo}{200}{lstlisting.9.-192}\protected@file@percent } \citation{arduino-pwm} -\@writefile{toc}{\contentsline {chapter}{\numberline {10}Interfacing a DC Motor}{121}{chapter.10}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {10}Interfacing a DC Motor}{203}{chapter.10}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{dcmotor}{{10}{121}{Interfacing a DC Motor}{chapter.10}{}} -\@writefile{toc}{\contentsline {section}{\numberline {10.1}Preliminaries}{121}{section.10.1}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {10.1}{\ignorespaces L293D motor driver board\relax }}{122}{figure.caption.113}\protected@file@percent } -\newlabel{fig:motordriverboard}{{10.1}{122}{L293D motor driver board\relax }{figure.caption.113}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {10.2}{\ignorespaces PWM pins on an Arduino Uno\ board\relax }}{123}{figure.caption.114}\protected@file@percent } -\newlabel{fig:uno-pwm}{{10.2}{123}{PWM pins on an \arduino \ board\relax }{figure.caption.114}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {10.3}{\ignorespaces A schematic of DC motor connections\relax }}{123}{figure.caption.115}\protected@file@percent } -\newlabel{fig:dcm-schematic}{{10.3}{123}{A schematic of DC motor connections\relax }{figure.caption.115}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {10.4}{\ignorespaces How to connect the DC motor to the Arduino Uno\ board\relax }}{124}{figure.caption.116}\protected@file@percent } -\newlabel{fig:dcmotorconn}{{10.4}{124}{How to connect the DC motor to the \arduino \ board\relax }{figure.caption.116}{}} -\@writefile{toc}{\contentsline {section}{\numberline {10.2}Controlling the DC motor from Arduino}{124}{section.10.2}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.2.1}Controlling the DC motor}{124}{subsection.10.2.1}\protected@file@percent } -\newlabel{sec:dcm-ard}{{10.2.1}{124}{Controlling the DC motor}{subsection.10.2.1}{}} -\@writefile{toc}{\contentsline {paragraph}{Note:}{124}{section*.117}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{124}{lstlisting.10.-80}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{125}{lstlisting.10.-81}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{125}{lstlisting.10.-82}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash both/dcmotor\textendash both.ino}{125}{lstlisting.10.-83}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash both/dcmotor\textendash both.ino}{125}{lstlisting.10.-84}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{10.{1}}{}}{125}{egmass.10.1}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.2.2}Arduino Code}{126}{subsection.10.2.2}\protected@file@percent } -\newlabel{sec:dcmotor-arduino-code}{{10.2.2}{126}{Arduino Code}{subsection.10.2.2}{}} +\newlabel{dcmotor}{{10}{203}{Interfacing a DC Motor}{chapter.10}{}} +\@writefile{toc}{\contentsline {section}{\numberline {10.1}Preliminaries}{203}{section.10.1}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {10.1}{\ignorespaces L293D motor driver board\relax }}{204}{figure.caption.135}\protected@file@percent } +\newlabel{fig:motordriverboard}{{10.1}{204}{L293D motor driver board\relax }{figure.caption.135}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.2}{\ignorespaces PWM pins on an Arduino Uno\ board\relax }}{205}{figure.caption.136}\protected@file@percent } +\newlabel{fig:uno-pwm}{{10.2}{205}{PWM pins on an \arduino \ board\relax }{figure.caption.136}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.3}{\ignorespaces A schematic of DC motor connections\relax }}{205}{figure.caption.137}\protected@file@percent } +\newlabel{fig:dcm-schematic}{{10.3}{205}{A schematic of DC motor connections\relax }{figure.caption.137}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.4}{\ignorespaces How to connect the DC motor to the Arduino Uno\ board\relax }}{206}{figure.caption.138}\protected@file@percent } +\newlabel{fig:dcmotorconn}{{10.4}{206}{How to connect the DC motor to the \arduino \ board\relax }{figure.caption.138}{}} +\@writefile{toc}{\contentsline {section}{\numberline {10.2}Controlling the DC motor from Arduino}{206}{section.10.2}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.2.1}Controlling the DC motor}{206}{subsection.10.2.1}\protected@file@percent } +\newlabel{sec:dcm-ard}{{10.2.1}{206}{Controlling the DC motor}{subsection.10.2.1}{}} +\@writefile{toc}{\contentsline {paragraph}{Note:}{206}{section*.139}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{206}{lstlisting.10.-193}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{207}{lstlisting.10.-194}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{207}{lstlisting.10.-195}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash both/dcmotor\textendash both.ino}{207}{lstlisting.10.-196}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash both/dcmotor\textendash both.ino}{207}{lstlisting.10.-197}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{10.{1}}{}}{207}{egmass.10.1}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.2.2}Arduino Code}{208}{subsection.10.2.2}\protected@file@percent } +\newlabel{sec:dcmotor-arduino-code}{{10.2.2}{208}{Arduino Code}{subsection.10.2.2}{}} \@writefile{ard}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{1}}{}}{126}{ardmass.10.1}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{126}{ardmass.10.1}\protected@file@percent } -\newlabel{82@xvr}{{}{126}} -\newlabel{82@vr}{{}{126}} -\newlabel{ard:dcmotor-clock}{{10.{1}}{126}{Arduino Code}{ardmass.10.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{126}{lstlisting.10.-85}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{2}}{}}{126}{ardmass.10.2}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{126}{ardmass.10.2}\protected@file@percent } -\newlabel{83@xvr}{{}{126}} -\newlabel{83@vr}{{}{126}} -\newlabel{ard:dcmotor-both}{{10.{2}}{126}{Arduino Code}{ardmass.10.2}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash both/dcmotor\textendash both.ino}{126}{lstlisting.10.-86}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{3}}{}}{127}{ardmass.10.3}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{127}{ardmass.10.3}\protected@file@percent } -\newlabel{84@xvr}{{}{127}} -\newlabel{84@vr}{{}{127}} -\newlabel{ard:dcmotor-loop}{{10.{3}}{127}{Arduino Code}{ardmass.10.3}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash loop/dcmotor\textendash loop.ino}{127}{lstlisting.10.-87}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {10.3}Controlling the DC motor from Scilab}{127}{section.10.3}\protected@file@percent } -\newlabel{sec:dcm-sci}{{10.3}{127}{Controlling the DC motor from Scilab}{section.10.3}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {10.3.1}Controlling the DC motor}{127}{subsection.10.3.1}\protected@file@percent } -\@writefile{toc}{\contentsline {paragraph}{Note:}{127}{section*.118}\protected@file@percent } -\@writefile{lot}{\contentsline {table}{\numberline {10.1}{\ignorespaces Values in the Scilab\ command for different H-Bridge circuits\relax }}{128}{table.caption.119}\protected@file@percent } -\newlabel{table:convention}{{10.1}{128}{Values in the \scilab \ command for different H-Bridge circuits\relax }{table.caption.119}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{128}{lstlisting.10.-89}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{129}{lstlisting.10.-91}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{129}{lstlisting.10.-92}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{129}{lstlisting.10.-93}\protected@file@percent } -\@writefile{toc}{\contentsline {paragraph}{Note:}{129}{section*.120}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash both.sce}{129}{lstlisting.10.-94}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash both.sce}{129}{lstlisting.10.-95}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{10.{2}}{}}{130}{egmass.10.2}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.3.2}Scilab Code}{130}{subsection.10.3.2}\protected@file@percent } -\newlabel{sec:dcmotor-scilab-code}{{10.3.2}{130}{Scilab Code}{subsection.10.3.2}{}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{1}}{}}{208}{ardmass.10.1}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{208}{ardmass.10.1}\protected@file@percent } +\newlabel{118@xvr}{{}{208}} +\newlabel{118@vr}{{}{208}} +\newlabel{ard:dcmotor-clock}{{10.{1}}{208}{Arduino Code}{ardmass.10.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{208}{lstlisting.10.-198}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{2}}{}}{208}{ardmass.10.2}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{208}{ardmass.10.2}\protected@file@percent } +\newlabel{119@xvr}{{}{208}} +\newlabel{119@vr}{{}{208}} +\newlabel{ard:dcmotor-both}{{10.{2}}{208}{Arduino Code}{ardmass.10.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash both/dcmotor\textendash both.ino}{208}{lstlisting.10.-199}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{3}}{}}{209}{ardmass.10.3}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{209}{ardmass.10.3}\protected@file@percent } +\newlabel{120@xvr}{{}{209}} +\newlabel{120@vr}{{}{209}} +\newlabel{ard:dcmotor-loop}{{10.{3}}{209}{Arduino Code}{ardmass.10.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash loop/dcmotor\textendash loop.ino}{209}{lstlisting.10.-200}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {10.3}Controlling the DC motor from Scilab}{209}{section.10.3}\protected@file@percent } +\newlabel{sec:dcm-sci}{{10.3}{209}{Controlling the DC motor from Scilab}{section.10.3}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {10.3.1}Controlling the DC motor}{209}{subsection.10.3.1}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{209}{section*.140}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {10.1}{\ignorespaces Values in the Scilab\ command for different H-Bridge circuits\relax }}{210}{table.caption.141}\protected@file@percent } +\newlabel{table:convention}{{10.1}{210}{Values in the \scilab \ command for different H-Bridge circuits\relax }{table.caption.141}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{210}{lstlisting.10.-202}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{211}{lstlisting.10.-204}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{211}{lstlisting.10.-205}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{211}{lstlisting.10.-206}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{211}{section*.142}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash both.sce}{211}{lstlisting.10.-207}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash both.sce}{211}{lstlisting.10.-208}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{10.{2}}{}}{212}{egmass.10.2}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.3.2}Scilab Code}{212}{subsection.10.3.2}\protected@file@percent } +\newlabel{sec:dcmotor-scilab-code}{{10.3.2}{212}{Scilab Code}{subsection.10.3.2}{}} \@writefile{cod}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{1}}{}}{130}{codemass.10.1}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{130}{codemass.10.1}\protected@file@percent } -\newlabel{85@xvr}{{}{130}} -\newlabel{85@vr}{{}{130}} -\newlabel{sci:dcmotor-clock}{{10.{1}}{130}{Scilab Code}{codemass.10.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{130}{lstlisting.10.-96}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{2}}{}}{130}{codemass.10.2}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{130}{codemass.10.2}\protected@file@percent } -\newlabel{86@xvr}{{}{130}} -\newlabel{86@vr}{{}{130}} -\newlabel{sci:dcmotor-both}{{10.{2}}{130}{Scilab Code}{codemass.10.2}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash both.sce}{130}{lstlisting.10.-97}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{3}}{}}{131}{codemass.10.3}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{131}{codemass.10.3}\protected@file@percent } -\newlabel{87@xvr}{{}{131}} -\newlabel{87@vr}{{}{131}} -\newlabel{sci:dcmotor-loop}{{10.{3}}{131}{Scilab Code}{codemass.10.3}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash loop.sce}{131}{lstlisting.10.-98}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {10.4}Controlling the DC motor from Xcos}{131}{section.10.4}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {10.5}{\ignorespaces Control of DC motor for a specified time from Xcos}}{132}{figure.caption.121}\protected@file@percent } -\newlabel{89@xvr}{{}{132}} -\newlabel{89@vr}{{}{132}} -\newlabel{fig:dcmotor-clock}{{10.5}{132}{Control of DC motor for a specified time from Xcos}{figure.caption.121}{}} -\@writefile{lot}{\contentsline {table}{\numberline {10.2}{\ignorespaces Xcos parameters to drive the DC motor for a specified time\relax }}{132}{table.caption.122}\protected@file@percent } -\newlabel{tab:dcmotor-clock}{{10.2}{132}{Xcos parameters to drive the DC motor for a specified time\relax }{table.caption.122}{}} -\newlabel{90@xvr}{{}{132}} -\newlabel{90@vr}{{}{132}} -\@writefile{lof}{\contentsline {figure}{\numberline {10.6}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{133}{figure.caption.123}\protected@file@percent } -\newlabel{92@xvr}{{}{133}} -\newlabel{92@vr}{{}{133}} -\newlabel{fig:dcmotor-both}{{10.6}{133}{Xcos control of the DC motor in forward and reverse directions}{figure.caption.123}{}} -\@writefile{lot}{\contentsline {table}{\numberline {10.3}{\ignorespaces Xcos parameters to drive the DC motor in forward and reverse directions\relax }}{133}{table.caption.124}\protected@file@percent } -\newlabel{tab:dcmotor-both}{{10.3}{133}{Xcos parameters to drive the DC motor in forward and reverse directions\relax }{table.caption.124}{}} -\newlabel{93@xvr}{{}{133}} -\newlabel{93@vr}{{}{133}} -\@writefile{lof}{\contentsline {figure}{\numberline {10.7}{\ignorespaces Xcos control of the DC motor in both directions in a loop}}{134}{figure.caption.125}\protected@file@percent } -\newlabel{95@xvr}{{}{134}} -\newlabel{95@vr}{{}{134}} -\newlabel{fig:dcmotor-loop}{{10.7}{134}{Xcos control of the DC motor in both directions in a loop}{figure.caption.125}{}} -\@writefile{thm}{\contentsline {egmass}{{Exercise}{10.{3}}{}}{134}{egmass.10.3}\protected@file@percent } -\@writefile{lot}{\contentsline {table}{\numberline {10.4}{\ignorespaces Xcos parameters to drive the DC motor in a loop\relax }}{135}{table.caption.126}\protected@file@percent } -\newlabel{tab:dcmotor-loop}{{10.4}{135}{Xcos parameters to drive the DC motor in a loop\relax }{table.caption.126}{}} -\newlabel{96@xvr}{{}{135}} -\newlabel{96@vr}{{}{135}} +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{1}}{}}{212}{codemass.10.1}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{212}{codemass.10.1}\protected@file@percent } +\newlabel{121@xvr}{{}{212}} +\newlabel{121@vr}{{}{212}} +\newlabel{sci:dcmotor-clock}{{10.{1}}{212}{Scilab Code}{codemass.10.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{212}{lstlisting.10.-209}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{2}}{}}{212}{codemass.10.2}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{212}{codemass.10.2}\protected@file@percent } +\newlabel{122@xvr}{{}{212}} +\newlabel{122@vr}{{}{212}} +\newlabel{sci:dcmotor-both}{{10.{2}}{212}{Scilab Code}{codemass.10.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash both.sce}{212}{lstlisting.10.-210}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{3}}{}}{213}{codemass.10.3}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{213}{codemass.10.3}\protected@file@percent } +\newlabel{123@xvr}{{}{213}} +\newlabel{123@vr}{{}{213}} +\newlabel{sci:dcmotor-loop}{{10.{3}}{213}{Scilab Code}{codemass.10.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash loop.sce}{213}{lstlisting.10.-211}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {10.4}Controlling the DC motor from Xcos}{213}{section.10.4}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {10.5}{\ignorespaces Control of DC motor for a specified time from Xcos}}{214}{figure.caption.143}\protected@file@percent } +\newlabel{125@xvr}{{}{214}} +\newlabel{125@vr}{{}{214}} +\newlabel{fig:dcmotor-clock}{{10.5}{214}{Control of DC motor for a specified time from Xcos}{figure.caption.143}{}} +\@writefile{lot}{\contentsline {table}{\numberline {10.2}{\ignorespaces Xcos parameters to drive the DC motor for a specified time\relax }}{214}{table.caption.144}\protected@file@percent } +\newlabel{tab:dcmotor-clock}{{10.2}{214}{Xcos parameters to drive the DC motor for a specified time\relax }{table.caption.144}{}} +\newlabel{126@xvr}{{}{214}} +\newlabel{126@vr}{{}{214}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.6}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{215}{figure.caption.145}\protected@file@percent } +\newlabel{128@xvr}{{}{215}} +\newlabel{128@vr}{{}{215}} +\newlabel{fig:dcmotor-both}{{10.6}{215}{Xcos control of the DC motor in forward and reverse directions}{figure.caption.145}{}} +\@writefile{lot}{\contentsline {table}{\numberline {10.3}{\ignorespaces Xcos parameters to drive the DC motor in forward and reverse directions\relax }}{215}{table.caption.146}\protected@file@percent } +\newlabel{tab:dcmotor-both}{{10.3}{215}{Xcos parameters to drive the DC motor in forward and reverse directions\relax }{table.caption.146}{}} +\newlabel{129@xvr}{{}{215}} +\newlabel{129@vr}{{}{215}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.7}{\ignorespaces Xcos control of the DC motor in both directions in a loop}}{216}{figure.caption.147}\protected@file@percent } +\newlabel{131@xvr}{{}{216}} +\newlabel{131@vr}{{}{216}} +\newlabel{fig:dcmotor-loop}{{10.7}{216}{Xcos control of the DC motor in both directions in a loop}{figure.caption.147}{}} +\@writefile{thm}{\contentsline {egmass}{{Exercise}{10.{3}}{}}{216}{egmass.10.3}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {10.5}Controlling the DC motor from Python}{216}{section.10.5}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.5.1}Controlling the DC motor}{216}{subsection.10.5.1}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {10.4}{\ignorespaces Xcos parameters to drive the DC motor in a loop\relax }}{217}{table.caption.148}\protected@file@percent } +\newlabel{tab:dcmotor-loop}{{10.4}{217}{Xcos parameters to drive the DC motor in a loop\relax }{table.caption.148}{}} +\newlabel{132@xvr}{{}{217}} +\newlabel{132@vr}{{}{217}} +\@writefile{toc}{\contentsline {paragraph}{Note:}{217}{section*.149}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash clock.py}{218}{lstlisting.10.-213}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash clock.py}{218}{lstlisting.10.-215}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash clock.py}{218}{lstlisting.10.-216}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash clock.py}{218}{lstlisting.10.-217}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{218}{section*.150}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash both.py}{219}{lstlisting.10.-218}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash both.py}{219}{lstlisting.10.-219}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.5.2}Python Code}{219}{subsection.10.5.2}\protected@file@percent } +\newlabel{sec:dcmotor-python-code}{{10.5.2}{219}{Python Code}{subsection.10.5.2}{}} +\@writefile{pyd}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{10.{1}}{}}{219}{pymass.10.1}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{219}{pymass.10.1}\protected@file@percent } +\newlabel{133@xvr}{{}{219}} +\newlabel{133@vr}{{}{219}} +\newlabel{py:dcmotor-clock}{{10.{1}}{219}{Python Code}{pymass.10.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash clock.py}{219}{lstlisting.10.-220}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{10.{2}}{}}{220}{pymass.10.2}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{220}{pymass.10.2}\protected@file@percent } +\newlabel{134@xvr}{{}{220}} +\newlabel{134@vr}{{}{220}} +\newlabel{py:dcmotor-both}{{10.{2}}{220}{Python Code}{pymass.10.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash both.py}{220}{lstlisting.10.-221}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{10.{3}}{}}{221}{pymass.10.3}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{221}{pymass.10.3}\protected@file@percent } +\newlabel{135@xvr}{{}{221}} +\newlabel{135@vr}{{}{221}} +\newlabel{py:dcmotor-loop}{{10.{3}}{221}{Python Code}{pymass.10.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash loop.py}{221}{lstlisting.10.-222}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {10.6}Controlling the DC motor from Julia}{222}{section.10.6}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.6.1}Controlling the DC motor}{222}{subsection.10.6.1}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{222}{section*.151}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash clock.jl}{223}{lstlisting.10.-224}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash clock.jl}{223}{lstlisting.10.-226}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash clock.jl}{223}{lstlisting.10.-227}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash clock.jl}{223}{lstlisting.10.-228}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{224}{section*.152}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash both.jl}{224}{lstlisting.10.-229}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash both.jl}{224}{lstlisting.10.-230}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.6.2}Julia Code}{224}{subsection.10.6.2}\protected@file@percent } +\newlabel{sec:dcmotor-julia-code}{{10.6.2}{224}{Julia Code}{subsection.10.6.2}{}} +\@writefile{juliad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{1}}{}}{224}{juliamass.10.1}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{224}{juliamass.10.1}\protected@file@percent } +\newlabel{136@xvr}{{}{224}} +\newlabel{136@vr}{{}{224}} +\newlabel{julia:dcmotor-clock}{{10.{1}}{224}{Julia Code}{juliamass.10.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash clock.jl}{225}{lstlisting.10.-231}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{2}}{}}{225}{juliamass.10.2}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{225}{juliamass.10.2}\protected@file@percent } +\newlabel{137@xvr}{{}{225}} +\newlabel{137@vr}{{}{225}} +\newlabel{julia:dcmotor-both}{{10.{2}}{225}{Julia Code}{juliamass.10.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash both.jl}{225}{lstlisting.10.-232}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{3}}{}}{225}{juliamass.10.3}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{225}{juliamass.10.3}\protected@file@percent } +\newlabel{138@xvr}{{}{225}} +\newlabel{138@vr}{{}{225}} +\newlabel{julia:dcmotor-loop}{{10.{3}}{225}{Julia Code}{juliamass.10.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash loop.jl}{225}{lstlisting.10.-233}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {10.7}Controlling the DC motor from OpenModelica}{226}{section.10.7}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.7.1}Controlling the DC motor}{226}{subsection.10.7.1}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{226}{section*.153}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash clock.mo}{226}{lstlisting.10.-235}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash clock.mo}{227}{lstlisting.10.-237}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash clock.mo}{227}{lstlisting.10.-238}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash clock.mo}{227}{lstlisting.10.-239}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{227}{section*.154}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash both.mo}{228}{lstlisting.10.-240}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash both.mo}{228}{lstlisting.10.-241}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.7.2}OpenModelica Code}{228}{subsection.10.7.2}\protected@file@percent } +\newlabel{sec:dcmotor-OpenModelica-code}{{10.7.2}{228}{OpenModelica Code}{subsection.10.7.2}{}} +\@writefile{OpenModelicad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{1}}{}}{228}{OpenModelicamass.10.1}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{228}{OpenModelicamass.10.1}\protected@file@percent } +\newlabel{OpenModelica:dcmotor-clock}{{10.{1}}{228}{OpenModelica Code}{OpenModelicamass.10.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash clock.mo}{228}{lstlisting.10.-242}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{2}}{}}{229}{OpenModelicamass.10.2}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{229}{OpenModelicamass.10.2}\protected@file@percent } +\newlabel{OpenModelica:dcmotor-both}{{10.{2}}{229}{OpenModelica Code}{OpenModelicamass.10.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash both.mo}{229}{lstlisting.10.-243}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{3}}{}}{229}{OpenModelicamass.10.3}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{229}{OpenModelicamass.10.3}\protected@file@percent } +\newlabel{OpenModelica:dcmotor-loop}{{10.{3}}{229}{OpenModelica Code}{OpenModelicamass.10.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash loop.mo}{229}{lstlisting.10.-244}\protected@file@percent } \citation{modbus} +\citation{modbus-paper} \citation{simplymodbus} -\@writefile{toc}{\contentsline {chapter}{\numberline {11}Implementation of Modbus Protocol}{137}{chapter.11}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{\numberline {11}Implementation of Modbus Protocol}{231}{chapter.11}\protected@file@percent } \@writefile{lof}{\addvspace {10\p@ }} \@writefile{lot}{\addvspace {10\p@ }} -\newlabel{modbus}{{11}{137}{Implementation of Modbus Protocol}{chapter.11}{}} -\@writefile{toc}{\contentsline {section}{\numberline {11.1}Preliminaries}{137}{section.11.1}\protected@file@percent } +\newlabel{modbus}{{11}{231}{Implementation of Modbus Protocol}{chapter.11}{}} +\@writefile{toc}{\contentsline {section}{\numberline {11.1}Preliminaries}{231}{section.11.1}\protected@file@percent } \citation{simplymodbus} -\@writefile{lof}{\contentsline {figure}{\numberline {11.1}{\ignorespaces Block diagram representation of the Protocol\relax }}{138}{figure.caption.127}\protected@file@percent } -\newlabel{mod-block}{{11.1}{138}{Block diagram representation of the Protocol\relax }{figure.caption.127}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.2}{\ignorespaces Master-Slave Query-Response Cycle\relax }}{138}{figure.caption.128}\protected@file@percent } -\newlabel{mod-master-slave}{{11.2}{138}{Master-Slave Query-Response Cycle\relax }{figure.caption.128}{}} -\@writefile{lot}{\contentsline {table}{\numberline {11.1}{\ignorespaces Pins available on RS485 and their usage\relax }}{139}{table.caption.129}\protected@file@percent } -\newlabel{tab:rs-485-pins}{{11.1}{139}{Pins available on RS485 and their usage\relax }{table.caption.129}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.3}{\ignorespaces Pins in RS485 module\relax }}{139}{figure.caption.130}\protected@file@percent } -\newlabel{rs-485}{{11.3}{139}{Pins in RS485 module\relax }{figure.caption.130}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {11.1.1}Energy meter}{139}{subsection.11.1.1}\protected@file@percent } -\newlabel{sec:energy-meter}{{11.1.1}{139}{Energy meter}{subsection.11.1.1}{}} -\@writefile{lot}{\contentsline {table}{\numberline {11.2}{\ignorespaces Operations supported by Modbus RTU\relax }}{140}{table.caption.131}\protected@file@percent } -\newlabel{tab:modbus-fun-codes}{{11.2}{140}{Operations supported by Modbus RTU\relax }{table.caption.131}{}} -\@writefile{lot}{\contentsline {table}{\numberline {11.3}{\ignorespaces Individual parameter address in EM6400\relax }}{140}{table.caption.132}\protected@file@percent } -\newlabel{tab:params-addr}{{11.3}{140}{Individual parameter address in EM6400\relax }{table.caption.132}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.1}{\ignorespaces Block diagram representation of the Protocol\relax }}{232}{figure.caption.155}\protected@file@percent } +\newlabel{mod-block}{{11.1}{232}{Block diagram representation of the Protocol\relax }{figure.caption.155}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.2}{\ignorespaces Master-Slave Query-Response Cycle\relax }}{232}{figure.caption.156}\protected@file@percent } +\newlabel{mod-master-slave}{{11.2}{232}{Master-Slave Query-Response Cycle\relax }{figure.caption.156}{}} +\@writefile{lot}{\contentsline {table}{\numberline {11.1}{\ignorespaces Pins available on RS485 and their usage\relax }}{233}{table.caption.157}\protected@file@percent } +\newlabel{tab:rs-485-pins}{{11.1}{233}{Pins available on RS485 and their usage\relax }{table.caption.157}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.3}{\ignorespaces Pins in RS485 module\relax }}{233}{figure.caption.158}\protected@file@percent } +\newlabel{rs-485}{{11.3}{233}{Pins in RS485 module\relax }{figure.caption.158}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {11.1.1}Energy meter}{233}{subsection.11.1.1}\protected@file@percent } +\newlabel{sec:energy-meter}{{11.1.1}{233}{Energy meter}{subsection.11.1.1}{}} +\@writefile{lot}{\contentsline {table}{\numberline {11.2}{\ignorespaces Operations supported by Modbus RTU\relax }}{234}{table.caption.159}\protected@file@percent } +\newlabel{tab:modbus-fun-codes}{{11.2}{234}{Operations supported by Modbus RTU\relax }{table.caption.159}{}} +\@writefile{lot}{\contentsline {table}{\numberline {11.3}{\ignorespaces Individual parameter address in EM6400\relax }}{234}{table.caption.160}\protected@file@percent } +\newlabel{tab:params-addr}{{11.3}{234}{Individual parameter address in EM6400\relax }{table.caption.160}{}} \citation{online-crc} -\@writefile{lot}{\contentsline {table}{\numberline {11.4}{\ignorespaces A request packet to access V1 in EM6400\relax }}{141}{table.caption.134}\protected@file@percent } -\newlabel{tab:params-rq}{{11.4}{141}{A request packet to access V1 in EM6400\relax }{table.caption.134}{}} -\@writefile{toc}{\contentsline {paragraph}{Note:}{141}{section*.133}\protected@file@percent } -\@writefile{lot}{\contentsline {table}{\numberline {11.5}{\ignorespaces A response packet to access V1 in EM6400\relax }}{142}{table.caption.135}\protected@file@percent } -\newlabel{tab:params-rp}{{11.5}{142}{A response packet to access V1 in EM6400\relax }{table.caption.135}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {11.1.2}Endianness}{142}{subsection.11.1.2}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {11.4}{\ignorespaces A request packet to access V1 in EM6400\relax }}{235}{table.caption.162}\protected@file@percent } +\newlabel{tab:params-rq}{{11.4}{235}{A request packet to access V1 in EM6400\relax }{table.caption.162}{}} +\@writefile{toc}{\contentsline {paragraph}{Note:}{235}{section*.161}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {11.5}{\ignorespaces A response packet to access V1 in EM6400\relax }}{236}{table.caption.163}\protected@file@percent } +\newlabel{tab:params-rp}{{11.5}{236}{A response packet to access V1 in EM6400\relax }{table.caption.163}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {11.1.2}Endianness}{236}{subsection.11.1.2}\protected@file@percent } +\@writefile{lot}{\contentsline {table}{\numberline {11.6}{\ignorespaces Memory storage of a four-byte integer in little-endian and big-endian\relax }}{237}{table.caption.164}\protected@file@percent } +\newlabel{tab:memory-storage}{{11.6}{237}{Memory storage of a four-byte integer in little-endian and big-endian\relax }{table.caption.164}{}} \citation{ieee-754-conv} -\@writefile{lot}{\contentsline {table}{\numberline {11.6}{\ignorespaces Memory storage of a four-byte integer in little-endian and big-endian\relax }}{143}{table.caption.136}\protected@file@percent } -\newlabel{tab:memory-storage}{{11.6}{143}{Memory storage of a four-byte integer in little-endian and big-endian\relax }{table.caption.136}{}} -\citation{modbus-paper} -\@writefile{toc}{\contentsline {section}{\numberline {11.2}Objective}{144}{section.11.2}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {11.3}Manifestation of Modbus protocol with Arduino Uno\ and energy meter}{144}{section.11.3}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {11.4}{\ignorespaces Block diagram for reading the parameters in energy meter\relax }}{145}{figure.caption.137}\protected@file@percent } -\newlabel{fig:block-diagram}{{11.4}{145}{Block diagram for reading the parameters in energy meter\relax }{figure.caption.137}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.5}{\ignorespaces Experimental set up for reading energy meter\relax }}{145}{figure.caption.138}\protected@file@percent } -\newlabel{fig:full-set-up}{{11.5}{145}{Experimental set up for reading energy meter\relax }{figure.caption.138}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {11.3.1}Software}{146}{subsection.11.3.1}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {11.6}{\ignorespaces Flowchart of Arduino firmware\relax }}{147}{figure.caption.139}\protected@file@percent } -\newlabel{fig:modbus-firmware}{{11.6}{147}{Flowchart of Arduino firmware\relax }{figure.caption.139}{}} -\@writefile{toc}{\contentsline {subsection}{\numberline {11.3.2}Output in the Scilab Console}{147}{subsection.11.3.2}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {11.7}{\ignorespaces Flowchart of the steps happening in Scilab code\relax }}{148}{figure.caption.140}\protected@file@percent } -\newlabel{fig:flow-chart}{{11.7}{148}{Flowchart of the steps happening in Scilab code\relax }{figure.caption.140}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.8}{\ignorespaces Single phase current output on Scilab Console\relax }}{148}{figure.caption.141}\protected@file@percent } -\newlabel{fig:current-console}{{11.8}{148}{Single phase current output on Scilab Console\relax }{figure.caption.141}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.9}{\ignorespaces Single phase current output in energy meter\relax }}{149}{figure.caption.142}\protected@file@percent } -\newlabel{fig:current-meter}{{11.9}{149}{Single phase current output in energy meter\relax }{figure.caption.142}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.10}{\ignorespaces Single phase voltage output on Scilab Console\relax }}{149}{figure.caption.143}\protected@file@percent } -\newlabel{fig:voltage-console}{{11.10}{149}{Single phase voltage output on Scilab Console\relax }{figure.caption.143}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.11}{\ignorespaces Single phase voltage output in energy meter\relax }}{150}{figure.caption.144}\protected@file@percent } -\newlabel{fig:voltage-meter}{{11.11}{150}{Single phase voltage output in energy meter\relax }{figure.caption.144}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.12}{\ignorespaces Single phase active power output on Scilab Console\relax }}{150}{figure.caption.145}\protected@file@percent } -\newlabel{fig:power-console}{{11.12}{150}{Single phase active power output on Scilab Console\relax }{figure.caption.145}{}} -\@writefile{lof}{\contentsline {figure}{\numberline {11.13}{\ignorespaces Single phase active power output in energy meter\relax }}{151}{figure.caption.146}\protected@file@percent } -\newlabel{fig:power-meter}{{11.13}{151}{Single phase active power output in energy meter\relax }{figure.caption.146}{}} -\@writefile{toc}{\contentsline {section}{\numberline {11.4}Accessing the electrical parameters from Scilab}{151}{section.11.4}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {11.4.1}Accessing the electrical parameters}{151}{subsection.11.4.1}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {11.4.2}Arduino Firmware}{151}{subsection.11.4.2}\protected@file@percent } -\newlabel{sec:firmware-modbus}{{11.4.2}{151}{Arduino Firmware}{subsection.11.4.2}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.4}{\ignorespaces Block diagram for reading the parameters in energy meter\relax }}{238}{figure.caption.165}\protected@file@percent } +\newlabel{fig:block-diagram}{{11.4}{238}{Block diagram for reading the parameters in energy meter\relax }{figure.caption.165}{}} +\@writefile{toc}{\contentsline {section}{\numberline {11.2}Setup for the experiment}{238}{section.11.2}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.5}{\ignorespaces Experimental set up for reading energy meter\relax }}{239}{figure.caption.166}\protected@file@percent } +\newlabel{fig:full-set-up}{{11.5}{239}{Experimental set up for reading energy meter\relax }{figure.caption.166}{}} +\@writefile{toc}{\contentsline {section}{\numberline {11.3}Manifestation of Modbus protocol through Scilab}{239}{section.11.3}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.3.1}Software for the experiment}{240}{subsection.11.3.1}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.6}{\ignorespaces Flowchart of Arduino firmware\relax }}{241}{figure.caption.167}\protected@file@percent } +\newlabel{fig:modbus-firmware}{{11.6}{241}{Flowchart of Arduino firmware\relax }{figure.caption.167}{}} +\@writefile{toc}{\contentsline {section}{\numberline {11.4}Reading the electrical parameters from Scilab}{241}{section.11.4}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.4.1}Reading the electrical parameters}{241}{subsection.11.4.1}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.7}{\ignorespaces Flowchart of the steps happening in Scilab code\relax }}{242}{figure.caption.168}\protected@file@percent } +\newlabel{fig:flow-chart}{{11.7}{242}{Flowchart of the steps happening in Scilab code\relax }{figure.caption.168}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {11.4.2}Arduino Firmware}{242}{subsection.11.4.2}\protected@file@percent } +\newlabel{sec:firmware-modbus}{{11.4.2}{242}{Arduino Firmware}{subsection.11.4.2}{}} \@writefile{ard}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{11.{1}}{}}{151}{ardmass.11.1}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {11.{1}}First 10 lines of the firmware for Modbus Energy Meter experiment}{151}{ardmass.11.1}\protected@file@percent } -\newlabel{97@xvr}{{}{151}} -\newlabel{97@vr}{{}{151}} -\newlabel{ard:firmware-modbus}{{11.{1}}{151}{Arduino Firmware}{ardmass.11.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send\textunderscore packet.ino}{151}{lstlisting.11.-99}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {11.4.3}Scilab Code}{152}{subsection.11.4.3}\protected@file@percent } -\newlabel{sec:modbus-scilab-code}{{11.4.3}{152}{Scilab Code}{subsection.11.4.3}{}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{11.{1}}{}}{242}{ardmass.11.1}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {11.{1}}First 10 lines of the firmware for Modbus Energy Meter experiment}{242}{ardmass.11.1}\protected@file@percent } +\newlabel{139@xvr}{{}{242}} +\newlabel{139@vr}{{}{242}} +\newlabel{ard:firmware-modbus}{{11.{1}}{242}{Arduino Firmware}{ardmass.11.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send\textunderscore packet.ino}{242}{lstlisting.11.-245}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.4.3}Scilab Code}{243}{subsection.11.4.3}\protected@file@percent } +\newlabel{sec:modbus-scilab-code}{{11.4.3}{243}{Scilab Code}{subsection.11.4.3}{}} \@writefile{cod}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{1}}{}}{152}{codemass.11.1}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {11.{1}}First 10 lines of the function for scifunc block}{152}{codemass.11.1}\protected@file@percent } -\newlabel{98@xvr}{{}{152}} -\newlabel{98@vr}{{}{152}} -\newlabel{sci:current-modbus}{{11.{1}}{152}{Scilab Code}{codemass.11.1}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore val.sce}{152}{lstlisting.11.-100}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{2}}{}}{152}{codemass.11.2}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {11.{2}}First 10 lines of the code for Single Phase Current Output}{152}{codemass.11.2}\protected@file@percent } -\newlabel{99@xvr}{{}{152}} -\newlabel{99@vr}{{}{152}} -\newlabel{sci:current-modbus}{{11.{2}}{152}{Scilab Code}{codemass.11.2}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore current.sci}{152}{lstlisting.11.-101}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{3}}{}}{152}{codemass.11.3}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Voltage Output}{152}{codemass.11.3}\protected@file@percent } -\newlabel{100@xvr}{{}{152}} -\newlabel{100@vr}{{}{152}} -\newlabel{sci:voltage-modbus}{{11.{3}}{152}{Scilab Code}{codemass.11.3}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore voltage.sci}{153}{lstlisting.11.-102}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{4}}{}}{153}{codemass.11.4}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {11.{4}}First 10 lines of the code for Single Phase Active Power Output}{153}{codemass.11.4}\protected@file@percent } -\newlabel{101@xvr}{{}{153}} -\newlabel{101@vr}{{}{153}} -\newlabel{sci:modbus-power}{{11.{4}}{153}{Scilab Code}{codemass.11.4}{}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore active\textunderscore power.sci}{153}{lstlisting.11.-103}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {11.5}Reading Parameters from Xcos}{153}{section.11.5}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{1}}{}}{243}{codemass.11.1}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {11.{1}}First 10 lines of the function for scifunc block}{243}{codemass.11.1}\protected@file@percent } +\newlabel{140@xvr}{{}{243}} +\newlabel{140@vr}{{}{243}} +\newlabel{sci:current-modbus}{{11.{1}}{243}{Scilab Code}{codemass.11.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore val.sce}{243}{lstlisting.11.-246}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{2}}{}}{243}{codemass.11.2}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {11.{2}}First 10 lines of the code for Single Phase Current Output}{243}{codemass.11.2}\protected@file@percent } +\newlabel{141@xvr}{{}{243}} +\newlabel{141@vr}{{}{243}} +\newlabel{sci:current-modbus}{{11.{2}}{243}{Scilab Code}{codemass.11.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore current.sci}{243}{lstlisting.11.-247}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{3}}{}}{243}{codemass.11.3}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Voltage Output}{243}{codemass.11.3}\protected@file@percent } +\newlabel{142@xvr}{{}{243}} +\newlabel{142@vr}{{}{243}} +\newlabel{sci:voltage-modbus}{{11.{3}}{243}{Scilab Code}{codemass.11.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore voltage.sci}{243}{lstlisting.11.-248}\protected@file@percent } +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{11.{4}}{}}{244}{codemass.11.4}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {11.{4}}First 10 lines of the code for Single Phase Active Power Output}{244}{codemass.11.4}\protected@file@percent } +\newlabel{143@xvr}{{}{244}} +\newlabel{143@vr}{{}{244}} +\newlabel{sci:modbus-power}{{11.{4}}{244}{Scilab Code}{codemass.11.4}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read\textunderscore active\textunderscore power.sci}{244}{lstlisting.11.-249}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note: }{244}{section*.169}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.4.4}Output in the Scilab Console}{244}{subsection.11.4.4}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.8}{\ignorespaces Single phase current output on Scilab Console\relax }}{245}{figure.caption.170}\protected@file@percent } +\newlabel{fig:current-console}{{11.8}{245}{Single phase current output on Scilab Console\relax }{figure.caption.170}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.9}{\ignorespaces Single phase current output in energy meter\relax }}{245}{figure.caption.171}\protected@file@percent } +\newlabel{fig:current-meter}{{11.9}{245}{Single phase current output in energy meter\relax }{figure.caption.171}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.10}{\ignorespaces Single phase voltage output on Scilab Console\relax }}{246}{figure.caption.172}\protected@file@percent } +\newlabel{fig:voltage-console}{{11.10}{246}{Single phase voltage output on Scilab Console\relax }{figure.caption.172}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.11}{\ignorespaces Single phase voltage output in energy meter\relax }}{246}{figure.caption.173}\protected@file@percent } +\newlabel{fig:voltage-meter}{{11.11}{246}{Single phase voltage output in energy meter\relax }{figure.caption.173}{}} +\@writefile{toc}{\contentsline {section}{\numberline {11.5}Reading the electrical parameters from Xcos}{246}{section.11.5}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.12}{\ignorespaces Single phase active power output on Scilab Console\relax }}{247}{figure.caption.174}\protected@file@percent } +\newlabel{fig:power-console}{{11.12}{247}{Single phase active power output on Scilab Console\relax }{figure.caption.174}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.13}{\ignorespaces Single phase active power output in energy meter\relax }}{247}{figure.caption.175}\protected@file@percent } +\newlabel{fig:power-meter}{{11.13}{247}{Single phase active power output in energy meter\relax }{figure.caption.175}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.14}{\ignorespaces Xcos diagram to read Energy Meter values}}{248}{figure.caption.176}\protected@file@percent } +\newlabel{145@xvr}{{}{248}} +\newlabel{145@vr}{{}{248}} +\newlabel{fig:mod-read}{{11.14}{248}{Xcos diagram to read Energy Meter values}{figure.caption.176}{}} +\@writefile{lot}{\contentsline {table}{\numberline {11.7}{\ignorespaces Xcos parameters to read Energy Meter\relax }}{248}{table.caption.177}\protected@file@percent } +\newlabel{tab:mod-xcos-read}{{11.7}{248}{Xcos parameters to read Energy Meter\relax }{table.caption.177}{}} +\@writefile{toc}{\contentsline {section}{\numberline {11.6}Manifestation of Modbus protocol through Python}{248}{section.11.6}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note: }{249}{section*.178}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.6.1}Software for the experiment}{249}{subsection.11.6.1}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.15}{\ignorespaces Flowchart of Arduino firmware\relax }}{250}{figure.caption.179}\protected@file@percent } +\newlabel{fig:modbus-firmware}{{11.15}{250}{Flowchart of Arduino firmware\relax }{figure.caption.179}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.16}{\ignorespaces Flowchart of the steps happening in Python code\relax }}{251}{figure.caption.180}\protected@file@percent } +\newlabel{fig:flow-chart}{{11.16}{251}{Flowchart of the steps happening in Python code\relax }{figure.caption.180}{}} +\@writefile{toc}{\contentsline {section}{\numberline {11.7}Reading the electrical parameters from Python}{251}{section.11.7}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.1}Reading the electrical parameters}{251}{subsection.11.7.1}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.2}Arduino Firmware}{251}{subsection.11.7.2}\protected@file@percent } +\newlabel{sec:firmware-modbus}{{11.7.2}{251}{Arduino Firmware}{subsection.11.7.2}{}} +\@writefile{ard}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{11.{2}}{}}{251}{ardmass.11.2}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {11.{2}}First 10 lines of the firmware for Modbus Energy Meter experiment}{251}{ardmass.11.2}\protected@file@percent } +\newlabel{146@xvr}{{}{251}} +\newlabel{146@vr}{{}{251}} +\newlabel{ard:firmware-modbus}{{11.{2}}{251}{Arduino Firmware}{ardmass.11.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send\textunderscore packet.ino}{252}{lstlisting.11.-250}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.7.3}Python Code}{252}{subsection.11.7.3}\protected@file@percent } +\newlabel{sec:modbus-python-code}{{11.7.3}{252}{Python Code}{subsection.11.7.3}{}} +\@writefile{pyd}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {pymass}{{Python Code}{11.{1}}{}}{252}{pymass.11.1}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{252}{pymass.11.1}\protected@file@percent } +\newlabel{147@xvr}{{}{252}} +\newlabel{147@vr}{{}{252}} +\newlabel{py:current-modbus}{{11.{1}}{252}{Python Code}{pymass.11.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read\textunderscore current.py}{252}{lstlisting.11.-251}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{11.{2}}{}}{252}{pymass.11.2}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{252}{pymass.11.2}\protected@file@percent } +\newlabel{148@xvr}{{}{252}} +\newlabel{148@vr}{{}{252}} +\newlabel{py:voltage-modbus}{{11.{2}}{252}{Python Code}{pymass.11.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read\textunderscore voltage.py}{252}{lstlisting.11.-252}\protected@file@percent } +\@writefile{thm}{\contentsline {pymass}{{Python Code}{11.{3}}{}}{253}{pymass.11.3}\protected@file@percent } +\@writefile{pyd}{\contentsline {section}{\numberline {11.{3}}Code for Single Phase Active Power Output}{253}{pymass.11.3}\protected@file@percent } +\newlabel{149@xvr}{{}{253}} +\newlabel{149@vr}{{}{253}} +\newlabel{py:modbus-power}{{11.{3}}{253}{Python Code}{pymass.11.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read\textunderscore active\textunderscore power.py}{253}{lstlisting.11.-253}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {11.8}Manifestation of Modbus protocol through Julia}{253}{section.11.8}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note: }{253}{section*.181}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.8.1}Software for the experiment}{254}{subsection.11.8.1}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {11.9}Reading the electrical parameters from Julia}{254}{section.11.9}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.9.1}Reading the electrical parameters}{254}{subsection.11.9.1}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.17}{\ignorespaces Flowchart of Arduino firmware\relax }}{255}{figure.caption.182}\protected@file@percent } +\newlabel{fig:modbus-firmware}{{11.17}{255}{Flowchart of Arduino firmware\relax }{figure.caption.182}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {11.9.2}Arduino Firmware}{255}{subsection.11.9.2}\protected@file@percent } +\newlabel{sec:firmware-modbus}{{11.9.2}{255}{Arduino Firmware}{subsection.11.9.2}{}} +\@writefile{ard}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{11.{3}}{}}{255}{ardmass.11.3}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {11.{3}}First 10 lines of the firmware for Modbus Energy Meter experiment}{255}{ardmass.11.3}\protected@file@percent } +\newlabel{150@xvr}{{}{255}} +\newlabel{150@vr}{{}{255}} +\newlabel{ard:firmware-modbus}{{11.{3}}{255}{Arduino Firmware}{ardmass.11.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send\textunderscore packet.ino}{255}{lstlisting.11.-254}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.18}{\ignorespaces Flowchart of the steps happening in Julia code\relax }}{256}{figure.caption.183}\protected@file@percent } +\newlabel{fig:flow-chart}{{11.18}{256}{Flowchart of the steps happening in Julia code\relax }{figure.caption.183}{}} +\@writefile{toc}{\contentsline {subsection}{\numberline {11.9.3}Julia Code}{256}{subsection.11.9.3}\protected@file@percent } +\newlabel{sec:modbus-julia-code}{{11.9.3}{256}{Julia Code}{subsection.11.9.3}{}} +\@writefile{juliad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{11.{1}}{}}{256}{juliamass.11.1}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{256}{juliamass.11.1}\protected@file@percent } +\newlabel{151@xvr}{{}{256}} +\newlabel{151@vr}{{}{256}} +\newlabel{julia:current-modbus}{{11.{1}}{256}{Julia Code}{juliamass.11.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readCurrent.jl}{256}{lstlisting.11.-255}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{11.{2}}{}}{257}{juliamass.11.2}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{257}{juliamass.11.2}\protected@file@percent } +\newlabel{152@xvr}{{}{257}} +\newlabel{152@vr}{{}{257}} +\newlabel{julia:voltage-modbus}{{11.{2}}{257}{Julia Code}{juliamass.11.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readVoltage.jl}{257}{lstlisting.11.-256}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{11.{3}}{}}{257}{juliamass.11.3}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Active Power Output}{257}{juliamass.11.3}\protected@file@percent } +\newlabel{153@xvr}{{}{257}} +\newlabel{153@vr}{{}{257}} +\newlabel{julia:modbus-power}{{11.{3}}{257}{Julia Code}{juliamass.11.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readPower.jl}{257}{lstlisting.11.-257}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {11.10}Manifestation of Modbus protocol through OpenModelica}{257}{section.11.10}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note: }{258}{section*.184}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.10.1}Software for the experiment}{258}{subsection.11.10.1}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {11.19}{\ignorespaces Flowchart of Arduino firmware\relax }}{259}{figure.caption.185}\protected@file@percent } +\newlabel{fig:modbus-firmware}{{11.19}{259}{Flowchart of Arduino firmware\relax }{figure.caption.185}{}} +\@writefile{lof}{\contentsline {figure}{\numberline {11.20}{\ignorespaces Flowchart of the steps happening in OpenModelica model\relax }}{260}{figure.caption.186}\protected@file@percent } +\newlabel{fig:flow-chart}{{11.20}{260}{Flowchart of the steps happening in OpenModelica model\relax }{figure.caption.186}{}} +\@writefile{toc}{\contentsline {section}{\numberline {11.11}Reading the electrical parameters from OpenModelica}{260}{section.11.11}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.11.1}Reading the electrical parameters}{260}{subsection.11.11.1}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.11.2}Arduino Firmware}{261}{subsection.11.11.2}\protected@file@percent } +\newlabel{sec:firmware-modbus}{{11.11.2}{261}{Arduino Firmware}{subsection.11.11.2}{}} +\@writefile{ard}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{11.{4}}{}}{261}{ardmass.11.4}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {11.{4}}First 10 lines of the firmware for Modbus Energy Meter experiment}{261}{ardmass.11.4}\protected@file@percent } +\newlabel{154@xvr}{{}{261}} +\newlabel{154@vr}{{}{261}} +\newlabel{ard:firmware-modbus}{{11.{4}}{261}{Arduino Firmware}{ardmass.11.4}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send\textunderscore packet.ino}{261}{lstlisting.11.-258}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {11.11.3}OpenModelica Code}{261}{subsection.11.11.3}\protected@file@percent } +\newlabel{sec:modbus-OpenModelica-code}{{11.11.3}{261}{OpenModelica Code}{subsection.11.11.3}{}} +\@writefile{OpenModelicad}{\addvspace {10pt}} +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{1}}{}}{261}{OpenModelicamass.11.1}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{261}{OpenModelicamass.11.1}\protected@file@percent } +\newlabel{155@xvr}{{}{261}} +\newlabel{155@vr}{{}{261}} +\newlabel{OpenModelica:current-modbus}{{11.{1}}{261}{OpenModelica Code}{OpenModelicamass.11.1}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readCurrent.mo}{261}{lstlisting.11.-259}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{2}}{}}{261}{OpenModelicamass.11.2}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{261}{OpenModelicamass.11.2}\protected@file@percent } +\newlabel{156@xvr}{{}{261}} +\newlabel{156@vr}{{}{261}} +\newlabel{OpenModelica:voltage-modbus}{{11.{2}}{261}{OpenModelica Code}{OpenModelicamass.11.2}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readVoltage.mo}{261}{lstlisting.11.-260}\protected@file@percent } \bibdata{bibliography.bib} -\@writefile{lof}{\contentsline {figure}{\numberline {11.14}{\ignorespaces Xcos diagram to read Energy Meter values}}{154}{figure.caption.147}\protected@file@percent } -\newlabel{103@xvr}{{}{154}} -\newlabel{103@vr}{{}{154}} -\newlabel{fig:mod-read}{{11.14}{154}{Xcos diagram to read Energy Meter values}{figure.caption.147}{}} -\@writefile{lot}{\contentsline {table}{\numberline {11.7}{\ignorespaces Xcos parameters to read Energy Meter\relax }}{154}{table.caption.148}\protected@file@percent } -\newlabel{tab:mod-xcos-read}{{11.7}{154}{Xcos parameters to read Energy Meter\relax }{table.caption.148}{}} +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{3}}{}}{262}{OpenModelicamass.11.3}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {11.{3}}Code for Single Phase Active Power Output}{262}{OpenModelicamass.11.3}\protected@file@percent } +\newlabel{157@xvr}{{}{262}} +\newlabel{157@vr}{{}{262}} +\newlabel{OpenModelica:modbus-power}{{11.{3}}{262}{OpenModelica Code}{OpenModelicamass.11.3}{}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readPower.mo}{262}{lstlisting.11.-261}\protected@file@percent } \bibcite{CNES-Scilab}{1} \bibcite{scilab-arduino}{2} \bibcite{oshw-ref}{3} @@ -971,12 +1696,17 @@ \bibcite{scilab-ref}{12} \bibcite{scilab-interop}{13} \bibcite{xcos-ref}{14} -\@writefile{toc}{\contentsline {chapter}{\numberline {References}}{155}{chapter*.149}\protected@file@percent } -\bibcite{therm-wiki}{15} -\bibcite{arduino-pwm}{16} -\bibcite{servo-lib}{17} -\bibcite{modbus}{18} -\bibcite{simplymodbus}{19} -\bibcite{online-crc}{20} -\bibcite{ieee-754-conv}{21} -\bibcite{modbus-paper}{22} +\@writefile{toc}{\contentsline {chapter}{\numberline {References}}{263}{chapter*.187}\protected@file@percent } +\bibcite{python-ref}{15} +\bibcite{pySerial}{16} +\bibcite{julia-ref}{17} +\bibcite{julia-serial-ports}{18} +\bibcite{om-ref}{19} +\bibcite{therm-wiki}{20} +\bibcite{arduino-pwm}{21} +\bibcite{servo-lib}{22} +\bibcite{modbus}{23} +\bibcite{modbus-paper}{24} +\bibcite{simplymodbus}{25} +\bibcite{online-crc}{26} +\bibcite{ieee-754-conv}{27} diff --git a/floss-arduino.bbl b/floss-arduino.bbl index 205540c..848dab9 100644 --- a/floss-arduino.bbl +++ b/floss-arduino.bbl @@ -76,6 +76,31 @@ scilab.org. \newblock http://www.scilab.org/scilab/features/xcos. \newblock Seen on 28 June 2015. +\bibitem{python-ref} +python.org. +\newblock https://www.python.org/doc/essays/blurb/. +\newblock Seen on 24 February 2021. + +\bibitem{pySerial} +pyserial - pypi. +\newblock https://pypi.org/project/pyserial/. +\newblock Seen on 21 April 2021. + +\bibitem{julia-ref} +julialang.org/. +\newblock https://julialang.org/. +\newblock Seen on 12 April 2021. + +\bibitem{julia-serial-ports} +Juliaio/serialports.jl: Serialport io streams in julia backed by pyserial. +\newblock https://github.com/JuliaIO/SerialPorts.jl. +\newblock Seen on 15 April 2021. + +\bibitem{om-ref} +Openmodelica. +\newblock https://www.openmodelica.org/. +\newblock Seen on 2 April 2021. + \bibitem{therm-wiki} Thermistor - wikipedia. \newblock https://en.wikipedia.org/wiki/Thermistor. @@ -96,6 +121,14 @@ Modbus. \newblock https://modbus.org/. \newblock Seen on 6 May 2021. +\bibitem{modbus-paper} +Paavni Shukla, Sonal Singh, Tanmayee Joshi, Sudhakar Kumar, Samrudha Kelkar, + Manas~R. Das, and Kannan~M. Moudgalya. +\newblock Design and development of a modbus automation system for industrial + applications. +\newblock In {\em 2017 6th International Conference on Computer Applications In + Electrical Engineering-Recent Advances (CERA)}, pages 515--520, 2017. + \bibitem{simplymodbus} Simply modbus. \newblock https://simplymodbus.ca/. @@ -111,12 +144,4 @@ Floating point converter. \newblock https://www.h-schmidt.net/FloatConverter/IEEE754.html. \newblock Seen on 6 May 2021. -\bibitem{modbus-paper} -Paavni Shukla, Sonal Singh, Tanmayee Joshi, Sudhakar Kumar, Samrudha Kelkar, - Manas~R. Das, and Kannan~M. Moudgalya. -\newblock Design and development of a modbus automation system for industrial - applications. -\newblock In {\em 2017 6th International Conference on Computer Applications In - Electrical Engineering-Recent Advances (CERA)}, pages 515--520, 2017. - \end{thebibliography} diff --git a/floss-arduino.blg b/floss-arduino.blg index 5b8203a..303ea5e 100644 --- a/floss-arduino.blg +++ b/floss-arduino.blg @@ -3,44 +3,44 @@ Capacity: max_strings=200000, hash_size=200000, hash_prime=170003 The top-level auxiliary file: floss-arduino.aux The style file: unsrt.bst Database file #1: bibliography.bib -You've used 22 entries, +You've used 27 entries, 1791 wiz_defined-function locations, - 521 strings with 5543 characters, -and the built_in function-call counts, 2799 in all, are: -= -- 249 -> -- 53 + 542 strings with 5999 characters, +and the built_in function-call counts, 3344 in all, are: += -- 299 +> -- 58 < -- 1 -+ -- 32 ++ -- 37 - -- 10 * -- 29 -:= -- 329 -add.period$ -- 69 -call.type$ -- 22 -change.case$ -- 22 +:= -- 384 +add.period$ -- 84 +call.type$ -- 27 +change.case$ -- 27 chr.to.int$ -- 0 -cite$ -- 22 -duplicate$ -- 126 -empty$ -- 417 +cite$ -- 27 +duplicate$ -- 151 +empty$ -- 507 format.name$ -- 10 -if$ -- 719 +if$ -- 864 int.to.chr$ -- 0 -int.to.str$ -- 22 +int.to.str$ -- 27 missing$ -- 1 -newline$ -- 116 +newline$ -- 141 num.names$ -- 4 -pop$ -- 171 +pop$ -- 211 preamble$ -- 1 purify$ -- 0 quote$ -- 0 -skip$ -- 75 +skip$ -- 90 stack$ -- 0 substring$ -- 28 -swap$ -- 32 +swap$ -- 37 text.length$ -- 1 text.prefix$ -- 0 top$ -- 0 type$ -- 0 warning$ -- 0 while$ -- 6 -width$ -- 24 -write$ -- 208 +width$ -- 29 +write$ -- 253 diff --git a/floss-arduino.cod b/floss-arduino.cod index a083e31..8c610db 100644 --- a/floss-arduino.cod +++ b/floss-arduino.cod @@ -1,32 +1,34 @@ \addvspace {10pt} \contentsline {section}{\numberline {3.{1}}A Scilab code to check whether the firmware is properly installed or not}{34}{codemass.3.1}% \addvspace {10pt} -\contentsline {section}{\numberline {4.{1}}Turning on the blue LED}{51}{codemass.4.1}% -\contentsline {section}{\numberline {4.{2}}Turning on the blue LED and turning it off after two seconds}{52}{codemass.4.2}% -\contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{52}{codemass.4.3}% -\contentsline {section}{\numberline {4.{4}}Blinking the green LED}{52}{codemass.4.4}% \addvspace {10pt} -\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the GUI}{63}{codemass.5.1}% -\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{64}{codemass.5.2}% \addvspace {10pt} -\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{76}{codemass.6.1}% -\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{76}{codemass.6.2}% +\contentsline {section}{\numberline {4.{1}}Turning on the blue LED}{75}{codemass.4.1}% +\contentsline {section}{\numberline {4.{2}}Turning on the blue LED and turning it off after two seconds}{76}{codemass.4.2}% +\contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{76}{codemass.4.3}% +\contentsline {section}{\numberline {4.{4}}Blinking the green LED}{76}{codemass.4.4}% \addvspace {10pt} -\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{86}{codemass.7.1}% +\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the GUI}{101}{codemass.5.1}% +\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{102}{codemass.5.2}% \addvspace {10pt} -\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{98}{codemass.8.1}% -\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{98}{codemass.8.2}% +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{122}{codemass.6.1}% +\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{122}{codemass.6.2}% \addvspace {10pt} -\contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{114}{codemass.9.1}% -\contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{114}{codemass.9.2}% -\contentsline {section}{\numberline {9.{3}}Rotating the servomotor in steps of $20^\circ $}{114}{codemass.9.3}% -\contentsline {section}{\numberline {9.{4}}Rotating the servomotor to a degree specified by the potentiometer}{115}{codemass.9.4}% +\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{140}{codemass.7.1}% \addvspace {10pt} -\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{130}{codemass.10.1}% -\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{130}{codemass.10.2}% -\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{131}{codemass.10.3}% +\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{158}{codemass.8.1}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{158}{codemass.8.2}% \addvspace {10pt} -\contentsline {section}{\numberline {11.{1}}First 10 lines of the function for scifunc block}{152}{codemass.11.1}% -\contentsline {section}{\numberline {11.{2}}First 10 lines of the code for Single Phase Current Output}{152}{codemass.11.2}% -\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Voltage Output}{152}{codemass.11.3}% -\contentsline {section}{\numberline {11.{4}}First 10 lines of the code for Single Phase Active Power Output}{153}{codemass.11.4}% +\contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{182}{codemass.9.1}% +\contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{182}{codemass.9.2}% +\contentsline {section}{\numberline {9.{3}}Rotating the servomotor in steps of $20^\circ $}{182}{codemass.9.3}% +\contentsline {section}{\numberline {9.{4}}Rotating the servomotor to a degree specified by the potentiometer}{183}{codemass.9.4}% +\addvspace {10pt} +\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{212}{codemass.10.1}% +\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{212}{codemass.10.2}% +\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{213}{codemass.10.3}% +\addvspace {10pt} +\contentsline {section}{\numberline {11.{1}}First 10 lines of the function for scifunc block}{243}{codemass.11.1}% +\contentsline {section}{\numberline {11.{2}}First 10 lines of the code for Single Phase Current Output}{243}{codemass.11.2}% +\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Voltage Output}{243}{codemass.11.3}% +\contentsline {section}{\numberline {11.{4}}First 10 lines of the code for Single Phase Active Power Output}{244}{codemass.11.4}% diff --git a/floss-arduino.fdb_latexmk b/floss-arduino.fdb_latexmk index 5ab1bd8..7378aa2 100644 --- a/floss-arduino.fdb_latexmk +++ b/floss-arduino.fdb_latexmk @@ -1,20 +1,20 @@ # Fdb version 3 -["bibtex floss-arduino"] 1621456139 "floss-arduino.aux" "floss-arduino.bbl" "floss-arduino" 1621457445 +["bibtex floss-arduino"] 1621642768 "floss-arduino.aux" "floss-arduino.bbl" "floss-arduino" 1621642784 "/usr/share/texlive/texmf-dist/bibtex/bst/base/unsrt.bst" 1292289607 18030 1376b4b231b50c66211e47e42eda2875 "" "bibliography.bib" 1620434363 6034 f6dc0004d2871e4ca7419c08dc204c04 "" - "floss-arduino.aux" 1621457441 102573 48cf3bdb2e0859a9188146b57ac82853 "pdflatex" + "floss-arduino.aux" 1621642784 186327 59f913bb6eaa11884dc44af00463c148 "pdflatex" (generated) "floss-arduino.bbl" "floss-arduino.blg" -["makeindex floss-arduino.idx"] 1621456131 "floss-arduino.idx" "floss-arduino.ind" "floss-arduino" 1621457445 - "floss-arduino.idx" 1621457441 237 4bd16915821735164ca2de4b4eb0863a "pdflatex" +["makeindex floss-arduino.idx"] 1621642752 "floss-arduino.idx" "floss-arduino.ind" "floss-arduino" 1621642784 + "floss-arduino.idx" 1621642784 237 2b0c63ab27d5c1b698757397b5c69953 "pdflatex" (generated) "floss-arduino.ind" "floss-arduino.ilg" -["pdflatex"] 1621457435 "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" "floss-arduino" 1621457445 +["pdflatex"] 1621642768 "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" "floss-arduino" 1621642784 "/etc/texmf/web2c/texmf.cnf" 1602253014 475 c0e671620eb5563b2130f56340a5fde8 "" - "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.aux" 1621457441 102573 48cf3bdb2e0859a9188146b57ac82853 "" - "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" 1621457444 6976 e80336776e53b48a3f7a334d2d388f5f "" + "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.aux" 1621642784 186327 59f913bb6eaa11884dc44af00463c148 "" + "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" 1621642735 7224 434f6cb1fde4ec388ff9a6592f0da226 "" "/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 "" "/usr/share/texlive/texmf-dist/fonts/tfm/jknappen/ec/ecbx0900.tfm" 1136768653 3584 1a7de6c99457381c64abc1a7c545505f "" @@ -159,31 +159,40 @@ "/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" 1621457435 0 d41d8cd98f00b204e9800998ecf8427e "pdflatex" - "floss-arduino.ard" 1621457441 2329 f49919ed9616144e90f3cb2ef13cf703 "pdflatex" - "floss-arduino.aux" 1621457441 102573 48cf3bdb2e0859a9188146b57ac82853 "pdflatex" - "floss-arduino.bbl" 1621456139 3265 f02fa4ba39be58b10957535a3b029017 "bibtex floss-arduino" - "floss-arduino.cod" 1621457441 2782 7f5c7119005e9ba5937eddb8419f0858 "pdflatex" - "floss-arduino.ind" 1621456131 288 55fbf154021954a99f0519b99174d542 "makeindex floss-arduino.idx" - "floss-arduino.juliad" 1621457435 0 d41d8cd98f00b204e9800998ecf8427e "pdflatex" - "floss-arduino.lof" 1621457441 13833 090fbd2f0c71a7102bc29e9099b871d9 "pdflatex" - "floss-arduino.lot" 1621457441 4415 0593a4948477e0e74fc13f2b63da70f7 "pdflatex" - "floss-arduino.out" 1621457441 8853 86f5b851689b8fbe7584f08158fabdb6 "pdflatex" - "floss-arduino.pyd" 1621457435 0 d41d8cd98f00b204e9800998ecf8427e "pdflatex" - "floss-arduino.tex" 1621457444 6976 e80336776e53b48a3f7a334d2d388f5f "" - "floss-arduino.toc" 1621457441 11702 1f50695390c785cdc23f548121020636 "pdflatex" + "floss-arduino.OpenModelicad" 1621642784 2789 693908eb39ad080a364d5d76a2f1588d "pdflatex" + "floss-arduino.ard" 1621642784 2781 3928d293d4d5ee7ad77dcf3fd7011045 "pdflatex" + "floss-arduino.aux" 1621642784 186327 59f913bb6eaa11884dc44af00463c148 "pdflatex" + "floss-arduino.bbl" 1621642768 3903 02b5ac06a1bbf3155ccc47bfd4f7ca51 "bibtex floss-arduino" + "floss-arduino.cod" 1621642784 2825 276799433ef5d04c78cca67d0f03a29a "pdflatex" + "floss-arduino.ind" 1621642752 288 1367e08b6f5cfc1c1a3f8718570f0de1 "makeindex floss-arduino.idx" + "floss-arduino.juliad" 1621642784 2664 d6015a75adbaa7ab2e91e82e525418f2 "pdflatex" + "floss-arduino.lof" 1621642784 17090 9917c7f7925fe1b57a5893cf00579fc4 "pdflatex" + "floss-arduino.lot" 1621642784 4424 0f6251ab267590736995d690f81df239 "pdflatex" + "floss-arduino.out" 1621642784 16578 46cd8728c2e6431c3908d3f07e88dd97 "pdflatex" + "floss-arduino.pyd" 1621642784 2593 7ac52fcf14f6a2e536120c4eb7f90816 "pdflatex" + "floss-arduino.tex" 1621642735 7224 434f6cb1fde4ec388ff9a6592f0da226 "" + "floss-arduino.toc" 1621642784 21698 1efd8f4b26128d82888c088845268678 "pdflatex" "suppl/acr.tex" 1615963613 1926 fd6481c4666ee0d60331b7d4cc24b645 "" "suppl/intro.tex" 1621457434 3415 629babe1e577e956b444a555faf0c38e "" "suppl/styles.tex" 1615963613 8143 aa3280f0b59c8631fe8ec44895c9e871 "" "tools/floss-firmware/floss-firmware.ino" 1620088994 34359 32a40397062276bb3dcecda801db076e "" + "tools/julia/test_firmware.jl" 1619056276 168 3aaf8bf98ff271a626085f256b5bbbc9 "" + "tools/openmodelica/windows//test_firmware.mo" 1619499532 616 087d18e8525d7f7e7b49bc700b2d08e4 "" + "tools/python/test_firmware.py" 1619660611 702 075224ba07fdcb46e41c20e2e4c001be "" "tools/scilab/test_firmware.sce" 1619392691 121 068cb1b11cc5bef7c9f9ddaa09316c22 "" "tools/shield/pcb_board_V1p2.png" 1618469943 114643 13d3ee33823ec2c138265f5f4daf35c8 "" "tools/shield/shield-V1p2.jpg" 1618469645 221681 3be329dcc0590284c83508bfc96ede10 "" "tools/shield/shield-V1p2.png" 1618470019 66281 607473e0cfda2ff4b7f6c85d1bbb8ba5 "" + "user-code/dcmotor/OpenModelica/dcmotor-both.mo" 1620088994 1086 a156cd2ac05b581b0e2a0d6daa70642f "" + "user-code/dcmotor/OpenModelica/dcmotor-clock.mo" 1620088994 1002 e95685106fe5e50eba4824e6b0119bd5 "" + "user-code/dcmotor/OpenModelica/dcmotor-loop.mo" 1620088994 1237 a8426d0f501ac4c2571d5c9d567948b3 "" "user-code/dcmotor/arduino/dcmotor-both/dcmotor-both.ino" 1620088994 504 8a85b1257282a49f134cec02b30182e2 "" "user-code/dcmotor/arduino/dcmotor-clock/dcmotor-clock.ino" 1620088994 426 6316038efc09b67c75c077917c40e3e4 "" "user-code/dcmotor/arduino/dcmotor-loop/dcmotor-loop.ino" 1620088994 665 a13b061f7e773a0ff7e178ed73915282 "" + "user-code/dcmotor/dcmotor-OM.tex" 1621455775 11241 982246ee49a10c44361808ce84762a47 "" "user-code/dcmotor/dcmotor-base.tex" 1621455775 11192 454e69c3c7ac8022ed78fcf217140928 "" + "user-code/dcmotor/dcmotor-julia.tex" 1621455775 7297 f523e59616d249643cd2aece01846f9a "" + "user-code/dcmotor/dcmotor-python.tex" 1621455775 8816 9946fc87ba3d8772cea69ba17c57ebde "" "user-code/dcmotor/dcmotor-scilab.tex" 1621455775 24546 3e08212f3604331591dd8eac8dec5a92 "" "user-code/dcmotor/figures/dc_motor_description.jpg" 1615963613 694440 a424c50ad327bc459a4ab4808f398262 "" "user-code/dcmotor/figures/dcmotor-both.png" 1620285295 107985 6c7508b957f7980eea96e374fc266250 "" @@ -192,6 +201,12 @@ "user-code/dcmotor/figures/dcmotor_board.png" 1615963613 114406 92155ec29d259e5fcda6bce5c6b08004 "" "user-code/dcmotor/figures/schematic.png" 1615963613 29144 971dcba68f6e79a1c3c5777dac2627ea "" "user-code/dcmotor/figures/uno-pwm.jpg" 1620309722 3266094 71ed00a219ac59152d8c597e1e8856d3 "" + "user-code/dcmotor/julia/dcmotor-both.jl" 1620088994 270 2a8057cb974830a91cb2ccaaeaeec8d3 "" + "user-code/dcmotor/julia/dcmotor-clock.jl" 1620088994 223 18e184ba00cf35946e451fb37590725a "" + "user-code/dcmotor/julia/dcmotor-loop.jl" 1620088994 342 a624b9b98fc1787face9e2a5cc07f84f "" + "user-code/dcmotor/python/dcmotor-both.py" 1620088994 864 275cefa529d28743b47a46b87b31ff91 "" + "user-code/dcmotor/python/dcmotor-clock.py" 1620285183 830 e4bb3de5e98eb204a3dada5009db8343 "" + "user-code/dcmotor/python/dcmotor-loop.py" 1620285183 968 97af73f5b57d7b510ecd4383c3bc4f93 "" "user-code/dcmotor/scilab/dcmotor-both.sce" 1620088994 478 628af43e0c3f08f643098a596ad835cf "" "user-code/dcmotor/scilab/dcmotor-clock.sce" 1620088994 358 714e3d2a3677b19a80dcc181cadf6e4d "" "user-code/dcmotor/scilab/dcmotor-loop.sce" 1620088994 624 72d01e150c668c28e3823b3ff124a6f1 "" @@ -207,7 +222,9 @@ "user-code/hw-env/figures/resolution.png" 1615963614 4945 8c36e13a636f064fe99a32583bd5a09f "" "user-code/hw-env/figures/shield-crop.jpg" 1615963614 88724 a405ddfd57bdc79018c6674fc399d67f "" "user-code/hw-env/figures/update-driver.png" 1615963614 40170 607a1cd06856f1eecd42ebc14fbe2daf "" - "user-code/hw-env/hw-env.tex" 1620430747 22147 0d8258cc2e1382f1c7f63eb72c73902e "" + "user-code/hw-env/hw-env.tex" 1621495809 22147 0d8258cc2e1382f1c7f63eb72c73902e "" + "user-code/ldr/OpenModelica/ldr-led.mo" 1620088994 1175 513f4a0dc313bc054f4bb8abe75f73fa "" + "user-code/ldr/OpenModelica/ldr-read.mo" 1620088994 860 b6de0b97782c2153052b43d45ca918a2 "" "user-code/ldr/arduino/ldr-led/ldr-led.ino" 1620088994 355 3a0bb525b88842f2c29277bfae805ace "" "user-code/ldr/arduino/ldr-read/ldr-read.ino" 1620088994 230 f00bce053f207cda3fe5d9efb50b244f "" "user-code/ldr/figures/LDR-led.png" 1617898904 240349 523edd11a7bcb1002c01b0410de0183e "" @@ -219,10 +236,21 @@ "user-code/ldr/figures/ldr-read-xcos.PNG" 1615963614 34063 b0eeeea9642553ea0bb2889cb52cfa60 "" "user-code/ldr/figures/ldr.jpg" 1615963614 4060 da1140b101edcf75176b3dfbb765dd42 "" "user-code/ldr/figures/ldr_sym.png" 1615963614 29267 73b70e220429569a98caa86348349aa1 "" + "user-code/ldr/julia/ldr-led.jl" 1620088994 328 c56b41b79308edfeac581824b292db8e "" + "user-code/ldr/julia/ldr-read.jl" 1620088994 182 f022609c62ce20cd8a544b56bb24b920 "" + "user-code/ldr/ldr-OM.tex" 1621455775 4330 bf71650135097470010dee6009bf2f2c "" "user-code/ldr/ldr-base.tex" 1621455775 10370 2dc790d6cd4dee2eed4edccdf2dc929f "" + "user-code/ldr/ldr-julia.tex" 1621455775 3871 b16ec475383e1331a08b220b22f13fdb "" + "user-code/ldr/ldr-python.tex" 1621455775 4576 9bdb80c78c973ef430c00fe2d2ce719b "" "user-code/ldr/ldr-scilab.tex" 1621455775 13462 ffeb0049b804a21e1f86c11a37113738 "" + "user-code/ldr/python/ldr-led.py" 1620088994 878 6fd4249dccee88b68be9f42ac32e1238 "" + "user-code/ldr/python/ldr-read.py" 1620088994 690 e0b7ce7fda0fd80b7a9910b066c54ef1 "" "user-code/ldr/scilab/ldr-led.sce" 1620088994 485 06b1e7a58af58334a9e0deed47713a69 "" "user-code/ldr/scilab/ldr-read.sce" 1620088994 383 672cc7539820df32f3a25b93cc0f4fa7 "" + "user-code/led/OpenModelica/led-blue-delay.mo" 1620022023 974 b66fe8fce6005b87afc23c6d7d3009e5 "" + "user-code/led/OpenModelica/led-blue-red.mo" 1620022023 1154 7e5164d0b0a78fcd7a6327bbfff835c9 "" + "user-code/led/OpenModelica/led-blue.mo" 1620022023 802 063ab42c583ad7e9203c09fdac11beb2 "" + "user-code/led/OpenModelica/led-green-blink.mo" 1620022023 1098 58f96b5892b748dbca27a4411f54fd08 "" "user-code/led/arduino/led-blue-delay/led-blue-delay.ino" 1619653754 134 a265af0df0c837b3860a1bd8f4f17db3 "" "user-code/led/arduino/led-blue-red/led-blue-red.ino" 1619653892 215 db5fdea678579e2b65dbcaddcca033c6 "" "user-code/led/arduino/led-blue/led-blue.ino" 1619653669 99 25f30fcd7cc7d7b6b9aa222deff00437 "" @@ -236,12 +264,26 @@ "user-code/led/figures/led_output.png" 1615963614 4933000 3daaef0abe81c66166eaa3fd911c9b66 "" "user-code/led/figures/rgb-led-bb.png" 1617583787 241915 7c5374def5f441085b2d93294dde7979 "" "user-code/led/figures/schematic.png" 1615963614 34562 2b5d2cb148a99242ffb4343097ced0a0 "" + "user-code/led/julia/led-blue-delay.jl" 1619663062 213 dd9c8a8b157baac9432478c33b8aa14e "" + "user-code/led/julia/led-blue-red.jl" 1620022023 332 919a1421675457207ff70ee12da93ac6 "" + "user-code/led/julia/led-blue.jl" 1619662025 170 c9cc13e4fb6e898855537bb9e1f2a787 "" + "user-code/led/julia/led-green-blink.jl" 1619663087 249 d785472e844af87c34e32322ccb211e2 "" + "user-code/led/led-OM.tex" 1621455775 6090 eeb3656cf34ca23b4e74568da8ba3a8f "" "user-code/led/led-base.tex" 1621455775 12573 9ca1a36290acd21f7147bf1579e43aec "" + "user-code/led/led-julia.tex" 1621455775 4230 113d65c42a2badd946d2f312a0e216ca "" + "user-code/led/led-python.tex" 1621455775 8224 4475c068f5d6120ca45171af64ae64f3 "" "user-code/led/led-scilab.tex" 1621455775 15554 57a47400c55d0e67271b6cd2a300cc7e "" + "user-code/led/python/led-blue-delay.py" 1619660150 805 9c5bde89850fc3b25ced778dfafe1dcf "" + "user-code/led/python/led-blue-red.py" 1619660175 1039 339cefbe997737f931646cba049b8d12 "" + "user-code/led/python/led-blue.py" 1619658381 723 be6248a455119500e6930030c0c92250 "" + "user-code/led/python/led-green-blink.py" 1620022023 800 7d238166a3ec7776881175fdee95f619 "" "user-code/led/scilab/led-blue-delay.sce" 1619654724 306 971bfdb5febffab85ff7e39d9486f19f "" "user-code/led/scilab/led-blue-red.sce" 1619654755 534 9ed44e179f5f8f2d1833438c6e950670 "" "user-code/led/scilab/led-blue.sce" 1619654435 264 54ed7e9095e17363e0ce5fb00cade1d1 "" "user-code/led/scilab/led-green-blink.sce" 1619654799 484 6075a3408ac416b1a08b9812441b114f "" + "user-code/modbus/OpenModelica/readCurrent.mo" 1615963614 415 303989413cadae961b297f9b27e7fea0 "" + "user-code/modbus/OpenModelica/readPower.mo" 1615963614 435 3f5615fb24b7ddbe58cdd8e1bef132ae "" + "user-code/modbus/OpenModelica/readVoltage.mo" 1615963614 415 6e1ebbf05cf22f407c8164397a270067 "" "user-code/modbus/arduino/send_packet.ino" 1615963614 8116 cf6c7187b76c359b0e96b2d6ab867417 "" "user-code/modbus/figures/Full-Set-Up.png" 1615963614 1614647 0b0a3133138b7b5e4362f127b21dbbca "" "user-code/modbus/figures/active-power-output-setup.jpg" 1620364402 970986 3c5dcb7d7a8cc8c4506feed7894ca347 "" @@ -257,19 +299,37 @@ "user-code/modbus/figures/read_value_xcos.png" 1615963614 51074 2267729983ef5dcb788a3f74130a179a "" "user-code/modbus/figures/voltage-output-setup.jpg" 1620364476 964103 77691bdec7885f306d9af858aa024c6b "" "user-code/modbus/figures/voltage-output.png" 1620364640 5506 102a213a2a607379d826356f732ad44e "" - "user-code/modbus/modbus-scilab.tex" 1621455916 34808 f7fb36cc8dde7378405d775bd64f33ca "" + "user-code/modbus/julia/readCurrent.jl" 1615963614 419 d37bba6d385680f69e39aeeeee270cc2 "" + "user-code/modbus/julia/readPower.jl" 1615963614 408 5fe8daf1c8116370b28ad3bd3f32aab4 "" + "user-code/modbus/julia/readVoltage.jl" 1615963614 418 4e26e56e234bd7df4a03ade0f2866654 "" + "user-code/modbus/modbus-OM.tex" 1621642150 5942 0531cbc61d27df4601dd6a21cc586e98 "" + "user-code/modbus/modbus-base.tex" 1621641875 22673 7efbbf979d922e42d583cedd4f719814 "" + "user-code/modbus/modbus-julia.tex" 1621642121 5773 6784fb444b8f238dcea5d0dd305542e5 "" + "user-code/modbus/modbus-python.tex" 1621642098 5717 f0054c399519f0df45ac2b98f45e0f50 "" + "user-code/modbus/modbus-scilab.tex" 1621642054 12126 6a2c6000c250b759507e0d953495c7b1 "" + "user-code/modbus/python/read_active_power.py" 1615963614 1107 5c75379ec91b5b117fc94be55100a639 "" + "user-code/modbus/python/read_current.py" 1615963614 1102 c628a8be5444f9b5ffbb348dff567336 "" + "user-code/modbus/python/read_voltage.py" 1618777541 1102 cf711c7b2bc93043409419eb1ae2169b "" "user-code/modbus/scilab/read_active_power.sci" 1615963614 1072 ec17d07cbbf336756ed22d5469b68e25 "" "user-code/modbus/scilab/read_current.sci" 1615963614 1090 97c84be93c41f56ed4617dfe2ffaf5bb "" "user-code/modbus/scilab/read_val.sce" 1615963614 1474 89f368fad786acfa64c8f7eab2d6c14a "" "user-code/modbus/scilab/read_voltage.sci" 1619050548 1100 00726a382c03a31bf874d21d1cc5eb16 "" + "user-code/pot/OpenModelica/pot-threshold.mo" 1620088994 1512 1402778c2f3b5ec7f6285466d545e598 "" "user-code/pot/arduino/pot-threshold/pot-threshold.ino" 1620088994 805 12e5e0df10302ea489b57721d004d184 "" "user-code/pot/figures/POT-led-bb.png" 1618126815 243193 63a4dc18807be931f97545bfa9167a30 "" "user-code/pot/figures/pot-threshold-1.png" 1619921513 127870 911e5afafb8a33b220cf66889fac91d7 "" "user-code/pot/figures/potmeter.png" 1615963614 99691 b56662d8570cfc9c91c52b76f21d1802 "" "user-code/pot/figures/schematic.png" 1615963614 24453 85099648f5c8e616d3cfd5f3d6d7a7bf "" + "user-code/pot/julia/pot-threshold.jl" 1620088994 666 9b730ca97ed22ec8050aa381d4161447 "" + "user-code/pot/pot-OM.tex" 1621455775 2428 e00a4a0fc2dde69645883e0e161cb41d "" "user-code/pot/pot-base.tex" 1621455775 8733 cbe2103c1242a714ed3fd639d1ba04a1 "" + "user-code/pot/pot-julia.tex" 1621455775 2031 630ec4debd43acbd61d1ef9bc938efa5 "" + "user-code/pot/pot-python.tex" 1621455775 2221 bbe65be48f47a22445f193c34eece033 "" "user-code/pot/pot-scilab.tex" 1621455775 5204 cd6a7e9a7e6bd742cf06e77bfb7c1797 "" + "user-code/pot/python/pot-threshold.py" 1620088994 1230 800d4698ea9b0e37651e65fc06cded76 "" "user-code/pot/scilab/pot-threshold.sce" 1620088994 697 c4b81a0bfec8d4d932692e85bdaa44b4 "" + "user-code/push/OpenModelica/led-push-button.mo" 1620023350 1226 c823f27eb8ddafbc85d7beeeab95e952 "" + "user-code/push/OpenModelica/push-button-status.mo" 1620022023 1002 404445ef6477d66c90debf67d0b16ff5 "" "user-code/push/arduino/led-push-button/led-push-button.ino" 1620022023 500 74749a5bf90b0b8730fac1c5c2d2098e "" "user-code/push/arduino/push-button-status/push-button-status.ino" 1620022023 399 8bc698528184374bd12aa2bd7447ae54 "" "user-code/push/figures/led-push-button.PNG" 1615963614 29100 9fb97725008a4f858830924290bafd86 "" @@ -278,10 +338,21 @@ "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" 1620022023 362 d6ece80fbd90baec0c77d842796ce55f "" + "user-code/push/julia/push-button-status.jl" 1620022023 220 ee74db42ff4cafa9fdfa53bf629610f7 "" + "user-code/push/push-OM.tex" 1621455775 4348 fd65309600beef991a04131d7a02a6a0 "" "user-code/push/push-base.tex" 1621455775 9542 58b98694b202c0c277d28136f2a40af6 "" + "user-code/push/push-julia.tex" 1621455775 3532 267ddf5e111076677bf4ab39ae1aca08 "" + "user-code/push/push-python.tex" 1621455775 3501 2725b30124fa209b5fc6b05fcc5a5f18 "" "user-code/push/push-scilab.tex" 1621455775 8452 cbce9e9caa2c44eeb4f75cc7288a3653 "" + "user-code/push/python/led-push-button.py" 1620090903 840 7ac297fea9149dd4f1097d1eb1127438 "" + "user-code/push/python/push-button-status.py" 1620022023 726 f8a32147aae8c969c2bd3a7634370342 "" "user-code/push/scilab/led-push-button.sce" 1620022023 395 ffd3626904bd116d49ebbbd9ba896f6c "" "user-code/push/scilab/push-button-status.sce" 1620022023 374 60eb3a3f4806ea383dadee5441f2be98 "" + "user-code/servo/OpenModelica/servo-init.mo" 1620332448 843 9bcc28dfc460db6e1f1e16e9450b2e32 "" + "user-code/servo/OpenModelica/servo-loop.mo" 1620332461 1063 f214713878cab8f7ac1b10091485a135 "" + "user-code/servo/OpenModelica/servo-pot.mo" 1620332469 1327 9ab722a57ce5d891d9a52873e26a6f5a "" + "user-code/servo/OpenModelica/servo-reverse.mo" 1620332477 1034 779a75c4a7d778029a081e506455685c "" "user-code/servo/arduino/servo-init/servo-init.ino" 1620088994 295 65f0ac74c87b7c1934dc586d83ab0efe "" "user-code/servo/arduino/servo-loop/servo-loop.ino" 1620298217 402 c218fcd4caeb348d81352b676dc5c541 "" "user-code/servo/arduino/servo-pot/servo-pot.ino" 1620088994 671 145aea71e1ac2ef50822eb25d83108d6 "" @@ -293,12 +364,25 @@ "user-code/servo/figures/servo-pot.png" 1615963614 33204 436709fd3e5dbedb22b8af8b2d2ca4ba "" "user-code/servo/figures/servo-reverse.png" 1615963614 25147 1703152c1e98c6000e54589b6bd467a7 "" "user-code/servo/figures/servo-uno-shield.jpg" 1620292964 4433005 1ca49ed870fd1a7d92392a6aa2c053f6 "" + "user-code/servo/julia/servo-init.jl" 1620088994 174 2f1751adbcd50ad10fb1fc63b126c50d "" + "user-code/servo/julia/servo-loop.jl" 1620088994 244 02733944ad3e8beb0aece530a7ff2325 "" + "user-code/servo/julia/servo-pot.jl" 1620088994 325 6b14ad4d9b9f190780bb5ba37b9794ae "" + "user-code/servo/julia/servo-reverse.jl" 1620088994 218 c8fb1faf7cc98344286dc9a6e095195f "" + "user-code/servo/python/servo-init.py" 1620088994 757 4bdf2886e706c11615812d5f505b864d "" + "user-code/servo/python/servo-loop.py" 1620088994 802 35d9aee2d082ddc1b9893af2c440c092 "" + "user-code/servo/python/servo-pot.py" 1620088994 863 8c8e4066fa8337d37afce0795cd68e84 "" + "user-code/servo/python/servo-reverse.py" 1620088994 825 af6e0576f7e25e769305c3821e8fd920 "" "user-code/servo/scilab/servo-init.sce" 1620088994 329 0f8c9cd741b741d412b27aabb0b641da "" "user-code/servo/scilab/servo-loop.sce" 1620088994 525 6a4902117c83c5390c1877a95a5e363e "" "user-code/servo/scilab/servo-pot.sce" 1620088994 530 2d82664fdd3a16c6588b2a4dc4e66a22 "" "user-code/servo/scilab/servo-reverse.sce" 1620088994 532 11110ec91f2ddb2261afbbec00198d94 "" + "user-code/servo/servo-OM.tex" 1621455775 6743 e3bb3333e0e297defe427b0d2a0ab5c0 "" "user-code/servo/servo-base.tex" 1621455775 13398 42be6b1599117acc4dcfc2645741fed1 "" + "user-code/servo/servo-julia.tex" 1621455775 6393 f5b5c76dbc63b086b6593dc5c1d3e5a2 "" + "user-code/servo/servo-python.tex" 1621455775 9390 e10fc3c7c70de72eb1cbcf10b7342863 "" "user-code/servo/servo-scilab.tex" 1621455775 17336 d4a14c40c81913ae60506458a1cf945a "" + "user-code/sw-env/figures/OMEdit-UI.png" 1618566985 1412111 17b388a3069a3685b7d14c6fb67ee8eb "" + "user-code/sw-env/figures/OMEdit-libraries.png" 1617394693 154031 fd27a1537f6271ab01c53fd1d2c9d214 "" "user-code/sw-env/figures/arduino-palette.png" 1615963614 10751 8229db142816e63c5b5761df7ebf0e33 "" "user-code/sw-env/figures/browse-directory.png" 1615963614 30302 e7161778e4b66145020832ffda95f16b "" "user-code/sw-env/figures/builder.png" 1615963614 62847 a945d2601d325541677f819dda7ee305 "" @@ -307,20 +391,42 @@ "user-code/sw-env/figures/cscope-config.png" 1615963614 15445 4f02500263554c7a25c5355d43fe0720 "" "user-code/sw-env/figures/device-manager-com.png" 1619051516 170869 2521a3958703e2565de76bfdcb864733 "" "user-code/sw-env/figures/device-manager.png" 1615963614 66176 4b944d863a9a68ac712fec18d1072374 "" + "user-code/sw-env/figures/julia-download.png" 1619175408 90834 a76f37ce7ab329cff72e393ca325d834 "" + "user-code/sw-env/figures/julia-pkg-windows.png" 1619131876 41169 b9da9617cd69c69bb952d9604b7919ec "" + "user-code/sw-env/figures/julia-pkg.png" 1618189640 46183 5e4ac4a37a0b2c9bb6b11151ef3ffbbd "" + "user-code/sw-env/figures/julia-repl-windows.png" 1619131664 39594 686340edfe0c380de10e1f8ee3af3582 "" + "user-code/sw-env/figures/julia-terminal-repl.png" 1618258398 44140 3c889d9ebd5a899a1d28d60ef542f70a "" + "user-code/sw-env/figures/julia-windows-install.png" 1619130519 26406 e46da4d14d9b869903f4107320f821e9 "" "user-code/sw-env/figures/launch-arduino-opt.png" 1617392168 33421 f8b38ae30fdf8828bc50d1f0b1b72fe4 "" "user-code/sw-env/figures/linux-cd.png" 1615963614 39093 885ba08c89ecb4d2c400fa4b07d4ea66 "" "user-code/sw-env/figures/linux-port.png" 1615963614 22330 f34b363966c6f589a01e2e3083bf7d90 "" "user-code/sw-env/figures/loader.png" 1615963614 59139 c20511f34e925a6fb5628e3a13c4442a "" + "user-code/sw-env/figures/om-modeling-views.png" 1617614171 138971 3676cbc7350ef2f65c828d96b7fb6ce5 "" + "user-code/sw-env/figures/om-modeling.png" 1617413556 151173 3000377e285a1c18e6b2e2c50a706348 "" + "user-code/sw-env/figures/om-open-model.png" 1617562615 3436700 a7f685410189a7926c1c7ce02eea2324 "" + "user-code/sw-env/figures/om-sim-success.png" 1617413099 72125 9017411bfe49b3ef6a4c3d8817ebc532 "" + "user-code/sw-env/figures/om-simulate.png" 1617614168 193689 816ffeeb17ad0b184a7c5faf3911ad28 "" + "user-code/sw-env/figures/om-text-view.png" 1617412273 225672 29da7c1783940469a04bb6534660b5ff "" + "user-code/sw-env/figures/om-toolbox-loaded.png" 1619376662 62386 dcd446cac813a164e5c326d2360928c9 "" + "user-code/sw-env/figures/openmodelica-run-anyway.png" 1619317281 52705 7ad6616822b91c117b7208fecfa9759a "" "user-code/sw-env/figures/plot-blk.png" 1615963614 9025 823d55c99e8f9e091c480135e11fed88 "" + "user-code/sw-env/figures/python-windows-install.JPG" 1619109598 52113 d8d1a4dbf12dad7489007c03c6aff723 "" "user-code/sw-env/figures/sim-setup.png" 1615963614 18806 fca3d6d4d7692c539f6dd8ee5fca2286 "" "user-code/sw-env/figures/sine-blk.png" 1615963614 31364 922217660a4514750566368a9628caca "" "user-code/sw-env/figures/sine-gen.png" 1615963614 18116 34af55052c486ca14630fa8175b34a20 "" "user-code/sw-env/figures/sine-output.png" 1615963614 5195 b769374644003c54a930b7fd08e2e7ee "" "user-code/sw-env/figures/table_functions_crop.pdf" 1615963614 84671 8377aefb061b0e251291558e34dd4b23 "" "user-code/sw-env/figures/test-console.png" 1615963614 53960 b989b14626fd496e19335d18673cc602 "" + "user-code/sw-env/figures/win-command-prompt.png" 1619057483 18481 e5638717dbbb0533251e1adcbc9b10f0 "" + "user-code/sw-env/figures/windows-cmd.png" 1619057155 18559 6c4f07f73f86b74127aa8c76e23f3285 "" "user-code/sw-env/figures/xcos-help.png" 1615963614 87275 3c9b5157ebebe381cd7b5281cdd28482 "" + "user-code/sw-env/sw-env-OM.tex" 1621452402 14684 246a4e6711439c5535a43c55e6ccdb94 "" "user-code/sw-env/sw-env-base.tex" 1621452092 20371 3831691d48b6edf9faf7d654fa4a9c05 "" + "user-code/sw-env/sw-env-julia.tex" 1621452381 17106 529c456e473fd986d2d5c0cf3e41712c "" + "user-code/sw-env/sw-env-python.tex" 1621452358 12570 407eb1692224c6bac00b407a35921d83 "" "user-code/sw-env/sw-env-scilab.tex" 1621452275 25295 c66e7c7dfc43d03ad408bc17aeaf13bf "" + "user-code/thermistor/OpenModelica/therm-buzzer.mo" 1620088994 1299 e1551a279a3614eeaf9116b1002e12eb "" + "user-code/thermistor/OpenModelica/therm-read.mo" 1620088994 882 b7d88b5d1f38eff59552a98507af5858 "" "user-code/thermistor/arduino/therm-buzzer/therm-buzzer.ino" 1620088994 436 95759b7a9f40f5df3f6bf578fac78e35 "" "user-code/thermistor/arduino/therm-read/therm-read.ino" 1620088994 222 11d9158a56bc707bb62c21c4112a5ac2 "" "user-code/thermistor/figures/BUZZER-Diagram-crop.pdf" 1615963614 44580 9821d615a59f54c353650c91d53397ff "" @@ -333,24 +439,31 @@ "user-code/thermistor/figures/therm-sym.png" 1615963614 17914 5c4de58664f2c605c14ebafd7187b119 "" "user-code/thermistor/figures/thermistor-buzzer.png" 1617904904 251485 47e52a1b05f033ac5efc513d0c38b843 "" "user-code/thermistor/figures/thermistor.png" 1617904875 227111 a497c7b79fab30a854e897df8f7b9e5a "" + "user-code/thermistor/julia/therm-buzzer.jl" 1620088994 361 703362d6f73c2ce36d978a43225a8dbf "" + "user-code/thermistor/julia/therm-read.jl" 1620002804 183 640b24fbc4b351c3ad132e1f06e21993 "" + "user-code/thermistor/python/therm-buzzer.py" 1620088994 986 0feaddc58806c5744d676064126a7242 "" + "user-code/thermistor/python/therm-read.py" 1620002454 748 cba86aade80fa8215987d3707938af4c "" "user-code/thermistor/scilab/therm-buzzer.sce" 1620088994 542 66209c5ab2e09a16efa85ab68a541109 "" "user-code/thermistor/scilab/therm-read.sce" 1619998644 399 3d4d94a3003c16014a51200a9b472b66 "" + "user-code/thermistor/thermistor-OM.tex" 1621455775 5413 2604e0806d714fe51411dcf49eb41abd "" "user-code/thermistor/thermistor-base.tex" 1621455775 12060 ceacf10a396b42fe1b4434075deb9129 "" + "user-code/thermistor/thermistor-julia.tex" 1621455775 5083 6e773263fd0378465696e28325689b98 "" + "user-code/thermistor/thermistor-python.tex" 1621455775 6691 862d1afff08e56188dbf093216cd5553 "" "user-code/thermistor/thermistor-scilab.tex" 1621455775 15817 4f8b0a1727ee952a36196e611ce5308c "" (generated) - "floss-arduino.toc" - "floss-arduino.aux" - "floss-arduino.log" - "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.log" - "floss-arduino.ard" - "floss-arduino.pyd" - "floss-arduino.lof" - "floss-arduino.idx" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" - "floss-arduino.cod" "floss-arduino.thm" - "floss-arduino.pdf" - "floss-arduino.lot" + "floss-arduino.lof" + "floss-arduino.toc" "floss-arduino.out" + "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.log" "floss-arduino.juliad" "floss-arduino.OpenModelicad" + "floss-arduino.lot" + "floss-arduino.log" + "floss-arduino.ard" + "floss-arduino.aux" + "floss-arduino.pdf" + "floss-arduino.idx" + "floss-arduino.cod" + "floss-arduino.pyd" diff --git a/floss-arduino.fls b/floss-arduino.fls index af922ea..59a2805 100644 --- a/floss-arduino.fls +++ b/floss-arduino.fls @@ -358,6 +358,78 @@ INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/arduino INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/xcos-help.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/xcos-help.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/xcos-help.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/sw-env-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/sw-env-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/python-windows-install.JPG +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/python-windows-install.JPG +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/python-windows-install.JPG +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/windows-cmd.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/windows-cmd.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/windows-cmd.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/win-command-prompt.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/win-command-prompt.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/win-command-prompt.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/tools/python/test_firmware.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/tools/python/test_firmware.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/tools/python/test_firmware.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/sw-env-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/sw-env-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-download.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-download.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-download.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-windows-install.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-windows-install.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-windows-install.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-repl-windows.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-repl-windows.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-repl-windows.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-pkg-windows.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-pkg-windows.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-pkg-windows.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-terminal-repl.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-terminal-repl.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-terminal-repl.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-pkg.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-pkg.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-pkg.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/tools/julia/test_firmware.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/tools/julia/test_firmware.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/tools/julia/test_firmware.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/sw-env-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/sw-env-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/openmodelica-run-anyway.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/openmodelica-run-anyway.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/openmodelica-run-anyway.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/OMEdit-libraries.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/OMEdit-libraries.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/OMEdit-libraries.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/OMEdit-UI.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/OMEdit-UI.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/OMEdit-UI.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-open-model.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-open-model.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-open-model.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-modeling.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-modeling.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-modeling.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-modeling-views.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-modeling-views.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-modeling-views.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-text-view.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-text-view.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-text-view.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-simulate.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-simulate.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-simulate.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-sim-success.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-sim-success.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-sim-success.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-toolbox-loaded.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-toolbox-loaded.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-toolbox-loaded.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/tools/openmodelica/windows//test_firmware.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/tools/openmodelica/windows//test_firmware.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/tools/openmodelica/windows//test_firmware.mo INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/led-base.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/led-base.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led.png @@ -444,6 +516,108 @@ INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue-r INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-green-blink-com-2.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-green-blink-com-2.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-green-blink-com-2.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/led-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/led-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-delay.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-delay.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-delay.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-delay.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-delay.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-delay.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-delay.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-delay.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-delay.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-red.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-red.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-red.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-green-blink.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-green-blink.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-green-blink.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/led-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/led-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-delay.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-delay.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-delay.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-delay.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-delay.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-delay.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-delay.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-delay.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-delay.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-red.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-red.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-red.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-green-blink.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-green-blink.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-green-blink.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/led-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/led-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue-delay.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue-delay.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue-delay.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue-delay.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue-delay.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue-delay.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue-delay.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue-delay.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue-delay.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue-red.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue-red.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue-red.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-green-blink.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-green-blink.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-green-blink.mo INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/push-base.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/push-base.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/pushbutton-conn.png @@ -496,6 +670,57 @@ INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/push-butt INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/led-push-button.PNG INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/led-push-button.PNG INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/led-push-button.PNG +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/push-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/push-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push-button-status.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push-button-status.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push-button-status.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push-button-status.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push-button-status.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push-button-status.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led-push-button.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led-push-button.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led-push-button.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push-button-status.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push-button-status.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push-button-status.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led-push-button.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led-push-button.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led-push-button.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/push-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/push-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-status.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-status.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-status.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-status.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-status.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-status.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led-push-button.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led-push-button.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led-push-button.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-status.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-status.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/push-button-status.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led-push-button.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led-push-button.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led-push-button.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/push-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/push-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-button-status.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-button-status.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-button-status.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-button-status.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-button-status.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-button-status.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push-button.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push-button.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push-button.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-button-status.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-button-status.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-button-status.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push-button.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push-button.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push-button.mo INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/ldr-base.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/ldr-base.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr.jpg @@ -554,6 +779,48 @@ INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-2. INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-read-plot.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-read-plot.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-read-plot.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/ldr-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/ldr-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-led.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-led.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-led.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/ldr-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/ldr-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-led.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-led.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-led.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/ldr-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/ldr-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-led.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-led.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-led.mo INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/pot-base.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/pot-base.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/potmeter.png @@ -588,6 +855,39 @@ INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot-thresho INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot-threshold-1.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot-threshold-1.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot-threshold-1.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/pot-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/pot-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot-threshold.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot-threshold.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot-threshold.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot-threshold.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot-threshold.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot-threshold.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot-threshold.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot-threshold.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot-threshold.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/pot-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/pot-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot-threshold.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot-threshold.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot-threshold.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot-threshold.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot-threshold.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot-threshold.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot-threshold.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot-threshold.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot-threshold.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/pot-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/pot-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot-threshold.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot-threshold.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot-threshold.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot-threshold.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot-threshold.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot-threshold.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot-threshold.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot-threshold.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot-threshold.mo INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/thermistor-base.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/thermistor-base.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/NTC-bead.jpg @@ -655,6 +955,57 @@ INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/the INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-buzzer.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/thermistor-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/thermistor-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-buzzer.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-buzzer.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-buzzer.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-read.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-buzzer.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-buzzer.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-buzzer.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/thermistor-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/thermistor-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-buzzer.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-buzzer.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-buzzer.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-read.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-buzzer.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-buzzer.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-buzzer.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/thermistor-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/thermistor-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-buzzer.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-buzzer.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-buzzer.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-read.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-buzzer.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-buzzer.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/therm-buzzer.mo INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/servo-base.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/servo-base.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-uno-shield.jpg @@ -734,6 +1085,84 @@ INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-lo INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-pot.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-pot.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-pot.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/servo-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/servo-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-init.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-init.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-init.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-init.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-init.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-init.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-reverse.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-reverse.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-reverse.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-pot.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-pot.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-pot.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-init.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-init.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-init.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-reverse.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-reverse.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-reverse.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-loop.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-loop.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-loop.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-pot.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-pot.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-pot.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/servo-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/servo-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-init.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-init.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-init.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-init.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-init.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-init.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-reverse.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-reverse.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-reverse.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-pot.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-pot.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-pot.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-init.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-init.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-init.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-reverse.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-reverse.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-reverse.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-loop.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-loop.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-loop.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-pot.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-pot.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-pot.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/servo-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/servo-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-init.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-init.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-init.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-init.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-init.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-init.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-reverse.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-reverse.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-reverse.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-pot.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-pot.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-pot.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-init.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-init.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-init.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-reverse.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-reverse.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-reverse.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-loop.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-loop.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-loop.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-pot.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-pot.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-pot.mo INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/dcmotor-base.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/dcmotor-base.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor_board.png @@ -811,8 +1240,95 @@ INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmoto INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor-loop.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor-loop.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor-loop.png -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/modbus-scilab.tex -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/modbus-scilab.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/dcmotor-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/dcmotor-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clock.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clock.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clock.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clock.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clock.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clock.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clock.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clock.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clock.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clock.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clock.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clock.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-both.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-both.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-both.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-both.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-both.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-both.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clock.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clock.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clock.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-both.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-both.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-both.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-loop.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-loop.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-loop.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/dcmotor-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/dcmotor-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-clock.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-clock.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-clock.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-clock.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-clock.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-clock.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-clock.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-clock.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-clock.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-clock.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-clock.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-clock.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-both.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-both.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-both.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-both.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-both.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-both.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-clock.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-clock.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-clock.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-both.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-both.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-both.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-loop.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-loop.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-loop.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/dcmotor-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/dcmotor-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-clock.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-clock.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-clock.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-clock.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-clock.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-clock.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-clock.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-clock.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-clock.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-clock.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-clock.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-clock.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-both.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-both.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-both.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-both.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-both.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-both.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-clock.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-clock.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-clock.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-both.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-both.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-both.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-loop.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-loop.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor-loop.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/modbus-base.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/modbus-base.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig1.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig1.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig1.png @@ -828,12 +1344,29 @@ INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/block-d INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/Full-Set-Up.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/Full-Set-Up.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/Full-Set-Up.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/modbus-scilab.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/modbus-scilab.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/arduino_code_flowchart.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/arduino_code_flowchart.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/arduino_code_flowchart.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowchart.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowchart.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowchart.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet.ino +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet.ino +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet.ino +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_val.sce +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_val.sce +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_val.sce +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_current.sci +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_current.sci +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_current.sci +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_voltage.sci +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_voltage.sci +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_voltage.sci +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_active_power.sci +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_active_power.sci +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_active_power.sci INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/current-output.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/current-output.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/current-output.png @@ -852,24 +1385,63 @@ INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active- INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active-power-output-setup.jpg INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active-power-output-setup.jpg INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active-power-output-setup.jpg -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet.ino -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet.ino -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet.ino -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_val.sce -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_val.sce -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_val.sce -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_current.sci -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_current.sci -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_current.sci -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_voltage.sci -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_voltage.sci -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_voltage.sci -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_active_power.sci -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_active_power.sci -INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_active_power.sci INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/read_value_xcos.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/read_value_xcos.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/read_value_xcos.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/modbus-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/modbus-python.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/arduino_code_flowchart.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/arduino_code_flowchart.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowchart.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowchart.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet.ino +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet.ino +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet.ino +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read_current.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read_current.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read_current.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read_voltage.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read_voltage.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read_voltage.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read_active_power.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read_active_power.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read_active_power.py +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/modbus-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/modbus-julia.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/arduino_code_flowchart.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/arduino_code_flowchart.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowchart.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowchart.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet.ino +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet.ino +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet.ino +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readCurrent.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readCurrent.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readCurrent.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readVoltage.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readVoltage.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readVoltage.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readPower.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readPower.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readPower.jl +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/modbus-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/modbus-OM.tex +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/arduino_code_flowchart.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/arduino_code_flowchart.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowchart.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowchart.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet.ino +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet.ino +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet.ino +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readCurrent.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readCurrent.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readCurrent.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readVoltage.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readVoltage.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readVoltage.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readPower.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readPower.mo +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readPower.mo INPUT /home/fossee/Desktop/floss-scilab-arduino/floss-arduino.bbl INPUT /home/fossee/Desktop/floss-scilab-arduino/floss-arduino.bbl OUTPUT /home/fossee/Desktop/floss-scilab-arduino/floss-arduino.thm diff --git a/floss-arduino.idx b/floss-arduino.idx index cb69bed..92a94ab 100644 --- a/floss-arduino.idx +++ b/floss-arduino.idx @@ -1,5 +1,5 @@ -\indexentry{H-Bridge circuit DC motor|hyperpage}{121} -\indexentry{H-Bridge|hyperpage}{121} -\indexentry{L293D,L298|hyperpage}{121} -\indexentry{PCB breakout board|hyperpage}{121} -\indexentry{pulse width modulation, PWM|hyperpage}{121} +\indexentry{H-Bridge circuit DC motor|hyperpage}{203} +\indexentry{H-Bridge|hyperpage}{203} +\indexentry{L293D,L298|hyperpage}{203} +\indexentry{PCB breakout board|hyperpage}{203} +\indexentry{pulse width modulation, PWM|hyperpage}{203} diff --git a/floss-arduino.ind b/floss-arduino.ind index 5cac309..3bf5a4d 100644 --- a/floss-arduino.ind +++ b/floss-arduino.ind @@ -1,15 +1,15 @@ \begin{theindex} - \item H-Bridge, \hyperpage{121} - \item H-Bridge circuit DC motor, \hyperpage{121} + \item H-Bridge, \hyperpage{203} + \item H-Bridge circuit DC motor, \hyperpage{203} \indexspace - \item L293D,L298, \hyperpage{121} + \item L293D,L298, \hyperpage{203} \indexspace - \item PCB breakout board, \hyperpage{121} - \item pulse width modulation, PWM, \hyperpage{121} + \item PCB breakout board, \hyperpage{203} + \item pulse width modulation, PWM, \hyperpage{203} \end{theindex} diff --git a/floss-arduino.juliad b/floss-arduino.juliad index e69de29..2e2ceeb 100644 --- a/floss-arduino.juliad +++ b/floss-arduino.juliad @@ -0,0 +1,30 @@ +\contentsline {section}{\numberline {3.{1}}A Julia source file to check whether the firmware is properly installed or not}{55}{juliamass.3.1}% +\addvspace {10pt} +\contentsline {section}{\numberline {4.{1}}Turning on the blue LED}{87}{juliamass.4.1}% +\contentsline {section}{\numberline {4.{2}}Turning on the blue LED and turning it off after two seconds}{88}{juliamass.4.2}% +\contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{88}{juliamass.4.3}% +\contentsline {section}{\numberline {4.{4}}Blinking the green LED}{88}{juliamass.4.4}% +\addvspace {10pt} +\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on Command Prompt or the Terminal.}{109}{juliamass.5.1}% +\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{109}{juliamass.5.2}% +\addvspace {10pt} +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{130}{juliamass.6.1}% +\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{131}{juliamass.6.2}% +\addvspace {10pt} +\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{145}{juliamass.7.1}% +\addvspace {10pt} +\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{168}{juliamass.8.1}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{169}{juliamass.8.2}% +\addvspace {10pt} +\contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{195}{juliamass.9.1}% +\contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{195}{juliamass.9.2}% +\contentsline {section}{\numberline {9.{3}}Rotating the servomotor in steps of $20^\circ $}{195}{juliamass.9.3}% +\contentsline {section}{\numberline {9.{4}}Rotating the servomotor to a degree specified by the potentiometer}{196}{juliamass.9.4}% +\addvspace {10pt} +\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{224}{juliamass.10.1}% +\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{225}{juliamass.10.2}% +\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{225}{juliamass.10.3}% +\addvspace {10pt} +\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{256}{juliamass.11.1}% +\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{257}{juliamass.11.2}% +\contentsline {section}{\numberline {11.{3}}First 10 lines of the code for Single Phase Active Power Output}{257}{juliamass.11.3}% diff --git a/floss-arduino.lof b/floss-arduino.lof index 167cc46..a4a01bc 100644 --- a/floss-arduino.lof +++ b/floss-arduino.lof @@ -36,81 +36,106 @@ \contentsline {figure}{\numberline {3.21}{\ignorespaces Simulation setup window\relax }}{40}{figure.caption.48}% \contentsline {figure}{\numberline {3.22}{\ignorespaces Palette browser showing Arduino blocks\relax }}{40}{figure.caption.49}% \contentsline {figure}{\numberline {3.23}{\ignorespaces Xcos block help\relax }}{41}{figure.caption.50}% +\contentsline {figure}{\numberline {3.24}{\ignorespaces Installing Python 3 on Windows\relax }}{42}{figure.caption.51}% +\contentsline {figure}{\numberline {3.25}{\ignorespaces Launching the Command Prompt on Windows\relax }}{43}{figure.caption.52}% +\contentsline {figure}{\numberline {3.26}{\ignorespaces Command Prompt on Windows\relax }}{43}{figure.caption.53}% +\contentsline {figure}{\numberline {3.27}{\ignorespaces Julia's website to download 64-bit Windows/Linux binaries\relax }}{48}{figure.caption.54}% +\contentsline {figure}{\numberline {3.28}{\ignorespaces Installing Julia 1.6.0 on Windows\relax }}{48}{figure.caption.55}% +\contentsline {figure}{\numberline {3.29}{\ignorespaces Windows command prompt to launch Julia REPL\relax }}{50}{figure.caption.56}% +\contentsline {figure}{\numberline {3.30}{\ignorespaces Windows command prompt to enter Pkg REPL in Julia\relax }}{50}{figure.caption.57}% +\contentsline {figure}{\numberline {3.31}{\ignorespaces Linux terminal to launch Julia REPL\relax }}{53}{figure.caption.58}% +\contentsline {figure}{\numberline {3.32}{\ignorespaces Linux terminal to enter Pkg REPL in Julia\relax }}{54}{figure.caption.59}% +\contentsline {figure}{\numberline {3.33}{\ignorespaces Allowing Microsoft Defender to run the executable file\relax }}{57}{figure.caption.60}% +\contentsline {figure}{\numberline {3.34}{\ignorespaces Setup of Modelica Standard Library version\relax }}{58}{figure.caption.61}% +\contentsline {figure}{\numberline {3.35}{\ignorespaces User Interface of OMEdit\relax }}{59}{figure.caption.62}% +\contentsline {figure}{\numberline {3.36}{\ignorespaces Opening a model in OMEdit\relax }}{60}{figure.caption.63}% +\contentsline {figure}{\numberline {3.37}{\ignorespaces Opening a model in diagram view in OMEdit\relax }}{61}{figure.caption.64}% +\contentsline {figure}{\numberline {3.38}{\ignorespaces Different views of a model in OMEdit\relax }}{61}{figure.caption.65}% +\contentsline {figure}{\numberline {3.39}{\ignorespaces Opening a model in text view in OMEdit\relax }}{62}{figure.caption.66}% +\contentsline {figure}{\numberline {3.40}{\ignorespaces Simulating a model in OMEdit\relax }}{62}{figure.caption.67}% +\contentsline {figure}{\numberline {3.41}{\ignorespaces Output window of OMEdit\relax }}{63}{figure.caption.68}% +\contentsline {figure}{\numberline {3.42}{\ignorespaces Examples provided in the OpenModelica-Arduino toolbox\relax }}{65}{figure.caption.69}% \addvspace {10\p@ } -\contentsline {figure}{\numberline {4.1}{\ignorespaces Light Emitting Diode\relax }}{43}{figure.caption.51}% -\contentsline {figure}{\numberline {4.2}{\ignorespaces Internal connection diagram for the RGB LED on the shield\relax }}{44}{figure.caption.52}% -\contentsline {figure}{\numberline {4.3}{\ignorespaces Connecting Arduino Uno\ and shield\relax }}{44}{figure.caption.53}% -\contentsline {figure}{\numberline {4.4}{\ignorespaces An RGB LED with Arduino Uno\ using a breadboard\relax }}{45}{figure.caption.54}% -\contentsline {figure}{\numberline {4.5}{\ignorespaces LED experiments directly on Arduino Uno\ board, without the shield\relax }}{48}{figure.caption.56}% -\contentsline {figure}{\numberline {4.6}{\ignorespaces Turning the blue LED on through Xcos}}{53}{figure.caption.58}% -\contentsline {figure}{\numberline {4.7}{\ignorespaces Turning the blue LED on through Xcos for two seconds}}{54}{figure.caption.60}% -\contentsline {figure}{\numberline {4.8}{\ignorespaces Turning the blue and red LEDs on through Xcos and turning them off one by one}}{55}{figure.caption.62}% -\contentsline {figure}{\numberline {4.9}{\ignorespaces Blinking the green LED every second through Xcos}}{56}{figure.caption.64}% +\contentsline {figure}{\numberline {4.1}{\ignorespaces Light Emitting Diode\relax }}{67}{figure.caption.70}% +\contentsline {figure}{\numberline {4.2}{\ignorespaces Internal connection diagram for the RGB LED on the shield\relax }}{68}{figure.caption.71}% +\contentsline {figure}{\numberline {4.3}{\ignorespaces Connecting Arduino Uno\ and shield\relax }}{68}{figure.caption.72}% +\contentsline {figure}{\numberline {4.4}{\ignorespaces An RGB LED with Arduino Uno\ using a breadboard\relax }}{69}{figure.caption.73}% +\contentsline {figure}{\numberline {4.5}{\ignorespaces LED experiments directly on Arduino Uno\ board, without the shield\relax }}{72}{figure.caption.75}% +\contentsline {figure}{\numberline {4.6}{\ignorespaces Turning the blue LED on through Xcos}}{77}{figure.caption.77}% +\contentsline {figure}{\numberline {4.7}{\ignorespaces Turning the blue LED on through Xcos for two seconds}}{78}{figure.caption.79}% +\contentsline {figure}{\numberline {4.8}{\ignorespaces Turning the blue and red LEDs on through Xcos and turning them off one by one}}{79}{figure.caption.81}% +\contentsline {figure}{\numberline {4.9}{\ignorespaces Blinking the green LED every second through Xcos}}{80}{figure.caption.83}% \addvspace {10\p@ } -\contentsline {figure}{\numberline {5.1}{\ignorespaces Internal connection diagram for the pushbutton on the shield\relax }}{58}{figure.caption.66}% -\contentsline {figure}{\numberline {5.2}{\ignorespaces A pushbutton to read its status with Arduino Uno using a breadboard\relax }}{58}{figure.caption.67}% -\contentsline {figure}{\numberline {5.3}{\ignorespaces A pushbutton to control an LED with Arduino Uno using a breadboard\relax }}{59}{figure.caption.68}% -\contentsline {figure}{\numberline {5.4}{\ignorespaces GUI in Scilab to show the status of the pushbutton\relax }}{63}{figure.caption.69}% -\contentsline {figure}{\numberline {5.5}{\ignorespaces Printing the push button status on the display block}}{65}{figure.caption.70}% -\contentsline {figure}{\numberline {5.6}{\ignorespaces Turning the LED on or off, depending on the pushbutton}}{66}{figure.caption.72}% +\contentsline {figure}{\numberline {5.1}{\ignorespaces Internal connection diagram for the pushbutton on the shield\relax }}{96}{figure.caption.85}% +\contentsline {figure}{\numberline {5.2}{\ignorespaces A pushbutton to read its status with Arduino Uno using a breadboard\relax }}{96}{figure.caption.86}% +\contentsline {figure}{\numberline {5.3}{\ignorespaces A pushbutton to control an LED with Arduino Uno using a breadboard\relax }}{97}{figure.caption.87}% +\contentsline {figure}{\numberline {5.4}{\ignorespaces GUI in Scilab to show the status of the pushbutton\relax }}{101}{figure.caption.88}% +\contentsline {figure}{\numberline {5.5}{\ignorespaces Printing the push button status on the display block}}{103}{figure.caption.89}% +\contentsline {figure}{\numberline {5.6}{\ignorespaces Turning the LED on or off, depending on the pushbutton}}{104}{figure.caption.91}% \addvspace {10\p@ } -\contentsline {figure}{\numberline {6.1}{\ignorespaces Light Dependent Resistor\relax }}{70}{figure.caption.74}% -\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of an LDR}}}{70}{subfigure.1.1}% -\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Symbolic representation of an LDR}}}{70}{subfigure.1.2}% -\contentsline {figure}{\numberline {6.2}{\ignorespaces Internal connection diagram for the LDR on the shield\relax }}{70}{figure.caption.75}% -\contentsline {figure}{\numberline {6.3}{\ignorespaces An LDR to read its values with Arduino Uno\ using a breadboard\relax }}{71}{figure.caption.76}% -\contentsline {figure}{\numberline {6.4}{\ignorespaces An LDR to control an LED with Arduino Uno using a breadboard\relax }}{72}{figure.caption.77}% -\contentsline {figure}{\numberline {6.5}{\ignorespaces Xcos diagram to read LDR values}}{77}{figure.caption.78}% -\contentsline {figure}{\numberline {6.6}{\ignorespaces Plot window in Xcos to read LDR values\relax }}{77}{figure.caption.79}% -\contentsline {figure}{\numberline {6.7}{\ignorespaces Xcos diagram to read the value of the LDR, which is used to turn the blue LED on or off}}{79}{figure.caption.81}% -\contentsline {figure}{\numberline {6.8}{\ignorespaces Plot window in Xcos to read LDR values and the state of LED\relax }}{79}{figure.caption.82}% +\contentsline {figure}{\numberline {6.1}{\ignorespaces Light Dependent Resistor\relax }}{116}{figure.caption.93}% +\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of an LDR}}}{116}{subfigure.1.1}% +\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Symbolic representation of an LDR}}}{116}{subfigure.1.2}% +\contentsline {figure}{\numberline {6.2}{\ignorespaces Internal connection diagram for the LDR on the shield\relax }}{116}{figure.caption.94}% +\contentsline {figure}{\numberline {6.3}{\ignorespaces An LDR to read its values with Arduino Uno\ using a breadboard\relax }}{117}{figure.caption.95}% +\contentsline {figure}{\numberline {6.4}{\ignorespaces An LDR to control an LED with Arduino Uno using a breadboard\relax }}{118}{figure.caption.96}% +\contentsline {figure}{\numberline {6.5}{\ignorespaces Xcos diagram to read LDR values}}{123}{figure.caption.97}% +\contentsline {figure}{\numberline {6.6}{\ignorespaces Plot window in Xcos to read LDR values\relax }}{123}{figure.caption.98}% +\contentsline {figure}{\numberline {6.7}{\ignorespaces Xcos diagram to read the value of the LDR, which is used to turn the blue LED on or off}}{125}{figure.caption.100}% +\contentsline {figure}{\numberline {6.8}{\ignorespaces Plot window in Xcos to read LDR values and the state of LED\relax }}{125}{figure.caption.101}% \addvspace {10\p@ } -\contentsline {figure}{\numberline {7.1}{\ignorespaces Potentiometer's schematic on the shield\relax }}{82}{figure.caption.84}% -\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of a potentiometer}}}{82}{subfigure.1.1}% -\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Internal connection diagram for the potentiometer on the shield}}}{82}{subfigure.1.2}% -\contentsline {figure}{\numberline {7.2}{\ignorespaces A potentiometer to control an LED with Arduino Uno using a breadboard\relax }}{83}{figure.caption.85}% -\contentsline {figure}{\numberline {7.3}{\ignorespaces Turning LEDs on through Xcos depending on the potentiometer threshold}}{87}{figure.caption.86}% +\contentsline {figure}{\numberline {7.1}{\ignorespaces Potentiometer's schematic on the shield\relax }}{136}{figure.caption.103}% +\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of a potentiometer}}}{136}{subfigure.1.1}% +\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Internal connection diagram for the potentiometer on the shield}}}{136}{subfigure.1.2}% +\contentsline {figure}{\numberline {7.2}{\ignorespaces A potentiometer to control an LED with Arduino Uno using a breadboard\relax }}{137}{figure.caption.104}% +\contentsline {figure}{\numberline {7.3}{\ignorespaces Turning LEDs on through Xcos depending on the potentiometer threshold}}{141}{figure.caption.105}% \addvspace {10\p@ } -\contentsline {figure}{\numberline {8.1}{\ignorespaces Pictorial and symbolic representation of a thermistor\relax }}{90}{figure.caption.88}% -\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of a thermistor\cite {therm-wiki}}}}{90}{subfigure.1.1}% -\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Symbolic representation of a thermistor}}}{90}{subfigure.1.2}% -\contentsline {figure}{\numberline {8.2}{\ignorespaces Internal connection diagrams for thermistor and buzzer on the shield\relax }}{90}{figure.caption.89}% -\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Thermistor connection diagram}}}{90}{subfigure.2.1}% -\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Buzzer connection diagram}}}{90}{subfigure.2.2}% -\contentsline {figure}{\numberline {8.3}{\ignorespaces A thermistor to read its values with Arduino Uno using a breadboard\relax }}{91}{figure.caption.90}% -\contentsline {figure}{\numberline {8.4}{\ignorespaces A thermistor to control a buzzer with Arduino Uno using a breadboard\relax }}{92}{figure.caption.91}% -\contentsline {figure}{\numberline {8.5}{\ignorespaces Xcos diagram to read thermistor values}}{100}{figure.caption.94}% -\contentsline {figure}{\numberline {8.6}{\ignorespaces Plot window in Xcos to read thermistor values\relax }}{101}{figure.caption.96}% -\contentsline {figure}{\numberline {8.7}{\ignorespaces Xcos diagram to read the value of thermistor, which is used to turn the buzzer on}}{101}{figure.caption.97}% -\contentsline {figure}{\numberline {8.8}{\ignorespaces Plot window in Xcos to read thermistor values and the state of LED\relax }}{103}{figure.caption.99}% +\contentsline {figure}{\numberline {8.1}{\ignorespaces Pictorial and symbolic representation of a thermistor\relax }}{150}{figure.caption.107}% +\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Pictorial representation of a thermistor\cite {therm-wiki}}}}{150}{subfigure.1.1}% +\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Symbolic representation of a thermistor}}}{150}{subfigure.1.2}% +\contentsline {figure}{\numberline {8.2}{\ignorespaces Internal connection diagrams for thermistor and buzzer on the shield\relax }}{150}{figure.caption.108}% +\contentsline {subfigure}{\numberline {(a)}{\ignorespaces {Thermistor connection diagram}}}{150}{subfigure.2.1}% +\contentsline {subfigure}{\numberline {(b)}{\ignorespaces {Buzzer connection diagram}}}{150}{subfigure.2.2}% +\contentsline {figure}{\numberline {8.3}{\ignorespaces A thermistor to read its values with Arduino Uno using a breadboard\relax }}{151}{figure.caption.109}% +\contentsline {figure}{\numberline {8.4}{\ignorespaces A thermistor to control a buzzer with Arduino Uno using a breadboard\relax }}{152}{figure.caption.110}% +\contentsline {figure}{\numberline {8.5}{\ignorespaces Xcos diagram to read thermistor values}}{160}{figure.caption.113}% +\contentsline {figure}{\numberline {8.6}{\ignorespaces Plot window in Xcos to read thermistor values\relax }}{161}{figure.caption.115}% +\contentsline {figure}{\numberline {8.7}{\ignorespaces Xcos diagram to read the value of thermistor, which is used to turn the buzzer on}}{161}{figure.caption.116}% +\contentsline {figure}{\numberline {8.8}{\ignorespaces Plot window in Xcos to read thermistor values and the state of LED\relax }}{163}{figure.caption.118}% \addvspace {10\p@ } -\contentsline {figure}{\numberline {9.1}{\ignorespaces Connecting servomotor to the shield attached on Arduino Uno\relax }}{106}{figure.caption.101}% -\contentsline {figure}{\numberline {9.2}{\ignorespaces A servomotor with Arduino Uno\ using a breadboard\relax }}{107}{figure.caption.103}% -\contentsline {figure}{\numberline {9.3}{\ignorespaces A servomotor and a potentiometer with Arduino Uno\ using a breadboard\relax }}{108}{figure.caption.104}% -\contentsline {figure}{\numberline {9.4}{\ignorespaces Rotating the servomotor by a fixed angle}}{116}{figure.caption.105}% -\contentsline {figure}{\numberline {9.5}{\ignorespaces Rotating the servomotor forward and then reverse}}{117}{figure.caption.107}% -\contentsline {figure}{\numberline {9.6}{\ignorespaces Rotating the servomotor in increments of $20^\circ $}}{118}{figure.caption.109}% -\contentsline {figure}{\numberline {9.7}{\ignorespaces Rotating the servomotor as suggested by the potentiometer}}{119}{figure.caption.111}% +\contentsline {figure}{\numberline {9.1}{\ignorespaces Connecting servomotor to the shield attached on Arduino Uno\relax }}{174}{figure.caption.123}% +\contentsline {figure}{\numberline {9.2}{\ignorespaces A servomotor with Arduino Uno\ using a breadboard\relax }}{175}{figure.caption.125}% +\contentsline {figure}{\numberline {9.3}{\ignorespaces A servomotor and a potentiometer with Arduino Uno\ using a breadboard\relax }}{176}{figure.caption.126}% +\contentsline {figure}{\numberline {9.4}{\ignorespaces Rotating the servomotor by a fixed angle}}{184}{figure.caption.127}% +\contentsline {figure}{\numberline {9.5}{\ignorespaces Rotating the servomotor forward and then reverse}}{185}{figure.caption.129}% +\contentsline {figure}{\numberline {9.6}{\ignorespaces Rotating the servomotor in increments of $20^\circ $}}{186}{figure.caption.131}% +\contentsline {figure}{\numberline {9.7}{\ignorespaces Rotating the servomotor as suggested by the potentiometer}}{187}{figure.caption.133}% \addvspace {10\p@ } -\contentsline {figure}{\numberline {10.1}{\ignorespaces L293D motor driver board\relax }}{122}{figure.caption.113}% -\contentsline {figure}{\numberline {10.2}{\ignorespaces PWM pins on an Arduino Uno\ board\relax }}{123}{figure.caption.114}% -\contentsline {figure}{\numberline {10.3}{\ignorespaces A schematic of DC motor connections\relax }}{123}{figure.caption.115}% -\contentsline {figure}{\numberline {10.4}{\ignorespaces How to connect the DC motor to the Arduino Uno\ board\relax }}{124}{figure.caption.116}% -\contentsline {figure}{\numberline {10.5}{\ignorespaces Control of DC motor for a specified time from Xcos}}{132}{figure.caption.121}% -\contentsline {figure}{\numberline {10.6}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{133}{figure.caption.123}% -\contentsline {figure}{\numberline {10.7}{\ignorespaces Xcos control of the DC motor in both directions in a loop}}{134}{figure.caption.125}% +\contentsline {figure}{\numberline {10.1}{\ignorespaces L293D motor driver board\relax }}{204}{figure.caption.135}% +\contentsline {figure}{\numberline {10.2}{\ignorespaces PWM pins on an Arduino Uno\ board\relax }}{205}{figure.caption.136}% +\contentsline {figure}{\numberline {10.3}{\ignorespaces A schematic of DC motor connections\relax }}{205}{figure.caption.137}% +\contentsline {figure}{\numberline {10.4}{\ignorespaces How to connect the DC motor to the Arduino Uno\ board\relax }}{206}{figure.caption.138}% +\contentsline {figure}{\numberline {10.5}{\ignorespaces Control of DC motor for a specified time from Xcos}}{214}{figure.caption.143}% +\contentsline {figure}{\numberline {10.6}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{215}{figure.caption.145}% +\contentsline {figure}{\numberline {10.7}{\ignorespaces Xcos control of the DC motor in both directions in a loop}}{216}{figure.caption.147}% \addvspace {10\p@ } -\contentsline {figure}{\numberline {11.1}{\ignorespaces Block diagram representation of the Protocol\relax }}{138}{figure.caption.127}% -\contentsline {figure}{\numberline {11.2}{\ignorespaces Master-Slave Query-Response Cycle\relax }}{138}{figure.caption.128}% -\contentsline {figure}{\numberline {11.3}{\ignorespaces Pins in RS485 module\relax }}{139}{figure.caption.130}% -\contentsline {figure}{\numberline {11.4}{\ignorespaces Block diagram for reading the parameters in energy meter\relax }}{145}{figure.caption.137}% -\contentsline {figure}{\numberline {11.5}{\ignorespaces Experimental set up for reading energy meter\relax }}{145}{figure.caption.138}% -\contentsline {figure}{\numberline {11.6}{\ignorespaces Flowchart of Arduino firmware\relax }}{147}{figure.caption.139}% -\contentsline {figure}{\numberline {11.7}{\ignorespaces Flowchart of the steps happening in Scilab code\relax }}{148}{figure.caption.140}% -\contentsline {figure}{\numberline {11.8}{\ignorespaces Single phase current output on Scilab Console\relax }}{148}{figure.caption.141}% -\contentsline {figure}{\numberline {11.9}{\ignorespaces Single phase current output in energy meter\relax }}{149}{figure.caption.142}% -\contentsline {figure}{\numberline {11.10}{\ignorespaces Single phase voltage output on Scilab Console\relax }}{149}{figure.caption.143}% -\contentsline {figure}{\numberline {11.11}{\ignorespaces Single phase voltage output in energy meter\relax }}{150}{figure.caption.144}% -\contentsline {figure}{\numberline {11.12}{\ignorespaces Single phase active power output on Scilab Console\relax }}{150}{figure.caption.145}% -\contentsline {figure}{\numberline {11.13}{\ignorespaces Single phase active power output in energy meter\relax }}{151}{figure.caption.146}% -\contentsline {figure}{\numberline {11.14}{\ignorespaces Xcos diagram to read Energy Meter values}}{154}{figure.caption.147}% +\contentsline {figure}{\numberline {11.1}{\ignorespaces Block diagram representation of the Protocol\relax }}{232}{figure.caption.155}% +\contentsline {figure}{\numberline {11.2}{\ignorespaces Master-Slave Query-Response Cycle\relax }}{232}{figure.caption.156}% +\contentsline {figure}{\numberline {11.3}{\ignorespaces Pins in RS485 module\relax }}{233}{figure.caption.158}% +\contentsline {figure}{\numberline {11.4}{\ignorespaces Block diagram for reading the parameters in energy meter\relax }}{238}{figure.caption.165}% +\contentsline {figure}{\numberline {11.5}{\ignorespaces Experimental set up for reading energy meter\relax }}{239}{figure.caption.166}% +\contentsline {figure}{\numberline {11.6}{\ignorespaces Flowchart of Arduino firmware\relax }}{241}{figure.caption.167}% +\contentsline {figure}{\numberline {11.7}{\ignorespaces Flowchart of the steps happening in Scilab code\relax }}{242}{figure.caption.168}% +\contentsline {figure}{\numberline {11.8}{\ignorespaces Single phase current output on Scilab Console\relax }}{245}{figure.caption.170}% +\contentsline {figure}{\numberline {11.9}{\ignorespaces Single phase current output in energy meter\relax }}{245}{figure.caption.171}% +\contentsline {figure}{\numberline {11.10}{\ignorespaces Single phase voltage output on Scilab Console\relax }}{246}{figure.caption.172}% +\contentsline {figure}{\numberline {11.11}{\ignorespaces Single phase voltage output in energy meter\relax }}{246}{figure.caption.173}% +\contentsline {figure}{\numberline {11.12}{\ignorespaces Single phase active power output on Scilab Console\relax }}{247}{figure.caption.174}% +\contentsline {figure}{\numberline {11.13}{\ignorespaces Single phase active power output in energy meter\relax }}{247}{figure.caption.175}% +\contentsline {figure}{\numberline {11.14}{\ignorespaces Xcos diagram to read Energy Meter values}}{248}{figure.caption.176}% +\contentsline {figure}{\numberline {11.15}{\ignorespaces Flowchart of Arduino firmware\relax }}{250}{figure.caption.179}% +\contentsline {figure}{\numberline {11.16}{\ignorespaces Flowchart of the steps happening in Python code\relax }}{251}{figure.caption.180}% +\contentsline {figure}{\numberline {11.17}{\ignorespaces Flowchart of Arduino firmware\relax }}{255}{figure.caption.182}% +\contentsline {figure}{\numberline {11.18}{\ignorespaces Flowchart of the steps happening in Julia code\relax }}{256}{figure.caption.183}% +\contentsline {figure}{\numberline {11.19}{\ignorespaces Flowchart of Arduino firmware\relax }}{259}{figure.caption.185}% +\contentsline {figure}{\numberline {11.20}{\ignorespaces Flowchart of the steps happening in OpenModelica model\relax }}{260}{figure.caption.186}% diff --git a/floss-arduino.log b/floss-arduino.log index 297689f..0adec18 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) 20 MAY 2021 02:22 +This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex 2020.11.5) 22 MAY 2021 05:51 entering extended mode restricted \write18 enabled. %&-line parsing enabled. @@ -535,8 +535,47 @@ File: l3backend-pdfmode.def 2020-02-03 L3 backend support: PDF mode ) (./floss-arduino.aux +LaTeX Warning: Label `sec:led-OpenModelica-code' multiply defined. + + LaTeX Warning: Label `sci:current-modbus' multiply defined. + +LaTeX Warning: Label `fig:modbus-firmware' multiply defined. + + +LaTeX Warning: Label `fig:flow-chart' multiply defined. + + +LaTeX Warning: Label `sec:firmware-modbus' multiply defined. + + +LaTeX Warning: Label `ard:firmware-modbus' multiply defined. + + +LaTeX Warning: Label `fig:modbus-firmware' multiply defined. + + +LaTeX Warning: Label `sec:firmware-modbus' multiply defined. + + +LaTeX Warning: Label `ard:firmware-modbus' multiply defined. + + +LaTeX Warning: Label `fig:flow-chart' multiply defined. + + +LaTeX Warning: Label `fig:modbus-firmware' multiply defined. + + +LaTeX Warning: Label `fig:flow-chart' multiply defined. + + +LaTeX Warning: Label `sec:firmware-modbus' multiply defined. + + +LaTeX Warning: Label `ard:firmware-modbus' multiply defined. + ) \openout1 = `floss-arduino.aux'. @@ -657,8 +696,8 @@ Overfull \hbox (74.6947pt too wide) detected at line 9 -{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] [2] [3] -Overfull \hbox (42.2769pt too wide) detected at line 134 +{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] [2] [3] [4] [5] [6] +Overfull \hbox (42.2769pt too wide) detected at line 244 \T1/cmr/bx/n/10.95 References [] @@ -666,64 +705,64 @@ Overfull \hbox (42.2769pt too wide) detected at line 134 \tf@toc=\write6 \openout6 = `floss-arduino.toc'. - [4] (./floss-arduino.lof [5 + [7] [8 -] -Overfull \hbox (4.98741pt too wide) in paragraph at lines 72--72 +] (./floss-arduino.lof [9] [10] +Overfull \hbox (4.98741pt too wide) in paragraph at lines 91--91 [][] [][]\T1/cmr/m/n/10.95 Turning LEDs on through Xcos de-pend-ing on the po- ten-tiome-ter thresh- [] -[6]) +[11]) \tf@lof=\write7 \openout7 = `floss-arduino.lof'. - [7] [8] (./floss-arduino.lot [9 + [12] (./floss-arduino.lot [13 ]) \tf@lot=\write8 \openout8 = `floss-arduino.lot'. - [10] (./floss-arduino.ard) + [14] (./floss-arduino.ard [15 + +]) \tf@ard=\write9 \openout9 = `floss-arduino.ard'. - [11 + [16] +(./floss-arduino.cod [17 -] [12 - -] -(./floss-arduino.cod [13]) +]) \tf@cod=\write10 \openout10 = `floss-arduino.cod'. - [14] (./floss-arduino.pyd) + [18] (./floss-arduino.pyd [19 + +]) \tf@pyd=\write11 \openout11 = `floss-arduino.pyd'. - [15 - -] [16 - -] + [20] (./floss-arduino.juliad) \tf@juliad=\write12 \openout12 = `floss-arduino.juliad'. - [17] [18 + [21 -] (./floss-arduino.OpenModelicad) +] [22] (./floss-arduino.OpenModelicad) \tf@OpenModelicad=\write13 \openout13 = `floss-arduino.OpenModelicad'. -(./suppl/acr.tex [19] [20 +(./suppl/acr.tex [23 -]) +] [24]) Underfull \vbox (badness 10000) has occurred while \output is active [] - [21] -[22] (./suppl/intro.tex + [25 + +] +[26] (./suppl/intro.tex Chapter 1. LaTeX Warning: Command \textregistered invalid in math mode on input line 22. @@ -754,7 +793,7 @@ Chapter 2. ] </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/miccontblk. -png, id=1099, 419.6478pt x 413.3844pt> +png, id=1801, 419.6478pt x 413.3844pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/miccon tblk.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/miccont @@ -765,7 +804,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw [4 </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/miccont blk.png>] [5] </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/resolution. -png, id=1114, 207.77625pt x 330.23375pt> +png, id=1817, 207.77625pt x 330.23375pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/resolu tion.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/resolut @@ -776,7 +815,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw [6 </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/resolut ion.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/OSHW-138px. -png, id=1128, 138.5175pt x 145.54375pt> +png, id=1831, 138.5175pt x 145.54375pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/OSHW-1 38px.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/OSHW-13 @@ -787,7 +826,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw [7 </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/OSHW-13 8px.png>] [8] </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/arduino.png -, id=1157, 585.18625pt x 221.82875pt> +, id=1860, 585.18625pt x 221.82875pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/arduin o.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/arduino @@ -801,7 +840,7 @@ Overfull \hbox (3.40561pt too wide) in paragraph at lines 261--281 [] </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/mega.jpg, i -d=1160, 481.8pt x 316.7835pt> +d=1863, 481.8pt x 316.7835pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/mega.j pg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/mega.jp @@ -810,7 +849,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw -env/figures/mega.jpg used on input line 293. (pdftex.def) Requested size: 258.36281pt x 169.87627pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/lily.jpg, i -d=1163, 321.2pt x 321.2pt> +d=1866, 321.2pt x 321.2pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/lily.j pg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/lily.jp @@ -821,7 +860,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw [9 </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/arduino. png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/arduino-pho -ne.jpg, id=1175, 230.15924pt x 153.5162pt> +ne.jpg, id=1877, 230.15924pt x 153.5162pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/arduin o-phone.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/arduino @@ -832,7 +871,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw [10 </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/mega.j pg>] </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/arduino-3d- -printer.jpg, id=1185, 770.88pt x 364.36125pt> +printer.jpg, id=1887, 770.88pt x 364.36125pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/arduin o-3d-printer.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/arduino @@ -844,7 +883,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw pg> </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/arduino -phone.jpg>] </home/fossee/Desktop/floss-scilab-arduino/tools/shield/pcb_board_V1p2.png, id= -1200, 608.2725pt x 534.99875pt> +1903, 608.2725pt x 534.99875pt> File: /home/fossee/Desktop/floss-scilab-arduino/tools/shield/pcb_board_V1p2.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/tools/shield/pcb_board_V1p2.png> @@ -852,16 +891,16 @@ File: /home/fossee/Desktop/floss-scilab-arduino/tools/shield/pcb_board_V1p2.png Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/tools/shield /pcb_board_V1p2.png used on input line 370. (pdftex.def) Requested size: 258.36281pt x 227.24492pt. -</home/fossee/Desktop/floss-scilab-arduino/tools/shield/shield-V1p2.png, id=120 -2, 819.06pt x 599.23875pt> +</home/fossee/Desktop/floss-scilab-arduino/tools/shield/shield-V1p2.png, id=190 +5, 819.06pt x 599.23875pt> File: /home/fossee/Desktop/floss-scilab-arduino/tools/shield/shield-V1p2.png Gr aphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/tools/shield/shield-V1p2.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/tools/shield /shield-V1p2.png used on input line 379. (pdftex.def) Requested size: 397.48499pt x 290.81331pt. -</home/fossee/Desktop/floss-scilab-arduino/tools/shield/shield-V1p2.jpg, id=120 -4, 494.59781pt x 376.40625pt> +</home/fossee/Desktop/floss-scilab-arduino/tools/shield/shield-V1p2.jpg, id=190 +7, 494.59781pt x 376.40625pt> File: /home/fossee/Desktop/floss-scilab-arduino/tools/shield/shield-V1p2.jpg Gr aphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/tools/shield/shield-V1p2.jpg> @@ -869,7 +908,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/tools/shield /shield-V1p2.jpg used on input line 388. (pdftex.def) Requested size: 238.49341pt x 181.5pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/shield-crop -.jpg, id=1209, 608.2725pt x 443.6575pt> +.jpg, id=1912, 608.2725pt x 443.6575pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/shield -crop.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/shield- @@ -889,7 +928,7 @@ Chapter 3. ] </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/hw-device-m -anager.jpg, id=1252, 793.96625pt x 579.16376pt> +anager.jpg, id=1955, 793.96625pt x 579.16376pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/hw-dev ice-manager.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/hw-devi @@ -898,7 +937,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw -env/figures/hw-device-manager.jpg used on input line 109. (pdftex.def) Requested size: 397.48499pt x 289.95233pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/device-mana -ger-com.png, id=1253, 1175.39125pt x 863.225pt> +ger-com.png, id=1956, 1175.39125pt x 863.225pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/device -manager-com.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/device- @@ -907,7 +946,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw -env/figures/device-manager-com.png used on input line 116. (pdftex.def) Requested size: 397.48499pt x 291.912pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/update-driv -er.png, id=1254, 635.37375pt x 423.5825pt> +er.png, id=1957, 635.37375pt x 423.5825pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/update -driver.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/update- @@ -919,7 +958,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw w-device-manager.jpg>] [20 </home/fossee/Desktop/floss-scilab-arduino/user-code /sw-env/figures/device-manager-com.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/launch-ardu -ino-opt.png, id=1290, 751.80875pt x 313.17pt> +ino-opt.png, id=1993, 751.80875pt x 313.17pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/launch -arduino-opt.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/launch- @@ -930,7 +969,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw [21 </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/update -driver.png (PNG copy)>] </home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/arduino-ide -.jpg, id=1301, 856.19875pt x 657.45625pt> +.jpg, id=2003, 856.19875pt x 657.45625pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/arduin o-ide.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/hw-env/figures/arduino @@ -952,7 +991,7 @@ nput line 349. (/home/fossee/Desktop/floss-scilab-arduino/tools/floss-firmware/floss-firmware. ino)) (./user-code/sw-env/sw-env-scilab.tex [25] [26] </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/linux-cd.pn -g, id=1376, 787.94376pt x 192.72pt> +g, id=2080, 787.94376pt x 192.72pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/linux- cd.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/linux-c @@ -963,7 +1002,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw [27 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/linux- cd.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/browse-dire -ctory.png, id=1390, 450.18187pt x 327.47343pt> +ctory.png, id=2092, 450.18187pt x 327.47343pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/browse -directory.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/browse- @@ -978,7 +1017,7 @@ Overfull \hbox (19.3647pt too wide) in paragraph at lines 114--124 [] </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/builder.png -, id=1393, 600.74437pt x 421.575pt> +, id=2095, 600.74437pt x 421.575pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/builde r.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/builder @@ -995,7 +1034,7 @@ Overfull \hbox (1.53204pt too wide) in paragraph at lines 130--140 [28 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/browse- directory.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/loader.png, - id=1404, 600.74437pt x 421.575pt> + id=2106, 600.74437pt x 421.575pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/loader .png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/loader. @@ -1006,7 +1045,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw [29 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/builde r.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/device-mana -ger.png, id=1412, 602.25pt x 451.6875pt> +ger.png, id=2115, 602.25pt x 451.6875pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/device -manager.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/device- @@ -1015,7 +1054,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw -env/figures/device-manager.png used on input line 180. (pdftex.def) Requested size: 397.48499pt x 298.12845pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/com-propert -ies.png, id=1416, 602.25pt x 451.6875pt> +ies.png, id=2119, 602.25pt x 451.6875pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/com-pr operties.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/com-pro @@ -1026,7 +1065,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw [30 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/loader .png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/linux-port. -png, id=1423, 634.37pt x 246.9225pt> +png, id=2126, 634.37pt x 246.9225pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/linux- port.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/linux-p @@ -1047,7 +1086,7 @@ perties.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figure s/linux-port.png>] (/home/fossee/Desktop/floss-scilab-arduino/tools/scilab/test_firmware.sce) </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/test-consol -e.png, id=1441, 600.74437pt x 421.575pt> +e.png, id=2144, 600.74437pt x 421.575pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/test-c onsole.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/test-co @@ -1056,7 +1095,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw -env/figures/test-console.png used on input line 276. (pdftex.def) Requested size: 300.37144pt x 210.78697pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/table_funct -ions_crop.pdf, id=1444, 1055.945pt x 543.02875pt> +ions_crop.pdf, id=2147, 1055.945pt x 543.02875pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/table_ functions_crop.pdf Graphic file (type pdf) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/table_f @@ -1075,7 +1114,7 @@ onsole.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures /table_functions_crop.pdf>] (/home/fossee/Desktop/floss-scilab-arduino/tools/scilab/test_firmware.sce) </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/sine-blk.pn -g, id=1472, 376.40625pt x 376.40625pt> +g, id=2174, 376.40625pt x 376.40625pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/sine-b lk.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/sine-bl @@ -1087,7 +1126,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw [35] [36 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/si ne-blk.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/plot-blk.pn -g, id=1494, 310.15875pt x 109.1578pt> +g, id=2197, 310.15875pt x 109.1578pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/plot-b lk.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/plot-bl @@ -1096,7 +1135,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw -env/figures/plot-blk.png used on input line 403. (pdftex.def) Requested size: 357.73405pt x 125.90192pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/clock-blk.p -ng, id=1496, 307.90031pt x 108.405pt> +ng, id=2199, 307.90031pt x 108.405pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/clock- blk.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/clock-b @@ -1105,7 +1144,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw -env/figures/clock-blk.png used on input line 417. (pdftex.def) Requested size: 357.73405pt x 125.95995pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/sine-gen.pn -g, id=1498, 207.77625pt x 253.69781pt> +g, id=2201, 207.77625pt x 253.69781pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/sine-g en.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/sine-ge @@ -1117,7 +1156,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw lk.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/clo ck-blk.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/sine-output -.png, id=1504, 383.18156pt x 184.43906pt> +.png, id=2207, 383.18156pt x 184.43906pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/sine-o utput.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/sine-ou @@ -1126,7 +1165,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw -env/figures/sine-output.png used on input line 449. (pdftex.def) Requested size: 258.36281pt x 124.36716pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/cscope-conf -ig.png, id=1506, 310.15875pt x 289.08pt> +ig.png, id=2209, 310.15875pt x 289.08pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/cscope -config.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/cscope- @@ -1144,7 +1183,7 @@ Overfull \hbox (0.16797pt too wide) in paragraph at lines 468--477 n.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/sine -output.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/sim-setup.p -ng, id=1512, 333.49594pt x 225.84375pt> +ng, id=2215, 333.49594pt x 225.84375pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/sim-se tup.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/sim-set @@ -1158,7 +1197,7 @@ Underfull \vbox (badness 10000) has occurred while \output is active [] [39 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/cscope -config.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/arduino-pal -ette.png, id=1520, 292.84406pt x 107.65219pt> +ette.png, id=2222, 292.84406pt x 107.65219pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/arduin o-palette.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/arduino @@ -1167,7 +1206,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw -env/figures/arduino-palette.png used on input line 511. (pdftex.def) Requested size: 258.36281pt x 94.98553pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/xcos-help.p -ng, id=1521, 617.30624pt x 466.74374pt> +ng, id=2223, 617.30624pt x 466.74374pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/xcos-h elp.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/xcos-he @@ -1175,15 +1214,289 @@ lp.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw -env/figures/xcos-help.png used on input line 518. (pdftex.def) Requested size: 258.36281pt x 195.35445pt. -) (./user-code/led/led-base.tex [40 </home/fossee/Desktop/floss-scilab-arduino/ -user-code/sw-env/figures/sim-setup.png> </home/fossee/Desktop/floss-scilab-ardu -ino/user-code/sw-env/figures/arduino-palette.png>] [41 </home/fossee/Desktop/fl -oss-scilab-arduino/user-code/sw-env/figures/xcos-help.png>] [42 +) (./user-code/sw-env/sw-env-python.tex +Underfull \vbox (badness 10000) has occurred while \output is active [] -] + [40 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/sim-se +tup.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/ar +duino-palette.png>] [41 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/xcos-help.png>] +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/python-wind +ows-install.JPG, id=2237, 514.17094pt x 316.93407pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/python +-windows-install.JPG Graphic file (type jpg) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/python- +windows-install.JPG> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/python-windows-install.JPG used on input line 36. +(pdftex.def) Requested size: 258.36281pt x 159.25491pt. +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/windows-cmd +.png, id=2240, 572.1375pt x 338.26375pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/window +s-cmd.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/windows +-cmd.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/windows-cmd.png used on input line 55. +(pdftex.def) Requested size: 258.36281pt x 152.75406pt. +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/win-command +-prompt.png, id=2241, 1353.055pt x 289.08pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/win-co +mmand-prompt.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/win-com +mand-prompt.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/win-command-prompt.png used on input line 65. +(pdftex.def) Requested size: 258.36281pt x 55.19925pt. + [42 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/python +-windows-install.JPG>] [43 </home/fossee/Desktop/floss-scilab-arduino/user-code +/sw-env/figures/windows-cmd.png> </home/fossee/Desktop/floss-scilab-arduino/use +r-code/sw-env/figures/win-command-prompt.png>] +Overfull \hbox (6.38388pt too wide) in paragraph at lines 96--100 +\T1/cmr/m/n/10.95 the Com-mand Prompt, ex-e-cute the fol-low-ing com-mand: \T1/ +fvm/m/n/10.95 pip show pyserial + [] + +[44] [45] +Package hyperref Info: bookmark level for unknown pymass defaults to 0 on input + line 207. + +(/home/fossee/Desktop/floss-scilab-arduino/tools/python/test_firmware.py)) +(./user-code/sw-env/sw-env-julia.tex +Underfull \vbox (badness 10000) has occurred while \output is active [] + + [46] +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-downl +oad.png, id=2339, 670.00313pt x 277.035pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia- +download.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-d +ownload.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/julia-download.png used on input line 37. +(pdftex.def) Requested size: 397.48499pt x 164.34962pt. +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-windo +ws-install.png, id=2340, 756.8275pt x 632.3625pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia- +windows-install.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-w +indows-install.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/julia-windows-install.png used on input line 44. +(pdftex.def) Requested size: 258.36281pt x 215.86882pt. + +[47] [48 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/ju +lia-download.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/f +igures/julia-windows-install.png>] +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-repl- +windows.png, id=2364, 1354.05875pt x 768.8725pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia- +repl-windows.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-r +epl-windows.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/julia-repl-windows.png used on input line 92. +(pdftex.def) Requested size: 397.48499pt x 225.70088pt. +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-pkg-w +indows.png, id=2366, 1353.055pt x 768.8725pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia- +pkg-windows.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-p +kg-windows.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/julia-pkg-windows.png used on input line 101. +(pdftex.def) Requested size: 397.48499pt x 225.86513pt. + [49] + +LaTeX Warning: Text page 50 contains only floats. + +[50 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-r +epl-windows.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/fi +gures/julia-pkg-windows.png>] +Overfull \hbox (5.34262pt too wide) in paragraph at lines 125--127 +[]\T1/cmr/m/n/10.95 First, up-date your sys-tem. Open the Ter-mi-nal. Type \T1/ +fvm/m/n/10.95 sudo apt-get update + [] + + +Overfull \hbox (12.2196pt too wide) in paragraph at lines 142--146 +\T1/fvm/m/n/10.95 sudo ln -s /opt/julia-1.6.0/bin/julia /usr/local/bin/julia + [] + +[51] +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-termi +nal-repl.png, id=2397, 949.5475pt x 655.44875pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia- +terminal-repl.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-t +erminal-repl.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/julia-terminal-repl.png used on input line 173. +(pdftex.def) Requested size: 397.48499pt x 274.37646pt. + [52] +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-pkg.p +ng, id=2412, 949.5475pt x 655.44875pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia- +pkg.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia-p +kg.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/julia-pkg.png used on input line 203. +(pdftex.def) Requested size: 397.48499pt x 274.37646pt. + +Underfull \vbox (badness 3219) has occurred while \output is active [] + + [53 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/julia- +terminal-repl.png>] [54 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/julia-pkg.png>] +Package hyperref Info: bookmark level for unknown juliamass defaults to 0 on in +put line 252. + +(/home/fossee/Desktop/floss-scilab-arduino/tools/julia/test_firmware.jl)) +(./user-code/sw-env/sw-env-OM.tex [55] +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/openmodelic +a-run-anyway.png, id=2454, 812.03375pt x 749.80125pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/openmo +delica-run-anyway.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/openmod +elica-run-anyway.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/openmodelica-run-anyway.png used on input line 41. +(pdftex.def) Requested size: 258.36281pt x 238.55693pt. + +Overfull \hbox (13.35912pt too wide) in paragraph at lines 46--52 +[]\T1/cmr/m/n/10.95 Once Open-Mod-el-ica has been in-stalled, Open-Mod-el-ica C +on-nec-tion Ed-i-tor (OMEdit) + [] + +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/OMEdit-libr +aries.png, id=2458, 664.4825pt x 546.04pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/OMEdit +-libraries.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/OMEdit- +libraries.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/OMEdit-libraries.png used on input line 65. +(pdftex.def) Requested size: 365.46649pt x 300.32292pt. +[56] [57 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/op +enmodelica-run-anyway.png>] +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/OMEdit-UI.p +ng, id=2480, 996.1215pt x 597.9138pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/OMEdit +-UI.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/OMEdit- +UI.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/OMEdit-UI.png used on input line 97. +(pdftex.def) Requested size: 397.48499pt x 238.5865pt. + [58 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/OMEdit +-libraries.png>] +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-open-mod +el.png, id=2491, 1087.06125pt x 792.9625pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-ope +n-model.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-open +-model.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/om-open-model.png used on input line 111. +(pdftex.def) Requested size: 397.48499pt x 289.94313pt. +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-Modeling +.png, id=2492, 1368.11125pt x 791.95876pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-Mod +eling.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-Mode +ling.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/om-Modeling.png used on input line 118. +(pdftex.def) Requested size: 397.48499pt x 230.08511pt. +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-modeling +-views.png, id=2493, 673.01437pt x 373.395pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-mod +eling-views.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-mode +ling-views.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/om-modeling-views.png used on input line 126. +(pdftex.def) Requested size: 397.48499pt x 220.52904pt. +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-text-vie +w.png, id=2494, 1370.11874pt x 796.9775pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-tex +t-view.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-text +-view.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/om-text-view.png used on input line 134. +(pdftex.def) Requested size: 397.48499pt x 231.20267pt. + [59 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/OMEdit +-UI.png>] +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-simulate +.png, id=2508, 673.01437pt x 373.395pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-sim +ulate.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-simu +late.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/om-simulate.png used on input line 163. +(pdftex.def) Requested size: 397.48499pt x 220.52904pt. +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-sim-succ +ess.png, id=2509, 647.41875pt x 516.93124pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-sim +-success.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-sim- +success.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/om-sim-success.png used on input line 170. +(pdftex.def) Requested size: 397.48499pt x 317.37051pt. + [60 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-ope +n-model.png>] + +LaTeX Warning: Text page 61 contains only floats. + +[61 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-mode +ling.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/o +m-modeling-views.png>] + +LaTeX Warning: Text page 62 contains only floats. + +[62 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-text +-view.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/ +om-simulate.png>] +Overfull \hbox (0.4131pt too wide) in paragraph at lines 181--188 +\T1/fvm/m/n/10.95 openmodelica/windows \T1/cmr/m/n/10.95 or \T1/fvm/m/n/10.95 O +rigin/tools/openmodelica/linux \T1/cmr/m/n/10.95 di-rec-tory, + [] + +[63 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-sim- +success.png>] +Overfull \hbox (4.19868pt too wide) in paragraph at lines 199--201 +[]\T1/cmr/m/n/10.95 Navigate to \T1/fvm/m/n/10.95 Origin/tools/openmodelica/win +dows \T1/cmr/m/n/10.95 or \T1/fvm/m/n/10.95 Origin/tools/ + [] + + +Overfull \hbox (5.89722pt too wide) in paragraph at lines 201--209 +\T1/cmr/m/n/10.95 el-ica_Synchronous, Mod-el-ica_DeviceDrivers, and one model t +est_firmware.mo. + [] + +</home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-toolbox- +loaded.png, id=2541, 325.215pt x 735.74875pt> +File: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-too +lbox-loaded.png Graphic file (type png) +<use /home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figures/om-tool +box-loaded.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/sw +-env/figures/om-toolbox-loaded.png used on input line 226. +(pdftex.def) Requested size: 178.86702pt x 404.66306pt. +Package hyperref Info: bookmark level for unknown OpenModelicamass defaults to +0 on input line 244. +[64] +(/home/fossee/Desktop/floss-scilab-arduino/tools/openmodelica/windows//test_fir +mware.mo [65 </home/fossee/Desktop/floss-scilab-arduino/user-code/sw-env/figure +s/om-toolbox-loaded.png>])) (./user-code/led/led-base.tex [66] Chapter 4. -</home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led.png, id=15 -35, 149.8097pt x 84.315pt> +</home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led.png, id=25 +91, 149.8097pt x 84.315pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led.png G raphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led.png> @@ -1191,7 +1504,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/le d/figures/led.png used on input line 52. (pdftex.def) Requested size: 79.49577pt x 44.74203pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/schematic.png, - id=1537, 415.5525pt x 456.70625pt> + id=2593, 415.5525pt x 456.70625pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/schematic .png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/schematic. @@ -1199,9 +1512,11 @@ png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/le d/figures/schematic.png used on input line 65. (pdftex.def) Requested size: 178.86702pt x 196.58194pt. -[43 </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led.png>] +[67 + + </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/arduino-new-sh -ield.jpeg, id=1543, 305.7021pt x 172.0026pt> +ield.jpeg, id=2599, 305.7021pt x 172.0026pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/arduino-n ew-shield.jpeg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/arduino-ne @@ -1210,11 +1525,11 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/le d/figures/arduino-new-shield.jpeg used on input line 79. (pdftex.def) Requested size: 258.36281pt x 145.37354pt. -[44 </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/schematic. +[68 </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/schematic. png> </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/arduino-n ew-shield.jpeg>] </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/rgb-led-bb.png -, id=1551, 451.286pt x 236.082pt> +, id=2607, 451.286pt x 236.082pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/rgb-led-b b.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/rgb-led-bb @@ -1222,7 +1537,7 @@ b.png Graphic file (type png) Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/le d/figures/rgb-led-bb.png used on input line 107. (pdftex.def) Requested size: 357.73405pt x 187.14034pt. - [45 </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/rgb-led-b + [69 </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/rgb-led-b b.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led-blue/led-b lue.ino) @@ -1231,9 +1546,9 @@ lue.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led-blue-delay /led-blue-delay.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led-blue-delay -/led-blue-delay.ino) [46] +/led-blue-delay.ino) [70] </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led_output.png -, id=1581, 3035.34pt x 1947.275pt> +, id=2636, 3035.34pt x 1947.275pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led_outpu t.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led_output @@ -1249,19 +1564,19 @@ File: t1cmss.fd 2019/12/16 v2.5j Standard LaTeX font definitions ) Package hyperref Info: bookmark level for unknown egmass defaults to 0 on input line 210. - [47] + [71] (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led-blue/led-b lue.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led-blue-delay -/led-blue-delay.ino [48 </home/fossee/Desktop/floss-scilab-arduino/user-code/le +/led-blue-delay.ino [72 </home/fossee/Desktop/floss-scilab-arduino/user-code/le d/figures/led_output.png>]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led-blue-red/l ed-blue-red.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/arduino/led-green-blin -k/led-green-blink.ino)) (./user-code/led/led-scilab.tex [49] +k/led-green-blink.ino)) (./user-code/led/led-scilab.tex [73] (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led-blue.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led-blue.sce) -[50] +[74] (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led-blue.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led-blue-delay. sce) @@ -1269,13 +1584,13 @@ sce) sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led-blue.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led-blue-delay. -sce [51]) +sce [75]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led-blue-red.sc e) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/scilab/led-green-blink .sce) </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue-com-2 -.png, id=1719, 766.865pt x 696.6025pt> +.png, id=2774, 766.865pt x 696.6025pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue- com-2.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue-c @@ -1283,13 +1598,13 @@ om-2.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/le d/figures/led-blue-com-2.png used on input line 136. (pdftex.def) Requested size: 178.86702pt x 162.47923pt. - [52] + [76] Overfull \hbox (4.77844pt too wide) in paragraph at lines 152--161 [][] [] </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue-delay --com-2.png, id=1756, 848.16875pt x 694.595pt> +-com-2.png, id=2811, 848.16875pt x 694.595pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue- delay-com-2.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue-d @@ -1302,10 +1617,10 @@ Overfull \hbox (4.77844pt too wide) in paragraph at lines 186--198 [][] [] -[53 </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue-c +[77 </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue-c om-2.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue-red-c -om-2.png, id=1770, 829.0975pt x 805.0075pt> +om-2.png, id=2826, 829.0975pt x 805.0075pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue- red-com-2.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue-r @@ -1318,10 +1633,10 @@ Overfull \hbox (13.85292pt too wide) in paragraph at lines 225--242 [][] [] -[54 </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue-d +[78 </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue-d elay-com-2.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-green-blin -k-com-2.png, id=1783, 869.2475pt x 678.535pt> +k-com-2.png, id=2839, 869.2475pt x 678.535pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-green -blink-com-2.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-green- @@ -1334,12 +1649,67 @@ Overfull \hbox (4.77844pt too wide) in paragraph at lines 267--280 [][] [] -[55 </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue-r -ed-com-2.png>]) (./user-code/push/push-base.tex [56 </home/fossee/Desktop/floss +[79 </home/fossee/Desktop/floss-scilab-arduino/user-code/led/figures/led-blue-r +ed-com-2.png>]) (./user-code/led/led-python.tex [80 </home/fossee/Desktop/floss -scilab-arduino/user-code/led/figures/led-green-blink-com-2.png>] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py) +[81] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-delay. +py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-delay. +py) [82] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue.py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-delay. +py [83]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-blue-red.py +[84]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/python/led-green-blink +.py [85])) (./user-code/led/led-julia.tex +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl) +[86] (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl +) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-delay.j +l) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-delay.j +l) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue.jl) +[87] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-delay.j +l) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-blue-red.jl) + +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/julia/led-green-blink. +jl)) (./user-code/led/led-OM.tex [88] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue. +mo) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue. +mo) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue. +mo) [89] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue. +mo) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue- +delay.mo) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue- +delay.mo) [90] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue. +mo) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue- +delay.mo [91]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue- +red.mo [92]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-green +-blink.mo)) (./user-code/push/push-base.tex [93] [94 + +] Chapter 5. </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/pushbutton-co -nn.png, id=1802, 415.5525pt x 438.63875pt> +nn.png, id=3350, 415.5525pt x 438.63875pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/pushbutt on-conn.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/pushbutto @@ -1348,7 +1718,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/pu sh/figures/pushbutton-conn.png used on input line 63. (pdftex.def) Requested size: 178.86702pt x 188.80507pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/switch.png, i -d=1803, 453.695pt x 239.294pt> +d=3351, 453.695pt x 239.294pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/switch.p ng Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/switch.pn @@ -1356,16 +1726,14 @@ g> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/pu sh/figures/switch.png used on input line 72. (pdftex.def) Requested size: 397.48499pt x 209.64827pt. -[57 - -] +[95] Underfull \vbox (badness 3098) has occurred while \output is active [] - [58 </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/pushbutt + [96 </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/pushbutt on-conn.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/ switch.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/switch-led.pn -g, id=1818, 453.695pt x 266.596pt> +g, id=3365, 453.695pt x 266.596pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/switch-l ed.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/switch-le @@ -1376,12 +1744,12 @@ sh/figures/switch-led.png used on input line 106. Underfull \vbox (badness 1158) has occurred while \output is active [] - [59 </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/switch-l + [97 </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/switch-l ed.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/push-button-s tatus/push-button-status.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/push-button-s -tatus/push-button-status.ino) [60] +tatus/push-button-status.ino) [98] (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/led-push-butt on/led-push-button.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/push-button-s @@ -1393,13 +1761,13 @@ Avail- (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/arduino/led-push-butt -on/led-push-button.ino [61])) (./user-code/push/push-scilab.tex +on/led-push-button.ino [99])) (./user-code/push/push-scilab.tex (/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) </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/sci-ard-meter -.png, id=1881, 428.60126pt x 442.65375pt> +.png, id=3428, 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 @@ -1407,12 +1775,12 @@ 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 31. (pdftex.def) Requested size: 178.86702pt x 184.73128pt. - [62] + [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 [63 </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/ -sci-ard-meter.png>]) +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 64--67 \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 , @@ -1423,7 +1791,7 @@ Overfull \hbox (0.145pt too wide) in paragraph at lines 64--67 (/home/fossee/Desktop/floss-scilab-arduino/user-code/push/scilab/led-push-butto n.sce) </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/push-button-s -tatus.PNG, id=1925, 264.99pt x 268.00125pt> +tatus.PNG, id=3472, 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 @@ -1436,9 +1804,9 @@ Overfull \hbox (6.968pt too wide) in paragraph at lines 113--123 [][] [] -[64] +[102] </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/led-push-butt -on.PNG, id=1953, 298.86656pt x 264.99pt> +on.PNG, id=3500, 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- @@ -1451,14 +1819,44 @@ Overfull \hbox (4.77844pt too wide) in paragraph at lines 155--166 [][] [] -[65 </home/fossee/Desktop/floss-scilab-arduino/user-code/push/figures/push-butt -on-status.PNG>] [66 </home/fossee/Desktop/floss-scilab-arduino/user-code/push/f -igures/led-push-button.PNG>]) (./user-code/ldr/ldr-base.tex [67] [68 +[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>]) (./user-code/push/push-python.tex +(/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/push-button-st +atus.py) [105] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led-push-butto +n.py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/push-button-st +atus.py [106]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/push/python/led-push-butto +n.py [107])) (./user-code/push/push-julia.tex +(/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) [108] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/push/julia/led-push-button +.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])) (./user-code/push/push-OM.tex +(/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) [110] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push +-button.mo) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/push-but +ton-status.mo [111]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/push/OpenModelica/led-push +-button.mo [112])) (./user-code/ldr/ldr-base.tex [113] [114 ] Chapter 6. -</home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr.jpg, id=19 -84, 106.89937pt x 94.85437pt> +</home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr.jpg, id=38 +24, 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> @@ -1466,7 +1864,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=1985, 1009.52156pt x 741.52031pt> +d=3825, 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 @@ -1475,7 +1873,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=1986, 415.5525pt x 450.68375pt> +id=3826, 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 @@ -1483,7 +1881,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. -[69] +[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- [] @@ -1491,20 +1889,21 @@ Overfull \hbox (0.60098pt too wide) in paragraph at lines 87--87 Underfull \vbox (badness 3333) has occurred while \output is active [] - [70 </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=20 -00, 455.301pt x 208.78pt> + [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=38 +39, 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. - [71 </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=2013, 455.301pt x 257.763pt> +d=3852, 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 @@ -1514,24 +1913,24 @@ r/figures/LDR-led.png used on input line 125. (pdftex.def) Requested size: 397.48499pt x 225.03864pt. (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr-read/ldr-r -ead.ino) [72 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/L -DR-led.png>] +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) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr-read/ldr-r -ead.ino [73]) +ead.ino [119]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/arduino/ldr-led/ldr-le -d.ino)) (./user-code/ldr/ldr-scilab.tex [74] +d.ino)) (./user-code/ldr/ldr-scilab.tex [120] (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr-read.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr-read.sce) -[75] +[121] (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr-read.sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/scilab/ldr-led.sce) -[76] +[122] </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read-xcos. -PNG, id=2137, 257.46187pt x 304.13625pt> +PNG, id=3976, 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 @@ -1540,7 +1939,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/ld r/figures/ldr-read-xcos.PNG used on input line 131. (pdftex.def) Requested size: 178.86702pt x 211.2975pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read-plot. -PNG, id=2140, 1284.8pt x 571.13374pt> +PNG, id=3979, 1284.8pt x 571.13374pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read- plot.PNG Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read-p @@ -1551,11 +1950,11 @@ r/figures/ldr-read-plot.PNG used on input line 141. Underfull \vbox (badness 3849) has occurred while \output is active [] - [77 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read- -xcos.PNG> </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr- -read-plot.png>] + [123 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-read +-xcos.PNG> </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr +-read-plot.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-2.png, - id=2151, 764.8575pt x 743.77875pt> + id=3990, 764.8575pt x 743.77875pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-2 .png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-2. @@ -1564,7 +1963,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/ld r/figures/ldr-led-2.png used on input line 194. (pdftex.def) Requested size: 258.36281pt x 251.2358pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-read-p -lot.PNG, id=2156, 1284.8pt x 571.13374pt> +lot.PNG, id=3995, 1284.8pt x 571.13374pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-r ead-plot.PNG Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led-re @@ -1577,12 +1976,40 @@ Overfull \hbox (4.77844pt too wide) in paragraph at lines 224--244 [][] [] -) (./user-code/pot/pot-base.tex [78] [79 </home/fossee/Desktop/floss-scilab-ard -uino/user-code/ldr/figures/ldr-led-2.png> </home/fossee/Desktop/floss-scilab-ar -duino/user-code/ldr/figures/ldr-led-read-plot.png>] [80] +) (./user-code/ldr/ldr-python.tex +Underfull \vbox (badness 10000) has occurred while \output is active [] + + [124] +Underfull \vbox (badness 10000) has occurred while \output is active [] + + [125 </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led- +2.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/figures/ldr-led +-read-plot.png>] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py +[126]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-read.py +[127]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/python/ldr-led.py +[128])) (./user-code/ldr/ldr-julia.tex +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl +[129]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-read.jl +[130]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/julia/ldr-led.jl)) +(./user-code/ldr/ldr-OM.tex [131] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read. +mo) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read. +mo) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-read. +mo [132]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/ldr/OpenModelica/ldr-led.m +o [133])) (./user-code/pot/pot-base.tex [134] Chapter 7. </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/potmeter.png, -id=2173, 1576.38937pt x 1305.37688pt> +id=4274, 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 @@ -1591,7 +2018,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=2174, 415.5525pt x 417.56pt> + id=4275, 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. @@ -1599,13 +2026,13 @@ 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. -[81 +[135 -] [82 </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/potmeter -.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/schemati -c.png>] +] [136 </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/potmete +r.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/schemat +ic.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/POT-led-bb.png -, id=2191, 453.695pt x 243.309pt> +, id=4291, 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 @@ -1618,14 +2045,14 @@ Overfull \hbox (9.68646pt too wide) in paragraph at lines 112--114 [] [] [] -[83 </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/POT-led-bb -.png>] +[137 </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 [84])) (./user-code/pot/pot-scilab.tex [85] +pot-threshold.ino [138])) (./user-code/pot/pot-scilab.tex [139] (/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 @@ -1637,9 +2064,9 @@ old. Avail- (/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/scilab/pot-threshold.s -ce) [86] +ce) [140] </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot-threshold- -1.PNG, id=2293, 1008.76875pt x 719.68875pt> +1.PNG, id=4394, 1008.76875pt x 719.68875pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot-thres hold-1.PNG Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot-thresh @@ -1652,11 +2079,53 @@ Overfull \hbox (4.77844pt too wide) in paragraph at lines 78--107 [][] [] -[87 </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot-thresh -old-1.png>]) (./user-code/thermistor/thermistor-base.tex [88] +[141 </home/fossee/Desktop/floss-scilab-arduino/user-code/pot/figures/pot-thres +hold-1.png>]) (./user-code/pot/pot-python.tex +Underfull \vbox (badness 4752) has occurred while \output is active [] + + [142] +(/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) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/python/pot-threshold.p +y [143])) (./user-code/pot/pot-julia.tex +Underfull \vbox (badness 10000) has occurred while \output is active [] + + [144] +(/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 +) +Overfull \hbox (0.88127pt too wide) in paragraph at lines 36--40 +[]\T1/cmr/m/n/10.95 Turning on LEDs de-pend-ing on the po-ten-tiome-ter thresh- +old. Avail- + [] + + +(/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/julia/pot-threshold.jl +[145])) (./user-code/pot/pot-OM.tex +(/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) [146] +Overfull \hbox (7.95369pt too wide) in paragraph at lines 36--40 +[]\T1/cmr/m/n/10.95 Turning on LEDs de-pend-ing on the po-ten-tiome-ter thresh- + + [] + + +Overfull \hbox (24.30972pt too wide) in paragraph at lines 36--40 +\T1/cmr/m/n/10.95 old. Avail-able at Ar-duino -> Se-ri-al-Com-mu-ni-ca-tion -> +Ex-am-ples -> pot -> pot_threshold. + [] + + +(/home/fossee/Desktop/floss-scilab-arduino/user-code/pot/OpenModelica/pot-thres +hold.mo [147])) (./user-code/thermistor/thermistor-base.tex [148] Chapter 8. </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/NTC-bea -d.jpg, id=2313, 139.9629pt x 126.2316pt> +d.jpg, id=4597, 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 @@ -1665,7 +2134,7 @@ 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. </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-s -ym.png, id=2316, 1284.8pt x 913.4125pt> +ym.png, id=4600, 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 @@ -1674,7 +2143,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=2317, 329.23pt x 422.57875pt> +TOR-Diagram-crop.pdf, id=4601, 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 @@ -1683,7 +2152,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=2318, 307.1475pt x 366.36874pt> +Diagram-crop.pdf, id=4602, 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 @@ -1691,18 +2160,18 @@ 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. -[89 +[149 ] Underfull \vbox (badness 10000) has occurred while \output is active [] - [90 </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>] + [150 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/N +TC-bead.jpg> </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/fi +gures/therm-sym.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/therm +istor/figures/THERMISTOR-Diagram-crop.pdf> </home/fossee/Desktop/floss-scilab-a +rduino/user-code/thermistor/figures/BUZZER-Diagram-crop.pdf>] </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/thermis -tor.png, id=2348, 453.695pt x 236.885pt> +tor.png, id=4632, 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 @@ -1711,7 +2180,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=2352, 453.695pt x 240.097pt> +tor-buzzer.png, id=4636, 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 @@ -1719,36 +2188,36 @@ 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. - [91 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th -ermistor.png>] + [151 </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) [92 </home/fossee/Desktop/floss-scilab-arduino/user-code/th -ermistor/figures/thermistor-buzzer.png>] +ead/therm-read.ino) [152 </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) (/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-b -uzzer/therm-buzzer.ino [93]) +uzzer/therm-buzzer.ino [153]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-r -ead/therm-read.ino [94]) +ead/therm-read.ino [154]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/arduino/therm-b uzzer/therm-buzzer.ino)) (./user-code/thermistor/thermistor-scilab.tex Underfull \vbox (badness 5119) has occurred while \output is active [] - [95] + [155] (/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-re -ad.sce) [96] +ad.sce) [156] (/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/scilab/therm-bu -zzer.sce) [97] +zzer.sce) [157] (/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 [98]) +zzer.sce [158]) </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-r -ead-xcos.png, id=2514, 617.30624pt x 548.0475pt> +ead-xcos.png, id=4799, 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 @@ -1757,7 +2226,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/th ermistor/figures/therm-read-xcos.png used on input line 174. (pdftex.def) Requested size: 194.76982pt x 172.91183pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-r -ead.png, id=2519, 632.3625pt x 529.98pt> +ead.png, id=4804, 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 @@ -1766,7 +2235,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/th ermistor/figures/therm-read.png used on input line 207. (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=2522, 627.34375pt x 530.98375pt> +uzzer-xcos.png, id=4807, 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 @@ -1774,14 +2243,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 226. (pdftex.def) Requested size: 258.36281pt x 218.68509pt. - [99] [100 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figu -res/therm-read-xcos.png>] + [159] [160 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/fig +ures/therm-read-xcos.png>] Overfull \hbox (4.77844pt too wide) in paragraph at lines 248--268 [][] [] </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/therm-b -uzzer.png, id=2557, 612.2875pt x 589.20125pt> +uzzer.png, id=4840, 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 @@ -1789,17 +2258,47 @@ 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 272. (pdftex.def) Requested size: 258.36281pt x 248.6226pt. -[101 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th +[161 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th erm-read.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/f -igures/therm-buzzer-xcos.png>]) (./user-code/servo/servo-base.tex [102] -[103 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/figures/th -erm-buzzer.png>] [104 +igures/therm-buzzer-xcos.png>]) (./user-code/thermistor/thermistor-python.tex +[162] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-re +ad.py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-re +ad.py) [163 </home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/fig +ures/therm-buzzer.png>] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-bu +zzer.py) [164] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-re +ad.py) [165] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/python/therm-bu +zzer.py) [166]) (./user-code/thermistor/thermistor-julia.tex +(/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-rea +d.jl) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-rea +d.jl) [167] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-buz +zer.jl) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-rea +d.jl [168]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/julia/therm-buz +zer.jl)) (./user-code/thermistor/thermistor-OM.tex +(/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/th +erm-read.mo) [169] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/th +erm-read.mo) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/th +erm-buzzer.mo) [170] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/th +erm-read.mo) [171] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/OpenModelica/th +erm-buzzer.mo)) (./user-code/servo/servo-base.tex [172] +Chapter 9. +[173 ] -Chapter 9. -[105] </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-uno-sh -ield.jpg, id=2592, 1110.0672pt x 508.7808pt> +ield.jpg, id=5163, 1110.0672pt x 508.7808pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-u no-shield.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-un @@ -1807,10 +2306,10 @@ o-shield.jpg> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/se rvo/figures/servo-uno-shield.jpg used on input line 82. (pdftex.def) Requested size: 258.36281pt x 118.41452pt. - [106 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo- + [174 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo- uno-shield.jpg>] </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-bb.png -, id=2598, 446.468pt x 316.382pt> +, id=5169, 446.468pt x 316.382pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-b b.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-bb @@ -1819,7 +2318,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/se rvo/figures/servo-bb.png used on input line 119. (pdftex.def) Requested size: 357.73405pt x 253.51628pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-pot-bb -.png, id=2604, 446.468pt x 286.671pt> +.png, id=5175, 446.468pt x 286.671pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-p ot-bb.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-po @@ -1827,7 +2326,7 @@ t-bb.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/se rvo/figures/servo-pot-bb.png used on input line 133. (pdftex.def) Requested size: 357.73405pt x 229.70891pt. - [107 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo- + [175 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo- bb.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo-init/s ervo-init.ino) @@ -1836,28 +2335,28 @@ ervo-init.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo-init/s ervo-init.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo-init/s -ervo-init.ino) [108 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/ +ervo-init.ino) [176 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/ figures/servo-pot-bb.png>] (/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-pot/se -rvo-pot.ino) [109] +rvo-pot.ino) [177] (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo-init/s -ervo-init.ino) [110] +ervo-init.ino) [178] (/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) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/arduino/servo-pot/se -rvo-pot.ino [111])) (./user-code/servo/servo-scilab.tex +rvo-pot.ino [179])) (./user-code/servo/servo-scilab.tex (/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-init.sc -e) [112] +e) [180] (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo-reverse .sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo-pot.sce -) [113] +) [181] (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo-init.sc e) Overfull \hbox (2.47322pt too wide) in paragraph at lines 131--135 @@ -1869,11 +2368,11 @@ vers-ing. Avail- (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo-reverse .sce) (/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/scilab/servo-loop.sc -e) [114] +e) [182] (/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=2809, 265.74281pt x 309.40594pt> +ng, id=5380, 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 @@ -1882,7 +2381,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/se rvo/figures/servo-init.png used on input line 170. (pdftex.def) Requested size: 178.86702pt x 208.2593pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-revers -e.png, id=2815, 244.66406pt x 281.55188pt> +e.png, id=5386, 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 @@ -1890,9 +2389,9 @@ verse.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/se rvo/figures/servo-reverse.png used on input line 205. (pdftex.def) Requested size: 178.86702pt x 205.84047pt. - [115] + [183] </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-loop.p -ng, id=2838, 281.55188pt x 347.04657pt> +ng, id=5410, 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 @@ -1901,7 +2400,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/se rvo/figures/servo-loop.png used on input line 243. (pdftex.def) Requested size: 178.86702pt x 220.47803pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-pot.pn -g, id=2844, 286.06876pt x 292.09125pt> +g, id=5416, 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 @@ -1909,25 +2408,75 @@ t.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/se rvo/figures/servo-pot.png used on input line 285. (pdftex.def) Requested size: 178.86702pt x 182.63234pt. - [116 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo- + [184 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo- init.png>] Overfull \hbox (17.60953pt too wide) in paragraph at lines 306--317 [][] [] -[117 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-r +[185 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo-r everse.png>] Underfull \vbox (badness 1831) has occurred while \output is active [] - [118 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo- + [186 </home/fossee/Desktop/floss-scilab-arduino/user-code/servo/figures/servo- loop.png>]) -(./user-code/dcmotor/dcmotor-base.tex [119 </home/fossee/Desktop/floss-scilab-a -rduino/user-code/servo/figures/servo-pot.png>] [120 +(./user-code/servo/servo-python.tex +Underfull \vbox (badness 10000) has occurred while \output is active [] + + [187 </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 +) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-init.py +) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-reverse +.py) [188] +(/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 +[189]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-reverse +.py [190]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-loop.py +[191]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/python/servo-pot.py +[192])) (./user-code/servo/servo-julia.tex +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-init.jl) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-init.jl) +[193] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-reverse. +jl) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-pot.jl) +[194] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-init.jl) + +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-reverse. +jl) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-loop.jl) +[195] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/julia/servo-pot.jl)) +(./user-code/servo/servo-OM.tex +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-i +nit.mo) [196] +(/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-r +everse.mo) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-p +ot.mo) [197] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-i +nit.mo [198]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-r +everse.mo) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-l +oop.mo [199]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/servo/OpenModelica/servo-p +ot.mo [200])) (./user-code/dcmotor/dcmotor-base.tex [201] [202 ] Chapter 10. </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor_bo -ard.png, id=2876, 247.92625pt x 232.87pt> +ard.png, id=5917, 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 @@ -1935,9 +2484,9 @@ 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 68. (pdftex.def) Requested size: 258.36281pt x 242.69075pt. -[121] +[203] </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/uno-pwm.jp -g, id=2883, 426.8748pt x 319.9152pt> +g, id=5925, 426.8748pt x 319.9152pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/uno-p wm.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/uno-pw @@ -1945,10 +2494,10 @@ m.jpg> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/dc motor/figures/uno-pwm.jpg used on input line 94. (pdftex.def) Requested size: 258.36281pt x 193.63959pt. - [122 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmo + [204 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmo tor_board.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/schematic. -png, id=2893, 415.5525pt x 467.7475pt> +png, id=5935, 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 @@ -1957,7 +2506,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/dc motor/figures/schematic.png used on input line 117. (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=2894, 2469.97781pt x 1973.12157pt> +escription.jpg, id=5936, 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 @@ -1965,11 +2514,11 @@ 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 123. (pdftex.def) Requested size: 258.36281pt x 206.38603pt. - [123 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/uno- + [205 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/uno- pwm.jpg> </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/s chematic.png>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor-cl -ock/dcmotor-clock.ino) [124 </home/fossee/Desktop/floss-scilab-arduino/user-cod +ock/dcmotor-clock.ino) [206 </home/fossee/Desktop/floss-scilab-arduino/user-cod e/dcmotor/figures/dc_motor_description.jpg>] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor-cl ock/dcmotor-clock.ino) @@ -1978,17 +2527,17 @@ 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-bo -th/dcmotor-both.ino) [125] +th/dcmotor-both.ino) [207] (/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 [126]) +th/dcmotor-both.ino [208]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor-lo -op/dcmotor-loop.ino)) (./user-code/dcmotor/dcmotor-scilab.tex [127] +op/dcmotor-loop.ino)) (./user-code/dcmotor/dcmotor-scilab.tex [209] (/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) [128] +ck.sce) [210] (/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 @@ -1996,15 +2545,15 @@ 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-bot -h.sce) [129] +h.sce) [211] (/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) [130] +h.sce) [212] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor-loo p.sce) </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor-cl -ock.png, id=3081, 807.015pt x 738.76pt> +ock.png, id=6121, 807.015pt x 738.76pt> 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 @@ -2013,7 +2562,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/dc motor/figures/dcmotor-clock.png used on input line 294. (pdftex.def) Requested size: 178.86702pt x 163.73386pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor-bo -th.png, id=3087, 784.9325pt x 716.6775pt> +th.png, id=6127, 784.9325pt x 716.6775pt> 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 @@ -2021,10 +2570,10 @@ r-both.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/dc motor/figures/dcmotor-both.png used on input line 348. (pdftex.def) Requested size: 178.86702pt x 163.3123pt. - [131] [132 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figure + [213] [214 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figure s/dcmotor-clock.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor-lo -op.png, id=3123, 775.89874pt x 756.8275pt> +op.png, id=6163, 775.89874pt x 756.8275pt> 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 @@ -2032,212 +2581,309 @@ 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 392. (pdftex.def) Requested size: 178.86702pt x 174.47084pt. - [133 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmo + [215 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmo tor-both.png>]) -(./user-code/modbus/modbus-scilab.tex [134 </home/fossee/Desktop/floss-scilab-a -rduino/user-code/dcmotor/figures/dcmotor-loop.png>] [135] [136 +(./user-code/dcmotor/dcmotor-python.tex [216 </home/fossee/Desktop/floss-scilab +-arduino/user-code/dcmotor/figures/dcmotor-loop.png>] [217] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clo +ck.py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clo +ck.py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clo +ck.py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clo +ck.py) [218] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-bot +h.py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-bot +h.py) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clo +ck.py [219]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-bot +h.py [220]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-loo +p.py [221])) (./user-code/dcmotor/dcmotor-julia.tex [222] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-cloc +k.jl) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-cloc +k.jl) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-cloc +k.jl) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-cloc +k.jl) [223] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-both +.jl) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-both +.jl) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-cloc +k.jl [224]) +(/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)) (./user-code/dcmotor/dcmotor-OM.tex [225] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmot +or-clock.mo) [226] +(/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-clock.mo) +(/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) [227] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmot +or-both.mo) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmot +or-clock.mo [228]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmot +or-both.mo) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmot +or-loop.mo [229])) (./user-code/modbus/modbus-base.tex [230] +Chapter 11. +[231 ] -Chapter 11. -[137] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig1.png, i -d=3164, 672.5125pt x 224.84pt> +d=6627, 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 g> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo -dbus/figures/fig1.png used on input line 79. +dbus/figures/fig1.png used on input line 66. (pdftex.def) Requested size: 357.73405pt x 119.60033pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig2.png, i -d=3165, 360.34625pt x 375.4025pt> +d=6628, 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 g> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo -dbus/figures/fig2.png used on input line 87. +dbus/figures/fig2.png used on input line 74. (pdftex.def) Requested size: 178.86702pt x 186.33748pt. - [138 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig1. + [232 </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)>] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig3.png, i -d=3173, 481.04718pt x 214.55156pt> +d=6636, 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 g> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo -dbus/figures/fig3.png used on input line 135. +dbus/figures/fig3.png used on input line 122. (pdftex.def) Requested size: 357.73405pt x 159.55464pt. - [139 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig3. -png (PNG copy)>] [140] [141] [142] [143] + [233 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig3. +png (PNG copy)>] [234] [235] [236] [237] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/block-diagr -am.PNG, id=3226, 398.23781pt x 255.95625pt> +am.PNG, id=6686, 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 iagram.PNG> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo -dbus/figures/block-diagram.PNG used on input line 467. +dbus/figures/block-diagram.PNG used on input line 421. (pdftex.def) Requested size: 258.36281pt x 166.06104pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/Full-Set-Up -.png, id=3227, 722.7pt x 542.025pt> +.png, id=6687, 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 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 474. +dbus/figures/Full-Set-Up.png used on input line 428. (pdftex.def) Requested size: 258.36281pt x 193.77246pt. -Overfull \hbox (5.94992pt too wide) in paragraph at lines 479--479 -[]\T1/cmr/bx/n/14.4 Manifestation of Mod-bus pro-to-col with Ar-duino Uno - [] - -[144] -Overfull \hbox (29.91699pt too wide) has occurred while \output is active -\T1/cmr/bx/n/10.95 11.3. Manifestation of Modbus protocol with Arduino Uno and -energy meter \T1/cmr/m/n/10.95 145 - [] - -[145 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/block- -diagram.PNG> </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figure -s/Full-Set-Up.png>] +[238 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/block- +diagram.PNG>]) (./user-code/modbus/modbus-scilab.tex [239 </home/fossee/Desktop +/floss-scilab-arduino/user-code/modbus/figures/Full-Set-Up.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/arduino_cod -e_flowchart.png, id=3245, 327.2225pt x 480.79625pt> +e_flowchart.png, id=6710, 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 _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 520. +dbus/figures/arduino_code_flowchart.png used on input line 31. (pdftex.def) Requested size: 258.36281pt x 379.61945pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowchart.p -ng, id=3247, 482.55281pt x 362.10281pt> +ng, id=6712, 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 rt.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo -dbus/figures/flowchart.png used on input line 547. +dbus/figures/flowchart.png used on input line 57. (pdftex.def) Requested size: 357.73405pt x 268.44914pt. - [146] + [240] [241 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures +/arduino_code_flowchart.png>] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet +.ino) [242 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/ +flowchart.png (PNG copy)>] +(/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 [243]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_active_ +power.sci) </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/current-out -put.png, id=3267, 490.83376pt x 170.13562pt> +put.png, id=6788, 490.83376pt x 170.13562pt> 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 -output.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo -dbus/figures/current-output.png used on input line 568. +dbus/figures/current-output.png used on input line 142. (pdftex.def) Requested size: 397.48499pt x 137.78313pt. - -Overfull \hbox (29.91699pt too wide) has occurred while \output is active -\T1/cmr/bx/n/10.95 11.3. Manifestation of Modbus protocol with Arduino Uno and -energy meter \T1/cmr/m/n/10.95 147 - [] - -[147 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/arduin -o_code_flowchart.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/current-out -put-setup.jpg, id=3275, 277.035pt x 248.127pt> +put-setup.jpg, id=6789, 277.035pt x 248.127pt> 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 -output-setup.jpg> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo -dbus/figures/current-output-setup.jpg used on input line 575. +dbus/figures/current-output-setup.jpg used on input line 149. (pdftex.def) Requested size: 258.36281pt x 231.40312pt. + [244] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/voltage-out -put.png, id=3278, 487.8225pt x 155.07938pt> +put.png, id=6813, 487.8225pt x 155.07938pt> 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 -output.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo -dbus/figures/voltage-output.png used on input line 587. +dbus/figures/voltage-output.png used on input line 161. (pdftex.def) Requested size: 397.48499pt x 126.36134pt. - [148 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowc -hart.png (PNG copy)> </home/fossee/Desktop/floss-scilab-arduino/user-code/modbu -s/figures/current-output.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/voltage-out -put-setup.jpg, id=3284, 261.1356pt x 269.808pt> +put-setup.jpg, id=6814, 261.1356pt x 269.808pt> 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 -output-setup.jpg> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo -dbus/figures/voltage-output-setup.jpg used on input line 594. +dbus/figures/voltage-output-setup.jpg used on input line 168. (pdftex.def) Requested size: 258.36281pt x 266.95018pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active-powe -r-output.png, id=3287, 492.33937pt x 185.94469pt> +r-output.png, id=6817, 492.33937pt x 185.94469pt> 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- power-output.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo -dbus/figures/active-power-output.png used on input line 604. +dbus/figures/active-power-output.png used on input line 178. (pdftex.def) Requested size: 397.48499pt x 150.12634pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active-powe -r-output-setup.jpg, id=3288, 306.9066pt x 264.99pt> +r-output-setup.jpg, id=6818, 306.9066pt x 264.99pt> 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- power-output-setup.jpg> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo -dbus/figures/active-power-output-setup.jpg used on input line 611. +dbus/figures/active-power-output-setup.jpg used on input line 185. (pdftex.def) Requested size: 258.36281pt x 223.0955pt. - -Underfull \vbox (badness 10000) has occurred while \output is active [] - - -Overfull \hbox (29.91699pt too wide) has occurred while \output is active -\T1/cmr/bx/n/10.95 11.3. Manifestation of Modbus protocol with Arduino Uno and -energy meter \T1/cmr/m/n/10.95 149 - [] - -[149 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/curren -t-output-setup.jpg> </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus -/figures/voltage-output.png>] -Underfull \vbox (badness 10000) has occurred while \output is active [] - - [150 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/volta -ge-output-setup.jpg> </home/fossee/Desktop/floss-scilab-arduino/user-code/modbu -s/figures/active-power-output.png>] -(/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet -.ino [151 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/a -ctive-power-output-setup.jpg>]) -(/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 [152]) -(/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/scilab/read_active_ -power.sci) + [245 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/curre +nt-output.png> </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figu +res/current-output-setup.jpg>] [246 </home/fossee/Desktop/floss-scilab-arduino/ +user-code/modbus/figures/voltage-output.png> </home/fossee/Desktop/floss-scilab +-arduino/user-code/modbus/figures/voltage-output-setup.jpg>] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/read_value_ -xcos.png, id=3348, 635.37375pt x 455.7025pt> +xcos.png, id=6833, 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 lue_xcos.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo -dbus/figures/read_value_xcos.png used on input line 702. +dbus/figures/read_value_xcos.png used on input line 206. (pdftex.def) Requested size: 258.36281pt x 185.30946pt. -Underfull \hbox (badness 1259) in paragraph at lines 705--705 +Underfull \hbox (badness 1259) in paragraph at lines 209--209 []\T1/cmr/m/n/10.95 Figure 11.14: |Xcos di-a-gram to read En-ergy Me-ter val-ue s. This is what [] -Overfull \hbox (16.70493pt too wide) in paragraph at lines 718--730 +Overfull \hbox (16.70493pt too wide) in paragraph at lines 222--234 [][] [] -) [153] (./floss-arduino.bbl [154 </home/fossee/Desktop/floss-scilab-arduino/us -er-code/modbus/figures/read_value_xcos.png>] +) (./user-code/modbus/modbus-python.tex [247 </home/fossee/Desktop/floss-scilab +-arduino/user-code/modbus/figures/active-power-output.png> </home/fossee/Deskto +p/floss-scilab-arduino/user-code/modbus/figures/active-power-output-setup.jpg>] +[248 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/read_v +alue_xcos.png>] +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 +_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 35. +(pdftex.def) Requested size: 258.36281pt x 379.61945pt. + [249] +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 +rt.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo +dbus/figures/flowchart.png used on input line 61. +(pdftex.def) Requested size: 357.73405pt x 268.44914pt. + [250] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet +.ino [251]) +(/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) [252] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/python/read_active_ +power.py)) (./user-code/modbus/modbus-julia.tex [253] +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 +_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 35. +(pdftex.def) Requested size: 258.36281pt x 379.61945pt. +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 +rt.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo +dbus/figures/flowchart.png used on input line 61. +(pdftex.def) Requested size: 357.73405pt x 268.44914pt. + [254] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet +.ino [255]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readCurrent.j +l [256]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readVoltage.j +l) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/julia/readPower.jl) +) (./user-code/modbus/modbus-OM.tex [257] +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 +_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 35. +(pdftex.def) Requested size: 258.36281pt x 379.61945pt. + [258] +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 +rt.png> +Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo +dbus/figures/flowchart.png used on input line 61. +(pdftex.def) Requested size: 357.73405pt x 268.44914pt. + [259] [260] +(/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/arduino/send_packet +.ino) +(/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 [261]) +(/home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/OpenModelica/readPo +wer.mo)) (./floss-arduino.bbl [262] Underfull \hbox (badness 10000) in paragraph at lines 4--9 []\T1/cmr/m/n/10.95 T. Mar-tin. Use of scilab for space mis-sion anal-y-sis. [] @@ -2266,16 +2912,22 @@ Overfull \hbox (15.39987pt too wide) in paragraph at lines 49--53 /Skittles_M%26M%27s [] -[155 +[263 ] -Overfull \hbox (34.60225pt too wide) in paragraph at lines 85--88 +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. + [] + + +Overfull \hbox (34.60225pt too wide) in paragraph at lines 110--113 []\T1/cmr/m/n/10.95 Secrets of ar-duino pwm. https://www.arduino.cc/en/Tutoria l/SecretsOfArduinoPWM. [] -Underfull \hbox (badness 10000) in paragraph at lines 110--113 +Underfull \hbox (badness 10000) in paragraph at lines 143--146 []\T1/cmr/m/n/10.95 Floating point con-verter. https://www.h- [] @@ -2283,28 +2935,28 @@ Underfull \hbox (badness 10000) in paragraph at lines 110--113 \tf@thm=\write14 \openout14 = `floss-arduino.thm'. -Package atveryend Info: Empty hook `BeforeClearDocument' on input line 241. - [156] -Package atveryend Info: Empty hook `AfterLastShipout' on input line 241. +Package atveryend Info: Empty hook `BeforeClearDocument' on input line 250. + [264] +Package atveryend Info: Empty hook `AfterLastShipout' on input line 250. (./floss-arduino.aux) -Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 241. -Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 241. +Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 250. +Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 250. Package rerunfilecheck Info: File `floss-arduino.out' has not changed. -(rerunfilecheck) Checksum: 86F5B851689B8FBE7584F08158FABDB6;8853. +(rerunfilecheck) Checksum: 46CD8728C2E6431C3908D3F07E88DD97;16578. LaTeX Warning: There were multiply-defined labels. -Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 241. +Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 250. ) Here is how much of TeX's memory you used: - 14036 strings out of 481239 - 258727 string characters out of 5920377 - 794065 words of memory out of 5000000 - 27146 multiletter control sequences out of 15000+600000 + 17748 strings out of 481239 + 348912 string characters out of 5920377 + 817065 words of memory out of 5000000 + 27976 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,10n,53p,368b,1950s stack positions out of 5000i,500n,10000p,200000b,80000s + 50i,10n,53p,805b,1995s stack positions out of 5000i,500n,10000p,200000b,80000s {/usr/share/texmf/fonts/enc/dvips/cm-super/cm-super-t1.enc}{/usr/share/texmf/ fonts/enc/dvips/cm-super/cm-super-ts1.enc}{/usr/share/texlive/texmf-dist/fonts/ enc/dvips/base/8r.enc}</usr/share/texlive/texmf-dist/fonts/type1/public/amsfont @@ -2327,10 +2979,10 @@ pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm1000.pfb></usr/share/texm f/fonts/type1/public/cm-super/sfrm1095.pfb></usr/share/texmf/fonts/type1/public /cm-super/sfsi1095.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfss1095.p fb></usr/share/texmf/fonts/type1/public/cm-super/sfti1095.pfb> -Output written on floss-arduino.pdf (178 pages, 28670985 bytes). +Output written on floss-arduino.pdf (290 pages, 31890232 bytes). PDF statistics: - 3788 PDF objects out of 4296 (max. 8388607) - 3369 compressed objects within 34 object streams - 1490 named destinations out of 1728 (max. 500000) - 1474 words of extra memory for PDF output out of 10000 (max. 10000000) + 8002 PDF objects out of 8907 (max. 8388607) + 7394 compressed objects within 74 object streams + 3937 named destinations out of 4296 (max. 500000) + 2345 words of extra memory for PDF output out of 10000 (max. 10000000) diff --git a/floss-arduino.lot b/floss-arduino.lot index 5b778a8..cc3dd78 100644 --- a/floss-arduino.lot +++ b/floss-arduino.lot @@ -5,37 +5,37 @@ \contentsline {table}{\numberline {2.3}{\ignorespaces Information on sensors and pin numbers\relax }}{15}{table.caption.26}% \addvspace {10\p@ } \addvspace {10\p@ } -\contentsline {table}{\numberline {4.1}{\ignorespaces Parameters to light the blue LED in Xcos\relax }}{53}{table.caption.59}% -\contentsline {table}{\numberline {4.2}{\ignorespaces Parameters to light the blue LED in Xcos for two seconds\relax }}{54}{table.caption.61}% -\contentsline {table}{\numberline {4.3}{\ignorespaces Parameters to turn the blue and red LEDs on and then turn them off one by one\relax }}{55}{table.caption.63}% -\contentsline {table}{\numberline {4.4}{\ignorespaces Parameters to make the green LED blink every second\relax }}{56}{table.caption.65}% -\addvspace {10\p@ } -\contentsline {table}{\numberline {5.1}{\ignorespaces Parameters to print the push button status on the display block\relax }}{65}{table.caption.71}% -\contentsline {table}{\numberline {5.2}{\ignorespaces Xcos parameters to turn the LED on through the pushbutton\relax }}{66}{table.caption.73}% -\addvspace {10\p@ } -\contentsline {table}{\numberline {6.1}{\ignorespaces Xcos parameters to read LDR\relax }}{78}{table.caption.80}% -\contentsline {table}{\numberline {6.2}{\ignorespaces Xcos parameters to read LDR and regulate blue LED\relax }}{80}{table.caption.83}% -\addvspace {10\p@ } -\contentsline {table}{\numberline {7.1}{\ignorespaces Xcos parameters to turn on different LEDs depending on the potentiometer value\relax }}{88}{table.caption.87}% -\addvspace {10\p@ } -\contentsline {table}{\numberline {8.1}{\ignorespaces Xcos parameters to read thermistor\relax }}{100}{table.caption.95}% -\contentsline {table}{\numberline {8.2}{\ignorespaces Xcos parameters to read thermistor and switch the buzzer\relax }}{102}{table.caption.98}% -\addvspace {10\p@ } -\contentsline {table}{\numberline {9.1}{\ignorespaces Connecting a typical servomotor to Arduino Uno\ board\relax }}{106}{table.caption.102}% -\contentsline {table}{\numberline {9.2}{\ignorespaces Parameters to rotate the servomotor by $30^\circ $\relax }}{115}{table.caption.106}% -\contentsline {table}{\numberline {9.3}{\ignorespaces Parameters to rotate the servomotor forward and reverse\relax }}{117}{table.caption.108}% -\contentsline {table}{\numberline {9.4}{\ignorespaces Parameters to make the servomotor to sweep the entire range in increments\relax }}{118}{table.caption.110}% -\contentsline {table}{\numberline {9.5}{\ignorespaces Parameters to rotate the servomotor based on the input from the potentiometer\relax }}{119}{table.caption.112}% -\addvspace {10\p@ } -\contentsline {table}{\numberline {10.1}{\ignorespaces Values in the Scilab\ command for different H-Bridge circuits\relax }}{128}{table.caption.119}% -\contentsline {table}{\numberline {10.2}{\ignorespaces Xcos parameters to drive the DC motor for a specified time\relax }}{132}{table.caption.122}% -\contentsline {table}{\numberline {10.3}{\ignorespaces Xcos parameters to drive the DC motor in forward and reverse directions\relax }}{133}{table.caption.124}% -\contentsline {table}{\numberline {10.4}{\ignorespaces Xcos parameters to drive the DC motor in a loop\relax }}{135}{table.caption.126}% -\addvspace {10\p@ } -\contentsline {table}{\numberline {11.1}{\ignorespaces Pins available on RS485 and their usage\relax }}{139}{table.caption.129}% -\contentsline {table}{\numberline {11.2}{\ignorespaces Operations supported by Modbus RTU\relax }}{140}{table.caption.131}% -\contentsline {table}{\numberline {11.3}{\ignorespaces Individual parameter address in EM6400\relax }}{140}{table.caption.132}% -\contentsline {table}{\numberline {11.4}{\ignorespaces A request packet to access V1 in EM6400\relax }}{141}{table.caption.134}% -\contentsline {table}{\numberline {11.5}{\ignorespaces A response packet to access V1 in EM6400\relax }}{142}{table.caption.135}% -\contentsline {table}{\numberline {11.6}{\ignorespaces Memory storage of a four-byte integer in little-endian and big-endian\relax }}{143}{table.caption.136}% -\contentsline {table}{\numberline {11.7}{\ignorespaces Xcos parameters to read Energy Meter\relax }}{154}{table.caption.148}% +\contentsline {table}{\numberline {4.1}{\ignorespaces Parameters to light the blue LED in Xcos\relax }}{77}{table.caption.78}% +\contentsline {table}{\numberline {4.2}{\ignorespaces Parameters to light the blue LED in Xcos for two seconds\relax }}{78}{table.caption.80}% +\contentsline {table}{\numberline {4.3}{\ignorespaces Parameters to turn the blue and red LEDs on and then turn them off one by one\relax }}{79}{table.caption.82}% +\contentsline {table}{\numberline {4.4}{\ignorespaces Parameters to make the green LED blink every second\relax }}{80}{table.caption.84}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {5.1}{\ignorespaces Parameters to print the push button status on the display block\relax }}{103}{table.caption.90}% +\contentsline {table}{\numberline {5.2}{\ignorespaces Xcos parameters to turn the LED on through the pushbutton\relax }}{104}{table.caption.92}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {6.1}{\ignorespaces Xcos parameters to read LDR\relax }}{124}{table.caption.99}% +\contentsline {table}{\numberline {6.2}{\ignorespaces Xcos parameters to read LDR and regulate blue LED\relax }}{126}{table.caption.102}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {7.1}{\ignorespaces Xcos parameters to turn on different LEDs depending on the potentiometer value\relax }}{142}{table.caption.106}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {8.1}{\ignorespaces Xcos parameters to read thermistor\relax }}{160}{table.caption.114}% +\contentsline {table}{\numberline {8.2}{\ignorespaces Xcos parameters to read thermistor and switch the buzzer\relax }}{162}{table.caption.117}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {9.1}{\ignorespaces Connecting a typical servomotor to Arduino Uno\ board\relax }}{174}{table.caption.124}% +\contentsline {table}{\numberline {9.2}{\ignorespaces Parameters to rotate the servomotor by $30^\circ $\relax }}{183}{table.caption.128}% +\contentsline {table}{\numberline {9.3}{\ignorespaces Parameters to rotate the servomotor forward and reverse\relax }}{185}{table.caption.130}% +\contentsline {table}{\numberline {9.4}{\ignorespaces Parameters to make the servomotor to sweep the entire range in increments\relax }}{186}{table.caption.132}% +\contentsline {table}{\numberline {9.5}{\ignorespaces Parameters to rotate the servomotor based on the input from the potentiometer\relax }}{187}{table.caption.134}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {10.1}{\ignorespaces Values in the Scilab\ command for different H-Bridge circuits\relax }}{210}{table.caption.141}% +\contentsline {table}{\numberline {10.2}{\ignorespaces Xcos parameters to drive the DC motor for a specified time\relax }}{214}{table.caption.144}% +\contentsline {table}{\numberline {10.3}{\ignorespaces Xcos parameters to drive the DC motor in forward and reverse directions\relax }}{215}{table.caption.146}% +\contentsline {table}{\numberline {10.4}{\ignorespaces Xcos parameters to drive the DC motor in a loop\relax }}{217}{table.caption.148}% +\addvspace {10\p@ } +\contentsline {table}{\numberline {11.1}{\ignorespaces Pins available on RS485 and their usage\relax }}{233}{table.caption.157}% +\contentsline {table}{\numberline {11.2}{\ignorespaces Operations supported by Modbus RTU\relax }}{234}{table.caption.159}% +\contentsline {table}{\numberline {11.3}{\ignorespaces Individual parameter address in EM6400\relax }}{234}{table.caption.160}% +\contentsline {table}{\numberline {11.4}{\ignorespaces A request packet to access V1 in EM6400\relax }}{235}{table.caption.162}% +\contentsline {table}{\numberline {11.5}{\ignorespaces A response packet to access V1 in EM6400\relax }}{236}{table.caption.163}% +\contentsline {table}{\numberline {11.6}{\ignorespaces Memory storage of a four-byte integer in little-endian and big-endian\relax }}{237}{table.caption.164}% +\contentsline {table}{\numberline {11.7}{\ignorespaces Xcos parameters to read Energy Meter\relax }}{248}{table.caption.177}% diff --git a/floss-arduino.out b/floss-arduino.out index 85a2de9..c55e009 100644 --- a/floss-arduino.out +++ b/floss-arduino.out @@ -36,86 +36,183 @@ \BOOKMARK [2][-]{subsection.3.3.1}{Downloading, installing and testing}{section.3.3}% 36 \BOOKMARK [2][-]{subsection.3.3.2}{Use case}{section.3.3}% 37 \BOOKMARK [2][-]{subsection.3.3.3}{Xcos-Arduino}{section.3.3}% 38 -\BOOKMARK [0][-]{chapter.4}{Interfacing a Light Emitting Diode}{}% 39 -\BOOKMARK [1][-]{section.4.1}{Preliminaries}{chapter.4}% 40 -\BOOKMARK [1][-]{section.4.2}{Connecting an RGB LED with Arduino Uno using a breadboard}{chapter.4}% 41 -\BOOKMARK [1][-]{section.4.3}{Lighting the LED from the Arduino IDE}{chapter.4}% 42 -\BOOKMARK [2][-]{subsection.4.3.1}{Lighting the LED}{section.4.3}% 43 -\BOOKMARK [2][-]{subsection.4.3.2}{Arduino Code}{section.4.3}% 44 -\BOOKMARK [1][-]{section.4.4}{Lighting the LED from Scilab}{chapter.4}% 45 -\BOOKMARK [2][-]{subsection.4.4.1}{Lighting the LED}{section.4.4}% 46 -\BOOKMARK [2][-]{subsection.4.4.2}{Scilab Code}{section.4.4}% 47 -\BOOKMARK [1][-]{section.4.5}{Lighting the LED from Scilab Xcos}{chapter.4}% 48 -\BOOKMARK [0][-]{chapter.5}{Interfacing a Pushbutton}{}% 49 -\BOOKMARK [1][-]{section.5.1}{Preliminaries}{chapter.5}% 50 -\BOOKMARK [1][-]{section.5.2}{Connecting a pushbutton with Arduino Uno using a breadboard}{chapter.5}% 51 -\BOOKMARK [1][-]{section.5.3}{Reading the pushbutton status from the Arduino IDE}{chapter.5}% 52 -\BOOKMARK [2][-]{subsection.5.3.1}{Reading the pushbutton status}{section.5.3}% 53 -\BOOKMARK [2][-]{subsection.5.3.2}{Arduino Code}{section.5.3}% 54 -\BOOKMARK [1][-]{section.5.4}{Reading the pushbutton Status from Scilab}{chapter.5}% 55 -\BOOKMARK [2][-]{subsection.5.4.1}{Reading the pushbutton Status}{section.5.4}% 56 -\BOOKMARK [2][-]{subsection.5.4.2}{Scilab Code}{section.5.4}% 57 -\BOOKMARK [1][-]{section.5.5}{Accessing the pushbutton from Xcos}{chapter.5}% 58 -\BOOKMARK [0][-]{chapter.6}{Interfacing a Light Dependent Resistor}{}% 59 -\BOOKMARK [1][-]{section.6.1}{Preliminaries}{chapter.6}% 60 -\BOOKMARK [1][-]{section.6.2}{Connecting an LDR with Arduino Uno using a breadboard}{chapter.6}% 61 -\BOOKMARK [1][-]{section.6.3}{Interfacing the LDR through the Arduino IDE}{chapter.6}% 62 -\BOOKMARK [2][-]{subsection.6.3.1}{Interfacing the LDR}{section.6.3}% 63 -\BOOKMARK [2][-]{subsection.6.3.2}{Arduino Code}{section.6.3}% 64 -\BOOKMARK [1][-]{section.6.4}{Interfacing the LDR through Scilab}{chapter.6}% 65 -\BOOKMARK [2][-]{subsection.6.4.1}{Interfacing the LDR}{section.6.4}% 66 -\BOOKMARK [2][-]{subsection.6.4.2}{Scilab Code}{section.6.4}% 67 -\BOOKMARK [1][-]{section.6.5}{Interfacing the LDR through Xcos}{chapter.6}% 68 -\BOOKMARK [0][-]{chapter.7}{Interfacing a Potentiometer}{}% 69 -\BOOKMARK [1][-]{section.7.1}{Preliminaries}{chapter.7}% 70 -\BOOKMARK [1][-]{section.7.2}{Connecting a potentiometer with Arduino Uno using a breadboard}{chapter.7}% 71 -\BOOKMARK [1][-]{section.7.3}{Reading the potentiometer from the Arduino IDE}{chapter.7}% 72 -\BOOKMARK [2][-]{subsection.7.3.1}{Reading the potentiometer}{section.7.3}% 73 -\BOOKMARK [2][-]{subsection.7.3.2}{Arduino Code}{section.7.3}% 74 -\BOOKMARK [1][-]{section.7.4}{Reading the potentiometer from Scilab}{chapter.7}% 75 -\BOOKMARK [2][-]{subsection.7.4.1}{Reading the potentiometer}{section.7.4}% 76 -\BOOKMARK [2][-]{subsection.7.4.2}{Scilab Code}{section.7.4}% 77 -\BOOKMARK [1][-]{section.7.5}{Reading the potentiometer from Xcos}{chapter.7}% 78 -\BOOKMARK [0][-]{chapter.8}{Interfacing a Thermistor}{}% 79 -\BOOKMARK [1][-]{section.8.1}{Preliminaries}{chapter.8}% 80 -\BOOKMARK [1][-]{section.8.2}{Connecting a thermistor with Arduino Uno using a breadboard}{chapter.8}% 81 -\BOOKMARK [1][-]{section.8.3}{Interfacing the thermistor from the Arduino IDE}{chapter.8}% 82 -\BOOKMARK [2][-]{subsection.8.3.1}{Interfacing the thermistor}{section.8.3}% 83 -\BOOKMARK [2][-]{subsection.8.3.2}{Arduino Code}{section.8.3}% 84 -\BOOKMARK [1][-]{section.8.4}{Interfacing the thermistor from Scilab}{chapter.8}% 85 -\BOOKMARK [2][-]{subsection.8.4.1}{Interfacing the thermistor}{section.8.4}% 86 -\BOOKMARK [2][-]{subsection.8.4.2}{Scilab Code}{section.8.4}% 87 -\BOOKMARK [1][-]{section.8.5}{Interfacing the thermistor from Xcos}{chapter.8}% 88 -\BOOKMARK [0][-]{chapter.9}{Interfacing a Servomotor}{}% 89 -\BOOKMARK [1][-]{section.9.1}{Preliminaries}{chapter.9}% 90 -\BOOKMARK [1][-]{section.9.2}{Connecting a servomotor with Arduino Uno using a breadboard}{chapter.9}% 91 -\BOOKMARK [1][-]{section.9.3}{Controlling the servomotor through the Arduino IDE}{chapter.9}% 92 -\BOOKMARK [2][-]{subsection.9.3.1}{Controlling the servomotor}{section.9.3}% 93 -\BOOKMARK [2][-]{subsection.9.3.2}{Arduino Code}{section.9.3}% 94 -\BOOKMARK [1][-]{section.9.4}{Controlling the servomotor through Scilab}{chapter.9}% 95 -\BOOKMARK [2][-]{subsection.9.4.1}{Controlling the servomotor}{section.9.4}% 96 -\BOOKMARK [2][-]{subsection.9.4.2}{Scilab Code}{section.9.4}% 97 -\BOOKMARK [1][-]{section.9.5}{Controling the servomotor through Xcos}{chapter.9}% 98 -\BOOKMARK [0][-]{chapter.10}{Interfacing a DC Motor}{}% 99 -\BOOKMARK [1][-]{section.10.1}{Preliminaries}{chapter.10}% 100 -\BOOKMARK [1][-]{section.10.2}{Controlling the DC motor from Arduino}{chapter.10}% 101 -\BOOKMARK [2][-]{subsection.10.2.1}{Controlling the DC motor}{section.10.2}% 102 -\BOOKMARK [2][-]{subsection.10.2.2}{Arduino Code}{section.10.2}% 103 -\BOOKMARK [1][-]{section.10.3}{Controlling the DC motor from Scilab}{chapter.10}% 104 -\BOOKMARK [2][-]{subsection.10.3.1}{Controlling the DC motor}{section.10.3}% 105 -\BOOKMARK [2][-]{subsection.10.3.2}{Scilab Code}{section.10.3}% 106 -\BOOKMARK [1][-]{section.10.4}{Controlling the DC motor from Xcos}{chapter.10}% 107 -\BOOKMARK [0][-]{chapter.11}{Implementation of Modbus Protocol}{}% 108 -\BOOKMARK [1][-]{section.11.1}{Preliminaries}{chapter.11}% 109 -\BOOKMARK [2][-]{subsection.11.1.1}{Energy meter}{section.11.1}% 110 -\BOOKMARK [2][-]{subsection.11.1.2}{Endianness}{section.11.1}% 111 -\BOOKMARK [1][-]{section.11.2}{Objective}{chapter.11}% 112 -\BOOKMARK [1][-]{section.11.3}{Manifestation of Modbus protocol with Arduino Uno and energy meter}{chapter.11}% 113 -\BOOKMARK [2][-]{subsection.11.3.1}{Software}{section.11.3}% 114 -\BOOKMARK [2][-]{subsection.11.3.2}{Output in the Scilab Console}{section.11.3}% 115 -\BOOKMARK [1][-]{section.11.4}{Accessing the electrical parameters from Scilab}{chapter.11}% 116 -\BOOKMARK [2][-]{subsection.11.4.1}{Accessing the electrical parameters}{section.11.4}% 117 -\BOOKMARK [2][-]{subsection.11.4.2}{Arduino Firmware}{section.11.4}% 118 -\BOOKMARK [2][-]{subsection.11.4.3}{Scilab Code}{section.11.4}% 119 -\BOOKMARK [1][-]{section.11.5}{Reading Parameters from Xcos}{chapter.11}% 120 -\BOOKMARK [0][-]{chapter*.149}{}{}% 121 +\BOOKMARK [1][-]{section.3.4}{Python}{chapter.3}% 39 +\BOOKMARK [2][-]{subsection.3.4.1}{Downloading and installing on Windows}{section.3.4}% 40 +\BOOKMARK [2][-]{subsection.3.4.2}{Downloading and installing on GNU/Linux Ubuntu}{section.3.4}% 41 +\BOOKMARK [2][-]{subsection.3.4.3}{Python-Arduino toolbox}{section.3.4}% 42 +\BOOKMARK [2][-]{subsection.3.4.4}{Firmware}{section.3.4}% 43 +\BOOKMARK [1][-]{section.3.5}{Julia}{chapter.3}% 44 +\BOOKMARK [2][-]{subsection.3.5.1}{Downloading and installing on Windows}{section.3.5}% 45 +\BOOKMARK [2][-]{subsection.3.5.2}{Downloading and installing GNU/Linux Ubuntu}{section.3.5}% 46 +\BOOKMARK [2][-]{subsection.3.5.3}{Julia-Arduino toolbox}{section.3.5}% 47 +\BOOKMARK [2][-]{subsection.3.5.4}{Firmware}{section.3.5}% 48 +\BOOKMARK [1][-]{section.3.6}{OpenModelica}{chapter.3}% 49 +\BOOKMARK [2][-]{subsection.3.6.1}{Downloading and installing on Windows}{section.3.6}% 50 +\BOOKMARK [2][-]{subsection.3.6.2}{Downloading and installing on GNU/Linux Ubuntu}{section.3.6}% 51 +\BOOKMARK [2][-]{subsection.3.6.3}{Simulating models in OpenModelica}{section.3.6}% 52 +\BOOKMARK [2][-]{subsection.3.6.4}{OpenModelica-Arduino toolbox}{section.3.6}% 53 +\BOOKMARK [2][-]{subsection.3.6.5}{Firmware}{section.3.6}% 54 +\BOOKMARK [0][-]{chapter.4}{Interfacing a Light Emitting Diode}{}% 55 +\BOOKMARK [1][-]{section.4.1}{Preliminaries}{chapter.4}% 56 +\BOOKMARK [1][-]{section.4.2}{Connecting an RGB LED with Arduino Uno using a breadboard}{chapter.4}% 57 +\BOOKMARK [1][-]{section.4.3}{Lighting the LED from the Arduino IDE}{chapter.4}% 58 +\BOOKMARK [2][-]{subsection.4.3.1}{Lighting the LED}{section.4.3}% 59 +\BOOKMARK [2][-]{subsection.4.3.2}{Arduino Code}{section.4.3}% 60 +\BOOKMARK [1][-]{section.4.4}{Lighting the LED from Scilab}{chapter.4}% 61 +\BOOKMARK [2][-]{subsection.4.4.1}{Lighting the LED}{section.4.4}% 62 +\BOOKMARK [2][-]{subsection.4.4.2}{Scilab Code}{section.4.4}% 63 +\BOOKMARK [1][-]{section.4.5}{Lighting the LED from Scilab Xcos}{chapter.4}% 64 +\BOOKMARK [1][-]{section.4.6}{Lighting the LED from Python}{chapter.4}% 65 +\BOOKMARK [2][-]{subsection.4.6.1}{Lighting the LED}{section.4.6}% 66 +\BOOKMARK [2][-]{subsection.4.6.2}{Python Code}{section.4.6}% 67 +\BOOKMARK [1][-]{section.4.7}{Lighting the LED from Julia}{chapter.4}% 68 +\BOOKMARK [2][-]{subsection.4.7.1}{Lighting the LED}{section.4.7}% 69 +\BOOKMARK [2][-]{subsection.4.7.2}{Julia Code}{section.4.7}% 70 +\BOOKMARK [1][-]{section.4.8}{Lighting the LED from OpenModelica}{chapter.4}% 71 +\BOOKMARK [2][-]{subsection.4.8.1}{Lighting the LED}{section.4.8}% 72 +\BOOKMARK [2][-]{subsection.4.8.2}{OpenModelica Code}{section.4.8}% 73 +\BOOKMARK [0][-]{chapter.5}{Interfacing a Pushbutton}{}% 74 +\BOOKMARK [1][-]{section.5.1}{Preliminaries}{chapter.5}% 75 +\BOOKMARK [1][-]{section.5.2}{Connecting a pushbutton with Arduino Uno using a breadboard}{chapter.5}% 76 +\BOOKMARK [1][-]{section.5.3}{Reading the pushbutton status from the Arduino IDE}{chapter.5}% 77 +\BOOKMARK [2][-]{subsection.5.3.1}{Reading the pushbutton status}{section.5.3}% 78 +\BOOKMARK [2][-]{subsection.5.3.2}{Arduino Code}{section.5.3}% 79 +\BOOKMARK [1][-]{section.5.4}{Reading the pushbutton Status from Scilab}{chapter.5}% 80 +\BOOKMARK [2][-]{subsection.5.4.1}{Reading the pushbutton Status}{section.5.4}% 81 +\BOOKMARK [2][-]{subsection.5.4.2}{Scilab Code}{section.5.4}% 82 +\BOOKMARK [1][-]{section.5.5}{Accessing the pushbutton from Xcos}{chapter.5}% 83 +\BOOKMARK [1][-]{section.5.6}{Reading the pushbutton status from Python}{chapter.5}% 84 +\BOOKMARK [2][-]{subsection.5.6.1}{Reading the pushbutton status}{section.5.6}% 85 +\BOOKMARK [2][-]{subsection.5.6.2}{Python Code}{section.5.6}% 86 +\BOOKMARK [1][-]{section.5.7}{Reading the pushbutton status from Julia}{chapter.5}% 87 +\BOOKMARK [2][-]{subsection.5.7.1}{Reading the pushbutton status}{section.5.7}% 88 +\BOOKMARK [2][-]{subsection.5.7.2}{Julia Code}{section.5.7}% 89 +\BOOKMARK [1][-]{section.5.8}{Reading the pushbutton status from OpenModelica}{chapter.5}% 90 +\BOOKMARK [2][-]{subsection.5.8.1}{Reading the pushbutton status}{section.5.8}% 91 +\BOOKMARK [2][-]{subsection.5.8.2}{OpenModelica Code}{section.5.8}% 92 +\BOOKMARK [0][-]{chapter.6}{Interfacing a Light Dependent Resistor}{}% 93 +\BOOKMARK [1][-]{section.6.1}{Preliminaries}{chapter.6}% 94 +\BOOKMARK [1][-]{section.6.2}{Connecting an LDR with Arduino Uno using a breadboard}{chapter.6}% 95 +\BOOKMARK [1][-]{section.6.3}{Interfacing the LDR through the Arduino IDE}{chapter.6}% 96 +\BOOKMARK [2][-]{subsection.6.3.1}{Interfacing the LDR}{section.6.3}% 97 +\BOOKMARK [2][-]{subsection.6.3.2}{Arduino Code}{section.6.3}% 98 +\BOOKMARK [1][-]{section.6.4}{Interfacing the LDR through Scilab}{chapter.6}% 99 +\BOOKMARK [2][-]{subsection.6.4.1}{Interfacing the LDR}{section.6.4}% 100 +\BOOKMARK [2][-]{subsection.6.4.2}{Scilab Code}{section.6.4}% 101 +\BOOKMARK [1][-]{section.6.5}{Interfacing the LDR through Xcos}{chapter.6}% 102 +\BOOKMARK [1][-]{section.6.6}{Interfacing the LDR through Python}{chapter.6}% 103 +\BOOKMARK [2][-]{subsection.6.6.1}{Interfacing the LDR}{section.6.6}% 104 +\BOOKMARK [2][-]{subsection.6.6.2}{Python Code}{section.6.6}% 105 +\BOOKMARK [1][-]{section.6.7}{Interfacing the LDR through Julia}{chapter.6}% 106 +\BOOKMARK [2][-]{subsection.6.7.1}{Interfacing the LDR}{section.6.7}% 107 +\BOOKMARK [2][-]{subsection.6.7.2}{Julia Code}{section.6.7}% 108 +\BOOKMARK [1][-]{section.6.8}{Interfacing the LDR through OpenModelica}{chapter.6}% 109 +\BOOKMARK [2][-]{subsection.6.8.1}{Interfacing the LDR}{section.6.8}% 110 +\BOOKMARK [2][-]{subsection.6.8.2}{OpenModelica Code}{section.6.8}% 111 +\BOOKMARK [0][-]{chapter.7}{Interfacing a Potentiometer}{}% 112 +\BOOKMARK [1][-]{section.7.1}{Preliminaries}{chapter.7}% 113 +\BOOKMARK [1][-]{section.7.2}{Connecting a potentiometer with Arduino Uno using a breadboard}{chapter.7}% 114 +\BOOKMARK [1][-]{section.7.3}{Reading the potentiometer from the Arduino IDE}{chapter.7}% 115 +\BOOKMARK [2][-]{subsection.7.3.1}{Reading the potentiometer}{section.7.3}% 116 +\BOOKMARK [2][-]{subsection.7.3.2}{Arduino Code}{section.7.3}% 117 +\BOOKMARK [1][-]{section.7.4}{Reading the potentiometer from Scilab}{chapter.7}% 118 +\BOOKMARK [2][-]{subsection.7.4.1}{Reading the potentiometer}{section.7.4}% 119 +\BOOKMARK [2][-]{subsection.7.4.2}{Scilab Code}{section.7.4}% 120 +\BOOKMARK [1][-]{section.7.5}{Reading the potentiometer from Xcos}{chapter.7}% 121 +\BOOKMARK [1][-]{section.7.6}{Reading the potentiometer from Python}{chapter.7}% 122 +\BOOKMARK [2][-]{subsection.7.6.1}{Reading the potentiometer}{section.7.6}% 123 +\BOOKMARK [2][-]{subsection.7.6.2}{Python Code}{section.7.6}% 124 +\BOOKMARK [1][-]{section.7.7}{Reading the potentiometer from Julia}{chapter.7}% 125 +\BOOKMARK [2][-]{subsection.7.7.1}{Reading the potentiometer}{section.7.7}% 126 +\BOOKMARK [2][-]{subsection.7.7.2}{Julia Code}{section.7.7}% 127 +\BOOKMARK [1][-]{section.7.8}{Reading the potentiometer from OpenModelica}{chapter.7}% 128 +\BOOKMARK [2][-]{subsection.7.8.1}{Reading the potentiometer}{section.7.8}% 129 +\BOOKMARK [2][-]{subsection.7.8.2}{OpenModelica Code}{section.7.8}% 130 +\BOOKMARK [0][-]{chapter.8}{Interfacing a Thermistor}{}% 131 +\BOOKMARK [1][-]{section.8.1}{Preliminaries}{chapter.8}% 132 +\BOOKMARK [1][-]{section.8.2}{Connecting a thermistor with Arduino Uno using a breadboard}{chapter.8}% 133 +\BOOKMARK [1][-]{section.8.3}{Interfacing the thermistor from the Arduino IDE}{chapter.8}% 134 +\BOOKMARK [2][-]{subsection.8.3.1}{Interfacing the thermistor}{section.8.3}% 135 +\BOOKMARK [2][-]{subsection.8.3.2}{Arduino Code}{section.8.3}% 136 +\BOOKMARK [1][-]{section.8.4}{Interfacing the thermistor from Scilab}{chapter.8}% 137 +\BOOKMARK [2][-]{subsection.8.4.1}{Interfacing the thermistor}{section.8.4}% 138 +\BOOKMARK [2][-]{subsection.8.4.2}{Scilab Code}{section.8.4}% 139 +\BOOKMARK [1][-]{section.8.5}{Interfacing the thermistor from Xcos}{chapter.8}% 140 +\BOOKMARK [1][-]{section.8.6}{Interfacing the thermistor from Python}{chapter.8}% 141 +\BOOKMARK [2][-]{subsection.8.6.1}{Interfacing the thermistor}{section.8.6}% 142 +\BOOKMARK [2][-]{subsection.8.6.2}{Python Code}{section.8.6}% 143 +\BOOKMARK [1][-]{section.8.7}{Interfacing the thermistor from Julia}{chapter.8}% 144 +\BOOKMARK [2][-]{subsection.8.7.1}{Interfacing the thermistor}{section.8.7}% 145 +\BOOKMARK [2][-]{subsection.8.7.2}{Julia Code}{section.8.7}% 146 +\BOOKMARK [1][-]{section.8.8}{Interfacing the thermistor from OpenModelica}{chapter.8}% 147 +\BOOKMARK [2][-]{subsection.8.8.1}{Interfacing the thermistor}{section.8.8}% 148 +\BOOKMARK [2][-]{subsection.8.8.2}{OpenModelica Code}{section.8.8}% 149 +\BOOKMARK [0][-]{chapter.9}{Interfacing a Servomotor}{}% 150 +\BOOKMARK [1][-]{section.9.1}{Preliminaries}{chapter.9}% 151 +\BOOKMARK [1][-]{section.9.2}{Connecting a servomotor with Arduino Uno using a breadboard}{chapter.9}% 152 +\BOOKMARK [1][-]{section.9.3}{Controlling the servomotor through the Arduino IDE}{chapter.9}% 153 +\BOOKMARK [2][-]{subsection.9.3.1}{Controlling the servomotor}{section.9.3}% 154 +\BOOKMARK [2][-]{subsection.9.3.2}{Arduino Code}{section.9.3}% 155 +\BOOKMARK [1][-]{section.9.4}{Controlling the servomotor through Scilab}{chapter.9}% 156 +\BOOKMARK [2][-]{subsection.9.4.1}{Controlling the servomotor}{section.9.4}% 157 +\BOOKMARK [2][-]{subsection.9.4.2}{Scilab Code}{section.9.4}% 158 +\BOOKMARK [1][-]{section.9.5}{Controling the servomotor through Xcos}{chapter.9}% 159 +\BOOKMARK [1][-]{section.9.6}{Controlling the servomotor through Python}{chapter.9}% 160 +\BOOKMARK [2][-]{subsection.9.6.1}{Controlling the servomotor}{section.9.6}% 161 +\BOOKMARK [2][-]{subsection.9.6.2}{Python Code}{section.9.6}% 162 +\BOOKMARK [1][-]{section.9.7}{Controlling the servomotor through Julia}{chapter.9}% 163 +\BOOKMARK [2][-]{subsection.9.7.1}{Controlling the servomotor}{section.9.7}% 164 +\BOOKMARK [2][-]{subsection.9.7.2}{Julia Code}{section.9.7}% 165 +\BOOKMARK [1][-]{section.9.8}{Controlling the servomotor through OpenModelica}{chapter.9}% 166 +\BOOKMARK [2][-]{subsection.9.8.1}{Controlling the servomotor}{section.9.8}% 167 +\BOOKMARK [2][-]{subsection.9.8.2}{OpenModelica Code}{section.9.8}% 168 +\BOOKMARK [0][-]{chapter.10}{Interfacing a DC Motor}{}% 169 +\BOOKMARK [1][-]{section.10.1}{Preliminaries}{chapter.10}% 170 +\BOOKMARK [1][-]{section.10.2}{Controlling the DC motor from Arduino}{chapter.10}% 171 +\BOOKMARK [2][-]{subsection.10.2.1}{Controlling the DC motor}{section.10.2}% 172 +\BOOKMARK [2][-]{subsection.10.2.2}{Arduino Code}{section.10.2}% 173 +\BOOKMARK [1][-]{section.10.3}{Controlling the DC motor from Scilab}{chapter.10}% 174 +\BOOKMARK [2][-]{subsection.10.3.1}{Controlling the DC motor}{section.10.3}% 175 +\BOOKMARK [2][-]{subsection.10.3.2}{Scilab Code}{section.10.3}% 176 +\BOOKMARK [1][-]{section.10.4}{Controlling the DC motor from Xcos}{chapter.10}% 177 +\BOOKMARK [1][-]{section.10.5}{Controlling the DC motor from Python}{chapter.10}% 178 +\BOOKMARK [2][-]{subsection.10.5.1}{Controlling the DC motor}{section.10.5}% 179 +\BOOKMARK [2][-]{subsection.10.5.2}{Python Code}{section.10.5}% 180 +\BOOKMARK [1][-]{section.10.6}{Controlling the DC motor from Julia}{chapter.10}% 181 +\BOOKMARK [2][-]{subsection.10.6.1}{Controlling the DC motor}{section.10.6}% 182 +\BOOKMARK [2][-]{subsection.10.6.2}{Julia Code}{section.10.6}% 183 +\BOOKMARK [1][-]{section.10.7}{Controlling the DC motor from OpenModelica}{chapter.10}% 184 +\BOOKMARK [2][-]{subsection.10.7.1}{Controlling the DC motor}{section.10.7}% 185 +\BOOKMARK [2][-]{subsection.10.7.2}{OpenModelica Code}{section.10.7}% 186 +\BOOKMARK [0][-]{chapter.11}{Implementation of Modbus Protocol}{}% 187 +\BOOKMARK [1][-]{section.11.1}{Preliminaries}{chapter.11}% 188 +\BOOKMARK [2][-]{subsection.11.1.1}{Energy meter}{section.11.1}% 189 +\BOOKMARK [2][-]{subsection.11.1.2}{Endianness}{section.11.1}% 190 +\BOOKMARK [1][-]{section.11.2}{Setup for the experiment}{chapter.11}% 191 +\BOOKMARK [1][-]{section.11.3}{Manifestation of Modbus protocol through Scilab}{chapter.11}% 192 +\BOOKMARK [2][-]{subsection.11.3.1}{Software for the experiment}{section.11.3}% 193 +\BOOKMARK [1][-]{section.11.4}{Reading the electrical parameters from Scilab}{chapter.11}% 194 +\BOOKMARK [2][-]{subsection.11.4.1}{Reading the electrical parameters}{section.11.4}% 195 +\BOOKMARK [2][-]{subsection.11.4.2}{Arduino Firmware}{section.11.4}% 196 +\BOOKMARK [2][-]{subsection.11.4.3}{Scilab Code}{section.11.4}% 197 +\BOOKMARK [2][-]{subsection.11.4.4}{Output in the Scilab Console}{section.11.4}% 198 +\BOOKMARK [1][-]{section.11.5}{Reading the electrical parameters from Xcos}{chapter.11}% 199 +\BOOKMARK [1][-]{section.11.6}{Manifestation of Modbus protocol through Python}{chapter.11}% 200 +\BOOKMARK [2][-]{subsection.11.6.1}{Software for the experiment}{section.11.6}% 201 +\BOOKMARK [1][-]{section.11.7}{Reading the electrical parameters from Python}{chapter.11}% 202 +\BOOKMARK [2][-]{subsection.11.7.1}{Reading the electrical parameters}{section.11.7}% 203 +\BOOKMARK [2][-]{subsection.11.7.2}{Arduino Firmware}{section.11.7}% 204 +\BOOKMARK [2][-]{subsection.11.7.3}{Python Code}{section.11.7}% 205 +\BOOKMARK [1][-]{section.11.8}{Manifestation of Modbus protocol through Julia}{chapter.11}% 206 +\BOOKMARK [2][-]{subsection.11.8.1}{Software for the experiment}{section.11.8}% 207 +\BOOKMARK [1][-]{section.11.9}{Reading the electrical parameters from Julia}{chapter.11}% 208 +\BOOKMARK [2][-]{subsection.11.9.1}{Reading the electrical parameters}{section.11.9}% 209 +\BOOKMARK [2][-]{subsection.11.9.2}{Arduino Firmware}{section.11.9}% 210 +\BOOKMARK [2][-]{subsection.11.9.3}{Julia Code}{section.11.9}% 211 +\BOOKMARK [1][-]{section.11.10}{Manifestation of Modbus protocol through OpenModelica}{chapter.11}% 212 +\BOOKMARK [2][-]{subsection.11.10.1}{Software for the experiment}{section.11.10}% 213 +\BOOKMARK [1][-]{section.11.11}{Reading the electrical parameters from OpenModelica}{chapter.11}% 214 +\BOOKMARK [2][-]{subsection.11.11.1}{Reading the electrical parameters}{section.11.11}% 215 +\BOOKMARK [2][-]{subsection.11.11.2}{Arduino Firmware}{section.11.11}% 216 +\BOOKMARK [2][-]{subsection.11.11.3}{OpenModelica Code}{section.11.11}% 217 +\BOOKMARK [0][-]{chapter*.187}{}{}% 218 diff --git a/floss-arduino.pdf b/floss-arduino.pdf Binary files differindex 6efcc86..193b4e8 100644 --- a/floss-arduino.pdf +++ b/floss-arduino.pdf diff --git a/floss-arduino.pyd b/floss-arduino.pyd index e69de29..ae866fa 100644 --- a/floss-arduino.pyd +++ b/floss-arduino.pyd @@ -0,0 +1,31 @@ +\addvspace {10pt} +\contentsline {section}{\numberline {3.{1}}A Python script to check whether the firmware is properly installed or not}{46}{pymass.3.1}% +\addvspace {10pt} +\contentsline {section}{\numberline {4.{1}}Turning on the blue LED}{83}{pymass.4.1}% +\contentsline {section}{\numberline {4.{2}}Turning on the blue LED and turning it off after two seconds}{83}{pymass.4.2}% +\contentsline {section}{\numberline {4.{3}}Turning on blue and red LEDs for 5 seconds and then turning them off one by one}{84}{pymass.4.3}% +\contentsline {section}{\numberline {4.{4}}Blinking the green LED}{85}{pymass.4.4}% +\addvspace {10pt} +\contentsline {section}{\numberline {5.{1}}Read the status of the pushbutton and display it on the Command Prompt or the Terminal}{106}{pymass.5.1}% +\contentsline {section}{\numberline {5.{2}}Turning the LED on or off depending on the pushbutton}{107}{pymass.5.2}% +\addvspace {10pt} +\contentsline {section}{\numberline {6.{1}}Read and display the LDR values}{127}{pymass.6.1}% +\contentsline {section}{\numberline {6.{2}}Turning the red LED on and off}{128}{pymass.6.2}% +\addvspace {10pt} +\contentsline {section}{\numberline {7.{1}}Turning on LEDs depending on the potentiometer threshold}{143}{pymass.7.1}% +\addvspace {10pt} +\contentsline {section}{\numberline {8.{1}}Read and display the thermistor values}{165}{pymass.8.1}% +\contentsline {section}{\numberline {8.{2}}Turning the buzzer on using thermistor values}{165}{pymass.8.2}% +\addvspace {10pt} +\contentsline {section}{\numberline {9.{1}}Rotating the servomotor to a specified degree}{189}{pymass.9.1}% +\contentsline {section}{\numberline {9.{2}}Rotating the servomotor to a specified degree and reversing}{190}{pymass.9.2}% +\contentsline {section}{\numberline {9.{3}}Rotating the servomotor in steps of $20^\circ $}{191}{pymass.9.3}% +\contentsline {section}{\numberline {9.{4}}Rotating the servomotor to a degree specified by the potentiometer}{192}{pymass.9.4}% +\addvspace {10pt} +\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{219}{pymass.10.1}% +\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{220}{pymass.10.2}% +\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{221}{pymass.10.3}% +\addvspace {10pt} +\contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{252}{pymass.11.1}% +\contentsline {section}{\numberline {11.{2}}Code for Single Phase Voltage Output}{252}{pymass.11.2}% +\contentsline {section}{\numberline {11.{3}}Code for Single Phase Active Power Output}{253}{pymass.11.3}% diff --git a/floss-arduino.tex b/floss-arduino.tex index 3b89844..cf7131a 100644 --- a/floss-arduino.tex +++ b/floss-arduino.tex @@ -108,11 +108,11 @@ \makeindex % Comment one of the next two lines -% \def\EntireReport{} %% EntireReport is set to true +\def\EntireReport{} %% EntireReport is set to true % \let\EntireReport\undefined %% EntireReport is set to false % If the entire report is not prepared, choose one of scilab, python, % julia, or OM -\newcommand{\Software}{scilab} +% \newcommand{\Software}{OM} \begin{document} \pagestyle{plain} @@ -197,6 +197,13 @@ \input{user-code/dcmotor/dcmotor-julia.tex} \input{user-code/dcmotor/dcmotor-OM.tex} +\input{user-code/modbus/modbus-base.tex} +\input{user-code/modbus/modbus-scilab.tex} +\input{user-code/modbus/modbus-python.tex} +\input{user-code/modbus/modbus-julia.tex} +\input{user-code/modbus/modbus-OM.tex} + + \else \input{user-code/sw-env/sw-env-base.tex} @@ -223,8 +230,10 @@ \input{user-code/dcmotor/dcmotor-base.tex} \input{user-code/dcmotor/dcmotor-\Software.tex} +\input{user-code/modbus/modbus-base.tex} \input{user-code/modbus/modbus-\Software.tex} + \fi % \input{user-code/modbus/modbus.tex} diff --git a/floss-arduino.thm b/floss-arduino.thm index d3ca881..a44b265 100644 --- a/floss-arduino.thm +++ b/floss-arduino.thm @@ -1,56 +1,128 @@ \contentsline {ardmass}{{Arduino Code}{3.{1}}{}}{25}{ardmass.3.1}% \contentsline {codemass}{{Scilab Code}{3.{1}}{}}{34}{codemass.3.1}% -\contentsline {egmass}{{Exercise}{4.{1}}{}}{47}{egmass.4.1}% -\contentsline {ardmass}{{Arduino Code}{4.{1}}{}}{48}{ardmass.4.1}% -\contentsline {ardmass}{{Arduino Code}{4.{2}}{}}{48}{ardmass.4.2}% -\contentsline {ardmass}{{Arduino Code}{4.{3}}{}}{49}{ardmass.4.3}% -\contentsline {ardmass}{{Arduino Code}{4.{4}}{}}{49}{ardmass.4.4}% -\contentsline {egmass}{{Exercise}{4.{2}}{}}{51}{egmass.4.2}% -\contentsline {codemass}{{Scilab Code}{4.{1}}{}}{51}{codemass.4.1}% -\contentsline {codemass}{{Scilab Code}{4.{2}}{}}{52}{codemass.4.2}% -\contentsline {codemass}{{Scilab Code}{4.{3}}{}}{52}{codemass.4.3}% -\contentsline {codemass}{{Scilab Code}{4.{4}}{}}{52}{codemass.4.4}% -\contentsline {egmass}{{Exercise}{4.{3}}{}}{56}{egmass.4.3}% -\contentsline {ardmass}{{Arduino Code}{5.{1}}{}}{61}{ardmass.5.1}% -\contentsline {ardmass}{{Arduino Code}{5.{2}}{}}{61}{ardmass.5.2}% -\contentsline {codemass}{{Scilab Code}{5.{1}}{}}{63}{codemass.5.1}% -\contentsline {codemass}{{Scilab Code}{5.{2}}{}}{64}{codemass.5.2}% -\contentsline {egmass}{{Exercise}{5.{1}}{}}{66}{egmass.5.1}% -\contentsline {egmass}{{Exercise}{6.{1}}{}}{73}{egmass.6.1}% -\contentsline {ardmass}{{Arduino Code}{6.{1}}{}}{74}{ardmass.6.1}% -\contentsline {ardmass}{{Arduino Code}{6.{2}}{}}{74}{ardmass.6.2}% -\contentsline {egmass}{{Exercise}{6.{2}}{}}{75}{egmass.6.2}% -\contentsline {codemass}{{Scilab Code}{6.{1}}{}}{76}{codemass.6.1}% -\contentsline {codemass}{{Scilab Code}{6.{2}}{}}{76}{codemass.6.2}% -\contentsline {ardmass}{{Arduino Code}{7.{1}}{}}{84}{ardmass.7.1}% -\contentsline {codemass}{{Scilab Code}{7.{1}}{}}{86}{codemass.7.1}% -\contentsline {egmass}{{Exercise}{7.{1}}{}}{88}{egmass.7.1}% -\contentsline {egmass}{{Exercise}{8.{1}}{}}{94}{egmass.8.1}% -\contentsline {ardmass}{{Arduino Code}{8.{1}}{}}{94}{ardmass.8.1}% -\contentsline {ardmass}{{Arduino Code}{8.{2}}{}}{95}{ardmass.8.2}% -\contentsline {egmass}{{Exercise}{8.{2}}{}}{97}{egmass.8.2}% -\contentsline {codemass}{{Scilab Code}{8.{1}}{}}{98}{codemass.8.1}% -\contentsline {codemass}{{Scilab Code}{8.{2}}{}}{98}{codemass.8.2}% -\contentsline {egmass}{{Exercise}{9.{1}}{}}{110}{egmass.9.1}% -\contentsline {ardmass}{{Arduino Code}{9.{1}}{}}{110}{ardmass.9.1}% -\contentsline {ardmass}{{Arduino Code}{9.{2}}{}}{111}{ardmass.9.2}% -\contentsline {ardmass}{{Arduino Code}{9.{3}}{}}{111}{ardmass.9.3}% -\contentsline {ardmass}{{Arduino Code}{9.{4}}{}}{111}{ardmass.9.4}% -\contentsline {codemass}{{Scilab Code}{9.{1}}{}}{114}{codemass.9.1}% -\contentsline {codemass}{{Scilab Code}{9.{2}}{}}{114}{codemass.9.2}% -\contentsline {codemass}{{Scilab Code}{9.{3}}{}}{114}{codemass.9.3}% -\contentsline {codemass}{{Scilab Code}{9.{4}}{}}{115}{codemass.9.4}% -\contentsline {egmass}{{Exercise}{10.{1}}{}}{125}{egmass.10.1}% -\contentsline {ardmass}{{Arduino Code}{10.{1}}{}}{126}{ardmass.10.1}% -\contentsline {ardmass}{{Arduino Code}{10.{2}}{}}{126}{ardmass.10.2}% -\contentsline {ardmass}{{Arduino Code}{10.{3}}{}}{127}{ardmass.10.3}% -\contentsline {egmass}{{Exercise}{10.{2}}{}}{130}{egmass.10.2}% -\contentsline {codemass}{{Scilab Code}{10.{1}}{}}{130}{codemass.10.1}% -\contentsline {codemass}{{Scilab Code}{10.{2}}{}}{130}{codemass.10.2}% -\contentsline {codemass}{{Scilab Code}{10.{3}}{}}{131}{codemass.10.3}% -\contentsline {egmass}{{Exercise}{10.{3}}{}}{134}{egmass.10.3}% -\contentsline {ardmass}{{Arduino Code}{11.{1}}{}}{151}{ardmass.11.1}% -\contentsline {codemass}{{Scilab Code}{11.{1}}{}}{152}{codemass.11.1}% -\contentsline {codemass}{{Scilab Code}{11.{2}}{}}{152}{codemass.11.2}% -\contentsline {codemass}{{Scilab Code}{11.{3}}{}}{152}{codemass.11.3}% -\contentsline {codemass}{{Scilab Code}{11.{4}}{}}{153}{codemass.11.4}% +\contentsline {pymass}{{Python Code}{3.{1}}{}}{46}{pymass.3.1}% +\contentsline {juliamass}{{Julia Code}{3.{1}}{}}{55}{juliamass.3.1}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{3.{1}}{}}{65}{OpenModelicamass.3.1}% +\contentsline {egmass}{{Exercise}{4.{1}}{}}{71}{egmass.4.1}% +\contentsline {ardmass}{{Arduino Code}{4.{1}}{}}{72}{ardmass.4.1}% +\contentsline {ardmass}{{Arduino Code}{4.{2}}{}}{72}{ardmass.4.2}% +\contentsline {ardmass}{{Arduino Code}{4.{3}}{}}{73}{ardmass.4.3}% +\contentsline {ardmass}{{Arduino Code}{4.{4}}{}}{73}{ardmass.4.4}% +\contentsline {egmass}{{Exercise}{4.{2}}{}}{75}{egmass.4.2}% +\contentsline {codemass}{{Scilab Code}{4.{1}}{}}{75}{codemass.4.1}% +\contentsline {codemass}{{Scilab Code}{4.{2}}{}}{76}{codemass.4.2}% +\contentsline {codemass}{{Scilab Code}{4.{3}}{}}{76}{codemass.4.3}% +\contentsline {codemass}{{Scilab Code}{4.{4}}{}}{76}{codemass.4.4}% +\contentsline {egmass}{{Exercise}{4.{3}}{}}{80}{egmass.4.3}% +\contentsline {egmass}{{Exercise}{4.{4}}{}}{82}{egmass.4.4}% +\contentsline {pymass}{{Python Code}{4.{1}}{}}{83}{pymass.4.1}% +\contentsline {pymass}{{Python Code}{4.{2}}{}}{83}{pymass.4.2}% +\contentsline {pymass}{{Python Code}{4.{3}}{}}{84}{pymass.4.3}% +\contentsline {pymass}{{Python Code}{4.{4}}{}}{85}{pymass.4.4}% +\contentsline {juliamass}{{Julia Code}{4.{1}}{}}{87}{juliamass.4.1}% +\contentsline {juliamass}{{Julia Code}{4.{2}}{}}{88}{juliamass.4.2}% +\contentsline {juliamass}{{Julia Code}{4.{3}}{}}{88}{juliamass.4.3}% +\contentsline {juliamass}{{Julia Code}{4.{4}}{}}{88}{juliamass.4.4}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{4.{1}}{}}{91}{OpenModelicamass.4.1}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{4.{2}}{}}{91}{OpenModelicamass.4.2}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{4.{3}}{}}{92}{OpenModelicamass.4.3}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{4.{4}}{}}{93}{OpenModelicamass.4.4}% +\contentsline {ardmass}{{Arduino Code}{5.{1}}{}}{99}{ardmass.5.1}% +\contentsline {ardmass}{{Arduino Code}{5.{2}}{}}{99}{ardmass.5.2}% +\contentsline {codemass}{{Scilab Code}{5.{1}}{}}{101}{codemass.5.1}% +\contentsline {codemass}{{Scilab Code}{5.{2}}{}}{102}{codemass.5.2}% +\contentsline {egmass}{{Exercise}{5.{1}}{}}{104}{egmass.5.1}% +\contentsline {pymass}{{Python Code}{5.{1}}{}}{106}{pymass.5.1}% +\contentsline {pymass}{{Python Code}{5.{2}}{}}{107}{pymass.5.2}% +\contentsline {juliamass}{{Julia Code}{5.{1}}{}}{109}{juliamass.5.1}% +\contentsline {juliamass}{{Julia Code}{5.{2}}{}}{109}{juliamass.5.2}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{5.{1}}{}}{111}{OpenModelicamass.5.1}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{5.{2}}{}}{112}{OpenModelicamass.5.2}% +\contentsline {egmass}{{Exercise}{6.{1}}{}}{119}{egmass.6.1}% +\contentsline {ardmass}{{Arduino Code}{6.{1}}{}}{120}{ardmass.6.1}% +\contentsline {ardmass}{{Arduino Code}{6.{2}}{}}{120}{ardmass.6.2}% +\contentsline {egmass}{{Exercise}{6.{2}}{}}{121}{egmass.6.2}% +\contentsline {codemass}{{Scilab Code}{6.{1}}{}}{122}{codemass.6.1}% +\contentsline {codemass}{{Scilab Code}{6.{2}}{}}{122}{codemass.6.2}% +\contentsline {egmass}{{Exercise}{6.{3}}{}}{127}{egmass.6.3}% +\contentsline {pymass}{{Python Code}{6.{1}}{}}{127}{pymass.6.1}% +\contentsline {pymass}{{Python Code}{6.{2}}{}}{128}{pymass.6.2}% +\contentsline {egmass}{{Exercise}{6.{4}}{}}{130}{egmass.6.4}% +\contentsline {juliamass}{{Julia Code}{6.{1}}{}}{130}{juliamass.6.1}% +\contentsline {juliamass}{{Julia Code}{6.{2}}{}}{131}{juliamass.6.2}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{1}}{}}{132}{OpenModelicamass.6.1}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{6.{2}}{}}{133}{OpenModelicamass.6.2}% +\contentsline {ardmass}{{Arduino Code}{7.{1}}{}}{138}{ardmass.7.1}% +\contentsline {codemass}{{Scilab Code}{7.{1}}{}}{140}{codemass.7.1}% +\contentsline {egmass}{{Exercise}{7.{1}}{}}{142}{egmass.7.1}% +\contentsline {pymass}{{Python Code}{7.{1}}{}}{143}{pymass.7.1}% +\contentsline {juliamass}{{Julia Code}{7.{1}}{}}{145}{juliamass.7.1}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{7.{1}}{}}{147}{OpenModelicamass.7.1}% +\contentsline {egmass}{{Exercise}{8.{1}}{}}{154}{egmass.8.1}% +\contentsline {ardmass}{{Arduino Code}{8.{1}}{}}{154}{ardmass.8.1}% +\contentsline {ardmass}{{Arduino Code}{8.{2}}{}}{155}{ardmass.8.2}% +\contentsline {egmass}{{Exercise}{8.{2}}{}}{157}{egmass.8.2}% +\contentsline {codemass}{{Scilab Code}{8.{1}}{}}{158}{codemass.8.1}% +\contentsline {codemass}{{Scilab Code}{8.{2}}{}}{158}{codemass.8.2}% +\contentsline {pymass}{{Python Code}{8.{1}}{}}{165}{pymass.8.1}% +\contentsline {pymass}{{Python Code}{8.{2}}{}}{165}{pymass.8.2}% +\contentsline {juliamass}{{Julia Code}{8.{1}}{}}{168}{juliamass.8.1}% +\contentsline {juliamass}{{Julia Code}{8.{2}}{}}{169}{juliamass.8.2}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{1}}{}}{171}{OpenModelicamass.8.1}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{8.{2}}{}}{172}{OpenModelicamass.8.2}% +\contentsline {egmass}{{Exercise}{9.{1}}{}}{178}{egmass.9.1}% +\contentsline {ardmass}{{Arduino Code}{9.{1}}{}}{178}{ardmass.9.1}% +\contentsline {ardmass}{{Arduino Code}{9.{2}}{}}{179}{ardmass.9.2}% +\contentsline {ardmass}{{Arduino Code}{9.{3}}{}}{179}{ardmass.9.3}% +\contentsline {ardmass}{{Arduino Code}{9.{4}}{}}{179}{ardmass.9.4}% +\contentsline {codemass}{{Scilab Code}{9.{1}}{}}{182}{codemass.9.1}% +\contentsline {codemass}{{Scilab Code}{9.{2}}{}}{182}{codemass.9.2}% +\contentsline {codemass}{{Scilab Code}{9.{3}}{}}{182}{codemass.9.3}% +\contentsline {codemass}{{Scilab Code}{9.{4}}{}}{183}{codemass.9.4}% +\contentsline {pymass}{{Python Code}{9.{1}}{}}{189}{pymass.9.1}% +\contentsline {pymass}{{Python Code}{9.{2}}{}}{190}{pymass.9.2}% +\contentsline {pymass}{{Python Code}{9.{3}}{}}{191}{pymass.9.3}% +\contentsline {pymass}{{Python Code}{9.{4}}{}}{192}{pymass.9.4}% +\contentsline {juliamass}{{Julia Code}{9.{1}}{}}{195}{juliamass.9.1}% +\contentsline {juliamass}{{Julia Code}{9.{2}}{}}{195}{juliamass.9.2}% +\contentsline {juliamass}{{Julia Code}{9.{3}}{}}{195}{juliamass.9.3}% +\contentsline {juliamass}{{Julia Code}{9.{4}}{}}{196}{juliamass.9.4}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{1}}{}}{198}{OpenModelicamass.9.1}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{2}}{}}{199}{OpenModelicamass.9.2}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{3}}{}}{199}{OpenModelicamass.9.3}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{9.{4}}{}}{200}{OpenModelicamass.9.4}% +\contentsline {egmass}{{Exercise}{10.{1}}{}}{207}{egmass.10.1}% +\contentsline {ardmass}{{Arduino Code}{10.{1}}{}}{208}{ardmass.10.1}% +\contentsline {ardmass}{{Arduino Code}{10.{2}}{}}{208}{ardmass.10.2}% +\contentsline {ardmass}{{Arduino Code}{10.{3}}{}}{209}{ardmass.10.3}% +\contentsline {egmass}{{Exercise}{10.{2}}{}}{212}{egmass.10.2}% +\contentsline {codemass}{{Scilab Code}{10.{1}}{}}{212}{codemass.10.1}% +\contentsline {codemass}{{Scilab Code}{10.{2}}{}}{212}{codemass.10.2}% +\contentsline {codemass}{{Scilab Code}{10.{3}}{}}{213}{codemass.10.3}% +\contentsline {egmass}{{Exercise}{10.{3}}{}}{216}{egmass.10.3}% +\contentsline {pymass}{{Python Code}{10.{1}}{}}{219}{pymass.10.1}% +\contentsline {pymass}{{Python Code}{10.{2}}{}}{220}{pymass.10.2}% +\contentsline {pymass}{{Python Code}{10.{3}}{}}{221}{pymass.10.3}% +\contentsline {juliamass}{{Julia Code}{10.{1}}{}}{224}{juliamass.10.1}% +\contentsline {juliamass}{{Julia Code}{10.{2}}{}}{225}{juliamass.10.2}% +\contentsline {juliamass}{{Julia Code}{10.{3}}{}}{225}{juliamass.10.3}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{1}}{}}{228}{OpenModelicamass.10.1}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{2}}{}}{229}{OpenModelicamass.10.2}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{3}}{}}{229}{OpenModelicamass.10.3}% +\contentsline {ardmass}{{Arduino Code}{11.{1}}{}}{242}{ardmass.11.1}% +\contentsline {codemass}{{Scilab Code}{11.{1}}{}}{243}{codemass.11.1}% +\contentsline {codemass}{{Scilab Code}{11.{2}}{}}{243}{codemass.11.2}% +\contentsline {codemass}{{Scilab Code}{11.{3}}{}}{243}{codemass.11.3}% +\contentsline {codemass}{{Scilab Code}{11.{4}}{}}{244}{codemass.11.4}% +\contentsline {ardmass}{{Arduino Code}{11.{2}}{}}{251}{ardmass.11.2}% +\contentsline {pymass}{{Python Code}{11.{1}}{}}{252}{pymass.11.1}% +\contentsline {pymass}{{Python Code}{11.{2}}{}}{252}{pymass.11.2}% +\contentsline {pymass}{{Python Code}{11.{3}}{}}{253}{pymass.11.3}% +\contentsline {ardmass}{{Arduino Code}{11.{3}}{}}{255}{ardmass.11.3}% +\contentsline {juliamass}{{Julia Code}{11.{1}}{}}{256}{juliamass.11.1}% +\contentsline {juliamass}{{Julia Code}{11.{2}}{}}{257}{juliamass.11.2}% +\contentsline {juliamass}{{Julia Code}{11.{3}}{}}{257}{juliamass.11.3}% +\contentsline {ardmass}{{Arduino Code}{11.{4}}{}}{261}{ardmass.11.4}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{1}}{}}{261}{OpenModelicamass.11.1}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{2}}{}}{261}{OpenModelicamass.11.2}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{11.{3}}{}}{262}{OpenModelicamass.11.3}% diff --git a/floss-arduino.toc b/floss-arduino.toc index a7e2e9a..6b3828f 100644 --- a/floss-arduino.toc +++ b/floss-arduino.toc @@ -1,12 +1,12 @@ -\contentsline {chapter}{\numberline {List of Figures}}{v}{chapter*.2}% -\contentsline {chapter}{\numberline {List of Tables}}{ix}{chapter*.3}% -\contentsline {chapter}{\numberline {List of Arduino \ Code}}{xi}{chapter*.4}% -\contentsline {chapter}{\numberline {List of Scilab Code}}{xiii}{chapter*.5}% -\contentsline {chapter}{\numberline {List of Python \ Code}}{xv}{chapter*.6}% -\contentsline {chapter}{\numberline {List of Julia\ Code}}{xvii}{chapter*.7}% -\contentsline {chapter}{\numberline {List of OpenModelica\ Code}}{xix}{chapter*.8}% +\contentsline {chapter}{\numberline {List of Figures}}{ix}{chapter*.2}% +\contentsline {chapter}{\numberline {List of Tables}}{xiii}{chapter*.3}% +\contentsline {chapter}{\numberline {List of Arduino \ Code}}{xv}{chapter*.4}% +\contentsline {chapter}{\numberline {List of Scilab Code}}{xvii}{chapter*.5}% +\contentsline {chapter}{\numberline {List of Python \ Code}}{xix}{chapter*.6}% +\contentsline {chapter}{\numberline {List of Julia\ Code}}{xxi}{chapter*.7}% +\contentsline {chapter}{\numberline {List of OpenModelica\ Code}}{xxiii}{chapter*.8}% \thispagestyle {empty} -\contentsline {chapter}{\numberline {List of Acronyms}}{xxi}{chapter*.9}% +\contentsline {chapter}{\numberline {List of Acronyms}}{xxv}{chapter*.9}% \contentsline {chapter}{\numberline {1}Introduction}{1}{chapter.1}% \contentsline {chapter}{\numberline {2}Hardware Environment}{3}{chapter.2}% \contentsline {section}{\numberline {2.1}Microcontroller}{3}{section.2.1}% @@ -40,95 +40,205 @@ \contentsline {subsection}{\numberline {3.3.1}Downloading, installing and testing}{35}{subsection.3.3.1}% \contentsline {subsection}{\numberline {3.3.2}Use case}{36}{subsection.3.3.2}% \contentsline {subsection}{\numberline {3.3.3}Xcos-Arduino}{40}{subsection.3.3.3}% -\contentsline {chapter}{\numberline {4}Interfacing a Light Emitting Diode}{43}{chapter.4}% -\contentsline {section}{\numberline {4.1}Preliminaries}{43}{section.4.1}% -\contentsline {section}{\numberline {4.2}Connecting an RGB LED with Arduino Uno\ using a breadboard}{45}{section.4.2}% -\contentsline {section}{\numberline {4.3}Lighting the LED from the Arduino IDE}{46}{section.4.3}% -\contentsline {subsection}{\numberline {4.3.1}Lighting the LED}{46}{subsection.4.3.1}% -\contentsline {paragraph}{Note:}{47}{section*.55}% -\contentsline {paragraph}{Note:}{47}{section*.57}% -\contentsline {subsection}{\numberline {4.3.2}Arduino Code}{48}{subsection.4.3.2}% -\contentsline {section}{\numberline {4.4}Lighting the LED from Scilab}{50}{section.4.4}% -\contentsline {subsection}{\numberline {4.4.1}Lighting the LED}{50}{subsection.4.4.1}% -\contentsline {subsection}{\numberline {4.4.2}Scilab Code}{51}{subsection.4.4.2}% -\contentsline {section}{\numberline {4.5}Lighting the LED from Scilab Xcos}{52}{section.4.5}% -\contentsline {chapter}{\numberline {5}Interfacing a Pushbutton}{57}{chapter.5}% -\contentsline {section}{\numberline {5.1}Preliminaries}{57}{section.5.1}% -\contentsline {section}{\numberline {5.2}Connecting a pushbutton with Arduino Uno\ using a breadboard}{57}{section.5.2}% -\contentsline {section}{\numberline {5.3}Reading the pushbutton status from the Arduino IDE}{60}{section.5.3}% -\contentsline {subsection}{\numberline {5.3.1}Reading the pushbutton status}{60}{subsection.5.3.1}% -\contentsline {subsection}{\numberline {5.3.2}Arduino Code}{61}{subsection.5.3.2}% -\contentsline {section}{\numberline {5.4}Reading the pushbutton Status from Scilab}{62}{section.5.4}% -\contentsline {subsection}{\numberline {5.4.1}Reading the pushbutton Status}{62}{subsection.5.4.1}% -\contentsline {subsection}{\numberline {5.4.2}Scilab Code}{63}{subsection.5.4.2}% -\contentsline {section}{\numberline {5.5}Accessing the pushbutton from Xcos}{64}{section.5.5}% -\contentsline {chapter}{\numberline {6}Interfacing a Light Dependent Resistor}{69}{chapter.6}% -\contentsline {section}{\numberline {6.1}Preliminaries}{69}{section.6.1}% -\contentsline {section}{\numberline {6.2}Connecting an LDR with Arduino Uno\ using a breadboard}{71}{section.6.2}% -\contentsline {section}{\numberline {6.3}Interfacing the LDR through the Arduino IDE}{72}{section.6.3}% -\contentsline {subsection}{\numberline {6.3.1}Interfacing the LDR}{72}{subsection.6.3.1}% -\contentsline {subsection}{\numberline {6.3.2}Arduino Code}{74}{subsection.6.3.2}% -\contentsline {section}{\numberline {6.4}Interfacing the LDR through Scilab}{74}{section.6.4}% -\contentsline {subsection}{\numberline {6.4.1}Interfacing the LDR}{74}{subsection.6.4.1}% -\contentsline {subsection}{\numberline {6.4.2}Scilab Code}{76}{subsection.6.4.2}% -\contentsline {section}{\numberline {6.5}Interfacing the LDR through Xcos}{76}{section.6.5}% -\contentsline {chapter}{\numberline {7}Interfacing a Potentiometer}{81}{chapter.7}% -\contentsline {section}{\numberline {7.1}Preliminaries}{81}{section.7.1}% -\contentsline {section}{\numberline {7.2}Connecting a potentiometer with Arduino Uno\ using a breadboard}{82}{section.7.2}% -\contentsline {section}{\numberline {7.3}Reading the potentiometer from the Arduino IDE}{83}{section.7.3}% -\contentsline {subsection}{\numberline {7.3.1}Reading the potentiometer}{83}{subsection.7.3.1}% -\contentsline {subsection}{\numberline {7.3.2}Arduino Code}{84}{subsection.7.3.2}% -\contentsline {section}{\numberline {7.4}Reading the potentiometer from Scilab}{85}{section.7.4}% -\contentsline {subsection}{\numberline {7.4.1}Reading the potentiometer}{85}{subsection.7.4.1}% -\contentsline {subsection}{\numberline {7.4.2}Scilab Code}{86}{subsection.7.4.2}% -\contentsline {section}{\numberline {7.5}Reading the potentiometer from Xcos}{87}{section.7.5}% -\contentsline {chapter}{\numberline {8}Interfacing a Thermistor}{89}{chapter.8}% -\contentsline {section}{\numberline {8.1}Preliminaries}{89}{section.8.1}% -\contentsline {section}{\numberline {8.2}Connecting a thermistor with Arduino Uno\ using a breadboard}{91}{section.8.2}% -\contentsline {section}{\numberline {8.3}Interfacing the thermistor from the Arduino IDE}{92}{section.8.3}% -\contentsline {subsection}{\numberline {8.3.1}Interfacing the thermistor}{92}{subsection.8.3.1}% -\contentsline {paragraph}{Note:}{94}{section*.92}% -\contentsline {subsection}{\numberline {8.3.2}Arduino Code}{94}{subsection.8.3.2}% -\contentsline {section}{\numberline {8.4}Interfacing the thermistor from Scilab}{96}{section.8.4}% -\contentsline {subsection}{\numberline {8.4.1}Interfacing the thermistor}{96}{subsection.8.4.1}% -\contentsline {paragraph}{Note:}{97}{section*.93}% -\contentsline {subsection}{\numberline {8.4.2}Scilab Code}{98}{subsection.8.4.2}% -\contentsline {section}{\numberline {8.5}Interfacing the thermistor from Xcos}{99}{section.8.5}% -\contentsline {paragraph}{Note:}{102}{section*.100}% -\contentsline {chapter}{\numberline {9}Interfacing a Servomotor}{105}{chapter.9}% -\contentsline {section}{\numberline {9.1}Preliminaries}{105}{section.9.1}% -\contentsline {section}{\numberline {9.2}Connecting a servomotor with Arduino Uno\ using a breadboard}{106}{section.9.2}% -\contentsline {section}{\numberline {9.3}Controlling the servomotor through the Arduino IDE}{107}{section.9.3}% -\contentsline {subsection}{\numberline {9.3.1}Controlling the servomotor}{107}{subsection.9.3.1}% -\contentsline {subsection}{\numberline {9.3.2}Arduino Code}{110}{subsection.9.3.2}% -\contentsline {section}{\numberline {9.4}Controlling the servomotor through Scilab}{112}{section.9.4}% -\contentsline {subsection}{\numberline {9.4.1}Controlling the servomotor}{112}{subsection.9.4.1}% -\contentsline {subsection}{\numberline {9.4.2}Scilab Code}{114}{subsection.9.4.2}% -\contentsline {section}{\numberline {9.5}Controling the servomotor through Xcos}{115}{section.9.5}% -\contentsline {chapter}{\numberline {10}Interfacing a DC Motor}{121}{chapter.10}% -\contentsline {section}{\numberline {10.1}Preliminaries}{121}{section.10.1}% -\contentsline {section}{\numberline {10.2}Controlling the DC motor from Arduino}{124}{section.10.2}% -\contentsline {subsection}{\numberline {10.2.1}Controlling the DC motor}{124}{subsection.10.2.1}% -\contentsline {paragraph}{Note:}{124}{section*.117}% -\contentsline {subsection}{\numberline {10.2.2}Arduino Code}{126}{subsection.10.2.2}% -\contentsline {section}{\numberline {10.3}Controlling the DC motor from Scilab}{127}{section.10.3}% -\contentsline {subsection}{\numberline {10.3.1}Controlling the DC motor}{127}{subsection.10.3.1}% -\contentsline {paragraph}{Note:}{127}{section*.118}% -\contentsline {paragraph}{Note:}{129}{section*.120}% -\contentsline {subsection}{\numberline {10.3.2}Scilab Code}{130}{subsection.10.3.2}% -\contentsline {section}{\numberline {10.4}Controlling the DC motor from Xcos}{131}{section.10.4}% -\contentsline {chapter}{\numberline {11}Implementation of Modbus Protocol}{137}{chapter.11}% -\contentsline {section}{\numberline {11.1}Preliminaries}{137}{section.11.1}% -\contentsline {subsection}{\numberline {11.1.1}Energy meter}{139}{subsection.11.1.1}% -\contentsline {paragraph}{Note:}{141}{section*.133}% -\contentsline {subsection}{\numberline {11.1.2}Endianness}{142}{subsection.11.1.2}% -\contentsline {section}{\numberline {11.2}Objective}{144}{section.11.2}% -\contentsline {section}{\numberline {11.3}Manifestation of Modbus protocol with Arduino Uno\ and energy meter}{144}{section.11.3}% -\contentsline {subsection}{\numberline {11.3.1}Software}{146}{subsection.11.3.1}% -\contentsline {subsection}{\numberline {11.3.2}Output in the Scilab Console}{147}{subsection.11.3.2}% -\contentsline {section}{\numberline {11.4}Accessing the electrical parameters from Scilab}{151}{section.11.4}% -\contentsline {subsection}{\numberline {11.4.1}Accessing the electrical parameters}{151}{subsection.11.4.1}% -\contentsline {subsection}{\numberline {11.4.2}Arduino Firmware}{151}{subsection.11.4.2}% -\contentsline {subsection}{\numberline {11.4.3}Scilab Code}{152}{subsection.11.4.3}% -\contentsline {section}{\numberline {11.5}Reading Parameters from Xcos}{153}{section.11.5}% -\contentsline {chapter}{\numberline {References}}{155}{chapter*.149}% +\contentsline {section}{\numberline {3.4}Python}{41}{section.3.4}% +\contentsline {subsection}{\numberline {3.4.1}Downloading and installing on Windows}{41}{subsection.3.4.1}% +\contentsline {subsection}{\numberline {3.4.2}Downloading and installing on GNU/Linux Ubuntu}{44}{subsection.3.4.2}% +\contentsline {subsection}{\numberline {3.4.3}Python-Arduino toolbox}{45}{subsection.3.4.3}% +\contentsline {subsection}{\numberline {3.4.4}Firmware}{46}{subsection.3.4.4}% +\contentsline {section}{\numberline {3.5}Julia}{47}{section.3.5}% +\contentsline {subsection}{\numberline {3.5.1}Downloading and installing on Windows}{47}{subsection.3.5.1}% +\contentsline {subsection}{\numberline {3.5.2}Downloading and installing GNU/Linux Ubuntu}{51}{subsection.3.5.2}% +\contentsline {subsection}{\numberline {3.5.3}Julia-Arduino toolbox}{54}{subsection.3.5.3}% +\contentsline {subsection}{\numberline {3.5.4}Firmware}{55}{subsection.3.5.4}% +\contentsline {section}{\numberline {3.6}OpenModelica}{55}{section.3.6}% +\contentsline {subsection}{\numberline {3.6.1}Downloading and installing on Windows}{56}{subsection.3.6.1}% +\contentsline {subsection}{\numberline {3.6.2}Downloading and installing on GNU/Linux Ubuntu}{57}{subsection.3.6.2}% +\contentsline {subsection}{\numberline {3.6.3}Simulating models in OpenModelica}{57}{subsection.3.6.3}% +\contentsline {subsection}{\numberline {3.6.4}OpenModelica-Arduino toolbox}{63}{subsection.3.6.4}% +\contentsline {subsection}{\numberline {3.6.5}Firmware}{64}{subsection.3.6.5}% +\contentsline {chapter}{\numberline {4}Interfacing a Light Emitting Diode}{67}{chapter.4}% +\contentsline {section}{\numberline {4.1}Preliminaries}{67}{section.4.1}% +\contentsline {section}{\numberline {4.2}Connecting an RGB LED with Arduino Uno\ using a breadboard}{69}{section.4.2}% +\contentsline {section}{\numberline {4.3}Lighting the LED from the Arduino IDE}{70}{section.4.3}% +\contentsline {subsection}{\numberline {4.3.1}Lighting the LED}{70}{subsection.4.3.1}% +\contentsline {paragraph}{Note:}{71}{section*.74}% +\contentsline {paragraph}{Note:}{71}{section*.76}% +\contentsline {subsection}{\numberline {4.3.2}Arduino Code}{72}{subsection.4.3.2}% +\contentsline {section}{\numberline {4.4}Lighting the LED from Scilab}{74}{section.4.4}% +\contentsline {subsection}{\numberline {4.4.1}Lighting the LED}{74}{subsection.4.4.1}% +\contentsline {subsection}{\numberline {4.4.2}Scilab Code}{75}{subsection.4.4.2}% +\contentsline {section}{\numberline {4.5}Lighting the LED from Scilab Xcos}{76}{section.4.5}% +\contentsline {section}{\numberline {4.6}Lighting the LED from Python}{81}{section.4.6}% +\contentsline {subsection}{\numberline {4.6.1}Lighting the LED}{81}{subsection.4.6.1}% +\contentsline {subsection}{\numberline {4.6.2}Python Code}{83}{subsection.4.6.2}% +\contentsline {section}{\numberline {4.7}Lighting the LED from Julia}{86}{section.4.7}% +\contentsline {subsection}{\numberline {4.7.1}Lighting the LED}{86}{subsection.4.7.1}% +\contentsline {subsection}{\numberline {4.7.2}Julia Code}{87}{subsection.4.7.2}% +\contentsline {section}{\numberline {4.8}Lighting the LED from OpenModelica}{89}{section.4.8}% +\contentsline {subsection}{\numberline {4.8.1}Lighting the LED}{89}{subsection.4.8.1}% +\contentsline {subsection}{\numberline {4.8.2}OpenModelica Code}{90}{subsection.4.8.2}% +\contentsline {chapter}{\numberline {5}Interfacing a Pushbutton}{95}{chapter.5}% +\contentsline {section}{\numberline {5.1}Preliminaries}{95}{section.5.1}% +\contentsline {section}{\numberline {5.2}Connecting a pushbutton with Arduino Uno\ using a breadboard}{95}{section.5.2}% +\contentsline {section}{\numberline {5.3}Reading the pushbutton status from the Arduino IDE}{98}{section.5.3}% +\contentsline {subsection}{\numberline {5.3.1}Reading the pushbutton status}{98}{subsection.5.3.1}% +\contentsline {subsection}{\numberline {5.3.2}Arduino Code}{99}{subsection.5.3.2}% +\contentsline {section}{\numberline {5.4}Reading the pushbutton Status from Scilab}{100}{section.5.4}% +\contentsline {subsection}{\numberline {5.4.1}Reading the pushbutton Status}{100}{subsection.5.4.1}% +\contentsline {subsection}{\numberline {5.4.2}Scilab Code}{101}{subsection.5.4.2}% +\contentsline {section}{\numberline {5.5}Accessing the pushbutton from Xcos}{102}{section.5.5}% +\contentsline {section}{\numberline {5.6}Reading the pushbutton status from Python}{105}{section.5.6}% +\contentsline {subsection}{\numberline {5.6.1}Reading the pushbutton status}{105}{subsection.5.6.1}% +\contentsline {subsection}{\numberline {5.6.2}Python Code}{106}{subsection.5.6.2}% +\contentsline {section}{\numberline {5.7}Reading the pushbutton status from Julia}{108}{section.5.7}% +\contentsline {subsection}{\numberline {5.7.1}Reading the pushbutton status}{108}{subsection.5.7.1}% +\contentsline {subsection}{\numberline {5.7.2}Julia Code}{109}{subsection.5.7.2}% +\contentsline {section}{\numberline {5.8}Reading the pushbutton status from OpenModelica}{110}{section.5.8}% +\contentsline {subsection}{\numberline {5.8.1}Reading the pushbutton status}{110}{subsection.5.8.1}% +\contentsline {subsection}{\numberline {5.8.2}OpenModelica Code}{111}{subsection.5.8.2}% +\contentsline {chapter}{\numberline {6}Interfacing a Light Dependent Resistor}{115}{chapter.6}% +\contentsline {section}{\numberline {6.1}Preliminaries}{115}{section.6.1}% +\contentsline {section}{\numberline {6.2}Connecting an LDR with Arduino Uno\ using a breadboard}{117}{section.6.2}% +\contentsline {section}{\numberline {6.3}Interfacing the LDR through the Arduino IDE}{118}{section.6.3}% +\contentsline {subsection}{\numberline {6.3.1}Interfacing the LDR}{118}{subsection.6.3.1}% +\contentsline {subsection}{\numberline {6.3.2}Arduino Code}{120}{subsection.6.3.2}% +\contentsline {section}{\numberline {6.4}Interfacing the LDR through Scilab}{120}{section.6.4}% +\contentsline {subsection}{\numberline {6.4.1}Interfacing the LDR}{120}{subsection.6.4.1}% +\contentsline {subsection}{\numberline {6.4.2}Scilab Code}{122}{subsection.6.4.2}% +\contentsline {section}{\numberline {6.5}Interfacing the LDR through Xcos}{122}{section.6.5}% +\contentsline {section}{\numberline {6.6}Interfacing the LDR through Python}{126}{section.6.6}% +\contentsline {subsection}{\numberline {6.6.1}Interfacing the LDR}{126}{subsection.6.6.1}% +\contentsline {subsection}{\numberline {6.6.2}Python Code}{127}{subsection.6.6.2}% +\contentsline {section}{\numberline {6.7}Interfacing the LDR through Julia}{129}{section.6.7}% +\contentsline {subsection}{\numberline {6.7.1}Interfacing the LDR}{129}{subsection.6.7.1}% +\contentsline {subsection}{\numberline {6.7.2}Julia Code}{130}{subsection.6.7.2}% +\contentsline {section}{\numberline {6.8}Interfacing the LDR through OpenModelica}{131}{section.6.8}% +\contentsline {subsection}{\numberline {6.8.1}Interfacing the LDR}{131}{subsection.6.8.1}% +\contentsline {subsection}{\numberline {6.8.2}OpenModelica Code}{132}{subsection.6.8.2}% +\contentsline {chapter}{\numberline {7}Interfacing a Potentiometer}{135}{chapter.7}% +\contentsline {section}{\numberline {7.1}Preliminaries}{135}{section.7.1}% +\contentsline {section}{\numberline {7.2}Connecting a potentiometer with Arduino Uno\ using a breadboard}{136}{section.7.2}% +\contentsline {section}{\numberline {7.3}Reading the potentiometer from the Arduino IDE}{137}{section.7.3}% +\contentsline {subsection}{\numberline {7.3.1}Reading the potentiometer}{137}{subsection.7.3.1}% +\contentsline {subsection}{\numberline {7.3.2}Arduino Code}{138}{subsection.7.3.2}% +\contentsline {section}{\numberline {7.4}Reading the potentiometer from Scilab}{139}{section.7.4}% +\contentsline {subsection}{\numberline {7.4.1}Reading the potentiometer}{139}{subsection.7.4.1}% +\contentsline {subsection}{\numberline {7.4.2}Scilab Code}{140}{subsection.7.4.2}% +\contentsline {section}{\numberline {7.5}Reading the potentiometer from Xcos}{141}{section.7.5}% +\contentsline {section}{\numberline {7.6}Reading the potentiometer from Python}{143}{section.7.6}% +\contentsline {subsection}{\numberline {7.6.1}Reading the potentiometer}{143}{subsection.7.6.1}% +\contentsline {subsection}{\numberline {7.6.2}Python Code}{143}{subsection.7.6.2}% +\contentsline {section}{\numberline {7.7}Reading the potentiometer from Julia}{145}{section.7.7}% +\contentsline {subsection}{\numberline {7.7.1}Reading the potentiometer}{145}{subsection.7.7.1}% +\contentsline {subsection}{\numberline {7.7.2}Julia Code}{145}{subsection.7.7.2}% +\contentsline {section}{\numberline {7.8}Reading the potentiometer from OpenModelica}{146}{section.7.8}% +\contentsline {subsection}{\numberline {7.8.1}Reading the potentiometer}{146}{subsection.7.8.1}% +\contentsline {subsection}{\numberline {7.8.2}OpenModelica Code}{147}{subsection.7.8.2}% +\contentsline {chapter}{\numberline {8}Interfacing a Thermistor}{149}{chapter.8}% +\contentsline {section}{\numberline {8.1}Preliminaries}{149}{section.8.1}% +\contentsline {section}{\numberline {8.2}Connecting a thermistor with Arduino Uno\ using a breadboard}{151}{section.8.2}% +\contentsline {section}{\numberline {8.3}Interfacing the thermistor from the Arduino IDE}{152}{section.8.3}% +\contentsline {subsection}{\numberline {8.3.1}Interfacing the thermistor}{152}{subsection.8.3.1}% +\contentsline {paragraph}{Note:}{154}{section*.111}% +\contentsline {subsection}{\numberline {8.3.2}Arduino Code}{154}{subsection.8.3.2}% +\contentsline {section}{\numberline {8.4}Interfacing the thermistor from Scilab}{156}{section.8.4}% +\contentsline {subsection}{\numberline {8.4.1}Interfacing the thermistor}{156}{subsection.8.4.1}% +\contentsline {paragraph}{Note:}{157}{section*.112}% +\contentsline {subsection}{\numberline {8.4.2}Scilab Code}{158}{subsection.8.4.2}% +\contentsline {section}{\numberline {8.5}Interfacing the thermistor from Xcos}{159}{section.8.5}% +\contentsline {paragraph}{Note:}{162}{section*.119}% +\contentsline {section}{\numberline {8.6}Interfacing the thermistor from Python}{162}{section.8.6}% +\contentsline {subsection}{\numberline {8.6.1}Interfacing the thermistor}{162}{subsection.8.6.1}% +\contentsline {paragraph}{Note:}{164}{section*.120}% +\contentsline {subsection}{\numberline {8.6.2}Python Code}{165}{subsection.8.6.2}% +\contentsline {section}{\numberline {8.7}Interfacing the thermistor from Julia}{167}{section.8.7}% +\contentsline {subsection}{\numberline {8.7.1}Interfacing the thermistor}{167}{subsection.8.7.1}% +\contentsline {paragraph}{Note:}{168}{section*.121}% +\contentsline {subsection}{\numberline {8.7.2}Julia Code}{168}{subsection.8.7.2}% +\contentsline {section}{\numberline {8.8}Interfacing the thermistor from OpenModelica}{169}{section.8.8}% +\contentsline {subsection}{\numberline {8.8.1}Interfacing the thermistor}{169}{subsection.8.8.1}% +\contentsline {paragraph}{Note:}{171}{section*.122}% +\contentsline {subsection}{\numberline {8.8.2}OpenModelica Code}{171}{subsection.8.8.2}% +\contentsline {chapter}{\numberline {9}Interfacing a Servomotor}{173}{chapter.9}% +\contentsline {section}{\numberline {9.1}Preliminaries}{173}{section.9.1}% +\contentsline {section}{\numberline {9.2}Connecting a servomotor with Arduino Uno\ using a breadboard}{174}{section.9.2}% +\contentsline {section}{\numberline {9.3}Controlling the servomotor through the Arduino IDE}{175}{section.9.3}% +\contentsline {subsection}{\numberline {9.3.1}Controlling the servomotor}{175}{subsection.9.3.1}% +\contentsline {subsection}{\numberline {9.3.2}Arduino Code}{178}{subsection.9.3.2}% +\contentsline {section}{\numberline {9.4}Controlling the servomotor through Scilab}{180}{section.9.4}% +\contentsline {subsection}{\numberline {9.4.1}Controlling the servomotor}{180}{subsection.9.4.1}% +\contentsline {subsection}{\numberline {9.4.2}Scilab Code}{182}{subsection.9.4.2}% +\contentsline {section}{\numberline {9.5}Controling the servomotor through Xcos}{183}{section.9.5}% +\contentsline {section}{\numberline {9.6}Controlling the servomotor through Python}{188}{section.9.6}% +\contentsline {subsection}{\numberline {9.6.1}Controlling the servomotor}{188}{subsection.9.6.1}% +\contentsline {subsection}{\numberline {9.6.2}Python Code}{189}{subsection.9.6.2}% +\contentsline {section}{\numberline {9.7}Controlling the servomotor through Julia}{193}{section.9.7}% +\contentsline {subsection}{\numberline {9.7.1}Controlling the servomotor}{193}{subsection.9.7.1}% +\contentsline {subsection}{\numberline {9.7.2}Julia Code}{195}{subsection.9.7.2}% +\contentsline {section}{\numberline {9.8}Controlling the servomotor through OpenModelica}{196}{section.9.8}% +\contentsline {subsection}{\numberline {9.8.1}Controlling the servomotor}{196}{subsection.9.8.1}% +\contentsline {subsection}{\numberline {9.8.2}OpenModelica Code}{198}{subsection.9.8.2}% +\contentsline {chapter}{\numberline {10}Interfacing a DC Motor}{203}{chapter.10}% +\contentsline {section}{\numberline {10.1}Preliminaries}{203}{section.10.1}% +\contentsline {section}{\numberline {10.2}Controlling the DC motor from Arduino}{206}{section.10.2}% +\contentsline {subsection}{\numberline {10.2.1}Controlling the DC motor}{206}{subsection.10.2.1}% +\contentsline {paragraph}{Note:}{206}{section*.139}% +\contentsline {subsection}{\numberline {10.2.2}Arduino Code}{208}{subsection.10.2.2}% +\contentsline {section}{\numberline {10.3}Controlling the DC motor from Scilab}{209}{section.10.3}% +\contentsline {subsection}{\numberline {10.3.1}Controlling the DC motor}{209}{subsection.10.3.1}% +\contentsline {paragraph}{Note:}{209}{section*.140}% +\contentsline {paragraph}{Note:}{211}{section*.142}% +\contentsline {subsection}{\numberline {10.3.2}Scilab Code}{212}{subsection.10.3.2}% +\contentsline {section}{\numberline {10.4}Controlling the DC motor from Xcos}{213}{section.10.4}% +\contentsline {section}{\numberline {10.5}Controlling the DC motor from Python}{216}{section.10.5}% +\contentsline {subsection}{\numberline {10.5.1}Controlling the DC motor}{216}{subsection.10.5.1}% +\contentsline {paragraph}{Note:}{217}{section*.149}% +\contentsline {paragraph}{Note:}{218}{section*.150}% +\contentsline {subsection}{\numberline {10.5.2}Python Code}{219}{subsection.10.5.2}% +\contentsline {section}{\numberline {10.6}Controlling the DC motor from Julia}{222}{section.10.6}% +\contentsline {subsection}{\numberline {10.6.1}Controlling the DC motor}{222}{subsection.10.6.1}% +\contentsline {paragraph}{Note:}{222}{section*.151}% +\contentsline {paragraph}{Note:}{224}{section*.152}% +\contentsline {subsection}{\numberline {10.6.2}Julia Code}{224}{subsection.10.6.2}% +\contentsline {section}{\numberline {10.7}Controlling the DC motor from OpenModelica}{226}{section.10.7}% +\contentsline {subsection}{\numberline {10.7.1}Controlling the DC motor}{226}{subsection.10.7.1}% +\contentsline {paragraph}{Note:}{226}{section*.153}% +\contentsline {paragraph}{Note:}{227}{section*.154}% +\contentsline {subsection}{\numberline {10.7.2}OpenModelica Code}{228}{subsection.10.7.2}% +\contentsline {chapter}{\numberline {11}Implementation of Modbus Protocol}{231}{chapter.11}% +\contentsline {section}{\numberline {11.1}Preliminaries}{231}{section.11.1}% +\contentsline {subsection}{\numberline {11.1.1}Energy meter}{233}{subsection.11.1.1}% +\contentsline {paragraph}{Note:}{235}{section*.161}% +\contentsline {subsection}{\numberline {11.1.2}Endianness}{236}{subsection.11.1.2}% +\contentsline {section}{\numberline {11.2}Setup for the experiment}{238}{section.11.2}% +\contentsline {section}{\numberline {11.3}Manifestation of Modbus protocol through Scilab}{239}{section.11.3}% +\contentsline {subsection}{\numberline {11.3.1}Software for the experiment}{240}{subsection.11.3.1}% +\contentsline {section}{\numberline {11.4}Reading the electrical parameters from Scilab}{241}{section.11.4}% +\contentsline {subsection}{\numberline {11.4.1}Reading the electrical parameters}{241}{subsection.11.4.1}% +\contentsline {subsection}{\numberline {11.4.2}Arduino Firmware}{242}{subsection.11.4.2}% +\contentsline {subsection}{\numberline {11.4.3}Scilab Code}{243}{subsection.11.4.3}% +\contentsline {paragraph}{Note: }{244}{section*.169}% +\contentsline {subsection}{\numberline {11.4.4}Output in the Scilab Console}{244}{subsection.11.4.4}% +\contentsline {section}{\numberline {11.5}Reading the electrical parameters from Xcos}{246}{section.11.5}% +\contentsline {section}{\numberline {11.6}Manifestation of Modbus protocol through Python}{248}{section.11.6}% +\contentsline {paragraph}{Note: }{249}{section*.178}% +\contentsline {subsection}{\numberline {11.6.1}Software for the experiment}{249}{subsection.11.6.1}% +\contentsline {section}{\numberline {11.7}Reading the electrical parameters from Python}{251}{section.11.7}% +\contentsline {subsection}{\numberline {11.7.1}Reading the electrical parameters}{251}{subsection.11.7.1}% +\contentsline {subsection}{\numberline {11.7.2}Arduino Firmware}{251}{subsection.11.7.2}% +\contentsline {subsection}{\numberline {11.7.3}Python Code}{252}{subsection.11.7.3}% +\contentsline {section}{\numberline {11.8}Manifestation of Modbus protocol through Julia}{253}{section.11.8}% +\contentsline {paragraph}{Note: }{253}{section*.181}% +\contentsline {subsection}{\numberline {11.8.1}Software for the experiment}{254}{subsection.11.8.1}% +\contentsline {section}{\numberline {11.9}Reading the electrical parameters from Julia}{254}{section.11.9}% +\contentsline {subsection}{\numberline {11.9.1}Reading the electrical parameters}{254}{subsection.11.9.1}% +\contentsline {subsection}{\numberline {11.9.2}Arduino Firmware}{255}{subsection.11.9.2}% +\contentsline {subsection}{\numberline {11.9.3}Julia Code}{256}{subsection.11.9.3}% +\contentsline {section}{\numberline {11.10}Manifestation of Modbus protocol through OpenModelica}{257}{section.11.10}% +\contentsline {paragraph}{Note: }{258}{section*.184}% +\contentsline {subsection}{\numberline {11.10.1}Software for the experiment}{258}{subsection.11.10.1}% +\contentsline {section}{\numberline {11.11}Reading the electrical parameters from OpenModelica}{260}{section.11.11}% +\contentsline {subsection}{\numberline {11.11.1}Reading the electrical parameters}{260}{subsection.11.11.1}% +\contentsline {subsection}{\numberline {11.11.2}Arduino Firmware}{261}{subsection.11.11.2}% +\contentsline {subsection}{\numberline {11.11.3}OpenModelica Code}{261}{subsection.11.11.3}% +\contentsline {chapter}{\numberline {References}}{263}{chapter*.187}% diff --git a/indent.log b/indent.log new file mode 100644 index 0000000..d96cb3b --- /dev/null +++ b/indent.log @@ -0,0 +1,25 @@ +INFO: latexindent version 3.7.1, 2019-09-07, a script to indent .tex files + latexindent lives here: /usr/share/texlive/texmf-dist/scripts/latexindent/ + Sat May 22 05:39:09 2021 + Filename: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/__latexindent_temp.tex +INFO: Processing switches: + -y|--yaml: YAML settings specified via command line + -c|--cruft: cruft directory +INFO: Directory for backup files and /home/fossee/Desktop/floss-scilab-arduino/indent.log: /home/fossee/Desktop/floss-scilab-arduino/ +INFO: YAML settings read: defaultSettings.yaml + Reading defaultSettings.yaml from /usr/share/texlive/texmf-dist/scripts/latexindent/defaultSettings.yaml +INFO: YAML settings read: indentconfig.yaml or .indentconfig.yaml + Home directory is /home/fossee (didn't find either indentconfig.yaml or .indentconfig.yaml) + To specify user settings you would put indentconfig.yaml here: /home/fossee/indentconfig.yaml + Alternatively, you can use the hidden file .indentconfig.yaml as: /home/fossee/.indentconfig.yaml +INFO: YAML settings read: -y switch + Updating masterSettings with defaultIndent: +INFO: Phase 1: searching for objects +INFO: Phase 2: finding surrounding indentation +INFO: Phase 3: indenting objects +INFO: Phase 4: final indentation check +INFO: Output routine: + Not outputting to file; see -w and -o switches for more options. + -------------- +INFO: Please direct all communication/issues to: + https://github.com/cmhughes/latexindent.pl diff --git a/julia-floss-arduino.pdf b/julia-floss-arduino.pdf Binary files differindex 19ec2c5..9ac3db2 100644 --- a/julia-floss-arduino.pdf +++ b/julia-floss-arduino.pdf diff --git a/python-floss-arduino.pdf b/python-floss-arduino.pdf Binary files differindex bc411a2..234c8a0 100644 --- a/python-floss-arduino.pdf +++ b/python-floss-arduino.pdf diff --git a/scilab-floss-arduino.pdf b/scilab-floss-arduino.pdf Binary files differindex c93f2cc..2149203 100644 --- a/scilab-floss-arduino.pdf +++ b/scilab-floss-arduino.pdf diff --git a/user-code/modbus/modbus-OM.tex b/user-code/modbus/modbus-OM.tex new file mode 100644 index 0000000..3ed8831 --- /dev/null +++ b/user-code/modbus/modbus-OM.tex @@ -0,0 +1,115 @@ + +\section{Manifestation of Modbus protocol through OpenModelica} +The objective of this experiment is to make the user acquainted with +the demonstration of Modbus protocol through the OpenModelica-Arduino toolbox. +It gives an insight into how to acquire readings from the energy meter and interpret them accordingly. As explained in \secref{sec:energy-meter}, +an energy meter is a device that gives us different electrical parameters, including voltage, current, and power, consumed by a device. Here, we aim to obtain these values using the Python-Arduino toolbox. For data transmission, we have used an RS485 module. + +OpenModelica is used for giving the required parameters to \arduino. For +example, the user will tell the required slave address to be accessed +and the number of registers to be read from or written to. Here, +\arduino\ acts as a master and energy meter as a slave. Therefore, +referring to a particular slave address will refer to the registers +that hold the desired electrical parameters (current, voltage, power, etc.), which we want to read from the energy meter. + +In this experiment, \arduino\ is connected to the energy meter via an RS485 module which facilitates long-distance communication. +\scilab\ sends the RQ to the \arduino\, which in turn sends it to the +energy meter. The energy meter then accesses the values in the +required addresses in its memory and transfers them back. This again +is in the form of another packet called RP. In this packet, the data is stored in a little-endian hexadecimal format. Thus, we make use of IEEE 754 to obtain the decimal value from this data. + +\paragraph{Note: } The OpenModelica models presented in this section were tested on the older versions. Now, these codes may require minor changes in +the newer versions. We invite the experts to contribute the revised version of the code. + + +\subsection{Software for the experiment} +Apart from the OpenModelica-Arduino toolbox, the software for this experiment comprises two parts: +\begin{enumerate} +\item Firmware for \arduino: This firmware is needed to communicate +with Julia (using serial interface), and with RS485 module (using +Software Serial interface). Control logic to enable receive and +transmit modes of MAX485 chip is also present in this firmware. \figref{fig:modbus-firmware} demonstrates the overall implementation of this firmware. + +\begin{figure} + \centering + \includegraphics[width=\lgfig]{\LocMODfig/arduino_code_flowchart.png} + \caption{Flowchart of Arduino firmware} + \label{fig:modbus-firmware} +\end{figure} + +\item OpenModelica model: This model requests the parameters in the energy meter +by sending an RQ to \arduino\ from OpenModelica. Then it waits till +an RP is available from the \arduino. After receiving the RP, it extracts +the data from this packet and converts it into IEEE +754 floating-point format. The overall implementation is being +described below: +\begin {enumerate} +\item Frame an RQ to be sent to the energy meter (slave) in ASCII coded decimal +format. +\item Send the RQ serially to \arduino. +\item Let \arduino\ send the RQ to the energy meter via RS485 module. +\item Let the energy meter send the RP to \arduino\ via RS485 module. +\item Read the RP available on \arduino. +\item Extract the data stored in holding registers from the RP. +\item Assuming this data to be stored in little-endian format, +convert this data in floating-point values using IEEE 754 standard. +\item Display the value in output window of OMEdit. +\end{enumerate} +\figref{fig:flow-chart} presents the sequence in which the steps mentioned above are executed. +\begin{figure} + \centering + \includegraphics[width=\hgfig]{\LocMODfig/flowchart.png} + \caption{Flowchart of the steps happening in OpenModelica model} + \label{fig:flow-chart} +\end{figure} +\end{enumerate} + + +\section{Reading the electrical parameters from OpenModelica} +\subsection{Reading the electrical parameters} +In this section, we will show how to access the three parameters (voltage, current, and active power) in the energy meter. As discussed above, we will send an RQ from OpenModelica to \arduino. Subsequently, \arduino\ will provide us with an RP, which can be decoded to extract the desired parameter. The reader should go through the instructions given in \secref{sec:OpenModelica-start} before getting started. + +\subsection{Arduino Firmware} +\label{sec:firmware-modbus} +\addtocontents{ard}{\protect\addvspace{\codclr}} +\begin{ardcode} + \acaption{First 10 lines of the firmware for Modbus Energy Meter + experiment} + {First 10 lines of the firmware for Modbus. Available at + \LocMODardbrief{send\_packet.ino}.} + \label{ard:firmware-modbus} + \lstinputlisting[firstline=1,lastline=10] + {\LocMODardcode/send_packet.ino} +\end{ardcode} + +\subsection{OpenModelica Code} +\label{sec:modbus-OpenModelica-code} +\addtocontents{OpenModelicad}{\protect\addvspace{\codclr}} + +\begin{OpenModelicacode} + \mcaption{Code for Single Phase Current Output} + {Code for Single Phase Current Output. + Available at \LocMODOpenModelicabrief{readCurrent.mo}.} + \label{OpenModelica:current-modbus} + \lstinputlisting[firstline=1,lastline=10] + {\LocMODOpenModelicacode/readCurrent.mo} +\end{OpenModelicacode} + +\begin{OpenModelicacode} + \mcaption{Code for Single Phase Voltage Output} + {Code for Single Phase Voltage Output. + Available at \LocMODOpenModelicabrief{readVoltage.mo}.} + \label{OpenModelica:voltage-modbus} + \lstinputlisting[firstline=1,lastline=10] + {\LocMODOpenModelicacode/readVoltage.mo} +\end{OpenModelicacode} + +\begin{OpenModelicacode} + \mcaption{Code for Single Phase Active Power + Output}{Code for Single Phase Active Power + Output. Available at + \LocMODOpenModelicabrief{readPower.mo}.} + \label{OpenModelica:modbus-power} + \lstinputlisting[firstline=1,lastline=10] + {\LocMODOpenModelicacode/readPower.mo} +\end{OpenModelicacode} diff --git a/user-code/modbus/modbus-base.tex b/user-code/modbus/modbus-base.tex new file mode 100644 index 0000000..f8e096f --- /dev/null +++ b/user-code/modbus/modbus-base.tex @@ -0,0 +1,457 @@ +\chapter {Implementation of Modbus Protocol} +\thispagestyle{empty} +\label{modbus} + +\newcommand{\LocMODfig}{\Origin/user-code/modbus/figures} +\newcommand{\LocMODscicode}{\Origin/user-code/modbus/scilab} +\newcommand{\LocMODscibrief}[1]{{\tt \seqsplit{% + Origin/user-code/modbus/scilab}}, see \fnrefp{fn:file-loc}} +\newcommand{\LocMODardcode}{\Origin/user-code/modbus/arduino} +\newcommand{\LocMODardbrief}[1]{{\tt \seqsplit{% + Origin/user-code/modbus/arduino}}, see \fnrefp{fn:file-loc}} + +%%%%%%%%%%%%python starts +\newcommand{\LocMODpycode}{\Origin/user-code/modbus/python} +\newcommand{\LocMODpybrief}[1]{{\tt \seqsplit{% + Origin/user-code/modbus/python}}, see \fnrefp{fn:file-loc}} +%%%%%%%%%%%%python ends + +%%%%julia starts + +\newcommand{\LocMODjuliacode}{\Origin/user-code/modbus/julia} +\newcommand{\LocMODjuliabrief}[1]{{\tt \seqsplit{% + Origin/user-code/modbus/julia}}, see \fnrefp{fn:file-loc}} + +%%%%julia ends + + +%%%%OpenModelica starts + +\newcommand{\LocMODOpenModelicacode}{\Origin/user-code/modbus/OpenModelica} +\newcommand{\LocMODOpenModelicabrief}[1]{{\tt \seqsplit{% + Origin/user-code/modbus/OpenModelica}}, see \fnrefp{fn:file-loc}} + +%%%%OpenModelica ends + +In the previous chapters, we have discussed the programs to experiment with the sensors and actuators that come with the shield, a DC motor, and a servomotor. One may categorize these programs as either basic or intermediate. In this chapter, we will learn one of the advanced applications that can be built using the toolbox. Recall the FLOSS discussed in the book, by default, does not have the capability to connect to Arduino. All such add-on functionalities are added to the FLOSS using toolboxes. Beginners might want to skip this chapter in the first reading. This experiment enables interfacing Modbus-based devices with the FLOSS-Arduino toolbox. This functionality has a wide number of applications in the industrial sector. + + +\section{Preliminaries} +Modbus is an open serial communication protocol developed and +published by Modicon in 1979 \cite{modbus} \cite{modbus-paper}. Because of ease of deployment and maintenance, it finds wide applications in industries. The Modbus protocol provides a means to transmit information over serial lines +between several electronic devices to control and monitor +them. The controlling device requests for reading or writing +information and is known as the Modbus master/client. On the other +hand, the device supplying the information is called +Modbus slave/server. All the slaves/servers have a unique id and +address. Typically, there is one master, and a maximum of 247 slaves \cite{simplymodbus}. \figref{mod-block} shows a representation of Modbus protocol. + +During the communications on a Modbus network, the protocol determines +how the controller gets to know its device address, recognizes the +the message provided and decides the action to be taken, and accordingly +extracts data and information contained in the message. A typical structure of the communication protocol is shown in \figref{mod-master-slave}. The data is +sent as a series of zeros and ones, \ie\ bits wherein zeros are sent +as positive voltages and ones as negative. + +Different versions of Modbus protocol exist on serial lines, namely +Modbus RTU, ASCII, and TCP \cite{simplymodbus}. +The energy meter used in this chapter +supports the Modbus RTU protocol. In Modbus RTU, the data is coded in +binary and requires only one communication byte. This is ideal for use +over RS232 or RS485 networks at baud rates between 1200 and 115K. + +\begin{figure} + \centering + %\subfloat[Block diagram representation of the Protocol]{ + \includegraphics[width=\hgfig]{\LocMODfig/fig1.png} + \caption{Block diagram representation of the Protocol} + \label{mod-block} +\end{figure} + + +\begin{figure} + \centering + \includegraphics[width=\smfig]{\LocMODfig/fig2.png} + \caption{Master-Slave Query-Response Cycle} + \label{mod-master-slave} +\end{figure} + +The RS485 is one of the most widely used bus standards for industrial +applications. It uses differential communication lines to communicate +over long distances and requires a dedicated pair of signal lines, say +A and B, to exchange information. Here, the voltage on one line equals +to the inverse of the voltage on the other line. In other words, the +output is 1, if A - B \textgreater $\;$ 200mV, and 0, if B - A \textgreater $\;$ +200mV. \figref{rs-485} shows the pins available +on a typical RS485 module. As shown in \figref{rs-485}, there are four pins on each side +of the module. \tabref{tab:rs-485-pins} summarizes the usage of these pins. + +\begin{table} + \centering + \caption{Pins available on RS485 and their usage} + \label{tab:rs-485-pins} + \begin{tabular}{lc}\hline + Pin name & Usage \\ \hline + Vcc & 5V \\ + B & Inverting receiver input \\ + A & Non-inverting receiver input \\ + GND & Ground (0V) \\ + RO & Receiver output \\ + RE & Receiver enable \\ + DE & Data enable \\ + DI & Data input \\ + \hline + \end{tabular} +\end{table} + + +%\begin{center} +%\framebox(175,30){% +% \parbox{170\unitlength}{R0 outputs 1, if A-B\textgreater200mV\\ R0 outputs 0, if B-A\textgreater200mV}% +%} +%\end{center} + +%\begin{align*} +%R0 outputs 1, if A-B\textgreater200mV\\ +%R0 outputs 0, if B-A\textgreater200mV +%\end{align*} + + +\begin{figure} + \centering + \includegraphics[width=\hgfig]{\LocMODfig/fig3.png} + \caption{Pins in RS485 module} + \label{rs-485} +\end{figure} + +\subsection{Energy meter} +\label{sec:energy-meter} +An energy meter is a device that measures the amount of electricity consumed +by the load. This book makes use of the EM6400 series energy meter. It is a +multifunction digital power meter by Schneider Electric. It +reads various parameters such as phase voltage, current, active power, +reactive power, power factor, etc. Before using the meter, one has to +program system configuration, PT, CT ratios, communication parameters +through front panel keys. The reason behind using this energy meter is +the fact that it supports the Modbus RTU protocol for communication. + +Multiple operations can be performed with devices supporting Modbus. +Every operation has its own fixed function code (coil status - 01, +input status - 02, holding registers - 03, input registers - 04, etc.), +which is independent of devices. The function code tells the slave which +table to access and whether to read from or write to the table. +All the parameter values are stored in the output holding registers. +Different holding registers hold the values of different parameters. +\tabref{tab:modbus-fun-codes} summarizes the various operations which +Modbus RTU supports. One can locate the addresses of individual parameters +in the user manual for EM6400. \tabref{tab:params-addr} provides the addresses +for three individual parameters, which will be accessed in this chapter. + + +\begin{table} + \centering + \caption{Operations supported by Modbus RTU} + \label{tab:modbus-fun-codes} + \begin{tabular}{llc}\hline + Function Code & Action & Table Name \\ \hline + 01 (01 hex) & Read & Discrete Output Coils \\ + 05 (05 hex) & Write single & Discrete Output Coil \\ + 15 (0F hex) & Write multiple & Discrete Output Coils \\ + 02 (02 hex) & Read & Discrete Input Contacts \\ + 04 (04 hex) & Read & Analog Input Registers \\ + 03 (03 hex) & Read & Analog Output Holding Registers \\ + 06 (06 hex) & Write single & Analog Output Holding Register \\ + 16 (10 hex) & Write multiple & Analog Output Holding Registers \\ + \hline + \end{tabular} +\end{table} + + +\begin{table} + \centering + \caption{Individual parameter address in EM6400} + \label{tab:params-addr} + \begin{tabular}{llc}\hline + Parameter & Description & Address \\ \hline + V1 & Voltage phase 1 to neutral & 3927 \\ + A1 & Current, phase 1 & 3929 \\ + W1 & Active power, phase 1 & 3919 \\ + \hline + \end{tabular} +\end{table} + + +% \begin{center} +% \begin{tabular}{ll} +% Current (phase 1): & 3929 \\ +% Voltage (phase 1): & 3927 \\ +% Active power (phase 1): & 3919 +% \end{tabular} +% \end{center} + +% Values in every register are in little endian format (1st +% register contains LSB and next register contains MSB). In our case, +% energy meter is a slave. +% As discussed before, slave addresses can be set between 1 and 247. + +In Modbus protocol, the master needs to send a request packet (referred as RQ hereafter) +to the slave to read any of the slave's parameters. When the +slave receives an RQ, it needs to come up with a response packet +(referred as RP hereafter), which contains the value requested +by the master. In other words, an RQ is a message from the +master to a slave and an RP is a message from the slave back to the +master. We will first explain the structure of an RQ, followed by an example. +An RQ consists of the following fields: +\begin{enumerate} + \item Slave id: The first byte of every Modbus message is a slave id. + The master specifies the id of the slave to which the request message + is addressed. Slaves must specify their own id in every + response message (RP). + \item Function code: The second byte of every Modbus message is a + function code. This code determines the type of operation to be + performed by the slave. \tabref{tab:modbus-fun-codes} enlists the various + function codes. + \item Address of the register: After the above two bytes, RQ specifies the + data address of the first register requested. + \item Number of registers: This field denotes the total number of + registers requested. + \item CRC bytes: The last two bytes of every Modbus message are CRC + bytes. CRC stands for Cyclic Redundancy check. It is added to the + end of every Modbus message for error detection. + Every byte in the message is used to calculate the CRC. + The receiving device also calculates the CRC and compares it to the + CRC from the sending device. If even one bit in the message is + received incorrectly, the CRCs will be different, resulting in an error. + + \paragraph{Note:} There are some online tools \cite{online-crc} by which one can calculate + the CRC bytes. However, one should note that the calculated CRC bytes + should be mentioned in little-endian format, which means that + the first register contains the least significant bit (LSB) and the + next register contains the most significant bit (MSB). +\end{enumerate} + +Let us say, we want to access V1 (Voltage phase 1 to neutral) in the +energy meter. From \tabref{tab:params-addr}, it may be noted that the address of V1 is 3927. The size of each Modbus register is 16 bits and all EM6400 readings +are of 32 bits. So, each reading occupies two consecutive Modbus +registers. Thus, we need to access two consective holding registers +(starting from 3926) to get V1. \tabref{tab:params-rq} summarizes the +values for the various fields in the RQ required to read/access V1. +\begin{table} + \centering + \caption{A request packet to access V1 in EM6400} + \label{tab:params-rq} + \begin{tabular}{lc}\hline + Field of the RQ & Value for reading V1 \\ \hline + Slave id & 01 \\ + Function code & 03 \\ + Address of the register & 3926 (hex value = 0F56) \\ + Number of registers & 02 \\ + CRC bytes & 270F \\ + \hline + \end{tabular} +\end{table} +Now, we explain the structure of an RP, followed by an example. +An RP consists of following fields: +\begin{enumerate} + \item Slave id: In an RP, the slaves must specify their own id. + \item Function code: Like the RQ, the second byte of RP is the function code. + This code determines the type of operation to be + performed by the slave. \tabref{tab:modbus-fun-codes} enlists the various + function codes. + \item Number of data bytes to follow: It refers to the total number of bytes + read. As our RQ has 2 registers each of two bytes, we expect a total of 4 bytes. + \item Data in the first requested register: It refers to the data stored + in the first register. + \item Data in the second requested register: It refers to the data stored + in the second register. + \item CRC bytes: As stated earlier, the last two bytes of every Modbus message are CRC + bytes. Like RQ, the receiving device also calculates the CRC and compares it to the + CRC from the sending device. +\end{enumerate} +% An example of a request packet is as follows. Suppose that +% the request is 01 03 0F56 0002 270F. Its meaning is explained in +% \tabref{tab:request-packet}. +% \begin{table} +% \centering +% \caption{Interpretation of a request packet} +% \label{tab:request-packet} +% \begin{tabular}{lp{10cm}} +% 01 & Slave address \\ +% 03 & Function code to read holding registers \\ +% 0F56 & Data Address of the first requested register (address for +% voltage phase1 to neutral) and +% (0F56 hex = 3927, +40001 offset = 43928) \\ +% 0002 & Total number of registers requested for read \\ +% 270F & CRC (Cyclic Redundancy Check) for error checking (LSB first) \\ +% \end{tabular} +% \end{table} +Let us consider the RP, which we have received as a response to the RQ mentioned +in \tabref{tab:params-rq}. \tabref{tab:params-rp} summarizes the values for the +various fields in this RP. +\begin{table} + \centering + \caption{A response packet to access V1 in EM6400} + \label{tab:params-rp} + \begin{tabular}{lc}\hline + Field of the RP & Value for reading V1 \\ \hline + Slave id & 01 \\ + Function code & 03 \\ + Number of data bytes to follow & 04 \\ + Data in the first requested register & 2921 \\ + Data in the second requested register & 4373 \\ + CRC bytes & D2B0 \\ + \hline + \end{tabular} +\end{table} +% The response packet corresponding the above request packet +% is given as 01 03 04 2921 4373 D2B0. Its meaning is explained in +% \tabref{tab:response-packet}. +% \begin{table} +% \centering +% \caption{Interpretation of a response packet} +% \label{tab:response-packet}. +% \begin{tabular}{ll} +% 01 & Slave address \\ +% 03 & Function code to read holding registers \\ +% 04 & Total number of bytes read \\ +% 2921 & Data in 1st requested register \\ +% 4373 & Data in 2st requested register \\ +% D2B0 & CRC for error checking (LSB first) +% \end{tabular} +% \end{table} +In this RP, we consider the data in the two requested registers to be 43732921 +in hexadecimal. The reason behind keeping the data in the second requested register +as the MSB is that the obtained values are being read in little-endian format. +After converting this value to floating point using the +IEEE Standard for Floating-Point Arithmetic (IEEE 754), we obtain the +value as 243.16. Thus, the value of V1 (Voltage phase 1 to neutral) in the +energy meter is found to be 243.16 Volts. + +\subsection{Endianness} +Most of the numeric values to be stored in the computer are more than +one byte long. Thus, there arises a question of how to store the +multibyte values on the computer machines where each byte has its own +address \ie\ which byte gets stored at the ``first'' (lower) memory +location and which bytes follow in higher memory locations. For +example, let us picture this. A two-byte integer 0x5E5F is stored on the disk by one machine, with the 0x5E (MSB) stored at the lower memory address and the 0x5F (LSB) stored at a higher memory address. +But there is a different machine that reads this integer by picking 0x5F for the MSB and 0x5E for the LSB, giving 0x5F5E. +Hence, it results in a disagreement on the value of the integer between the two machines. However, there is no so-called ``right'' +ordering to store the bytes in the case of multibyte quantities. +Hardware is built to store the bytes in a particular fashion, and as long as compatible hardware reads the bytes in the same fashion, things are +fine. Following are the two major types of storing the bytes: + +\begin{enumerate} + \item Little-endian: + If the hardware is designed so that the LSB of a multibyte integer is stored ``first''at the lowest memory address, then the hardware is said to be little-endian. In this format, the ''little'' end of the integer gets stored + first and the next bytes are stored in higher (increasing) memory + locations. + \item Big-endian: + Here, the hardware is designed so that the MSB of a multibyte integer is stored ``first''at the lowest memory address. Thus, the ``big'' end of the integer gets + stored first and accordingly the next bytes get stored in higher + (increasing) memory locations. +\end{enumerate} +For example, let us take a four-byte integer 0x436B84A3. Considering +that the read holding registers in Modbus protocol are 16-bits each, the +LSB (or the little end) of this integer is 0x84A3, and the MSB (or the big end) +of this integer is 0x436B. Then, the memory storage patterns +for the integer would be like that shown in \tabref{tab:memory-storage}. +\begin{table} + \centering + \caption{Memory storage of a four-byte integer in little-endian and big-endian} + \label{tab:memory-storage} + \begin{tabular}{lllc}\hline + Memory Address & Byte & Little-endian & Big-endian \\ \hline + 3900 & 8A43 & MSB & LSB \\ + 3901 & 436B & LSB & MSB \\ + \hline + \end{tabular} +\end{table} + +% \begin{table} +% \centering +% \caption{Hexadecimal to Decimal} +% \label{tab:ieee-decimal} +% \begin{tabular}{ |p{3cm}|p{3cm}|p{3cm}|p{3cm}|} + +% \hline +% \multicolumn{4}{|c|}{Four Bytes Integer Reading from Meter} \\ +% \hline + +% Memory Address & Memory Address & Little-endian & Big-endian \\ \hline +% 3900 & 8A43 & MSB & LSB \\ +% 3901 & 436B & LSB & MSB \\ \hline +% \end{tabular} +% \end{table} + +% \begin{table} +% \centering +% \caption{Single and Double Precision Representation} +% \label{tab:single-precision} +% \begin{tabular}{|l|l|l|l|} +% \hline +% Single & Sign (1 bit) & Exponent (8 bit) & Mantissa (23 bit) \\ \hline +% Double & Sign (1 bit) & Exponent (11 bit) & Mantissa (52 bit) \\ \hline +% \end{tabular} +% \end{table} + + +To represent the hexadecimal values of the read holding +registers into user friendly decimal (floating point) values, we +follow IEEE 754 standard. Most common standards for representing +floating point numbers are: +\begin{enumerate} + \item Single precision: In this standard, 32 bits are used to represent a floating-point number. Out of these 32 bits, one bit is for the sign bit, 8 bits for the exponent, and the remaining 23 bits for mantissa. + \item Double precision: Here, 64 bits are used to represent a floating-point number. Out of these 64 bits, one bit represents the sign bit, 11 bits for the exponent, and the remaining 52 bits for mantissa. As the name indicates, this standard is used where precision matters more. +\end{enumerate} +% Decimal Value = $( - 1) * \text{sign} * 2^{exponent}* \text{Mantissa}$. +% Hence, for 32 bit values, the sign is stored in bit 32. The exponent +% can be calculated from bits 24-31 by subtracting 127. The mantissa is +% stored in bits 1-23. An invisible leading bit (i.e. it is not actually +% stored) with value 1.0 is placed in front, then bit 23 has a value of +% 1/2, bit 22 has value 1/4 etc. As a result, the mantissa has a value +% between 1.0 and 2. At last, the decimal value is calculated using the +% above mentioned equation. +There are several online converters \cite{ieee-754-conv} which peform the +IEEE 754 floating point conversion. In this chapter, a function has been formulated for this conversion, wherever needed. + + +\section{Setup for the experiment} +\begin{figure} + \centering + \includegraphics[width=\lgfig]{\LocMODfig/block-diagram.PNG} + \caption{Block diagram for reading the parameters in energy meter} + \label{fig:block-diagram} +\end{figure} + +\begin{figure} + \centering + \includegraphics[width=\lgfig]{\LocMODfig/Full-Set-Up.png} + \caption{Experimental set up for reading energy meter} + \label{fig:full-set-up} +\end{figure} + +This section discusses the setup for configuring +\arduino\ as Modbus master and energy meter as the slave. +The block diagram is shown in \figref{fig:block-diagram} , +whereas \figref{fig:full-set-up} presents the +actual setup. The following steps discuss the various connections of this setup: +\begin{enumerate} + \item \arduino\ has only one serial port. It communicates on + the digital pins 0 and 1 as well as on the computer via USB. Since + we want serial communication which shouldn't be disturbed by the USB + port and the Serial Monitor, we use the Software Serial + library. Using this library, we can assign any digital pins as RX and + TX and use it for serial communication. + In this experiment, pin 10 (used as RX) and pin 11 (used as TX) are connected to RO (Receive Out) and DI (Data In) pins of the RS485 module respectively. + \item DE (Data Enable) and RE (Receive Enable) pins of RS 485 are + shorted and connected to digital pin 3 of the \arduino\ board. + This serves as a control pin that will control when to receive and transmit serially. + \item Vcc and GND of the RS485 module are connected to Vcc and GND of + the \arduino\ board. + \item A and B pins of RS485 module are connected to A (Pin 7) and B (Pin 14) + pins of the energy meter. These two pins of the energy meter are meant for RS485 communication. + \item A $120k\Omega$ termination resistor is connected between + pins A and B to avoid reflection losses in the transmission line. +\end{enumerate} + + diff --git a/user-code/modbus/modbus-julia.tex b/user-code/modbus/modbus-julia.tex new file mode 100644 index 0000000..91ccf6c --- /dev/null +++ b/user-code/modbus/modbus-julia.tex @@ -0,0 +1,116 @@ + +\section{Manifestation of Modbus protocol through Julia} +The objective of this experiment is to make the user acquainted with +the demonstration of Modbus protocol through the Julia-Arduino toolbox. +It gives an insight into how to acquire readings from the energy meter and interpret them accordingly. As explained in \secref{sec:energy-meter}, +an energy meter is a device that gives us different electrical parameters, including voltage, current, and power, consumed by a device. Here, we aim to obtain these values using the Python-Arduino toolbox. For data transmission, we have used an RS485 module. + +Julia is used for giving the required parameters to \arduino. For +example, the user will tell the required slave address to be accessed +and the number of registers to be read from or written to. Here, +\arduino\ acts as a master and energy meter as a slave. Therefore, +referring to a particular slave address will refer to the registers +that hold the desired electrical parameters (current, voltage, power, etc.), which we want to read from the energy meter. + +In this experiment, \arduino\ is connected to the energy meter via an RS485 module which facilitates long-distance communication. +\scilab\ sends the RQ to the \arduino\, which in turn sends it to the +energy meter. The energy meter then accesses the values in the +required addresses in its memory and transfers them back. This again +is in the form of another packet called RP. In this packet, the data is stored in a little-endian hexadecimal format. Thus, we make use of IEEE 754 to obtain the decimal value from this data. + +\paragraph{Note: } The Julia source files presented in this section were tested on the older versions. Now, these codes may require minor changes in +the newer versions. We invite the experts to contribute the revised version of the code. + + +\subsection{Software for the experiment} +Apart from the Julia-Arduino toolbox, the software for this experiment comprises two parts: +\begin{enumerate} +\item Firmware for \arduino: This firmware is needed to communicate +with Julia (using serial interface), and with RS485 module (using +Software Serial interface). Control logic to enable receive and +transmit modes of MAX485 chip is also present in this firmware. \figref{fig:modbus-firmware} demonstrates the overall implementation of this firmware. + +\begin{figure} + \centering + \includegraphics[width=\lgfig]{\LocMODfig/arduino_code_flowchart.png} + \caption{Flowchart of Arduino firmware} + \label{fig:modbus-firmware} +\end{figure} + +\item Julia source file: It requests the parameters in the energy meter +by sending an RQ to \arduino\ from Julia. Then it waits till +an RP is available from the \arduino. After receiving the RP, it extracts +the data from this packet and converts it into IEEE +754 floating-point format. The overall implementation is being +described below: +\begin {enumerate} +\item Frame an RQ to be sent to the energy meter (slave) in ASCII coded decimal +format. +\item Send the RQ serially to \arduino. +\item Let \arduino\ send the RQ to the energy meter via RS485 module. +\item Let the energy meter send the RP to \arduino\ via RS485 module. +\item Read the RP available on \arduino. +\item Extract the data stored in holding registers from the RP. +\item Assuming this data to be stored in little-endian format, +convert this data in floating-point values using IEEE 754 standard. +\item Display the value in the Command Prompt (on Windows) or Terminal (on Linux), as the case maybe. +\end{enumerate} +\figref{fig:flow-chart} presents the sequence in which the steps mentioned above are executed. +\begin{figure} + \centering + \includegraphics[width=\hgfig]{\LocMODfig/flowchart.png} + \caption{Flowchart of the steps happening in Julia code} + \label{fig:flow-chart} +\end{figure} +\end{enumerate} + + +\section{Reading the electrical parameters from Julia} +\subsection{Reading the electrical parameters} +In this section, we will show how to access the three parameters (voltage, current, and active power) in the energy meter. As discussed above, we will send an RQ from Julia to \arduino. Subsequently, \arduino\ will provide us with an RP, which can be decoded to extract the desired parameter. The reader should go through the instructions given in \secref{sec:julia-start} before getting started. + +\subsection{Arduino Firmware} +\label{sec:firmware-modbus} +\addtocontents{ard}{\protect\addvspace{\codclr}} +\begin{ardcode} + \acaption{First 10 lines of the firmware for Modbus Energy Meter + experiment} + {First 10 lines of the firmware for Modbus. Available at + \LocMODardbrief{send\_packet.ino}.} + \label{ard:firmware-modbus} + \lstinputlisting[firstline=1,lastline=10] + {\LocMODardcode/send_packet.ino} +\end{ardcode} + +\subsection{Julia Code} +\label{sec:modbus-julia-code} +\addtocontents{juliad}{\protect\addvspace{\codclr}} + +\begin{juliacode} + \jcaption{Code for Single Phase Current Output} + {Code for Single Phase Current Output. + Available at \LocMODjuliabrief{readCurrent.jl}.} + \label{julia:current-modbus} + \lstinputlisting[firstline=1,lastline=10] + {\LocMODjuliacode/readCurrent.jl} +\end{juliacode} + +\begin{juliacode} + \jcaption{Code for Single Phase Voltage Output} + {Code for Single Phase Voltage Output. + Available at \LocMODjuliabrief{readVoltage.jl}.} + \label{julia:voltage-modbus} + \lstinputlisting[firstline=1,lastline=10] + {\LocMODjuliacode/readVoltage.jl} +\end{juliacode} + +\begin{juliacode} + \jcaption{First 10 lines of the code for Single Phase Active Power + Output}{First 10 lines of the code for Single Phase Active Power + Output. Available at + \LocMODjuliabrief{readPower.jl}.} + \label{julia:modbus-power} + \lstinputlisting[firstline=1,lastline=10] + {\LocMODjuliacode/readPower.jl} +\end{juliacode} + diff --git a/user-code/modbus/modbus-python.tex b/user-code/modbus/modbus-python.tex new file mode 100644 index 0000000..324c7ba --- /dev/null +++ b/user-code/modbus/modbus-python.tex @@ -0,0 +1,116 @@ + +\section{Manifestation of Modbus protocol through Python} +The objective of this experiment is to make the user acquainted with +the demonstration of Modbus protocol through the Python-Arduino toolbox. +It gives an insight into how to acquire readings from the energy meter and interpret them accordingly. As explained in \secref{sec:energy-meter}, +an energy meter is a device that gives us different electrical parameters, including voltage, current, and power, consumed by a device. Here, we aim to obtain these values using the Python-Arduino toolbox. For data transmission, we have used an RS485 module. + +Python is used for giving the required parameters to \arduino. For +example, the user will tell the required slave address to be accessed +and the number of registers to be read from or written to. Here, +\arduino\ acts as a master and energy meter as a slave. Therefore, +referring to a particular slave address will refer to the registers +that hold the desired electrical parameters (current, voltage, power, etc.), which we want to read from the energy meter. + +In this experiment, \arduino\ is connected to the energy meter via an RS485 module which facilitates long-distance communication. +\scilab\ sends the RQ to the \arduino\, which in turn sends it to the +energy meter. The energy meter then accesses the values in the +required addresses in its memory and transfers them back. This again +is in the form of another packet called RP. In this packet, the data is stored in a little-endian hexadecimal format. Thus, we make use of IEEE 754 to obtain the decimal value from this data. + +\paragraph{Note: } The Python code files presented in this section were tested on the older versions. Now, these codes may require minor changes in +the newer versions. We invite the experts to contribute the revised version of the code. + + +\subsection{Software for the experiment} +Apart from the Python-Arduino toolbox, the software for this experiment comprises two parts: +\begin{enumerate} +\item Firmware for \arduino: This firmware is needed to communicate +with Python (using serial interface), and with RS485 module (using +Software Serial interface). Control logic to enable receive and +transmit modes of MAX485 chip is also present in this firmware. \figref{fig:modbus-firmware} demonstrates the overall implementation of this firmware. + +\begin{figure} + \centering + \includegraphics[width=\lgfig]{\LocMODfig/arduino_code_flowchart.png} + \caption{Flowchart of Arduino firmware} + \label{fig:modbus-firmware} +\end{figure} + +\item Python code: This code requests the parameters in the energy meter +by sending an RQ to \arduino\ from Python. Then it waits till +an RP is available from the \arduino. After receiving the RP, it extracts +the data from this packet and converts it into IEEE +754 floating-point format. The overall implementation is being +described below: +\begin {enumerate} +\item Frame an RQ to be sent to the energy meter (slave) in ASCII coded decimal +format. +\item Send the RQ serially to \arduino. +\item Let \arduino\ send the RQ to the energy meter via RS485 module. +\item Let the energy meter send the RP to \arduino\ via RS485 module. +\item Read the RP available on \arduino. +\item Extract the data stored in holding registers from the RP. +\item Assuming this data to be stored in little-endian format, +convert this data in floating-point values using IEEE 754 standard. +\item Display the value in the Command Prompt (on Windows) or Terminal (on Linux), as the case maybe. +\end{enumerate} +\figref{fig:flow-chart} presents the sequence in which the steps mentioned above are executed. +\begin{figure} + \centering + \includegraphics[width=\hgfig]{\LocMODfig/flowchart.png} + \caption{Flowchart of the steps happening in Python code} + \label{fig:flow-chart} +\end{figure} +\end{enumerate} + + +\section{Reading the electrical parameters from Python} +\subsection{Reading the electrical parameters} +In this section, we will show how to access the three parameters (voltage, current, and active power) in the energy meter. As discussed above, we will send an RQ from Python to \arduino. Subsequently, \arduino\ will provide us with an RP, which can be decoded to extract the desired parameter. The reader should go through the instructions given in \secref{sec:python-start} before getting started. + +\subsection{Arduino Firmware} +\label{sec:firmware-modbus} +\addtocontents{ard}{\protect\addvspace{\codclr}} +\begin{ardcode} + \acaption{First 10 lines of the firmware for Modbus Energy Meter + experiment} + {First 10 lines of the firmware for Modbus. Available at + \LocMODardbrief{send\_packet.ino}.} + \label{ard:firmware-modbus} + \lstinputlisting[firstline=1,lastline=10] + {\LocMODardcode/send_packet.ino} +\end{ardcode} + +\subsection{Python Code} +\label{sec:modbus-python-code} +\addtocontents{pyd}{\protect\addvspace{\codclr}} + +\begin{pycode} + \pcaption{Code for Single Phase Current Output} + {Code for Single Phase Current Output. + Available at \LocMODpybrief{read\_current.py}.} + \label{py:current-modbus} + \lstinputlisting[firstline=1,lastline=10] + {\LocMODpycode/read_current.py} +\end{pycode} + +\begin{pycode} + \pcaption{Code for Single Phase Voltage Output} + {Code for Single Phase Voltage Output. + Available at \LocMODpybrief{read\_voltage.py}.} + \label{py:voltage-modbus} + \lstinputlisting[firstline=1,lastline=10] + {\LocMODpycode/read_voltage.py} +\end{pycode} + +\begin{pycode} + \pcaption{Code for Single Phase Active Power + Output}{Code for Single Phase Active Power + Output. Available at + \LocMODpybrief{read\_active\_power.py}.} + \label{py:modbus-power} + \lstinputlisting[firstline=1,lastline=10] + {\LocMODpycode/read_active_power.py} +\end{pycode} + diff --git a/user-code/modbus/modbus-scilab.tex b/user-code/modbus/modbus-scilab.tex index 7252c74..5d299f2 100644 --- a/user-code/modbus/modbus-scilab.tex +++ b/user-code/modbus/modbus-scilab.tex @@ -1,452 +1,8 @@ -\chapter {Implementation of Modbus Protocol} -\thispagestyle{empty} -\label{modbus} - -\newcommand{\LocMODfig}{\Origin/user-code/modbus/figures} -\newcommand{\LocMODscicode}{\Origin/user-code/modbus/scilab} -\newcommand{\LocMODscibrief}[1]{{\tt \seqsplit{% - Origin/user-code/modbus/scilab}}, see \fnrefp{fn:file-loc}} -\newcommand{\LocMODardcode}{\Origin/user-code/modbus/arduino} -\newcommand{\LocMODardbrief}[1]{{\tt \seqsplit{% - Origin/user-code/modbus/arduino}}, see \fnrefp{fn:file-loc}} - -%%%%%%%%%%%%python starts -\newcommand{\LocMODpycode}{\Origin/user-code/modbus/python} -\newcommand{\LocMODpybrief}[1]{{\tt \seqsplit{% - Origin/user-code/modbus/python}}, see \fnrefp{fn:file-loc}} -%%%%%%%%%%%%python ends - -%%%%julia starts - -\newcommand{\LocMODjuliacode}{\Origin/user-code/modbus/julia} -\newcommand{\LocMODjuliabrief}[1]{{\tt \seqsplit{% - Origin/user-code/modbus/julia}}, see \fnrefp{fn:file-loc}} - -%%%%julia ends - - -%%%%OpenModelica starts - -\newcommand{\LocMODOpenModelicacode}{\Origin/user-code/modbus/OpenModelica} -\newcommand{\LocMODOpenModelicabrief}[1]{{\tt \seqsplit{% - Origin/user-code/modbus/OpenModelica}}, see \fnrefp{fn:file-loc}} - -%%%%OpenModelica ends - -In this chapter, we will learn one of the advanced applications that -can be built using the Scilab-Arduino toolbox, presented in -\secref{sec:sci-ard-toolbox}. Recall \scilab, by default, -does not have the capability to connect to -Arduino. All such add-on functionalities are added to \scilab\ using -toolboxes. Beginners might want to -skip this chapter in the first reading. This experiment enables -interfacing Modbus-based devices with the Scilab-Arduino toolbox. This -functionality has a wide number of applications in the industrial -sector. - - -\section{Preliminaries} -Modbus is an open serial communication protocol developed and -published by Modicon in 1979 \cite{modbus}. Because of ease of deployment and -maintenance, it finds wide applications in industries. The Modbus -protocol provides a means to transmit information over serial lines -between several electronic devices to control and monitor -them. The controlling device requests for reading or writing -information and is known as the Modbus master/client. On the other -hand, the device supplying the information is called -Modbus slave/server. All the slaves/servers have a unique id and -address. Typically, there is one master, and a maximum of 247 slaves \cite{simplymodbus}. -\figref{mod-block} shows a representation of Modbus protocol. - -During the communications on a Modbus network, the protocol determines -how the controller gets to know its device address, recognizes the -message provided and decides the action to be taken and accordingly -extracts data and information contained in the message. A typical structure -of the communication protcol is shown in \figref{mod-master-slave}. The data is -sent as a series of zeros and ones, \ie\ bits wherein zeros are sent -as positive voltages and ones as negative. - -Different versions of Modbus protocol exist on serial lines, namely -Modbus RTU, ASCII, and TCP \cite{simplymodbus}. -The energy meter used in this experiment -supports Modbus RTU protocol. In Modbus RTU, the data is coded in -binary and requires only one communication byte. This is ideal for use -over RS232 or RS485 networks at baud rates between 1200 and 115K. - -\begin{figure} - \centering - %\subfloat[Block diagram representation of the Protocol]{ - \includegraphics[width=\hgfig]{\LocMODfig/fig1.png} - \caption{Block diagram representation of the Protocol} - \label{mod-block} -\end{figure} - - -\begin{figure} - \centering - \includegraphics[width=\smfig]{\LocMODfig/fig2.png} - \caption{Master-Slave Query-Response Cycle} - \label{mod-master-slave} -\end{figure} - -The RS485 is one of the most widely used bus standards for industrial -applications. It uses differential communication lines to communicate -over long distances and requires a dedicated pair of signal lines, say -A and B, to exchange information. Here, the voltage on one line equals -to the inverse of the voltage on the other line. In other words, the -output is 1, if A - B \textgreater $\;$ 200mV, and 0, if B - A \textgreater $\;$ -200mV. \figref{rs-485} shows the pins available -on a typical RS485 module. As shown in \figref{rs-485}, there are four pins on each side -of the module. \tabref{tab:rs-485-pins} summarizes the usage of these pins. - -\begin{table} - \centering - \caption{Pins available on RS485 and their usage} - \label{tab:rs-485-pins} - \begin{tabular}{lc}\hline - Pin name & Usage \\ \hline - Vcc & 5V \\ - B & Inverting receiver input \\ - A & Non-inverting receiver input \\ - GND & Ground (0V) \\ - RO & Receiver output \\ - RE & Receiver enable \\ - DE & Data enable \\ - DI & Data input \\ - \hline - \end{tabular} -\end{table} - - -%\begin{center} -%\framebox(175,30){% -% \parbox{170\unitlength}{R0 outputs 1, if A-B\textgreater200mV\\ R0 outputs 0, if B-A\textgreater200mV}% -%} -%\end{center} - -%\begin{align*} -%R0 outputs 1, if A-B\textgreater200mV\\ -%R0 outputs 0, if B-A\textgreater200mV -%\end{align*} - - -\begin{figure} - \centering - \includegraphics[width=\hgfig]{\LocMODfig/fig3.png} - \caption{Pins in RS485 module} - \label{rs-485} -\end{figure} - -\subsection{Energy meter} -\label{sec:energy-meter} -An energy meter is a device that measures the amount of electricity consumed -by the load. This book makes use of the EM6400 series energy meter. It is a -multifunction digital power meter by Schneider Electric. It -reads various parameters such as phase voltage, current, active power, -reactive power, power factor, etc. Before using the meter, one has to -program system configuration, PT, CT ratios, communication parameters -through front panel keys. The reason behind using this energy meter is -the fact that it supports the Modbus protocol for communication. - -Multiple operations can be performed with devices supporting Modbus. -Every operation has its own fixed function code (coil status - 01, -input status - 02, holding registers - 03, input registers - 04, etc.), -which is independent of devices. The function code tells the slave which -table to access and whether to read from or write to the table. -All the parameter values are stored in the output holding registers. -Different holding registers hold the values of different parameters. -\tabref{tab:modbus-fun-codes} summarizes the various operations which -Modbus RTU supports. One can locate the addresses of individual parameters -in the user manual for EM6400. \tabref{tab:params-addr} provides the addresses -for three individual parameters, which will be accessed in this chapter. - - -\begin{table} - \centering - \caption{Operations supported by Modbus RTU} - \label{tab:modbus-fun-codes} - \begin{tabular}{llc}\hline - Function Code & Action & Table Name \\ \hline - 01 (01 hex) & Read & Discrete Output Coils \\ - 05 (05 hex) & Write single & Discrete Output Coil \\ - 15 (0F hex) & Write multiple & Discrete Output Coils \\ - 02 (02 hex) & Read & Discrete Input Contacts \\ - 04 (04 hex) & Read & Analog Input Registers \\ - 03 (03 hex) & Read & Analog Output Holding Registers \\ - 06 (06 hex) & Write single & Analog Output Holding Register \\ - 16 (10 hex) & Write multiple & Analog Output Holding Registers \\ - \hline - \end{tabular} -\end{table} - - -\begin{table} - \centering - \caption{Individual parameter address in EM6400} - \label{tab:params-addr} - \begin{tabular}{llc}\hline - Parameter & Description & Address \\ \hline - V1 & Voltage phase 1 to neutral & 3927 \\ - A1 & Current, phase 1 & 3929 \\ - W1 & Active power, phase 1 & 3919 \\ - \hline - \end{tabular} -\end{table} - - -% \begin{center} -% \begin{tabular}{ll} -% Current (phase 1): & 3929 \\ -% Voltage (phase 1): & 3927 \\ -% Active power (phase 1): & 3919 -% \end{tabular} -% \end{center} - -% Values in every register are in little endian format (1st -% register contains LSB and next register contains MSB). In our case, -% energy meter is a slave. -% As discussed before, slave addresses can be set between 1 and 247. - -In Modbus protcol, the master needs to send a request packet (referred as RQ hereafter) -to the slave to read any of the slave's parameters. When the -slave receives an RQ, it needs to come up with a response packet -(referred as RP hereafter), which contains the value requested -by the master. In other words, an RQ is a message from the -master to a slave and an RP is a message from the slave back to the -master. We will first explain the structure of an RQ, followed by an example. -An RQ consists of following fields: -\begin{enumerate} - \item Slave id: The first byte of every Modbus message is a slave id. - The master specifies the id of the slave to which the request message - is addressed. Slaves must specify their own id in every - response message (RP). - \item Function code: The second byte of every Modbus message is a - function code. This code determines the type of operation to be - performed by the slave. \tabref{tab:modbus-fun-codes} enlists the various - function codes. - \item Address of the register: After the above two bytes, RQ specifies the - data address of the first register requested. - \item Number of registers: This field denotes the total number of - registers requested. - \item CRC bytes: The last two bytes of every Modbus message are CRC - bytes. CRC stands for Cyclic Redundancy check. It is added to the - end of every Modbus message for error detection. - Every byte in the message is used to calculate the CRC. - The receiving device also calculates the CRC and compares it to the - CRC from the sending device. If even one bit in the message is - received incorrectly, the CRCs will be different and an error will result. - - \paragraph{Note:} There are some online tools \cite{online-crc} by which one can calculate - the CRC bytes. However, one should note that the calculated CRC bytes - should be mentioned in little-endian format, which means that - the first register contains the least significant bit (LSB) and the - next register contains the most significant bit (MSB). -\end{enumerate} - -Let us say, we want to access V1 (Voltage phase 1 to neutral) in the -energy meter. From \tabref{tab:params-addr}, it may be noted that the address of V1 is -3927. The size of each Modbus register is 16 bits and all EM6400 readings -are of 32 bits. So, each reading occupies two consecutive Modbus -registers. Thus, we need to access two consective holding registers -(starting from 3926) to get V1. \tabref{tab:params-rq} summarizes the -values for the various fields in an RQ. -\begin{table} - \centering - \caption{A request packet to access V1 in EM6400} - \label{tab:params-rq} - \begin{tabular}{lc}\hline - Field of the RQ & Value for reading V1 \\ \hline - Slave id & 01 \\ - Function code & 03 \\ - Address of the register & 3926 (hex value = 0F56) \\ - Number of registers & 02 \\ - CRC bytes & 270F \\ - \hline - \end{tabular} -\end{table} -Now, we explain the structure of an RP, followed by an example. -An RP consists of following fields: -\begin{enumerate} - \item Slave id: In an RP, the slaves must specify their own id. - \item Function code: Like the RQ, the second byte of RP is the function code. - This code determines the type of operation to be - performed by the slave. \tabref{tab:modbus-fun-codes} enlists the various - function codes. - \item Number of data bytes to follow: It refers to the total number of bytes - read. As our RQ has 2 registers each of two bytes, we expect a total of 4 bytes. - \item Data in the first requested register: It refers to the data stored - in the first register. - \item Data in the second requested register: It refers to the data stored - in the second register. - \item CRC bytes: As stated earlier, the last two bytes of every Modbus message are CRC - bytes. Like RQ, the receiving device also calculates the CRC and compares it to the - CRC from the sending device. -\end{enumerate} -% An example of a request packet is as follows. Suppose that -% the request is 01 03 0F56 0002 270F. Its meaning is explained in -% \tabref{tab:request-packet}. -% \begin{table} -% \centering -% \caption{Interpretation of a request packet} -% \label{tab:request-packet} -% \begin{tabular}{lp{10cm}} -% 01 & Slave address \\ -% 03 & Function code to read holding registers \\ -% 0F56 & Data Address of the first requested register (address for -% voltage phase1 to neutral) and -% (0F56 hex = 3927, +40001 offset = 43928) \\ -% 0002 & Total number of registers requested for read \\ -% 270F & CRC (Cyclic Redundancy Check) for error checking (LSB first) \\ -% \end{tabular} -% \end{table} -Let us consider the RP, which we have received as a response to the RQ mentioned -in \tabref{tab:params-rq}. \tabref{tab:params-rp} summarizes the values for the -various fields in this RP. -\begin{table} - \centering - \caption{A response packet to access V1 in EM6400} - \label{tab:params-rp} - \begin{tabular}{lc}\hline - Field of the RP & Value for reading V1 \\ \hline - Slave id & 01 \\ - Function code & 03 \\ - Number of data bytes to follow & 04 \\ - Data in the first requested register & 2921 \\ - Data in the second requested register & 4373 \\ - CRC bytes & D2B0 \\ - \hline - \end{tabular} -\end{table} -% The response packet corresponding the above request packet -% is given as 01 03 04 2921 4373 D2B0. Its meaning is explained in -% \tabref{tab:response-packet}. -% \begin{table} -% \centering -% \caption{Interpretation of a response packet} -% \label{tab:response-packet}. -% \begin{tabular}{ll} -% 01 & Slave address \\ -% 03 & Function code to read holding registers \\ -% 04 & Total number of bytes read \\ -% 2921 & Data in 1st requested register \\ -% 4373 & Data in 2st requested register \\ -% D2B0 & CRC for error checking (LSB first) -% \end{tabular} -% \end{table} -In this RP, we consider the data in the two requested registers to be 43732921 -in hexadecimal. The reason behind keeping the data in the second requested register -as the MSB is that the obtained values are being read in little-endian format. -After converting this value to floating point using the -IEEE Standard for Floating-Point Arithmetic (IEEE 754), we obtain the -value as 243.16. Thus, the value of V1 (Voltage phase 1 to neutral) in the -energy meter is found to be 243.16 Volts. - -\subsection{Endianness} -Most of the numeric values to be stored in the computer are more than -one byte long. Thus, there arises a question of how to store the -multibyte values on the computer machines where each byte has its own -address \ie\ which byte gets stored at the ``first'' (lower) memory -location and which bytes follow in higher memory locations. For -example, let us picture this. A two-byte integer 0x5E5F is stored on the -disk by one machine with the 0x5E (MSB) stored at the lower -memory address and the 0x5F (LSB) stored at a higher memory address. -But there is a different machine which reads this integer by -picking 0x5F for the MSB and 0x5E for the LSB, giving 0x5F5E. -Hence, it results into a disagreement on the value of the integer -between the two machines. However, there is no so called ``right'' -ordering to store the bytes in the case of multibyte quantities. -Hardware is built to store the bytes in a particular fashion and as long as compatible -hardware reads the bytes in the same fashion, things are -fine. Following are the two major types of storing the bytes: - -\begin{enumerate} - \item Little Endian: - If the hardware is designed so that the LSB of a multibyte integer is stored ``first''at the lowest memory address, then the hardware is said to be little-endian. In this format, the ''little'' end of the integer gets stored - first and the next bytes are stored in higher (increasing) memory - locations. - \item Big Endian: - Here, the hardware is designed so that the MSB of a multibyte integer is stored ``first''at the lowest memory address. Thus, the ``big'' end of the integer gets - stored first and accordingly the next bytes get stored in higher - (increasing) memory locations. -\end{enumerate} -For example, let us take a four-byte integer 0x436B84A3. Considering -that the read holding registers in Modbus protocol are 16-bits each, the -LSB (or the little end) of this integer is 0x84A3, and the MSB (or the big end) -of this integer is 0x436B. Then, the memory storage patterns -for the integer would be as that shown in \tabref{tab:memory-storage}. -\begin{table} - \centering - \caption{Memory storage of a four-byte integer in little-endian and big-endian} - \label{tab:memory-storage} - \begin{tabular}{lllc}\hline - Memory Address & Byte & Little-endian & Big-endian \\ \hline - 3900 & 8A43 & MSB & LSB \\ - 3901 & 436B & LSB & MSB \\ - \hline - \end{tabular} -\end{table} - -% \begin{table} -% \centering -% \caption{Hexadecimal to Decimal} -% \label{tab:ieee-decimal} -% \begin{tabular}{ |p{3cm}|p{3cm}|p{3cm}|p{3cm}|} - -% \hline -% \multicolumn{4}{|c|}{Four Bytes Integer Reading from Meter} \\ -% \hline - -% Memory Address & Memory Address & Little-endian & Big-endian \\ \hline -% 3900 & 8A43 & MSB & LSB \\ -% 3901 & 436B & LSB & MSB \\ \hline -% \end{tabular} -% \end{table} - -% \begin{table} -% \centering -% \caption{Single and Double Precision Representation} -% \label{tab:single-precision} -% \begin{tabular}{|l|l|l|l|} -% \hline -% Single & Sign (1 bit) & Exponent (8 bit) & Mantissa (23 bit) \\ \hline -% Double & Sign (1 bit) & Exponent (11 bit) & Mantissa (52 bit) \\ \hline -% \end{tabular} -% \end{table} - - -To represent the hexadecimal values of the read holding -registers into user friendly decimal (floating point) values, we -follow IEEE 754 standard. Most common standards for representing -floating point numbers are: -\begin{enumerate} - \item Single precision: In this standard, 32 bits are used to represent floating-point number. - Out of these 32 bits, one bit is for the sign bit, 8 bits for exponent and the remaining - 23 bits for mantissa. - \item Double precision: Here, 64 bits are used to represent floating-point number. - Out of these 64 bits, one bit represents the sign bit, 11 bits for exponent and the - remaining 52 bits for mantissa. As the name indicates, this standard is used where precision matters more. -\end{enumerate} -% Decimal Value = $( - 1) * \text{sign} * 2^{exponent}* \text{Mantissa}$. -% Hence, for 32 bit values, the sign is stored in bit 32. The exponent -% can be calculated from bits 24-31 by subtracting 127. The mantissa is -% stored in bits 1-23. An invisible leading bit (i.e. it is not actually -% stored) with value 1.0 is placed in front, then bit 23 has a value of -% 1/2, bit 22 has value 1/4 etc. As a result, the mantissa has a value -% between 1.0 and 2. At last, the decimal value is calculated using the -% above mentioned equation. -There are several online converters \cite{ieee-754-conv} which peform the -IEEE 754 floating point conversion. In this chapter, a function has been formulated in -Scilab for this conversion. - - -\section{Objective} +\section{Manifestation of Modbus protocol through \scilab} The objective of this experiment is to make the user acquainted with -the use of Modbus protocol through the Scilab-Arduino toolbox \cite{modbus-paper}. -It gives an insight into how to acquire readings from the energy meter and interpret them accordingly. As explained in \secref{sec:energy-meter}, -an energy meter is a device that gives us different electrical parameters, including voltage, current, -and power, consumed by a device. Here, we aim to obtain these values -using the Scilab-Arduino toolbox. For data transmission, we have used an -RS485 module. +the demonstration of Modbus protocol through the Scilab-Arduino toolbox. +It gives an insight into how to acquire readings from the energy meter and interpret them accordingly. As explained in \secref{sec:energy-meter}, +an energy meter is a device that gives us different electrical parameters, including voltage, current, and power, consumed by a device. Here, we aim to obtain these values using the Scilab-Arduino toolbox. For data transmission, we have used an RS485 module. Scilab is used for giving the required parameters to \arduino. For example, the user will tell the required slave address to be accessed @@ -455,65 +11,20 @@ and the number of registers to be read from or written to. Here, referring to a particular slave address will refer to the registers that hold the desired electrical parameters (current, voltage, power, etc.), which we want to read from the energy meter. -In this experiment, \arduino\ is connected to the energy meter via an RS485 module which facilitates long-distance communication. +In this experiment, \arduino\ is connected to the energy meter via an RS485 module which facilitates long-distance communication. \scilab\ sends the RQ to the \arduino\, which in turn sends it to the energy meter. The energy meter then accesses the values in the required addresses in its memory and transfers them back. This again -is in the form of another packet called RP. In this packet, the data is stored in a little-endian hexadecimal format. Thus, we make use of IEEE 754 to obtain the decimal value from this data. - - -\begin{figure} - \centering - \includegraphics[width=\lgfig]{\LocMODfig/block-diagram.PNG} - \caption{Block diagram for reading the parameters in energy meter} - \label{fig:block-diagram} -\end{figure} - -\begin{figure} - \centering - \includegraphics[width=\lgfig]{\LocMODfig/Full-Set-Up.png} - \caption{Experimental set up for reading energy meter} - \label{fig:full-set-up} -\end{figure} +is in the form of another packet called RP. In this packet, the data is stored in a little-endian hexadecimal format. Thus, we make use of IEEE 754 to obtain the decimal value from this data. -\section{Manifestation of Modbus protocol with \arduino\ and energy meter} -In this section, we discuss the setup which we follow for configuring -\arduino\ as Modbus master and energy meter as the slave. -The block diagram is being shown in \figref{fig:block-diagram} , -whereas \figref{fig:full-set-up} presents the -actual setup. Following steps discuss the various connections of this setup: -\begin{enumerate} - \item We know that \arduino\ has only one serial port. It communicates on - the digital pins 0 and 1 as well as on the computer via USB. Since - we want a serial communication which shouldn't be disturbed by the USB - port and the Serial Monitor, we use the Software Serial - library. Using this library we can assign any digital pins as RX and - TX and use it for serial communication. In this experiment, pin 10 (used as RX) and pin - 11 (used as TX) is connected to RO (Receive Out) and DI (Data In) - pins of RS485 module respectively. - \item DE (Data Enable) and RE (Receive Enable) pins of RS 485 are - shorted and connected to digital pin 3 of the \arduino\ board. - This serves as a control pin which will control when to receive and transmit - serially. - \item Vcc and GND of the RS485 module are connected to Vcc and GND of - the \arduino\ board. - \item A and B pins of RS485 module are connected to A (Pin 7) and B (Pin 14) - pins of the energy meter. These two pins of the energy meter are meant for RS485 communication. - \item A $120k\Omega$ termination resistor is connected in between - pins A and B to avoid reflection losses in transmission line. -\end{enumerate} - -\subsection{Software} -Apart from the Scilab-Arduino toolbox, the software for the -manifestation of Modbus protocol comprises two parts: +\subsection{Software for the experiment} +Apart from the Scilab-Arduino toolbox, the software for this experiment comprises two parts: \begin{enumerate} -\item Firmware for \arduino: This code is written to communicate +\item Firmware for \arduino: This firmware is needed to communicate with Scilab (using serial interface), and with RS485 module (using Software Serial interface). Control logic to enable receive and -transmit modes of MAX485 chip is also present in this firmware. -The overall implementation of this firmware is demonstrated in -\figref{fig:modbus-firmware}. +transmit modes of MAX485 chip is also present in this firmware. \figref{fig:modbus-firmware} demonstrates the overall implementation of this firmware. \begin{figure} \centering @@ -522,26 +33,25 @@ The overall implementation of this firmware is demonstrated in \label{fig:modbus-firmware} \end{figure} -\item Scilab code: This code requests for the paramenters in energy meter -by sending a RQ to \arduino\ from Scilab. Then it waits till -a RP is available from the \arduino. After receiving the RP, it extracts +\item Scilab code: This code requests the parameters in the energy meter +by sending an RQ to \arduino\ from Scilab. Then it waits till +an RP is available from the \arduino. After receiving the RP, it extracts the data from this packet and converts it into IEEE -754 floating point format. The overall implementation is being +754 floating-point format. The overall implementation is being described below: - \begin {enumerate} -\item Frame a RQ to be sent to the energy meter (slave) in ASCII coded decimal -format. -\item Send the RQ serially to \arduino. -\item Let \arduino\ send the RQ to the energy meter via RS485 module -\item Let the energy meter send the RP to \arduino\ via RS485 module -\item Read the RP available on \arduino\ -\item Extract the data stored in holding registers from the RP -\item Assuming this data to be stored in little-endian format, -convert this data in floating point values using IEEE 754 standard. -\item Display the value in the \scilab\ Console. +\item Frame an RQ to be sent to the energy meter (slave) in ASCII coded decimal +format. +\item Send the RQ serially to \arduino. +\item Let \arduino\ send the RQ to the energy meter via RS485 module. +\item Let the energy meter send the RP to \arduino\ via RS485 module. +\item Read the RP available on \arduino. +\item Extract the data stored in holding registers from the RP. +\item Assuming this data to be stored in little-endian format, +convert this data in floating-point values using IEEE 754 standard. +\item Display the value in the \scilab\ Console. \end{enumerate} -This implementation is also being shown in \figref{fig:flow-chart}. +\figref{fig:flow-chart} presents the sequence in which the steps mentioned above are executed. \begin{figure} \centering \includegraphics[width=\hgfig]{\LocMODfig/flowchart.png} @@ -551,71 +61,6 @@ This implementation is also being shown in \figref{fig:flow-chart}. \end{enumerate} -\subsection{Output in the Scilab Console} -In this section, we present the results. In this experiment, the three parameters: -voltage, current, and active power in the energy meter have been accessed and displayed -on the Scilab console. For each of these three parameters, we present two image: one showing -the reading being shown in the energy meter and the another showing the -value being read in the Scilab Console. -\begin{enumerate} - \item Single phase current output: \figref{fig:current-console} and - \figref{fig:current-meter} show Scilab code output of current in - Amperes and corresponding snapshot of energy meter display with a - single load rated 60W-230V. - - \begin{figure} - \centering - \includegraphics[width=\linewidth]{\LocMODfig/current-output.png} - \caption{Single phase current output on Scilab Console} - \label{fig:current-console} - \end{figure} - - \begin{figure} - \centering - \includegraphics[width=\lgfig]{\LocMODfig/current-output-setup.jpg} - \caption{Single phase current output in energy meter} - \label{fig:current-meter} - \end{figure} - - \item Single phase voltage output: \figref{fig:voltage-console} and - \figref{fig:voltage-meter} show Scilab code output of voltage in - Volts and corresponding snapshot of energy meter display with a - single load rated 60W-230V. - - \begin{figure} - \centering - \includegraphics[width=\linewidth]{\LocMODfig/voltage-output.png} - \caption{Single phase voltage output on Scilab Console} - \label{fig:voltage-console} - \end{figure} - - \begin{figure} - \centering - \includegraphics[width=\lgfig]{\LocMODfig/voltage-output-setup.jpg} - \caption{Single phase voltage output in energy meter} - \label{fig:voltage-meter} - \end{figure} - - \item Single phase active power output: \figref{fig:power-console} and \figref{fig:power-meter} show Scilab code output of active power - in Watts and corresponding snapshot of energy meter display with a - single load rated 60W-230V. - \begin{figure} - \centering - \includegraphics[width=\linewidth]{\LocMODfig/active-power-output.png} - \caption{Single phase active power output on Scilab Console} - \label{fig:power-console} - \end{figure} - - \begin{figure} - \centering - \includegraphics[width=\lgfig]{\LocMODfig/active-power-output-setup.jpg} - \caption{Single phase active power output in energy meter} - \label{fig:power-meter} - \end{figure} - -\end{enumerate} - - % In output, user could see the requested energy parameter on Scilab % console. For demonstration we have taken single phase current, single % phase voltage and single phase active power reading. We can always @@ -623,18 +68,13 @@ value being read in the Scilab Console. % Meter display screen. -\section{Accessing the electrical parameters from Scilab} -\subsection{Accessing the electrical parameters} -In this section, we will show how to access the three parameters (voltage, current, and active power) -in the energy meter. As dicussed above, we will send a RQ from Scilab to \arduino. In lieu of this, -\arduino\ will provide us with a RP, which can be decoded to extract the -desired parameter. The reader should go through the instructions given in -\secref{sec:sci-start} before getting started. +\section{Reading the electrical parameters from Scilab} +\subsection{Reading the electrical parameters} +In this section, we will show how to access the three parameters (voltage, current, and active power) in the energy meter. As discussed above, we will send an RQ from Scilab to \arduino. Subsequently, \arduino\ will provide us with an RP, which can be decoded to extract the desired parameter. The reader should go through the instructions given in \secref{sec:sci-start} before getting started. \subsection{Arduino Firmware} \label{sec:firmware-modbus} \addtocontents{ard}{\protect\addvspace{\codclr}} - \begin{ardcode} \acaption{First 10 lines of the firmware for Modbus Energy Meter experiment} @@ -686,7 +126,71 @@ desired parameter. The reader should go through the instructions given in {\LocMODscicode/read_active_power.sci} \end{scicode} -\section{Reading Parameters from Xcos} +\paragraph{Note: } After we send the RQ from Scilab to the energy meter, we will receive an RP from the energy meter. RP contains the data requested. This data +is read serially in Scilab and the bytes so received are stored in a variable. On analyzing the bytes received, we observe some blank spaces received along with the data. So the required data starts from the fourth byte available, excluding spaces. For example, If there are {\tt n} spaces received before the packet, so the required data would be available from {\tt (n+4)}th position onwards. It means that we have to analyze the four bytes starting at {\tt (n+4)}th position. Note that the RP may have one or more spaces at the start or the end. That's why we may have to shift our index to extract the desired data. + +\subsection{Output in the Scilab Console} +In this section, we present the results. In this experiment, the three parameters: voltage, current, and active power in the energy meter have been accessed and displayed on the Scilab console. For each of these three parameters, we present two image: one showing the reading being shown in the energy meter and the another showing the value being displayed in the Scilab Console. +\begin{enumerate} + \item Single phase current output: \figref{fig:current-console} and + \figref{fig:current-meter} show Scilab code output of current in + Amperes and corresponding snapshot of energy meter display with a + single load rated 60W-230V. + + \begin{figure} + \centering + \includegraphics[width=\linewidth]{\LocMODfig/current-output.png} + \caption{Single phase current output on Scilab Console} + \label{fig:current-console} + \end{figure} + + \begin{figure} + \centering + \includegraphics[width=\lgfig]{\LocMODfig/current-output-setup.jpg} + \caption{Single phase current output in energy meter} + \label{fig:current-meter} + \end{figure} + + \item Single phase voltage output: \figref{fig:voltage-console} and + \figref{fig:voltage-meter} show Scilab code output of voltage in + Volts and corresponding snapshot of energy meter display with a + single load rated 60W-230V. + + \begin{figure} + \centering + \includegraphics[width=\linewidth]{\LocMODfig/voltage-output.png} + \caption{Single phase voltage output on Scilab Console} + \label{fig:voltage-console} + \end{figure} + + \begin{figure} + \centering + \includegraphics[width=\lgfig]{\LocMODfig/voltage-output-setup.jpg} + \caption{Single phase voltage output in energy meter} + \label{fig:voltage-meter} + \end{figure} + + \item Single phase active power output: \figref{fig:power-console} and \figref{fig:power-meter} show Scilab code output of active power + in Watts and corresponding snapshot of energy meter display with a + single load rated 60W-230V. + \begin{figure} + \centering + \includegraphics[width=\linewidth]{\LocMODfig/active-power-output.png} + \caption{Single phase active power output on Scilab Console} + \label{fig:power-console} + \end{figure} + + \begin{figure} + \centering + \includegraphics[width=\lgfig]{\LocMODfig/active-power-output-setup.jpg} + \caption{Single phase active power output in energy meter} + \label{fig:power-meter} + \end{figure} + +\end{enumerate} + + +\section{Reading the electrical parameters from Xcos} In this section we will carry out the same experiments discussed in the previous sections but through Xcos. One should go through \secref{sec:xcos-start} before continuing. @@ -696,7 +200,7 @@ the previous sections but through Xcos. One should go through current, single phase voltage and single phase power operation is as shown in \figref{fig:mod-read}. The location of the xcos file is mentioned in the caption of the figure. - + \begin{figure} \centering \includegraphics[width=\lgfig]{\LocMODfig/read_value_xcos.png} @@ -710,7 +214,7 @@ the previous sections but through Xcos. One should go through on the block. The values for each block is tabulated in \tabref{tab:mod-xcos-read}. All other parameters are to be left unchanged. - + \begin{table} \centering \caption{Xcos parameters to read Energy Meter} @@ -718,11 +222,11 @@ the previous sections but through Xcos. One should go through \begin{tabular}{llc} \hline Name of the block & Parameter name & Value \\ \hline CONST\_m & Address byte for voltage & 86 \\ - & Address byte for current & 88 \\ + & Address byte for current & 88 \\ & Address byte for power & 78 \\ \hline SELF\_SWITCH & Signal Routing & on/off \\ \hline BIGSOM\_f & Scalar vector addition/subtraction Summation & [1;1;1] \\ \hline - scifunc\_block\_m & Block for user\-defined function & read\_value.sci \\ \hline + scifunc\_block\_m & Block for user\-defined function & read\_value.sci \\ \hline AFFICH\_m & Block inherits(1) or not (0) & 0 \\ \hline CLOCK\_c & Period & 0.1 \\ & Initialisation Time & 0 \\ \hline @@ -730,17 +234,3 @@ the previous sections but through Xcos. One should go through \end{table} \end{enumerate} -After we send the query using Modbus protocol from Scilab (using -write\_serial command) to the Energy Meter, we will receive a packet -from the Energy Meter which will contain the data requested. This data -is read serially using (read\_serial command) in Scilab and the bytes -so received are stored in the 'buf' variable. On analyzing the bytes -received (by observing the value of ASCII(buf) or myresult) we see -that there might be some spaces(value 32 in myresult) received. So the -required data starts from the fourth byte available excluding -spaces.For example, If there are n spaces received before the packet, -so the required data would be starting at n+4 position(i.e., we have -to analyse the four bytes starting at (n+4)th position). Note that the -packet received may have one or more spaces at the starting or the -ending and that is the reason why we may have to shift our indexing -for analyzing data. diff --git a/user-code/modbus/modbus.tex b/user-code/modbus/modbus.tex index bce9e7b..5925fbd 100644 --- a/user-code/modbus/modbus.tex +++ b/user-code/modbus/modbus.tex @@ -33,43 +33,30 @@ %%%%OpenModelica ends
-In this chapter, we will learn one of the advanced applications that
-can be built using the Scilab-Arduino toolbox, presented in
-\secref{sec:sci-ard-toolbox}. Recall \scilab, by default,
-does not have the capability to connect to
-Arduino. All such add-on functionalities are added to \scilab\ using
-toolboxes. Beginners might want to
-skip this chapter in the first reading. This experiment enables
-interfacing Modbus-based devices with the Scilab-Arduino toolbox. This
-functionality has a wide number of applications in the industrial
-sector.
+In the previous chapters, we have discussed the programs to experiment with the sensors and actuators that come with the shield, a DC motor, and a servomotor. One may categorize these programs as either basic or intermediate. In this chapter, we will learn one of the advanced applications that can be built using the toolbox. Recall the FLOSS discussed in the book, by default, does not have the capability to connect to Arduino. All such add-on functionalities are added to the FLOSS using toolboxes. Beginners might want to skip this chapter in the first reading. This experiment enables interfacing Modbus-based devices with the FLOSS-Arduino toolbox. This functionality has a wide number of applications in the industrial sector.
\section{Preliminaries}
Modbus is an open serial communication protocol developed and
-published by Modicon in 1979 \cite{modbus}. Because of ease of deployment and
-maintenance, it finds wide applications in industries. The Modbus
-protocol provides a means to transmit information over serial lines
+published by Modicon in 1979 \cite{modbus} \cite{modbus-paper}. Because of ease of deployment and maintenance, it finds wide applications in industries. The Modbus protocol provides a means to transmit information over serial lines
between several electronic devices to control and monitor
them. The controlling device requests for reading or writing
information and is known as the Modbus master/client. On the other
hand, the device supplying the information is called
Modbus slave/server. All the slaves/servers have a unique id and
-address. Typically, there is one master, and a maximum of 247 slaves \cite{simplymodbus}.
-\figref{mod-block} shows a representation of Modbus protocol.
+address. Typically, there is one master, and a maximum of 247 slaves \cite{simplymodbus}. \figref{mod-block} shows a representation of Modbus protocol.
During the communications on a Modbus network, the protocol determines
how the controller gets to know its device address, recognizes the
-message provided and decides the action to be taken and accordingly
-extracts data and information contained in the message. A typical structure
-of the communication protcol is shown in \figref{mod-master-slave}. The data is
+the message provided and decides the action to be taken, and accordingly
+extracts data and information contained in the message. A typical structure of the communication protocol is shown in \figref{mod-master-slave}. The data is
sent as a series of zeros and ones, \ie\ bits wherein zeros are sent
as positive voltages and ones as negative.
Different versions of Modbus protocol exist on serial lines, namely
Modbus RTU, ASCII, and TCP \cite{simplymodbus}.
-The energy meter used in this experiment
-supports Modbus RTU protocol. In Modbus RTU, the data is coded in
+The energy meter used in this chapter
+supports the Modbus RTU protocol. In Modbus RTU, the data is coded in
binary and requires only one communication byte. This is ideal for use
over RS232 or RS485 networks at baud rates between 1200 and 115K.
@@ -146,7 +133,7 @@ reads various parameters such as phase voltage, current, active power, reactive power, power factor, etc. Before using the meter, one has to
program system configuration, PT, CT ratios, communication parameters
through front panel keys. The reason behind using this energy meter is
-the fact that it supports the Modbus protocol for communication.
+the fact that it supports the Modbus RTU protocol for communication.
Multiple operations can be performed with devices supporting Modbus.
Every operation has its own fixed function code (coil status - 01,
@@ -207,14 +194,14 @@ for three individual parameters, which will be accessed in this chapter. % energy meter is a slave.
% As discussed before, slave addresses can be set between 1 and 247.
-In Modbus protcol, the master needs to send a request packet (referred as RQ hereafter)
+In Modbus protocol, the master needs to send a request packet (referred as RQ hereafter)
to the slave to read any of the slave's parameters. When the
slave receives an RQ, it needs to come up with a response packet
(referred as RP hereafter), which contains the value requested
by the master. In other words, an RQ is a message from the
master to a slave and an RP is a message from the slave back to the
master. We will first explain the structure of an RQ, followed by an example.
-An RQ consists of following fields:
+An RQ consists of the following fields:
\begin{enumerate}
\item Slave id: The first byte of every Modbus message is a slave id.
The master specifies the id of the slave to which the request message
@@ -234,7 +221,7 @@ An RQ consists of following fields: Every byte in the message is used to calculate the CRC.
The receiving device also calculates the CRC and compares it to the
CRC from the sending device. If even one bit in the message is
- received incorrectly, the CRCs will be different and an error will result.
+ received incorrectly, the CRCs will be different, resulting in an error.
\paragraph{Note:} There are some online tools \cite{online-crc} by which one can calculate
the CRC bytes. However, one should note that the calculated CRC bytes
@@ -244,12 +231,11 @@ An RQ consists of following fields: \end{enumerate}
Let us say, we want to access V1 (Voltage phase 1 to neutral) in the
-energy meter. From \tabref{tab:params-addr}, it may be noted that the address of V1 is
-3927. The size of each Modbus register is 16 bits and all EM6400 readings
+energy meter. From \tabref{tab:params-addr}, it may be noted that the address of V1 is 3927. The size of each Modbus register is 16 bits and all EM6400 readings
are of 32 bits. So, each reading occupies two consecutive Modbus
registers. Thus, we need to access two consective holding registers
(starting from 3926) to get V1. \tabref{tab:params-rq} summarizes the
-values for the various fields in an RQ.
+values for the various fields in the RQ required to read/access V1.
\begin{table}
\centering
\caption{A request packet to access V1 in EM6400}
@@ -346,25 +332,20 @@ Most of the numeric values to be stored in the computer are more than one byte long. Thus, there arises a question of how to store the
multibyte values on the computer machines where each byte has its own
address \ie\ which byte gets stored at the ``first'' (lower) memory
-location and which bytes follow in higher memory locations. For
-example, let us picture this. A two-byte integer 0x5E5F is stored on the
-disk by one machine with the 0x5E (MSB) stored at the lower
-memory address and the 0x5F (LSB) stored at a higher memory address.
-But there is a different machine which reads this integer by
-picking 0x5F for the MSB and 0x5E for the LSB, giving 0x5F5E.
-Hence, it results into a disagreement on the value of the integer
-between the two machines. However, there is no so called ``right''
+location and which bytes follow in higher memory locations. For
+example, let us picture this. A two-byte integer 0x5E5F is stored on the disk by one machine, with the 0x5E (MSB) stored at the lower memory address and the 0x5F (LSB) stored at a higher memory address.
+But there is a different machine that reads this integer by picking 0x5F for the MSB and 0x5E for the LSB, giving 0x5F5E.
+Hence, it results in a disagreement on the value of the integer between the two machines. However, there is no so-called ``right''
ordering to store the bytes in the case of multibyte quantities.
-Hardware is built to store the bytes in a particular fashion and as long as compatible
-hardware reads the bytes in the same fashion, things are
-fine. Following are the two major types of storing the bytes:
+Hardware is built to store the bytes in a particular fashion, and as long as compatible hardware reads the bytes in the same fashion, things are
+fine. Following are the two major types of storing the bytes:
\begin{enumerate}
- \item Little Endian:
+ \item Little-endian:
If the hardware is designed so that the LSB of a multibyte integer is stored ``first''at the lowest memory address, then the hardware is said to be little-endian. In this format, the ''little'' end of the integer gets stored
first and the next bytes are stored in higher (increasing) memory
locations.
- \item Big Endian:
+ \item Big-endian:
Here, the hardware is designed so that the MSB of a multibyte integer is stored ``first''at the lowest memory address. Thus, the ``big'' end of the integer gets
stored first and accordingly the next bytes get stored in higher
(increasing) memory locations.
@@ -372,8 +353,8 @@ fine. Following are the two major types of storing the bytes: For example, let us take a four-byte integer 0x436B84A3. Considering
that the read holding registers in Modbus protocol are 16-bits each, the
LSB (or the little end) of this integer is 0x84A3, and the MSB (or the big end)
-of this integer is 0x436B. Then, the memory storage patterns
-for the integer would be as that shown in \tabref{tab:memory-storage}.
+of this integer is 0x436B. Then, the memory storage patterns
+for the integer would be like that shown in \tabref{tab:memory-storage}.
\begin{table}
\centering
\caption{Memory storage of a four-byte integer in little-endian and big-endian}
@@ -419,12 +400,8 @@ registers into user friendly decimal (floating point) values, we follow IEEE 754 standard. Most common standards for representing
floating point numbers are:
\begin{enumerate}
- \item Single precision: In this standard, 32 bits are used to represent floating-point number.
- Out of these 32 bits, one bit is for the sign bit, 8 bits for exponent and the remaining
- 23 bits for mantissa.
- \item Double precision: Here, 64 bits are used to represent floating-point number.
- Out of these 64 bits, one bit represents the sign bit, 11 bits for exponent and the
- remaining 52 bits for mantissa. As the name indicates, this standard is used where precision matters more.
+ \item Single precision: In this standard, 32 bits are used to represent a floating-point number. Out of these 32 bits, one bit is for the sign bit, 8 bits for the exponent, and the remaining 23 bits for mantissa.
+ \item Double precision: Here, 64 bits are used to represent a floating-point number. Out of these 64 bits, one bit represents the sign bit, 11 bits for the exponent, and the remaining 52 bits for mantissa. As the name indicates, this standard is used where precision matters more.
\end{enumerate}
% Decimal Value = $( - 1) * \text{sign} * 2^{exponent}* \text{Mantissa}$.
% Hence, for 32 bit values, the sign is stored in bit 32. The exponent
@@ -435,39 +412,10 @@ floating point numbers are: % between 1.0 and 2. At last, the decimal value is calculated using the
% above mentioned equation.
There are several online converters \cite{ieee-754-conv} which peform the
-IEEE 754 floating point conversion. In this chapter, a function has been formulated in
-Scilab for this conversion.
-
-
-\section{Objective}
-The objective of this experiment is to make the user acquainted with
-the use of Modbus protocol through the Scilab-Arduino toolbox \cite{modbus-paper}.
-It gives an insight on how to acquire readings from the energy meter and
-interpret them accordingly. As explained in \secref{sec:energy-meter},
-an energy meter is a device that gives us different electrical parameters including voltage, current,
-and power, consumed by a device. Here, we aim to obtain these values
-using Scilab-Arduino toolbox. For data transmission, we have used an
-RS485 module.
-
-Scilab is used for giving the required parameters to \arduino. For
-example, the user will tell the required slave address to be accessed
-and the number of registers to be read from or written to. Here,
-\arduino\ acts as a master and energy meter as a slave. Therefore,
-referring to a particular slave address will refer to the registers
-that hold the desired electrical parameters (current, voltage, power
-etc.), which we want to read from the energy meter.
-
-In this experiment, \arduino\ is connected to the energy meter via
-an RS485 module which facilitates long distance communication.
-\scilab\ sends the RQ to the \arduino\, which in turn sends it to the
-energy meter. The energy meter then accesses the values in the
-required addresses in its memory and transfers them back. This again,
-is in the form of another packet called RP. In this packet, the data is stored in
-little-endian hexadecimal format. Thus, we make use of IEEE 754 to obtain the
-decimal value from this data.
-
+IEEE 754 floating point conversion. In this chapter, a function has been formulated for this conversion, wherever needed.
+\section{Setup for the experiment}
\begin{figure}
\centering
\includegraphics[width=\lgfig]{\LocMODfig/block-diagram.PNG}
@@ -482,44 +430,60 @@ decimal value from this data. \label{fig:full-set-up}
\end{figure}
-\section{Manifestation of Modbus protocol with \arduino\ and energy meter}
-In this section, we discuss the setup which we follow for configuring
+This section discusses the setup for configuring
\arduino\ as Modbus master and energy meter as the slave.
-The block diagram is being shown in \figref{fig:block-diagram} ,
+The block diagram is shown in \figref{fig:block-diagram} ,
whereas \figref{fig:full-set-up} presents the
-actual setup. Following steps discuss the various connections of this setup:
+actual setup. The following steps discuss the various connections of this setup:
\begin{enumerate}
- \item We know that \arduino\ has only one serial port. It communicates on
+ \item \arduino\ has only one serial port. It communicates on
the digital pins 0 and 1 as well as on the computer via USB. Since
- we want a serial communication which shouldn't be disturbed by the USB
+ we want serial communication which shouldn't be disturbed by the USB
port and the Serial Monitor, we use the Software Serial
- library. Using this library we can assign any digital pins as RX and
- TX and use it for serial communication. In this experiment, pin 10 (used as RX) and pin
- 11 (used as TX) is connected to RO (Receive Out) and DI (Data In)
- pins of RS485 module respectively.
+ library. Using this library, we can assign any digital pins as RX and
+ TX and use it for serial communication.
+ In this experiment, pin 10 (used as RX) and pin 11 (used as TX) are connected to RO (Receive Out) and DI (Data In) pins of the RS485 module respectively.
\item DE (Data Enable) and RE (Receive Enable) pins of RS 485 are
shorted and connected to digital pin 3 of the \arduino\ board.
- This serves as a control pin which will control when to receive and transmit
- serially.
+ This serves as a control pin that will control when to receive and transmit serially.
\item Vcc and GND of the RS485 module are connected to Vcc and GND of
the \arduino\ board.
\item A and B pins of RS485 module are connected to A (Pin 7) and B (Pin 14)
pins of the energy meter. These two pins of the energy meter are meant for RS485 communication.
- \item A $120k\Omega$ termination resistor is connected in between
- pins A and B to avoid reflection losses in transmission line.
+ \item A $120k\Omega$ termination resistor is connected between
+ pins A and B to avoid reflection losses in the transmission line.
\end{enumerate}
-\subsection{Software}
-Apart from the Scilab-Arduino toolbox, the software for the
-manifestation of Modbus protocol comprises two parts:
+
+
+\section{Manifestation of Modbus protocol through \scilab}
+The objective of this experiment is to make the user acquainted with
+the demonstration of Modbus protocol through the Scilab-Arduino toolbox.
+It gives an insight into how to acquire readings from the energy meter and interpret them accordingly. As explained in \secref{sec:energy-meter},
+an energy meter is a device that gives us different electrical parameters, including voltage, current, and power, consumed by a device. Here, we aim to obtain these values using the Scilab-Arduino toolbox. For data transmission, we have used an RS485 module.
+
+Scilab is used for giving the required parameters to \arduino. For
+example, the user will tell the required slave address to be accessed
+and the number of registers to be read from or written to. Here,
+\arduino\ acts as a master and energy meter as a slave. Therefore,
+referring to a particular slave address will refer to the registers
+that hold the desired electrical parameters (current, voltage, power, etc.), which we want to read from the energy meter.
+
+In this experiment, \arduino\ is connected to the energy meter via an RS485 module which facilitates long-distance communication.
+\scilab\ sends the RQ to the \arduino\, which in turn sends it to the
+energy meter. The energy meter then accesses the values in the
+required addresses in its memory and transfers them back. This again
+is in the form of another packet called RP. In this packet, the data is stored in a little-endian hexadecimal format. Thus, we make use of IEEE 754 to obtain the decimal value from this data.
+
+
+\subsection{Software for the experiment}
+Apart from the Scilab-Arduino toolbox, the software for this experiment comprises two parts:
\begin{enumerate}
-\item Firmware for \arduino: This code is written to communicate
+\item Firmware for \arduino: This firmware is needed to communicate
with Scilab (using serial interface), and with RS485 module (using
Software Serial interface). Control logic to enable receive and
-transmit modes of MAX485 chip is also present in this firmware.
-The overall implementation of this firmware is demonstrated in
-\figref{fig:modbus-firmware}.
+transmit modes of MAX485 chip is also present in this firmware. \figref{fig:modbus-firmware} demonstrates the overall implementation of this firmware.
\begin{figure}
\centering
@@ -528,26 +492,25 @@ The overall implementation of this firmware is demonstrated in \label{fig:modbus-firmware}
\end{figure}
-\item Scilab code: This code requests for the paramenters in energy meter
-by sending a RQ to \arduino\ from Scilab. Then it waits till
-a RP is available from the \arduino. After receiving the RP, it extracts
+\item Scilab code: This code requests the parameters in the energy meter
+by sending an RQ to \arduino\ from Scilab. Then it waits till
+an RP is available from the \arduino. After receiving the RP, it extracts
the data from this packet and converts it into IEEE
-754 floating point format. The overall implementation is being
+754 floating-point format. The overall implementation is being
described below:
-
\begin {enumerate}
-\item Frame a RQ to be sent to the energy meter (slave) in ASCII coded decimal
+\item Frame an RQ to be sent to the energy meter (slave) in ASCII coded decimal
format.
\item Send the RQ serially to \arduino.
-\item Let \arduino\ send the RQ to the energy meter via RS485 module
-\item Let the energy meter send the RP to \arduino\ via RS485 module
-\item Read the RP available on \arduino\
-\item Extract the data stored in holding registers from the RP
+\item Let \arduino\ send the RQ to the energy meter via RS485 module.
+\item Let the energy meter send the RP to \arduino\ via RS485 module.
+\item Read the RP available on \arduino.
+\item Extract the data stored in holding registers from the RP.
\item Assuming this data to be stored in little-endian format,
-convert this data in floating point values using IEEE 754 standard.
+convert this data in floating-point values using IEEE 754 standard.
\item Display the value in the \scilab\ Console.
\end{enumerate}
-This implementation is also being shown in \figref{fig:flow-chart}.
+\figref{fig:flow-chart} presents the sequence in which the steps mentioned above are executed.
\begin{figure}
\centering
\includegraphics[width=\hgfig]{\LocMODfig/flowchart.png}
@@ -557,71 +520,6 @@ This implementation is also being shown in \figref{fig:flow-chart}. \end{enumerate}
-\subsection{Output in the Scilab Console}
-In this section, we present the results. In this experiment, the three parameters:
-voltage, current, and active power in the energy meter have been accessed and displayed
-on the Scilab console. For each of these three parameters, we present two image: one showing
-the reading being shown in the energy meter and the another showing the
-value being read in the Scilab Console.
-\begin{enumerate}
- \item Single phase current output: \figref{fig:current-console} and
- \figref{fig:current-meter} show Scilab code output of current in
- Amperes and corresponding snapshot of energy meter display with a
- single load rated 60W-230V.
-
- \begin{figure}
- \centering
- \includegraphics[width=\linewidth]{\LocMODfig/current-output.png}
- \caption{Single phase current output on Scilab Console}
- \label{fig:current-console}
- \end{figure}
-
- \begin{figure}
- \centering
- \includegraphics[width=\lgfig]{\LocMODfig/current-output-setup.jpg}
- \caption{Single phase current output in energy meter}
- \label{fig:current-meter}
- \end{figure}
-
- \item Single phase voltage output: \figref{fig:voltage-console} and
- \figref{fig:voltage-meter} show Scilab code output of voltage in
- Volts and corresponding snapshot of energy meter display with a
- single load rated 60W-230V.
-
- \begin{figure}
- \centering
- \includegraphics[width=\linewidth]{\LocMODfig/voltage-output.png}
- \caption{Single phase voltage output on Scilab Console}
- \label{fig:voltage-console}
- \end{figure}
-
- \begin{figure}
- \centering
- \includegraphics[width=\lgfig]{\LocMODfig/voltage-output-setup.jpg}
- \caption{Single phase voltage output in energy meter}
- \label{fig:voltage-meter}
- \end{figure}
-
- \item Single phase active power output: \figref{fig:power-console} and \figref{fig:power-meter} show Scilab code output of active power
- in Watts and corresponding snapshot of energy meter display with a
- single load rated 60W-230V.
- \begin{figure}
- \centering
- \includegraphics[width=\linewidth]{\LocMODfig/active-power-output.png}
- \caption{Single phase active power output on Scilab Console}
- \label{fig:power-console}
- \end{figure}
-
- \begin{figure}
- \centering
- \includegraphics[width=\lgfig]{\LocMODfig/active-power-output-setup.jpg}
- \caption{Single phase active power output in energy meter}
- \label{fig:power-meter}
- \end{figure}
-
-\end{enumerate}
-
-
% In output, user could see the requested energy parameter on Scilab
% console. For demonstration we have taken single phase current, single
% phase voltage and single phase active power reading. We can always
@@ -629,18 +527,13 @@ value being read in the Scilab Console. % Meter display screen.
-\section{Accessing the electrical parameters from Scilab}
-\subsection{Accessing the electrical parameters}
-In this section, we will show how to access the three parameters (voltage, current, and active power)
-in the energy meter. As dicussed above, we will send a RQ from Scilab to \arduino. In lieu of this,
-\arduino\ will provide us with a RP, which can be decoded to extract the
-desired parameter. The reader should go through the instructions given in
-\secref{sec:sci-start} before getting started.
+\section{Reading the electrical parameters from Scilab}
+\subsection{Reading the electrical parameters}
+In this section, we will show how to access the three parameters (voltage, current, and active power) in the energy meter. As discussed above, we will send an RQ from Scilab to \arduino. Subsequently, \arduino\ will provide us with an RP, which can be decoded to extract the desired parameter. The reader should go through the instructions given in \secref{sec:sci-start} before getting started.
\subsection{Arduino Firmware}
\label{sec:firmware-modbus}
\addtocontents{ard}{\protect\addvspace{\codclr}}
-
\begin{ardcode}
\acaption{First 10 lines of the firmware for Modbus Energy Meter
experiment}
@@ -692,7 +585,71 @@ desired parameter. The reader should go through the instructions given in {\LocMODscicode/read_active_power.sci}
\end{scicode}
-\section{Reading Parameters from Xcos}
+\paragraph{Note: } After we send the RQ from Scilab to the energy meter, we will receive an RP from the energy meter. RP contains the data requested. This data
+is read serially in Scilab and the bytes so received are stored in a variable. On analyzing the bytes received, we observe some blank spaces received along with the data. So the required data starts from the fourth byte available, excluding spaces. For example, If there are {\tt n} spaces received before the packet, so the required data would be available from {\tt (n+4)}th position onwards. It means that we have to analyze the four bytes starting at {\tt (n+4)}th position. Note that the RP may have one or more spaces at the start or the end. That's why we may have to shift our index to extract the desired data.
+
+\subsection{Output in the Scilab Console}
+In this section, we present the results. In this experiment, the three parameters: voltage, current, and active power in the energy meter have been accessed and displayed on the Scilab console. For each of these three parameters, we present two image: one showing the reading being shown in the energy meter and the another showing the value being displayed in the Scilab Console.
+\begin{enumerate}
+ \item Single phase current output: \figref{fig:current-console} and
+ \figref{fig:current-meter} show Scilab code output of current in
+ Amperes and corresponding snapshot of energy meter display with a
+ single load rated 60W-230V.
+
+ \begin{figure}
+ \centering
+ \includegraphics[width=\linewidth]{\LocMODfig/current-output.png}
+ \caption{Single phase current output on Scilab Console}
+ \label{fig:current-console}
+ \end{figure}
+
+ \begin{figure}
+ \centering
+ \includegraphics[width=\lgfig]{\LocMODfig/current-output-setup.jpg}
+ \caption{Single phase current output in energy meter}
+ \label{fig:current-meter}
+ \end{figure}
+
+ \item Single phase voltage output: \figref{fig:voltage-console} and
+ \figref{fig:voltage-meter} show Scilab code output of voltage in
+ Volts and corresponding snapshot of energy meter display with a
+ single load rated 60W-230V.
+
+ \begin{figure}
+ \centering
+ \includegraphics[width=\linewidth]{\LocMODfig/voltage-output.png}
+ \caption{Single phase voltage output on Scilab Console}
+ \label{fig:voltage-console}
+ \end{figure}
+
+ \begin{figure}
+ \centering
+ \includegraphics[width=\lgfig]{\LocMODfig/voltage-output-setup.jpg}
+ \caption{Single phase voltage output in energy meter}
+ \label{fig:voltage-meter}
+ \end{figure}
+
+ \item Single phase active power output: \figref{fig:power-console} and \figref{fig:power-meter} show Scilab code output of active power
+ in Watts and corresponding snapshot of energy meter display with a
+ single load rated 60W-230V.
+ \begin{figure}
+ \centering
+ \includegraphics[width=\linewidth]{\LocMODfig/active-power-output.png}
+ \caption{Single phase active power output on Scilab Console}
+ \label{fig:power-console}
+ \end{figure}
+
+ \begin{figure}
+ \centering
+ \includegraphics[width=\lgfig]{\LocMODfig/active-power-output-setup.jpg}
+ \caption{Single phase active power output in energy meter}
+ \label{fig:power-meter}
+ \end{figure}
+
+\end{enumerate}
+
+
+\section{Reading the electrical parameters from Xcos}
In this section we will carry out the same experiments discussed in
the previous sections but through Xcos. One should go through
\secref{sec:xcos-start} before continuing.
@@ -736,26 +693,90 @@ the previous sections but through Xcos. One should go through \end{table}
\end{enumerate}
-After we send the query using Modbus protocol from Scilab (using
-write\_serial command) to the Energy Meter, we will receive a packet
-from the Energy Meter which will contain the data requested. This data
-is read serially using (read\_serial command) in Scilab and the bytes
-so received are stored in the 'buf' variable. On analyzing the bytes
-received (by observing the value of ASCII(buf) or myresult) we see
-that there might be some spaces(value 32 in myresult) received. So the
-required data starts from the fourth byte available excluding
-spaces.For example, If there are n spaces received before the packet,
-so the required data would be starting at n+4 position(i.e., we have
-to analyse the four bytes starting at (n+4)th position). Note that the
-packet received may have one or more spaces at the starting or the
-ending and that is the reason why we may have to shift our indexing
-for analyzing data.
-
-The functionalities performed by \scilab\ have also been implemented in other
-FLOSSs like Python, Julia, and OpenModelica. However,
-the codes for these FLOSSs were tested on the older versions.
-Now, these codes may require minor changes in the newer versions.
-We invite the experts to contribute the revised version of the code.
+
+
+\section{Manifestation of Modbus protocol through Python}
+The objective of this experiment is to make the user acquainted with
+the demonstration of Modbus protocol through the Python-Arduino toolbox.
+It gives an insight into how to acquire readings from the energy meter and interpret them accordingly. As explained in \secref{sec:energy-meter},
+an energy meter is a device that gives us different electrical parameters, including voltage, current, and power, consumed by a device. Here, we aim to obtain these values using the Python-Arduino toolbox. For data transmission, we have used an RS485 module.
+
+Python is used for giving the required parameters to \arduino. For
+example, the user will tell the required slave address to be accessed
+and the number of registers to be read from or written to. Here,
+\arduino\ acts as a master and energy meter as a slave. Therefore,
+referring to a particular slave address will refer to the registers
+that hold the desired electrical parameters (current, voltage, power, etc.), which we want to read from the energy meter.
+
+In this experiment, \arduino\ is connected to the energy meter via an RS485 module which facilitates long-distance communication.
+\scilab\ sends the RQ to the \arduino\, which in turn sends it to the
+energy meter. The energy meter then accesses the values in the
+required addresses in its memory and transfers them back. This again
+is in the form of another packet called RP. In this packet, the data is stored in a little-endian hexadecimal format. Thus, we make use of IEEE 754 to obtain the decimal value from this data.
+
+\paragraph{Note: } The Python code files presented in this section were tested on the older versions. Now, these codes may require minor changes in
+the newer versions. We invite the experts to contribute the revised version of the code.
+
+
+\subsection{Software for the experiment}
+Apart from the Python-Arduino toolbox, the software for this experiment comprises two parts:
+\begin{enumerate}
+\item Firmware for \arduino: This firmware is needed to communicate
+with Python (using serial interface), and with RS485 module (using
+Software Serial interface). Control logic to enable receive and
+transmit modes of MAX485 chip is also present in this firmware. \figref{fig:modbus-firmware} demonstrates the overall implementation of this firmware.
+
+\begin{figure}
+ \centering
+ \includegraphics[width=\lgfig]{\LocMODfig/arduino_code_flowchart.png}
+ \caption{Flowchart of Arduino firmware}
+ \label{fig:modbus-firmware}
+\end{figure}
+
+\item Python code: This code requests the parameters in the energy meter
+by sending an RQ to \arduino\ from Python. Then it waits till
+an RP is available from the \arduino. After receiving the RP, it extracts
+the data from this packet and converts it into IEEE
+754 floating-point format. The overall implementation is being
+described below:
+\begin {enumerate}
+\item Frame an RQ to be sent to the energy meter (slave) in ASCII coded decimal
+format.
+\item Send the RQ serially to \arduino.
+\item Let \arduino\ send the RQ to the energy meter via RS485 module.
+\item Let the energy meter send the RP to \arduino\ via RS485 module.
+\item Read the RP available on \arduino.
+\item Extract the data stored in holding registers from the RP.
+\item Assuming this data to be stored in little-endian format,
+convert this data in floating-point values using IEEE 754 standard.
+\item Display the value in the Command Prompt (on Windows) or Terminal (on Linux), as the case maybe.
+\end{enumerate}
+\figref{fig:flow-chart} presents the sequence in which the steps mentioned above are executed.
+\begin{figure}
+ \centering
+ \includegraphics[width=\hgfig]{\LocMODfig/flowchart.png}
+ \caption{Flowchart of the steps happening in Python code}
+ \label{fig:flow-chart}
+\end{figure}
+\end{enumerate}
+
+
+\section{Reading the electrical parameters from Python}
+\subsection{Reading the electrical parameters}
+In this section, we will show how to access the three parameters (voltage, current, and active power) in the energy meter. As discussed above, we will send an RQ from Python to \arduino. Subsequently, \arduino\ will provide us with an RP, which can be decoded to extract the desired parameter. The reader should go through the instructions given in \secref{sec:python-start} before getting started.
+
+\subsection{Arduino Firmware}
+\label{sec:firmware-modbus}
+\addtocontents{ard}{\protect\addvspace{\codclr}}
+\begin{ardcode}
+ \acaption{First 10 lines of the firmware for Modbus Energy Meter
+ experiment}
+ {First 10 lines of the firmware for Modbus. Available at
+ \LocMODardbrief{send\_packet.ino}.}
+ \label{ard:firmware-modbus}
+ \lstinputlisting[firstline=1,lastline=10]
+ {\LocMODardcode/send_packet.ino}
+\end{ardcode}
\subsection{Python Code}
\label{sec:modbus-python-code}
@@ -789,6 +810,90 @@ We invite the experts to contribute the revised version of the code. {\LocMODpycode/read_active_power.py}
\end{pycode}
+
+\section{Manifestation of Modbus protocol through Julia}
+The objective of this experiment is to make the user acquainted with
+the demonstration of Modbus protocol through the Julia-Arduino toolbox.
+It gives an insight into how to acquire readings from the energy meter and interpret them accordingly. As explained in \secref{sec:energy-meter},
+an energy meter is a device that gives us different electrical parameters, including voltage, current, and power, consumed by a device. Here, we aim to obtain these values using the Python-Arduino toolbox. For data transmission, we have used an RS485 module.
+
+Julia is used for giving the required parameters to \arduino. For
+example, the user will tell the required slave address to be accessed
+and the number of registers to be read from or written to. Here,
+\arduino\ acts as a master and energy meter as a slave. Therefore,
+referring to a particular slave address will refer to the registers
+that hold the desired electrical parameters (current, voltage, power, etc.), which we want to read from the energy meter.
+
+In this experiment, \arduino\ is connected to the energy meter via an RS485 module which facilitates long-distance communication.
+\scilab\ sends the RQ to the \arduino\, which in turn sends it to the
+energy meter. The energy meter then accesses the values in the
+required addresses in its memory and transfers them back. This again
+is in the form of another packet called RP. In this packet, the data is stored in a little-endian hexadecimal format. Thus, we make use of IEEE 754 to obtain the decimal value from this data.
+
+\paragraph{Note: } The Julia source files presented in this section were tested on the older versions. Now, these codes may require minor changes in
+the newer versions. We invite the experts to contribute the revised version of the code.
+
+
+\subsection{Software for the experiment}
+Apart from the Julia-Arduino toolbox, the software for this experiment comprises two parts:
+\begin{enumerate}
+\item Firmware for \arduino: This firmware is needed to communicate
+with Julia (using serial interface), and with RS485 module (using
+Software Serial interface). Control logic to enable receive and
+transmit modes of MAX485 chip is also present in this firmware. \figref{fig:modbus-firmware} demonstrates the overall implementation of this firmware.
+
+\begin{figure}
+ \centering
+ \includegraphics[width=\lgfig]{\LocMODfig/arduino_code_flowchart.png}
+ \caption{Flowchart of Arduino firmware}
+ \label{fig:modbus-firmware}
+\end{figure}
+
+\item Julia source file: It requests the parameters in the energy meter
+by sending an RQ to \arduino\ from Julia. Then it waits till
+an RP is available from the \arduino. After receiving the RP, it extracts
+the data from this packet and converts it into IEEE
+754 floating-point format. The overall implementation is being
+described below:
+\begin {enumerate}
+\item Frame an RQ to be sent to the energy meter (slave) in ASCII coded decimal
+format.
+\item Send the RQ serially to \arduino.
+\item Let \arduino\ send the RQ to the energy meter via RS485 module.
+\item Let the energy meter send the RP to \arduino\ via RS485 module.
+\item Read the RP available on \arduino.
+\item Extract the data stored in holding registers from the RP.
+\item Assuming this data to be stored in little-endian format,
+convert this data in floating-point values using IEEE 754 standard.
+\item Display the value in the Command Prompt (on Windows) or Terminal (on Linux), as the case maybe.
+\end{enumerate}
+\figref{fig:flow-chart} presents the sequence in which the steps mentioned above are executed.
+\begin{figure}
+ \centering
+ \includegraphics[width=\hgfig]{\LocMODfig/flowchart.png}
+ \caption{Flowchart of the steps happening in Julia code}
+ \label{fig:flow-chart}
+\end{figure}
+\end{enumerate}
+
+
+\section{Reading the electrical parameters from Julia}
+\subsection{Reading the electrical parameters}
+In this section, we will show how to access the three parameters (voltage, current, and active power) in the energy meter. As discussed above, we will send an RQ from Julia to \arduino. Subsequently, \arduino\ will provide us with an RP, which can be decoded to extract the desired parameter. The reader should go through the instructions given in \secref{sec:julia-start} before getting started.
+
+\subsection{Arduino Firmware}
+\label{sec:firmware-modbus}
+\addtocontents{ard}{\protect\addvspace{\codclr}}
+\begin{ardcode}
+ \acaption{First 10 lines of the firmware for Modbus Energy Meter
+ experiment}
+ {First 10 lines of the firmware for Modbus. Available at
+ \LocMODardbrief{send\_packet.ino}.}
+ \label{ard:firmware-modbus}
+ \lstinputlisting[firstline=1,lastline=10]
+ {\LocMODardcode/send_packet.ino}
+\end{ardcode}
+
\subsection{Julia Code}
\label{sec:modbus-julia-code}
\addtocontents{juliad}{\protect\addvspace{\codclr}}
@@ -821,6 +926,90 @@ We invite the experts to contribute the revised version of the code. {\LocMODjuliacode/readPower.jl}
\end{juliacode}
+
+\section{Manifestation of Modbus protocol through OpenModelica}
+The objective of this experiment is to make the user acquainted with
+the demonstration of Modbus protocol through the OpenModelica-Arduino toolbox.
+It gives an insight into how to acquire readings from the energy meter and interpret them accordingly. As explained in \secref{sec:energy-meter},
+an energy meter is a device that gives us different electrical parameters, including voltage, current, and power, consumed by a device. Here, we aim to obtain these values using the Python-Arduino toolbox. For data transmission, we have used an RS485 module.
+
+OpenModelica is used for giving the required parameters to \arduino. For
+example, the user will tell the required slave address to be accessed
+and the number of registers to be read from or written to. Here,
+\arduino\ acts as a master and energy meter as a slave. Therefore,
+referring to a particular slave address will refer to the registers
+that hold the desired electrical parameters (current, voltage, power, etc.), which we want to read from the energy meter.
+
+In this experiment, \arduino\ is connected to the energy meter via an RS485 module which facilitates long-distance communication.
+\scilab\ sends the RQ to the \arduino\, which in turn sends it to the
+energy meter. The energy meter then accesses the values in the
+required addresses in its memory and transfers them back. This again
+is in the form of another packet called RP. In this packet, the data is stored in a little-endian hexadecimal format. Thus, we make use of IEEE 754 to obtain the decimal value from this data.
+
+\paragraph{Note: } The OpenModelica models presented in this section were tested on the older versions. Now, these codes may require minor changes in
+the newer versions. We invite the experts to contribute the revised version of the code.
+
+
+\subsection{Software for the experiment}
+Apart from the OpenModelica-Arduino toolbox, the software for this experiment comprises two parts:
+\begin{enumerate}
+\item Firmware for \arduino: This firmware is needed to communicate
+with Julia (using serial interface), and with RS485 module (using
+Software Serial interface). Control logic to enable receive and
+transmit modes of MAX485 chip is also present in this firmware. \figref{fig:modbus-firmware} demonstrates the overall implementation of this firmware.
+
+\begin{figure}
+ \centering
+ \includegraphics[width=\lgfig]{\LocMODfig/arduino_code_flowchart.png}
+ \caption{Flowchart of Arduino firmware}
+ \label{fig:modbus-firmware}
+\end{figure}
+
+\item OpenModelica model: This model requests the parameters in the energy meter
+by sending an RQ to \arduino\ from OpenModelica. Then it waits till
+an RP is available from the \arduino. After receiving the RP, it extracts
+the data from this packet and converts it into IEEE
+754 floating-point format. The overall implementation is being
+described below:
+\begin {enumerate}
+\item Frame an RQ to be sent to the energy meter (slave) in ASCII coded decimal
+format.
+\item Send the RQ serially to \arduino.
+\item Let \arduino\ send the RQ to the energy meter via RS485 module.
+\item Let the energy meter send the RP to \arduino\ via RS485 module.
+\item Read the RP available on \arduino.
+\item Extract the data stored in holding registers from the RP.
+\item Assuming this data to be stored in little-endian format,
+convert this data in floating-point values using IEEE 754 standard.
+\item Display the value in output window of OMEdit.
+\end{enumerate}
+\figref{fig:flow-chart} presents the sequence in which the steps mentioned above are executed.
+\begin{figure}
+ \centering
+ \includegraphics[width=\hgfig]{\LocMODfig/flowchart.png}
+ \caption{Flowchart of the steps happening in OpenModelica model}
+ \label{fig:flow-chart}
+\end{figure}
+\end{enumerate}
+
+
+\section{Reading the electrical parameters from OpenModelica}
+\subsection{Reading the electrical parameters}
+In this section, we will show how to access the three parameters (voltage, current, and active power) in the energy meter. As discussed above, we will send an RQ from OpenModelica to \arduino. Subsequently, \arduino\ will provide us with an RP, which can be decoded to extract the desired parameter. The reader should go through the instructions given in \secref{sec:OpenModelica-start} before getting started.
+
+\subsection{Arduino Firmware}
+\label{sec:firmware-modbus}
+\addtocontents{ard}{\protect\addvspace{\codclr}}
+\begin{ardcode}
+ \acaption{First 10 lines of the firmware for Modbus Energy Meter
+ experiment}
+ {First 10 lines of the firmware for Modbus. Available at
+ \LocMODardbrief{send\_packet.ino}.}
+ \label{ard:firmware-modbus}
+ \lstinputlisting[firstline=1,lastline=10]
+ {\LocMODardcode/send_packet.ino}
+\end{ardcode}
+
\subsection{OpenModelica Code}
\label{sec:modbus-OpenModelica-code}
\addtocontents{OpenModelicad}{\protect\addvspace{\codclr}}
|