<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Arduino%2FC4%2FArduino-Programming-with-OpenModelica%2FEnglish</id>
		<title>Arduino/C4/Arduino-Programming-with-OpenModelica/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Arduino%2FC4%2FArduino-Programming-with-OpenModelica%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Arduino/C4/Arduino-Programming-with-OpenModelica/English&amp;action=history"/>
		<updated>2026-05-05T07:43:30Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Arduino/C4/Arduino-Programming-with-OpenModelica/English&amp;diff=55547&amp;oldid=prev</id>
		<title>Nancyvarkey at 08:09, 16 September 2021</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Arduino/C4/Arduino-Programming-with-OpenModelica/English&amp;diff=55547&amp;oldid=prev"/>
				<updated>2021-09-16T08:09:45Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=Arduino/C4/Arduino-Programming-with-OpenModelica/English&amp;amp;diff=55547&amp;amp;oldid=55517&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Nancyvarkey</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Arduino/C4/Arduino-Programming-with-OpenModelica/English&amp;diff=55517&amp;oldid=prev</id>
		<title>Nirmala Venkat: Created page with &quot;     {| border=&quot;1&quot; |- || '''VISUAL CUE''' || '''NARRATION''' |- || '''Slide 1:''' ||Welcome to the Spoken tutorial on '''Arduino Programming with OpenModelica.''' |- || '''Sli...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Arduino/C4/Arduino-Programming-with-OpenModelica/English&amp;diff=55517&amp;oldid=prev"/>
				<updated>2021-09-09T13:40:29Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;     {| border=&amp;quot;1&amp;quot; |- || &amp;#039;&amp;#039;&amp;#039;VISUAL CUE&amp;#039;&amp;#039;&amp;#039; || &amp;#039;&amp;#039;&amp;#039;NARRATION&amp;#039;&amp;#039;&amp;#039; |- || &amp;#039;&amp;#039;&amp;#039;Slide 1:&amp;#039;&amp;#039;&amp;#039; ||Welcome to the Spoken tutorial on &amp;#039;&amp;#039;&amp;#039;Arduino Programming with OpenModelica.&amp;#039;&amp;#039;&amp;#039; |- || &amp;#039;&amp;#039;&amp;#039;Sli...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|| '''VISUAL CUE'''&lt;br /&gt;
|| '''NARRATION'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 1:'''&lt;br /&gt;
||Welcome to the Spoken tutorial on '''Arduino Programming with OpenModelica.'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 2:'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
|| In this tutorial, we will learn about&lt;br /&gt;
* '''Arduino OpenModelica''' toolbox&lt;br /&gt;
* Interfacing''' Arduino '''with''' OpenModelica'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 3:'''&lt;br /&gt;
&lt;br /&gt;
'''System requirements'''&lt;br /&gt;
&lt;br /&gt;
|| To record this tutorial, I’m using&lt;br /&gt;
* '''Ubuntu Linux '''OS version 18.04 &lt;br /&gt;
* ''' Arduino Shield''' and&lt;br /&gt;
* '''Arduino Uno Board '''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 4:'''&lt;br /&gt;
'''Prerequisites'''&lt;br /&gt;
||To follow this tutorial, you should go through the below''' Arduino Spoken tutorial.&lt;br /&gt;
* '''Getting ready for Arduino FLOSS.'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 5:'''&lt;br /&gt;
&lt;br /&gt;
'''Getting ready for Arduino Floss'''&lt;br /&gt;
|| In the above tutorial, you will learn&lt;br /&gt;
* How to download the e-book and code files required for the experiments.&lt;br /&gt;
* How to upload and compile '''Arduino''' programs in '''Arduino IDE.'''&lt;br /&gt;
* About''' FLOSS Firmware'''&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 6:'''&lt;br /&gt;
'''About OpenModelica'''&lt;br /&gt;
|| If you are not familiar with '''OpenModelica, '''go through the''' spoken tutorials''' on this website.&lt;br /&gt;
&lt;br /&gt;
You will learn about&lt;br /&gt;
* Introduction to '''OpenModelica'''&lt;br /&gt;
* '''OpenModelica '''interface&lt;br /&gt;
* Various perspectives and&lt;br /&gt;
* Simulation&lt;br /&gt;
|-&lt;br /&gt;
|| '''Point to the book in the desktop'''&lt;br /&gt;
'''and open the book'''&lt;br /&gt;
|| I have downloaded the ebook on my desktop.&lt;br /&gt;
&lt;br /&gt;
Let us open the book '''Microcontroller Programming with Arduino and OpenModelica.'''&lt;br /&gt;
|-&lt;br /&gt;
|| Show the relevant pages in the book.&lt;br /&gt;
&lt;br /&gt;
|| &lt;br /&gt;
* Refer to chapter 3 in the book.&lt;br /&gt;
* Follow the steps and do the installation of '''Arduino IDE '''and '''OpenModelica '''depending upon your '''OS.'''&lt;br /&gt;
* Installation steps are given for '''Windows''' and '''Linux OS.'''&lt;br /&gt;
* The experiments that are covered in the book are tested in '''Ubuntu Linux 18.04 '''and '''Windows 10 OS.'''&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
&lt;br /&gt;
Arduino shield_USB.jpg&lt;br /&gt;
|| Connect the Arduino uno board with Arduino shield to the '''USB''' port of the computer&lt;br /&gt;
|-&lt;br /&gt;
|| '''Points to be noted:'''&lt;br /&gt;
'''Show 3.1.5 in the book, page 25'''&lt;br /&gt;
|| Note the below points:&lt;br /&gt;
&lt;br /&gt;
1. Launch Arduino IDE&lt;br /&gt;
&lt;br /&gt;
2. Check the port&lt;br /&gt;
&lt;br /&gt;
3. Upload the Floss firmware&lt;br /&gt;
* That is, in the '''Arduino IDE''', upload the file available at '''Origin/tools/floss-firmware/floss-firmware.ino'''&lt;br /&gt;
&lt;br /&gt;
As discussed in the earlier tutorial, the above steps have to be done before proceeding further.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Slide 9:'''&lt;br /&gt;
&lt;br /&gt;
'''About Arduino-OpenModelica toolbox'''&lt;br /&gt;
|| &lt;br /&gt;
* By default, '''OpenModelica '''does not have the capability to connect to '''Arduino'''. &lt;br /&gt;
* All such add-on functionalities are added to '''OpenModelica''' using the toolbox.&lt;br /&gt;
* These functions are required to run various experiments on the Arduino''' Uno board.'''&lt;br /&gt;
* It also establishes a serial communication with '''Arduino'''.&lt;br /&gt;
* We have different toolboxes for '''Windows''' and '''Linux''' OS.&lt;br /&gt;
|-&lt;br /&gt;
||&lt;br /&gt;
&lt;br /&gt;
Show the directory&lt;br /&gt;
Desktop /origin/tools&lt;br /&gt;
|| &lt;br /&gt;
The '''Arduino-OpenModelica''' toolbox can be found inside the''' '''directory&lt;br /&gt;
* '''Origin/tools/OpenModelica/windows/ or'''&lt;br /&gt;
* '''Origin/tools/OpenModelica/linux/'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| First we have to load the toolbox depending upon your OS.&lt;br /&gt;
&lt;br /&gt;
I’ll show how to load the toolbox in '''Linux'''.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| Open the terminal by pressing '''Ctrl+Alt+T''' keys.&lt;br /&gt;
&lt;br /&gt;
I have installed '''Arduino IDE''' and '''OpenModelica 1.1.7 '''in my '''Linux''' system as specified in the book.&lt;br /&gt;
|-&lt;br /&gt;
|| cd Downloads&lt;br /&gt;
&lt;br /&gt;
&amp;gt; OMEdit &lt;br /&gt;
|| Go to the folder where '''OpenModelica''' is installed as shown and launch the '''OpenModelica.'''&lt;br /&gt;
&lt;br /&gt;
Next, we have to load the '''Arduino OpenModelica''' toolbox.&lt;br /&gt;
&lt;br /&gt;
Click on '''File''' and then click on the '''OpenModel/Library File(s)''' option.&lt;br /&gt;
&lt;br /&gt;
Navigate to '''Origin/tools/openmodelica/linux.'''&lt;br /&gt;
&lt;br /&gt;
Select '''Arduino.mo '''and '''test_firmware.mo '''and click '''Open'''.&lt;br /&gt;
&lt;br /&gt;
In '''OMEdit''', under the '''Libraries''' panel, look for three new libraries.&lt;br /&gt;
&lt;br /&gt;
They are '''Arduino, Modelica_Synchronous, Modelica_DeviceDrivers and test_firmware.mo.'''&lt;br /&gt;
&lt;br /&gt;
This confirms that the '''Arduino OpenModelica''' toolbox has been loaded successfully.&lt;br /&gt;
|-&lt;br /&gt;
|| Show chapter 8&lt;br /&gt;
&lt;br /&gt;
||Next let us run the '''OpenModelica''' program in chapter 8. That is, '''Interfacing a Thermistor.'''&lt;br /&gt;
&lt;br /&gt;
This program will read and display the thermistor values.&lt;br /&gt;
&lt;br /&gt;
Switch back to the '''OmEdit '''interface.&lt;br /&gt;
&lt;br /&gt;
The codes are available inside the''' Arduino OpenModelica''' toolbox''' '''under the libraries panel.&lt;br /&gt;
&lt;br /&gt;
Select '''Arduino -&amp;gt; SerialCommunication -&amp;gt; Examples -&amp;gt; thermistor -&amp;gt; therm_read'''.&lt;br /&gt;
&lt;br /&gt;
Double click on the file to open.&lt;br /&gt;
&lt;br /&gt;
Click on the '''simulate''' button on the top right corner.&lt;br /&gt;
&lt;br /&gt;
Click on the '''ok '''button in the simulation setup window.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
||We can see the thermistor value displayed on the screen.&lt;br /&gt;
&lt;br /&gt;
Rub the thermistor with the fingertips. &lt;br /&gt;
&lt;br /&gt;
It will transfer heat from the person's finger, thereby raising the temperature of the thermistor.&lt;br /&gt;
&lt;br /&gt;
Accordingly, we can observe the change in the thermistor values.&lt;br /&gt;
|-&lt;br /&gt;
|| '''Points to remember:'''&lt;br /&gt;
|| Points to remember:&lt;br /&gt;
&lt;br /&gt;
* Whenever you plug the '''Arduino Uno board''' into the computer, check for the port.&lt;br /&gt;
* Then execute the commands required for read-write permission.&lt;br /&gt;
* Don’t upload any '''Arduino''' program after uploading the '''FLOSS''' firmware to '''Arduino Uno board.'''&lt;br /&gt;
* This would overwrite the '''FLOSS '''firmware.&lt;br /&gt;
* Check if the '''Arduino-OpenModelica '''toolbox is properly running or not.&lt;br /&gt;
* You have to load the '''Arduino OpenModelica toolbox '''each time when you launch the '''OMEdit'''.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
|| With this we come to the end of this tutorial. Let us summarize.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
&lt;br /&gt;
Slide 8:&lt;br /&gt;
&lt;br /&gt;
Summary&lt;br /&gt;
|| In this tutorial, we learnt about&lt;br /&gt;
* '''Arduino-OpenModelica''' toolbox&lt;br /&gt;
* Interfacing''' Arduino '''with''' OpenModelica'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 10:&lt;br /&gt;
&lt;br /&gt;
(About Spoken Tutorial Project)&lt;br /&gt;
|| The video at the following link, summarizes the''' Spoken Tutorial '''project.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide 11:&lt;br /&gt;
&lt;br /&gt;
(About Spoken Tutorial Project)&lt;br /&gt;
|| The '''Spoken Tutorial''' Project Team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|-&lt;br /&gt;
|| Slide&lt;br /&gt;
&lt;br /&gt;
Forum questions:&lt;br /&gt;
|| * Please post your timed queries on this forum.&lt;br /&gt;
|-&lt;br /&gt;
||'''Slide: '''Acknowledgement&lt;br /&gt;
&lt;br /&gt;
|| Spoken Tutorial project is funded by the Ministry of Education (MoE), Govt. of India.&lt;br /&gt;
|-&lt;br /&gt;
|| &lt;br /&gt;
||This is Nirmala Venkat from Spoken Tutorial Project, IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Nirmala Venkat</name></author>	</entry>

	</feed>