diff options
author | SudhakarKuma | 2021-05-06 13:19:56 +0530 |
---|---|---|
committer | SudhakarKuma | 2021-05-06 13:19:56 +0530 |
commit | e11e5e3e54c33afa1ea55fdec37744f953400a63 (patch) | |
tree | f6a246d7ec3ff69d95fe6f19448d9b989524af11 | |
parent | a45cdd298a50b450785375d1f1394be0d60444b1 (diff) | |
download | FLOSS-Arduino-Book-e11e5e3e54c33afa1ea55fdec37744f953400a63.tar.gz FLOSS-Arduino-Book-e11e5e3e54c33afa1ea55fdec37744f953400a63.tar.bz2 FLOSS-Arduino-Book-e11e5e3e54c33afa1ea55fdec37744f953400a63.zip |
Add NM comments
-rw-r--r-- | floss-arduino.OpenModelicad | 2 | ||||
-rw-r--r-- | floss-arduino.ard | 4 | ||||
-rw-r--r-- | floss-arduino.aux | 132 | ||||
-rw-r--r-- | floss-arduino.cod | 2 | ||||
-rw-r--r-- | floss-arduino.fdb_latexmk | 69 | ||||
-rw-r--r-- | floss-arduino.fls | 3 | ||||
-rw-r--r-- | floss-arduino.juliad | 2 | ||||
-rw-r--r-- | floss-arduino.lof | 11 | ||||
-rw-r--r-- | floss-arduino.log | 130 | ||||
-rw-r--r-- | floss-arduino.pdf | bin | 21277057 -> 44929885 bytes | |||
-rw-r--r-- | floss-arduino.thm | 14 | ||||
-rw-r--r-- | floss-arduino.toc | 18 | ||||
-rw-r--r-- | user-code/dcmotor/dcmotor.tex | 9 | ||||
-rw-r--r-- | user-code/dcmotor/figures/uno-pwm.jpg | bin | 0 -> 23651746 bytes |
14 files changed, 210 insertions, 186 deletions
diff --git a/floss-arduino.OpenModelicad b/floss-arduino.OpenModelicad index 6df7eb1..b8a8c48 100644 --- a/floss-arduino.OpenModelicad +++ b/floss-arduino.OpenModelicad @@ -22,7 +22,7 @@ \contentsline {section}{\numberline {9.{4}}Rotating the servomotor to a degree specified by the potentiometer}{194}% \addvspace {10pt} \contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{222}% -\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{222}% +\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{223}% \contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{223}% \addvspace {10pt} \contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{242}% diff --git a/floss-arduino.ard b/floss-arduino.ard index b03b254..b2e6690 100644 --- a/floss-arduino.ard +++ b/floss-arduino.ard @@ -21,8 +21,8 @@ \contentsline {section}{\numberline {9.{3}}Rotating the servomotor in increments}{176}% \contentsline {section}{\numberline {9.{4}}Rotating the servomotor through the potentiometer}{176}% \addvspace {10pt} -\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{201}% +\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{202}% \contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{202}% -\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{202}% +\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{203}% \addvspace {10pt} \contentsline {section}{\numberline {11.{1}}First 10 lines of the firmware for Modbus Energy Meter experiment}{237}% diff --git a/floss-arduino.aux b/floss-arduino.aux index 43f3e98..bbd3b2e 100644 --- a/floss-arduino.aux +++ b/floss-arduino.aux @@ -1251,28 +1251,30 @@ \@writefile{toc}{\contentsline {section}{\numberline {10.1}Preliminaries}{197}\protected@file@percent } \@writefile{lof}{\contentsline {figure}{\numberline {10.1}{\ignorespaces L293D motor driver board\relax }}{198}\protected@file@percent } \newlabel{fig:motordriverboard}{{10.1}{198}} -\@writefile{lof}{\contentsline {figure}{\numberline {10.2}{\ignorespaces A schematic of DC motor connections\relax }}{199}\protected@file@percent } -\newlabel{fig:dcm-schematic}{{10.2}{199}} -\@writefile{toc}{\contentsline {section}{\numberline {10.2}Controlling the DC motor from Arduino}{199}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.2.1}Controlling the DC motor}{199}\protected@file@percent } -\newlabel{sec:dcm-ard}{{10.2.1}{199}} -\@writefile{toc}{\contentsline {paragraph}{Note:}{199}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {10.3}{\ignorespaces How to connect the DC motor to the Arduino Uno\ board\relax }}{200}\protected@file@percent } -\newlabel{fig:dcmotorconn}{{10.3}{200}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{200}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{200}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {10.2}{\ignorespaces PWM pins on an Arduino Uno\ board\relax }}{199}\protected@file@percent } +\newlabel{fig:uno-pwm}{{10.2}{199}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.3}{\ignorespaces A schematic of DC motor connections\relax }}{199}\protected@file@percent } +\newlabel{fig:dcm-schematic}{{10.3}{199}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.4}{\ignorespaces How to connect the DC motor to the Arduino Uno\ board\relax }}{200}\protected@file@percent } +\newlabel{fig:dcmotorconn}{{10.4}{200}} +\@writefile{toc}{\contentsline {section}{\numberline {10.2}Controlling the DC motor from Arduino}{200}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.2.1}Controlling the DC motor}{200}\protected@file@percent } +\newlabel{sec:dcm-ard}{{10.2.1}{200}} +\@writefile{toc}{\contentsline {paragraph}{Note:}{200}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{200}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{201}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{201}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash both/dcmotor\textendash both.ino}{201}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash both/dcmotor\textendash both.ino}{201}\protected@file@percent } \@writefile{thm}{\contentsline {egmass}{{Exercise}{10.{1}}{}}{201}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.2.2}Arduino Code}{201}\protected@file@percent } -\newlabel{sec:dcmotor-arduino-code}{{10.2.2}{201}} +\@writefile{toc}{\contentsline {subsection}{\numberline {10.2.2}Arduino Code}{202}\protected@file@percent } +\newlabel{sec:dcmotor-arduino-code}{{10.2.2}{202}} \@writefile{ard}{\addvspace {10pt}} -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{1}}{}}{201}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{201}\protected@file@percent } -\newlabel{127@xvr}{{}{201}} -\newlabel{127@vr}{{}{201}} -\newlabel{ard:dcmotor-clock}{{10.{1}}{201}} +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{1}}{}}{202}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{202}\protected@file@percent } +\newlabel{127@xvr}{{}{202}} +\newlabel{127@vr}{{}{202}} +\newlabel{ard:dcmotor-clock}{{10.{1}}{202}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash clock/dcmotor\textendash clock.ino}{202}\protected@file@percent } \@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{2}}{}}{202}\protected@file@percent } \@writefile{ard}{\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{202}\protected@file@percent } @@ -1280,12 +1282,12 @@ \newlabel{128@vr}{{}{202}} \newlabel{ard:dcmotor-both}{{10.{2}}{202}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash both/dcmotor\textendash both.ino}{202}\protected@file@percent } -\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{3}}{}}{202}\protected@file@percent } -\@writefile{ard}{\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{202}\protected@file@percent } -\newlabel{129@xvr}{{}{202}} -\newlabel{129@vr}{{}{202}} -\newlabel{ard:dcmotor-loop}{{10.{3}}{202}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash loop/dcmotor\textendash loop.ino}{202}\protected@file@percent } +\@writefile{thm}{\contentsline {ardmass}{{Arduino Code}{10.{3}}{}}{203}\protected@file@percent } +\@writefile{ard}{\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{203}\protected@file@percent } +\newlabel{129@xvr}{{}{203}} +\newlabel{129@vr}{{}{203}} +\newlabel{ard:dcmotor-loop}{{10.{3}}{203}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor\textendash loop/dcmotor\textendash loop.ino}{203}\protected@file@percent } \@writefile{toc}{\contentsline {section}{\numberline {10.3}Controlling the DC motor from Scilab}{203}\protected@file@percent } \newlabel{sec:dcm-sci}{{10.3}{203}} \@writefile{toc}{\contentsline {subsection}{\numberline {10.3.1}Controlling the DC motor}{203}\protected@file@percent } @@ -1293,13 +1295,13 @@ \@writefile{lot}{\contentsline {table}{\numberline {10.1}{\ignorespaces Values in the Scilab\ command for different H-Bridge circuits\relax }}{204}\protected@file@percent } \newlabel{table:convention}{{10.1}{204}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{204}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{204}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{204}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{204}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{205}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{205}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash clock.sce}{205}\protected@file@percent } \@writefile{toc}{\contentsline {paragraph}{Note:}{205}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash both.sce}{205}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash both.sce}{205}\protected@file@percent } -\@writefile{thm}{\contentsline {egmass}{{Exercise}{10.{2}}{}}{205}\protected@file@percent } +\@writefile{thm}{\contentsline {egmass}{{Exercise}{10.{2}}{}}{206}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {10.3.2}Scilab Code}{206}\protected@file@percent } \newlabel{sec:dcmotor-scilab-code}{{10.3.2}{206}} \@writefile{cod}{\addvspace {10pt}} @@ -1315,42 +1317,42 @@ \newlabel{131@vr}{{}{206}} \newlabel{sci:dcmotor-both}{{10.{2}}{206}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash both.sce}{206}\protected@file@percent } -\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{3}}{}}{206}\protected@file@percent } -\@writefile{cod}{\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{206}\protected@file@percent } -\newlabel{132@xvr}{{}{206}} -\newlabel{132@vr}{{}{206}} -\newlabel{sci:dcmotor-loop}{{10.{3}}{206}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash loop.sce}{206}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {10.4}{\ignorespaces Control of DC motor for a specified time from Xcos}}{207}\protected@file@percent } -\newlabel{134@xvr}{{}{207}} -\newlabel{134@vr}{{}{207}} -\newlabel{fig:dcmotor-clock}{{10.4}{207}} +\@writefile{thm}{\contentsline {codemass}{{Scilab Code}{10.{3}}{}}{207}\protected@file@percent } +\@writefile{cod}{\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{207}\protected@file@percent } +\newlabel{132@xvr}{{}{207}} +\newlabel{132@vr}{{}{207}} +\newlabel{sci:dcmotor-loop}{{10.{3}}{207}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor\textendash loop.sce}{207}\protected@file@percent } \@writefile{toc}{\contentsline {section}{\numberline {10.4}Controlling the DC Motor from Xcos}{207}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {10.5}{\ignorespaces Control of DC motor for a specified time from Xcos}}{208}\protected@file@percent } +\newlabel{134@xvr}{{}{208}} +\newlabel{134@vr}{{}{208}} +\newlabel{fig:dcmotor-clock}{{10.5}{208}} \@writefile{lot}{\contentsline {table}{\numberline {10.2}{\ignorespaces Xcos parameters to drive the DC motor for a specified time\relax }}{208}\protected@file@percent } \newlabel{tab:dcmotor-clock}{{10.2}{208}} \newlabel{135@xvr}{{}{208}} \newlabel{135@vr}{{}{208}} -\@writefile{lof}{\contentsline {figure}{\numberline {10.5}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{208}\protected@file@percent } -\newlabel{137@xvr}{{}{208}} -\newlabel{137@vr}{{}{208}} -\newlabel{fig:dcmotor-both}{{10.5}{208}} +\@writefile{lof}{\contentsline {figure}{\numberline {10.6}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{209}\protected@file@percent } +\newlabel{137@xvr}{{}{209}} +\newlabel{137@vr}{{}{209}} +\newlabel{fig:dcmotor-both}{{10.6}{209}} \@writefile{lot}{\contentsline {table}{\numberline {10.3}{\ignorespaces Xcos parameters to drive the DC motor in forward and reverse directions\relax }}{209}\protected@file@percent } \newlabel{tab:dcmotor-both}{{10.3}{209}} \newlabel{138@xvr}{{}{209}} \newlabel{138@vr}{{}{209}} -\@writefile{thm}{\contentsline {egmass}{{Exercise}{10.{3}}{}}{209}\protected@file@percent } -\@writefile{lof}{\contentsline {figure}{\numberline {10.6}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{210}\protected@file@percent } +\@writefile{lof}{\contentsline {figure}{\numberline {10.7}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{210}\protected@file@percent } \newlabel{140@xvr}{{}{210}} \newlabel{140@vr}{{}{210}} -\newlabel{fig:dcmotor-loop}{{10.6}{210}} +\newlabel{fig:dcmotor-loop}{{10.7}{210}} +\@writefile{thm}{\contentsline {egmass}{{Exercise}{10.{3}}{}}{210}\protected@file@percent } \@writefile{toc}{\contentsline {section}{\numberline {10.5}Controlling the DC Motor from Python}{210}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {10.5.1}Controlling the DC Motor}{210}\protected@file@percent } -\@writefile{toc}{\contentsline {paragraph}{Note:}{210}\protected@file@percent } \@writefile{lot}{\contentsline {table}{\numberline {10.4}{\ignorespaces Xcos parameters to drive the DC motor in a loop\relax }}{211}\protected@file@percent } \newlabel{tab:dcmotor-loop}{{10.4}{211}} \newlabel{141@xvr}{{}{211}} \newlabel{141@vr}{{}{211}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash clock.py}{211}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{211}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash clock.py}{212}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash clock.py}{212}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash clock.py}{212}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor\textendash clock.py}{212}\protected@file@percent } @@ -1385,7 +1387,7 @@ \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash clock.jl}{217}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash clock.jl}{217}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash clock.jl}{217}\protected@file@percent } -\@writefile{toc}{\contentsline {paragraph}{Note:}{217}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{218}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash both.jl}{218}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash both.jl}{218}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {10.6.2}Julia Code}{218}\protected@file@percent } @@ -1396,29 +1398,29 @@ \newlabel{145@xvr}{{}{218}} \newlabel{145@vr}{{}{218}} \newlabel{julia:dcmotor-clock}{{10.{1}}{218}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash clock.jl}{218}\protected@file@percent } -\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{2}}{}}{218}\protected@file@percent } -\@writefile{juliad}{\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{218}\protected@file@percent } -\newlabel{146@xvr}{{}{218}} -\newlabel{146@vr}{{}{218}} -\newlabel{julia:dcmotor-both}{{10.{2}}{218}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash both.jl}{218}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash clock.jl}{219}\protected@file@percent } +\@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{2}}{}}{219}\protected@file@percent } +\@writefile{juliad}{\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{219}\protected@file@percent } +\newlabel{146@xvr}{{}{219}} +\newlabel{146@vr}{{}{219}} +\newlabel{julia:dcmotor-both}{{10.{2}}{219}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash both.jl}{219}\protected@file@percent } \@writefile{thm}{\contentsline {juliamass}{{Julia Code}{10.{3}}{}}{219}\protected@file@percent } \@writefile{juliad}{\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{219}\protected@file@percent } \newlabel{147@xvr}{{}{219}} \newlabel{147@vr}{{}{219}} \newlabel{julia:dcmotor-loop}{{10.{3}}{219}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor\textendash loop.jl}{219}\protected@file@percent } -\@writefile{toc}{\contentsline {section}{\numberline {10.7}Controlling the DC Motor from OpenModelica}{219}\protected@file@percent } -\@writefile{toc}{\contentsline {subsection}{\numberline {10.7.1}Controlling the DC Motor}{219}\protected@file@percent } -\@writefile{toc}{\contentsline {paragraph}{Note:}{219}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash clock.mo}{220}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash clock.mo}{220}\protected@file@percent } +\@writefile{toc}{\contentsline {section}{\numberline {10.7}Controlling the DC Motor from OpenModelica}{220}\protected@file@percent } +\@writefile{toc}{\contentsline {subsection}{\numberline {10.7.1}Controlling the DC Motor}{220}\protected@file@percent } +\@writefile{toc}{\contentsline {paragraph}{Note:}{220}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash clock.mo}{220}\protected@file@percent } \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash clock.mo}{221}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash clock.mo}{221}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash clock.mo}{221}\protected@file@percent } \@writefile{toc}{\contentsline {paragraph}{Note:}{221}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash both.mo}{221}\protected@file@percent } -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash both.mo}{221}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash both.mo}{222}\protected@file@percent } +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash both.mo}{222}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {10.7.2}OpenModelica Code}{222}\protected@file@percent } \newlabel{sec:dcmotor-OpenModelica-code}{{10.7.2}{222}} \@writefile{OpenModelicad}{\addvspace {10pt}} @@ -1426,10 +1428,10 @@ \@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{222}\protected@file@percent } \newlabel{OpenModelica:dcmotor-clock}{{10.{1}}{222}} \@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash clock.mo}{222}\protected@file@percent } -\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{2}}{}}{222}\protected@file@percent } -\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{222}\protected@file@percent } -\newlabel{OpenModelica:dcmotor-both}{{10.{2}}{222}} -\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash both.mo}{222}\protected@file@percent } +\@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{2}}{}}{223}\protected@file@percent } +\@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{223}\protected@file@percent } +\newlabel{OpenModelica:dcmotor-both}{{10.{2}}{223}} +\@writefile{lol}{\contentsline {lstlisting}{/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmotor\textendash both.mo}{223}\protected@file@percent } \@writefile{thm}{\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{3}}{}}{223}\protected@file@percent } \@writefile{OpenModelicad}{\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{223}\protected@file@percent } \newlabel{OpenModelica:dcmotor-loop}{{10.{3}}{223}} diff --git a/floss-arduino.cod b/floss-arduino.cod index cf31502..82da4b0 100644 --- a/floss-arduino.cod +++ b/floss-arduino.cod @@ -26,7 +26,7 @@ \addvspace {10pt} \contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{206}% \contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{206}% -\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{206}% +\contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{207}% \addvspace {10pt} \contentsline {section}{\numberline {11.{1}}First 10 lines of the function for scifunc block}{239}% \contentsline {section}{\numberline {11.{2}}First 10 lines of the code for Single Phase Current Output}{239}% diff --git a/floss-arduino.fdb_latexmk b/floss-arduino.fdb_latexmk index be3c092..7286995 100644 --- a/floss-arduino.fdb_latexmk +++ b/floss-arduino.fdb_latexmk @@ -1,19 +1,19 @@ # Fdb version 3 -["bibtex floss-arduino"] 1620197856 "floss-arduino.aux" "floss-arduino.bbl" "floss-arduino" 1620197995 +["bibtex floss-arduino"] 1620287260 "floss-arduino.aux" "floss-arduino.bbl" "floss-arduino" 1620287272 "/usr/share/texlive/texmf-dist/bibtex/bst/base/unsrt.bst" 1292289607 18030 1376b4b231b50c66211e47e42eda2875 "" "bibliography.bib" 1620178718 4558 9df9b0b27759d4cfc637a7b5fff89181 "" - "floss-arduino.aux" 1620197977 142055 3c9adbe1f02b38171411d8f9eb5e29d6 "pdflatex" + "floss-arduino.aux" 1620287270 142237 63350a91a798c036aa5a1d0bcdf4f38e "pdflatex" (generated) "floss-arduino.bbl" "floss-arduino.blg" -["makeindex floss-arduino.idx"] 1620196688 "floss-arduino.idx" "floss-arduino.ind" "floss-arduino" 1620197995 - "floss-arduino.idx" 1620197977 187 3ea6c935c61035ccb5c169fb34e1da05 "pdflatex" +["makeindex floss-arduino.idx"] 1620287150 "floss-arduino.idx" "floss-arduino.ind" "floss-arduino" 1620287272 + "floss-arduino.idx" 1620287270 187 3ea6c935c61035ccb5c169fb34e1da05 "pdflatex" (generated) - "floss-arduino.ilg" "floss-arduino.ind" -["pdflatex"] 1620197856 "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" "floss-arduino" 1620197995 + "floss-arduino.ilg" +["pdflatex"] 1620287260 "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" "floss-arduino" 1620287272 "/etc/texmf/web2c/texmf.cnf" 1602253014 475 c0e671620eb5563b2130f56340a5fde8 "" - "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.aux" 1620197977 142055 3c9adbe1f02b38171411d8f9eb5e29d6 "" + "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.aux" 1620287270 142237 63350a91a798c036aa5a1d0bcdf4f38e "" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" 1620092361 4558 98aa7ac618326a3037ae9c9d0000888c "" "/usr/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc" 1165713224 4850 80dc9bab7f31fb78a000ccfed0e27cab "" "/usr/share/texlive/texmf-dist/fonts/map/fontname/texfonts.map" 1577235249 3524 cb3e574dea2d1052e39280babc910dc8 "" @@ -138,18 +138,18 @@ "/usr/share/texmf/web2c/texmf.cnf" 1581979058 38841 ce3692aa899bb693b90b87eaa5d4d84e "" "/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map" 1604540077 4770781 1ed1abab22da9c3e2cc82e4db562318b "" "/var/lib/texmf/web2c/pdftex/pdflatex.fmt" 1604540101 8258883 e8330f8aa4fe7c6cdcf08bf0b72237fd "" - "floss-arduino.OpenModelicad" 1620197977 2294 40e2e23c39a022be21dea10d27626604 "pdflatex" - "floss-arduino.ard" 1620197977 2072 2ab0f4ce6f60daa81138bac0e30a2c4f "pdflatex" - "floss-arduino.aux" 1620197977 142055 3c9adbe1f02b38171411d8f9eb5e29d6 "pdflatex" - "floss-arduino.bbl" 1620197856 2925 895f098dadb71828a3cfe277ebaff5f6 "bibtex floss-arduino" - "floss-arduino.cod" 1620197977 2496 2a657aa8c5a8852d23c78dfe3546dc54 "pdflatex" - "floss-arduino.ind" 1620196688 228 9a9af8565fd0a0b7fd9f2f6d781fe4c6 "makeindex floss-arduino.idx" - "floss-arduino.juliad" 1620197977 2328 277569d91626c96de9945b6fe3d5379e "pdflatex" - "floss-arduino.lof" 1620197977 13301 0038d444132c4fe8013d31e15adbeaa2 "pdflatex" - "floss-arduino.lot" 1620197977 3596 f36d068cb1378a0e9d7cbc9fdc57a6f9 "pdflatex" - "floss-arduino.pyd" 1620197977 2323 ee68eadedfb59a7c5a12563da02548bb "pdflatex" + "floss-arduino.OpenModelicad" 1620287270 2294 40e2e23c39a022be21dea10d27626604 "pdflatex" + "floss-arduino.ard" 1620287270 2072 6fcdcb0b69babc6392e16f0208a58632 "pdflatex" + "floss-arduino.aux" 1620287270 142237 63350a91a798c036aa5a1d0bcdf4f38e "pdflatex" + "floss-arduino.bbl" 1620287260 2925 895f098dadb71828a3cfe277ebaff5f6 "bibtex floss-arduino" + "floss-arduino.cod" 1620287270 2496 22ab789079bdf6acae4b3630dfd27ad6 "pdflatex" + "floss-arduino.ind" 1620287151 228 9a9af8565fd0a0b7fd9f2f6d781fe4c6 "makeindex floss-arduino.idx" + "floss-arduino.juliad" 1620287270 2328 277569d91626c96de9945b6fe3d5379e "pdflatex" + "floss-arduino.lof" 1620287270 13406 2ef0cbf2674eb7b63cfaa7e439bd1043 "pdflatex" + "floss-arduino.lot" 1620287270 3596 f36d068cb1378a0e9d7cbc9fdc57a6f9 "pdflatex" + "floss-arduino.pyd" 1620287270 2323 ee68eadedfb59a7c5a12563da02548bb "pdflatex" "floss-arduino.tex" 1620092361 4558 98aa7ac618326a3037ae9c9d0000888c "" - "floss-arduino.toc" 1620197977 15922 13faa7d0f6a781f90ab6a8a65d3a17c8 "pdflatex" + "floss-arduino.toc" 1620287270 15922 e757821565ea1e9edc2a9d4593ce0f03 "pdflatex" "suppl/acr.tex" 1615963613 1926 fd6481c4666ee0d60331b7d4cc24b645 "" "suppl/intro.tex" 1615963613 3437 b09628cf9e20fe17fa65b37a5997653c "" "suppl/styles.tex" 1615963613 8143 aa3280f0b59c8631fe8ec44895c9e871 "" @@ -167,19 +167,20 @@ "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.tex" 1620197952 63900 916dd2ecfc8840b3dd0729045034a511 "" + "user-code/dcmotor/dcmotor.tex" 1620287256 64088 618786540fc53c247caaa06709b88435 "" "user-code/dcmotor/figures/dc_motor_description.jpg" 1615963613 694440 a424c50ad327bc459a4ab4808f398262 "" - "user-code/dcmotor/figures/dcmotor-both.png" 1615963613 32214 a1429a4cc0aee2d50d6c8b886530f9e9 "" - "user-code/dcmotor/figures/dcmotor-clock.png" 1615963613 26079 07178ea354fae535528fba334b484540 "" - "user-code/dcmotor/figures/dcmotor-loop.png" 1615963613 28069 bc29d801afcbd2b0dcf5f9b69f21a4d9 "" + "user-code/dcmotor/figures/dcmotor-both.png" 1620285295 107985 6c7508b957f7980eea96e374fc266250 "" + "user-code/dcmotor/figures/dcmotor-clock.png" 1620285333 127858 2fa567ed8934ca422ee86d50d1d5545f "" + "user-code/dcmotor/figures/dcmotor-loop.png" 1620285372 105062 026f713ad0fe348d43acd5f25ba6f933 "" "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" 1620287023 23651746 2ec5a0eed097b7f598b0c4ea884977a9 "" "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" 1620088994 828 45f26772b950f2cda439c1e36a21b3c8 "" - "user-code/dcmotor/python/dcmotor-loop.py" 1620088994 963 a3a641fe67fe45a93a7b5c1aafcfab56 "" + "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 "" @@ -389,18 +390,18 @@ "user-code/thermistor/scilab/therm-read.sce" 1619998644 399 3d4d94a3003c16014a51200a9b472b66 "" "user-code/thermistor/thermistor.tex" 1620094206 41317 2326a2c871f17f79a710f7c64b8a31e5 "" (generated) - "floss-arduino.log" - "floss-arduino.thm" - "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.log" + "floss-arduino.lot" "floss-arduino.idx" + "floss-arduino.juliad" + "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.log" + "floss-arduino.pyd" "floss-arduino.aux" + "floss-arduino.lof" + "floss-arduino.thm" + "floss-arduino.log" "floss-arduino.ard" - "floss-arduino.lot" - "floss-arduino.pdf" - "floss-arduino.cod" - "floss-arduino.pyd" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" - "floss-arduino.lof" - "floss-arduino.juliad" - "floss-arduino.OpenModelicad" + "floss-arduino.pdf" "floss-arduino.toc" + "floss-arduino.OpenModelicad" + "floss-arduino.cod" diff --git a/floss-arduino.fls b/floss-arduino.fls index c14abc0..b8065d5 100644 --- a/floss-arduino.fls +++ b/floss-arduino.fls @@ -1022,6 +1022,9 @@ INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/dcmotor.tex INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor_board.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor_board.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor_board.png +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/uno-pwm.jpg +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/uno-pwm.jpg +INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/uno-pwm.jpg INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/schematic.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/schematic.png INPUT /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/schematic.png diff --git a/floss-arduino.juliad b/floss-arduino.juliad index 4e35cc1..fccaf6e 100644 --- a/floss-arduino.juliad +++ b/floss-arduino.juliad @@ -22,7 +22,7 @@ \contentsline {section}{\numberline {9.{4}}Rotating the servomotor to a degree specified by the potentiometer}{191}% \addvspace {10pt} \contentsline {section}{\numberline {10.{1}}Rotating the DC motor}{218}% -\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{218}% +\contentsline {section}{\numberline {10.{2}}Rotating the DC motor in both directions}{219}% \contentsline {section}{\numberline {10.{3}}Rotating the DC motor in both directions in a loop}{219}% \addvspace {10pt} \contentsline {section}{\numberline {11.{1}}Code for Single Phase Current Output}{241}% diff --git a/floss-arduino.lof b/floss-arduino.lof index 18d03c3..0be5526 100644 --- a/floss-arduino.lof +++ b/floss-arduino.lof @@ -109,11 +109,12 @@ \contentsline {figure}{\numberline {9.4}{\ignorespaces Rotating the servomotor as suggested by the potentiometer}}{183}% \addvspace {10\p@ } \contentsline {figure}{\numberline {10.1}{\ignorespaces L293D motor driver board\relax }}{198}% -\contentsline {figure}{\numberline {10.2}{\ignorespaces A schematic of DC motor connections\relax }}{199}% -\contentsline {figure}{\numberline {10.3}{\ignorespaces How to connect the DC motor to the Arduino Uno\ board\relax }}{200}% -\contentsline {figure}{\numberline {10.4}{\ignorespaces Control of DC motor for a specified time from Xcos}}{207}% -\contentsline {figure}{\numberline {10.5}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{208}% -\contentsline {figure}{\numberline {10.6}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{210}% +\contentsline {figure}{\numberline {10.2}{\ignorespaces PWM pins on an Arduino Uno\ board\relax }}{199}% +\contentsline {figure}{\numberline {10.3}{\ignorespaces A schematic of DC motor connections\relax }}{199}% +\contentsline {figure}{\numberline {10.4}{\ignorespaces How to connect the DC motor to the Arduino Uno\ board\relax }}{200}% +\contentsline {figure}{\numberline {10.5}{\ignorespaces Control of DC motor for a specified time from Xcos}}{208}% +\contentsline {figure}{\numberline {10.6}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{209}% +\contentsline {figure}{\numberline {10.7}{\ignorespaces Xcos control of the DC motor in forward and reverse directions}}{210}% \addvspace {10\p@ } \contentsline {figure}{\numberline {11.1}{\ignorespaces Block diagram representation of the Protocol\relax }}{226}% \contentsline {figure}{\numberline {11.2}{\ignorespaces Master-Slave Query-Response Cycle\relax }}{226}% diff --git a/floss-arduino.log b/floss-arduino.log index 7e19b37..15f46ea 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) 6 MAY 2021 12:49 +This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex 2020.11.5) 6 MAY 2021 13:19 entering extended mode restricted \write18 enabled. %&-line parsing enabled. @@ -2268,53 +2268,64 @@ 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. -[197] [198 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures -/dcmotor_board.png>] +[197] +</home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/uno-pwm.jp +g, id=907, 1653.5376pt x 1239.1896pt> +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 +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.60399pt. + [198 </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=911, 415.5525pt x 467.7475pt> +png, id=912, 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 tic.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/dc -motor/figures/schematic.png used on input line 110. +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=912, 2469.97781pt x 1973.12157pt> +escription.jpg, id=913, 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 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 116. +motor/figures/dc_motor_description.jpg used on input line 123. (pdftex.def) Requested size: 258.36281pt x 206.38603pt. - [199 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/sche -matic.png>] + [199 </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) +ock/dcmotor-clock.ino) [200 </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) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor-cl -ock/dcmotor-clock.ino) [200 </home/fossee/Desktop/floss-scilab-arduino/user-cod -e/dcmotor/figures/dc_motor_description.jpg>] +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) +th/dcmotor-both.ino) [201] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor-cl -ock/dcmotor-clock.ino [201]) +ock/dcmotor-clock.ino) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor-bo -th/dcmotor-both.ino) +th/dcmotor-both.ino [202]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/arduino/dcmotor-lo -op/dcmotor-loop.ino [202]) [203] +op/dcmotor-loop.ino) [203] (/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) +ck.sce) [204] (/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) [204] +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 @@ -2322,31 +2333,29 @@ h.sce) [205] (/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) +h.sce) [206] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/scilab/dcmotor-loo -p.sce [206]) +p.sce) </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor-cl -ock.png, id=941, 807.015pt x 738.76pt> +ock.png, id=942, 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 r-clock.png> Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/dc -motor/figures/dcmotor-clock.png used on input line 524. +motor/figures/dcmotor-clock.png used on input line 531. (pdftex.def) Requested size: 178.86702pt x 163.73386pt. - [207 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmo -tor-clock.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmotor-bo -th.png, id=946, 784.9325pt x 716.6775pt> +th.png, id=943, 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 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 578. +motor/figures/dcmotor-both.png used on input line 585. (pdftex.def) Requested size: 178.86702pt x 163.3123pt. - [208 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmo -tor-both.png>] + [207] [208 </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=951, 775.89874pt x 756.8275pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmot @@ -2354,12 +2363,13 @@ or-loop.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmoto 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 622. +motor/figures/dcmotor-loop.png used on input line 629. (pdftex.def) Requested size: 178.86702pt x 174.47084pt. - [209] [210 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figure -s/dcmotor-loop.png>] + [209 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/figures/dcmo +tor-both.png>] [210 </home/fossee/Desktop/floss-scilab-arduino/user-code/dcmoto +r/figures/dcmotor-loop.png>] [211] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/python/dcmotor-clo -ck.py) [211] +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 @@ -2389,27 +2399,27 @@ k.jl) [217] (/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) +k.jl [218]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-both -.jl [218]) +.jl) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/julia/dcmotor-loop .jl) [219] (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmot +or-clock.mo) [220] +(/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-clock.mo) [220] +or-both.mo) [221] (/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-both.mo) [221] -(/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmot -or-clock.mo) +or-clock.mo [222]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmot -or-both.mo [222]) +or-both.mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/dcmotor/OpenModelica/dcmot or-loop.mo [223])) (./user-code/modbus/modbus.tex [224] Chapter 11. @@ -2417,7 +2427,7 @@ Chapter 11. ] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig1.png, i -d=1008, 672.5125pt x 224.84pt> +d=1009, 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 @@ -2426,7 +2436,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/fig1.png used on input line 71. (pdftex.def) Requested size: 357.73405pt x 119.60033pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig2.png, i -d=1009, 360.34625pt x 375.4025pt> +d=1010, 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 @@ -2435,7 +2445,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/fig2.png used on input line 79. (pdftex.def) Requested size: 178.86702pt x 186.33748pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/fig3.png, i -d=1010, 481.04718pt x 214.55156pt> +d=1011, 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 @@ -2448,7 +2458,7 @@ png (PNG copy)> </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/fig ures/fig2.png (PNG copy)>] [227 </home/fossee/Desktop/floss-scilab-arduino/user -code/modbus/figures/fig3.png (PNG copy)>] [228] [229] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/Full-Set-Up -.png, id=1025, 722.7pt x 542.025pt> +.png, id=1026, 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 @@ -2458,7 +2468,7 @@ dbus/figures/Full-Set-Up.png used on input line 300. (pdftex.def) Requested size: 258.36281pt x 193.77246pt. [230] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/block-diagr -am.PNG, id=1029, 398.23781pt x 255.95625pt> +am.PNG, id=1030, 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 @@ -2467,7 +2477,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/block-diagram.PNG used on input line 329. (pdftex.def) Requested size: 258.36281pt x 166.06104pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/arduino_cod -e_flowchart.png, id=1030, 327.2225pt x 480.79625pt> +e_flowchart.png, id=1031, 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 @@ -2478,7 +2488,7 @@ dbus/figures/arduino_code_flowchart.png used on input line 348. [231 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/Full- Set-Up.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/flowchart.p -ng, id=1035, 482.55281pt x 362.10281pt> +ng, id=1036, 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 @@ -2487,7 +2497,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/flowchart.png used on input line 376. (pdftex.def) Requested size: 357.73405pt x 268.44914pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/current-out -put.png, id=1036, 1028.34187pt x 578.16pt> +put.png, id=1037, 1028.34187pt x 578.16pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/curren t-output.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/current @@ -2496,7 +2506,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/current-output.png used on input line 393. (pdftex.def) Requested size: 397.48499pt x 223.4789pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/current-out -put-setup.jpg, id=1037, 2509.375pt x 1411.2725pt> +put-setup.jpg, id=1038, 2509.375pt x 1411.2725pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/curren t-output-setup.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/current @@ -2505,7 +2515,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/current-output-setup.jpg used on input line 400. (pdftex.def) Requested size: 258.36281pt x 145.29163pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/voltage-out -put.png, id=1038, 1028.34187pt x 578.16pt> +put.png, id=1039, 1028.34187pt x 578.16pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/voltag e-output.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/voltage @@ -2514,7 +2524,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/voltage-output.png used on input line 412. (pdftex.def) Requested size: 397.48499pt x 223.4789pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/voltage-out -put-setup.jpg, id=1039, 2509.375pt x 1411.2725pt> +put-setup.jpg, id=1040, 2509.375pt x 1411.2725pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/voltag e-output-setup.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/voltage @@ -2523,7 +2533,7 @@ Package pdftex.def Info: /home/fossee/Desktop/floss-scilab-arduino/user-code/mo dbus/figures/voltage-output-setup.jpg used on input line 419. (pdftex.def) Requested size: 258.36281pt x 145.29163pt. </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active-powe -r-output.png, id=1040, 1028.34187pt x 578.16pt> +r-output.png, id=1041, 1028.34187pt x 578.16pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active -power-output.png Graphic file (type png) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active- @@ -2535,7 +2545,7 @@ dbus/figures/active-power-output.png used on input line 429. [232 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/block- diagram.PNG>] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active-powe -r-output-setup.jpg, id=1045, 2509.375pt x 1411.2725pt> +r-output-setup.jpg, id=1046, 2509.375pt x 1411.2725pt> File: /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active -power-output-setup.jpg Graphic file (type jpg) <use /home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/active- @@ -2549,7 +2559,7 @@ Underfull \vbox (badness 10000) has occurred while \output is active [] [233 </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/ardui no_code_flowchart.png>] </home/fossee/Desktop/floss-scilab-arduino/user-code/modbus/figures/read_value_ -xcos.png, id=1050, 635.37375pt x 455.7025pt> +xcos.png, id=1051, 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 @@ -2663,10 +2673,10 @@ LaTeX Warning: There were multiply-defined labels. ) Here is how much of TeX's memory you used: - 9885 strings out of 481239 - 224169 string characters out of 5920377 - 750688 words of memory out of 5000000 - 24280 multiletter control sequences out of 15000+600000 + 9892 strings out of 481239 + 224607 string characters out of 5920377 + 733688 words of memory out of 5000000 + 24286 multiletter control sequences out of 15000+600000 554670 words of font info for 69 fonts, out of 8000000 for 9000 1143 hyphenation exceptions out of 8191 50i,11n,53p,363b,1777s stack positions out of 5000i,500n,10000p,200000b,80000s @@ -2693,10 +2703,10 @@ sr/share/texmf/fonts/type1/public/cm-super/sfrm1000.pfb></usr/share/texmf/fonts /type1/public/cm-super/sfrm1095.pfb></usr/share/texmf/fonts/type1/public/cm-sup er/sfsi1095.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfss1095.pfb></us r/share/texmf/fonts/type1/public/cm-super/sfti1095.pfb> -Output written on floss-arduino.pdf (270 pages, 21277057 bytes). +Output written on floss-arduino.pdf (270 pages, 44929885 bytes). PDF statistics: - 1188 PDF objects out of 1200 (max. 8388607) + 1189 PDF objects out of 1200 (max. 8388607) 694 compressed objects within 7 object streams 0 named destinations out of 1000 (max. 500000) - 581 words of extra memory for PDF output out of 10000 (max. 10000000) + 586 words of extra memory for PDF output out of 10000 (max. 10000000) diff --git a/floss-arduino.pdf b/floss-arduino.pdf Binary files differindex fcac50e..b07b3d7 100644 --- a/floss-arduino.pdf +++ b/floss-arduino.pdf diff --git a/floss-arduino.thm b/floss-arduino.thm index 81f371c..d2da64d 100644 --- a/floss-arduino.thm +++ b/floss-arduino.thm @@ -92,22 +92,22 @@ \contentsline {OpenModelicamass}{{OpenModelica Code}{9.{3}}{}}{193}% \contentsline {OpenModelicamass}{{OpenModelica Code}{9.{4}}{}}{194}% \contentsline {egmass}{{Exercise}{10.{1}}{}}{201}% -\contentsline {ardmass}{{Arduino Code}{10.{1}}{}}{201}% +\contentsline {ardmass}{{Arduino Code}{10.{1}}{}}{202}% \contentsline {ardmass}{{Arduino Code}{10.{2}}{}}{202}% -\contentsline {ardmass}{{Arduino Code}{10.{3}}{}}{202}% -\contentsline {egmass}{{Exercise}{10.{2}}{}}{205}% +\contentsline {ardmass}{{Arduino Code}{10.{3}}{}}{203}% +\contentsline {egmass}{{Exercise}{10.{2}}{}}{206}% \contentsline {codemass}{{Scilab Code}{10.{1}}{}}{206}% \contentsline {codemass}{{Scilab Code}{10.{2}}{}}{206}% -\contentsline {codemass}{{Scilab Code}{10.{3}}{}}{206}% -\contentsline {egmass}{{Exercise}{10.{3}}{}}{209}% +\contentsline {codemass}{{Scilab Code}{10.{3}}{}}{207}% +\contentsline {egmass}{{Exercise}{10.{3}}{}}{210}% \contentsline {pymass}{{Python Code}{10.{1}}{}}{213}% \contentsline {pymass}{{Python Code}{10.{2}}{}}{214}% \contentsline {pymass}{{Python Code}{10.{3}}{}}{215}% \contentsline {juliamass}{{Julia Code}{10.{1}}{}}{218}% -\contentsline {juliamass}{{Julia Code}{10.{2}}{}}{218}% +\contentsline {juliamass}{{Julia Code}{10.{2}}{}}{219}% \contentsline {juliamass}{{Julia Code}{10.{3}}{}}{219}% \contentsline {OpenModelicamass}{{OpenModelica Code}{10.{1}}{}}{222}% -\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{2}}{}}{222}% +\contentsline {OpenModelicamass}{{OpenModelica Code}{10.{2}}{}}{223}% \contentsline {OpenModelicamass}{{OpenModelica Code}{10.{3}}{}}{223}% \contentsline {ardmass}{{Arduino Code}{11.{1}}{}}{237}% \contentsline {codemass}{{Scilab Code}{11.{1}}{}}{239}% diff --git a/floss-arduino.toc b/floss-arduino.toc index e8a7c50..9209b15 100644 --- a/floss-arduino.toc +++ b/floss-arduino.toc @@ -179,10 +179,10 @@ \contentsline {subsection}{\numberline {9.7.2}OpenModelica Code}{192}% \contentsline {chapter}{\numberline {10}Controlling a DC motor}{197}% \contentsline {section}{\numberline {10.1}Preliminaries}{197}% -\contentsline {section}{\numberline {10.2}Controlling the DC motor from Arduino}{199}% -\contentsline {subsection}{\numberline {10.2.1}Controlling the DC motor}{199}% -\contentsline {paragraph}{Note:}{199}% -\contentsline {subsection}{\numberline {10.2.2}Arduino Code}{201}% +\contentsline {section}{\numberline {10.2}Controlling the DC motor from Arduino}{200}% +\contentsline {subsection}{\numberline {10.2.1}Controlling the DC motor}{200}% +\contentsline {paragraph}{Note:}{200}% +\contentsline {subsection}{\numberline {10.2.2}Arduino Code}{202}% \contentsline {section}{\numberline {10.3}Controlling the DC motor from Scilab}{203}% \contentsline {subsection}{\numberline {10.3.1}Controlling the DC motor}{203}% \contentsline {paragraph}{Note:}{203}% @@ -191,17 +191,17 @@ \contentsline {section}{\numberline {10.4}Controlling the DC Motor from Xcos}{207}% \contentsline {section}{\numberline {10.5}Controlling the DC Motor from Python}{210}% \contentsline {subsection}{\numberline {10.5.1}Controlling the DC Motor}{210}% -\contentsline {paragraph}{Note:}{210}% +\contentsline {paragraph}{Note:}{211}% \contentsline {paragraph}{Note:}{212}% \contentsline {subsection}{\numberline {10.5.2}Python Code}{213}% \contentsline {section}{\numberline {10.6}Controlling the DC Motor from Julia}{216}% \contentsline {subsection}{\numberline {10.6.1}Controlling the DC Motor}{216}% \contentsline {paragraph}{Note:}{216}% -\contentsline {paragraph}{Note:}{217}% +\contentsline {paragraph}{Note:}{218}% \contentsline {subsection}{\numberline {10.6.2}Julia Code}{218}% -\contentsline {section}{\numberline {10.7}Controlling the DC Motor from OpenModelica}{219}% -\contentsline {subsection}{\numberline {10.7.1}Controlling the DC Motor}{219}% -\contentsline {paragraph}{Note:}{219}% +\contentsline {section}{\numberline {10.7}Controlling the DC Motor from OpenModelica}{220}% +\contentsline {subsection}{\numberline {10.7.1}Controlling the DC Motor}{220}% +\contentsline {paragraph}{Note:}{220}% \contentsline {paragraph}{Note:}{221}% \contentsline {subsection}{\numberline {10.7.2}OpenModelica Code}{222}% \contentsline {chapter}{\numberline {11}Implementation of Modbus Protocol}{225}% diff --git a/user-code/dcmotor/dcmotor.tex b/user-code/dcmotor/dcmotor.tex index dbf7abb..dacf0ea 100644 --- a/user-code/dcmotor/dcmotor.tex +++ b/user-code/dcmotor/dcmotor.tex @@ -85,10 +85,17 @@ switching of digital pin, a special hardware is provided in microcontrollers. PWM is considered as an important resource of
the microcontroller system. \arduino\ board has 6 PWM pins (3, 5, 6, 9, 10, 11) \cite{arduino-pwm}.
On an original \arduino\ board, these pins are marked with a tilde sign next to the pin number,
-as shown in Fig. For each of these pins, the input can come from 8 bits.
+as shown in \figref{fig:uno-pwm}. For each of these pins, the input can come from 8 bits.
Thus we can generate $2^8 = 256$ different analog values (from 0 to 255)
in between 0-5V with these pins.
+\begin{figure}
+ \centering
+ \includegraphics[width=\lgfig]{\LocDCMfig/uno-pwm.jpg}
+ \caption{PWM pins on an \arduino\ board}
+ \label{fig:uno-pwm}
+\end{figure}
+
We now carry out the following connections:
\begin{enumerate}
\item Connect input of L293D (M1\_IN) pins to two of the PWM pins
diff --git a/user-code/dcmotor/figures/uno-pwm.jpg b/user-code/dcmotor/figures/uno-pwm.jpg Binary files differnew file mode 100644 index 0000000..b3489a3 --- /dev/null +++ b/user-code/dcmotor/figures/uno-pwm.jpg |