Difference between revisions of "Arduino/C4/Getting-Ready-for-Arduino-FLOSS/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with " {| border="1" |- || '''VISUAL CUE''' || '''NARRATION''' |- || '''Slide 1:''' || Welcome to the Spoken tutorial on '''Getting ready for Arduino FLOSS.''' |- || '''Slide 2:'''...")
 
 
(One intermediate revision by one other user not shown)
Line 13: Line 13:
 
'''Learning Objectives'''
 
'''Learning Objectives'''
 
|| In this tutorial, we will learn about
 
|| In this tutorial, we will learn about
* How to download the e-book and code files from the '''FLOSS Arduino '''website
+
* How to download the e-book and code files from the '''FLOSS-Arduino '''website
 
* Arduino Shield  
 
* Arduino Shield  
 
* Microcontroller Programming with''' Arduino IDE'''
 
* Microcontroller Programming with''' Arduino IDE'''
Line 19: Line 19:
 
|-
 
|-
 
|| '''Slide 3:'''
 
|| '''Slide 3:'''
'''System requirement'''
 
  
 +
'''System requirement'''
 
|| To record this tutorial, I’m using
 
|| To record this tutorial, I’m using
 
* '''Ubuntu Linux '''OS version 18.04  
 
* '''Ubuntu Linux '''OS version 18.04  
 
* '''Arduino Shield'''
 
* '''Arduino Shield'''
* '''Arduino Uno and'''
+
* '''Arduino Uno Board ''' and
 
* '''Arduino IDE'''
 
* '''Arduino IDE'''
 
|-
 
|-
Line 31: Line 31:
 
'''Prerequisites'''
 
'''Prerequisites'''
 
||To follow this tutorial,you should be familiar with  
 
||To follow this tutorial,you should be familiar with  
* '''Arduino''' Uno Board
+
* '''Arduino''' '''Uno Board'''
 
* Any Programming language
 
* Any Programming language
  
Line 47: Line 47:
 
|-
 
|-
 
||  
 
||  
|| First, let us download the''' e-books''' and the code files required for the experiments.
+
||First, let us download the''' e-books''' and the code files required for the experiments.
 
|-
 
|-
|| Go to the website [https://fossee.in/ https://fossee.in/]  
+
||Go to the website [https://fossee.in/ https://fossee.in/]  
|| Go to the'''FOSSEE '''website developed by the'''FOSSEE''' team at''' IIT Bombay.'''
+
||Go to the '''FOSSEE ''' website developed by the '''FOSSEE''' team at ''' IIT Bombay.'''
 
|-
 
|-
 
|| Scroll down and point to FLOSS Arduino.
 
|| Scroll down and point to FLOSS Arduino.
 +
 
Point to various FLOSS
 
Point to various FLOSS
  
||  
+
scroll down and show the content
 +
||
 
* Scroll down and locate the '''FLOSS Arduino'''. Click on it.
 
* Scroll down and locate the '''FLOSS Arduino'''. Click on it.
 
* It will open the '''FLOSS Arduino''' webpage.
 
* It will open the '''FLOSS Arduino''' webpage.
Line 61: Line 63:
 
* You will know more information about the '''FLOSS''' that are used in the e-book.
 
* You will know more information about the '''FLOSS''' that are used in the e-book.
 
* We have covered various FLOSS like''' Arduino IDE, Python, Scilab, Xcos, Julia,''' and '''OpenModelica'''.
 
* We have covered various FLOSS like''' Arduino IDE, Python, Scilab, Xcos, Julia,''' and '''OpenModelica'''.
 
 
|-
 
|-
 
|| Click on the '''Resource''' menu.
 
|| Click on the '''Resource''' menu.
Line 73: Line 74:
 
* You can also do experiments with the breadboard and the required components.
 
* You can also do experiments with the breadboard and the required components.
 
* You can buy the components from the link given on the website.
 
* You can buy the components from the link given on the website.
 +
 
|-
 
|-
 
|| Click on the Downloads menu
 
|| Click on the Downloads menu
  
 
Point or highlight according to narration
 
Point or highlight according to narration
||  
+
|| Next, click on the '''Downloads''' tab.
Next, click on the '''Downloads''' tab.
+
 
* You can see links to''' .pdf '''files, which contain the soft copy of the books.
 
* You can see links to''' .pdf '''files, which contain the soft copy of the books.
 
* Download the book on your computer based on your interest.
 
* Download the book on your computer based on your interest.
Line 84: Line 85:
 
* This contains the code files that are used in the books for various experiments.
 
* This contains the code files that are used in the books for various experiments.
 
* Download the zip file and extract the file on the '''Desktop.'''
 
* Download the zip file and extract the file on the '''Desktop.'''
 
 
|-
 
|-
 
|| highlight
 
|| highlight
Line 92: Line 92:
  
 
Point or highlight according to narration
 
Point or highlight according to narration
|| Let us see the content of the '''Origin''' folder .
+
||Let us see the content of the'''Origin''' folder .
  
 
Open the '''Origin''' folder.
 
Open the '''Origin''' folder.
* We can see two folders as'''tools''' and'''user-code.'''
+
* We can see two folders as '''tools''' and '''user-code.'''
 
* In the '''tools''' folder, we have given the toolbox required for various software.
 
* In the '''tools''' folder, we have given the toolbox required for various software.
 
* Follow the instructions given in the book on how to load the toolbox.
 
* Follow the instructions given in the book on how to load the toolbox.
* In the '''user-code '''folder, all the codes required for various experiments are given here.
+
* In the'''user-code '''folder, all the codes required for various experiments are given here.
 
+
 
|-
 
|-
 
||  
 
||  
|| In this tutorial, we will see how to run experiments on '''Arduino IDE.'''
+
||In this tutorial,we will see how to run experiments on'''Arduino IDE.'''
  
I’ll open the ''' python.pdf''' and show the various chapters of the book.
+
I’ll open the''' python.pdf''' and show the various chapters of the book.
  
 
|-
 
|-
Line 114: Line 113:
 
* Follow the steps given for the installation of '''Arduino IDE '''
 
* Follow the steps given for the installation of '''Arduino IDE '''
 
* Install the '''Arduino IDE''' depending upon your OS
 
* Install the '''Arduino IDE''' depending upon your OS
* The experiments that are covered in the book are tested in ''' Ubuntu Linux 18.04 and Windows 10 OS.'''
+
* The experiments that are covered in the book are tested in''' Ubuntu Linux 18.04 and Windows 10 OS.'''
 
|-
 
|-
 
|| Slide 6:
 
|| Slide 6:
 
 
'''Arduino IDE''' installation:
 
'''Arduino IDE''' installation:
  
Line 128: Line 126:
  
 
About Shield
 
About Shield
 +
Show the image of the shield
  
 +
shield placement.jpeg
 
|| Next, let us see the picture of the shield.
 
|| Next, let us see the picture of the shield.
 
* This is the shield developed by the '''FOSSEE''' team.
 
* This is the shield developed by the '''FOSSEE''' team.
 
* It contains various components required for the experiments.
 
* It contains various components required for the experiments.
* It is already wired with the respective pin of '''Arduino Uno.'''
+
*It is a ready-to-use shield that is wired with the respective pin of the Arduino''' Uno board.'''
* It is a ready-to-use shield that can be used with only '''Arduino Uno '''
+
 
+
 
|-
 
|-
 
||  
 
||  
  
 
About the experiments
 
About the experiments
 +
 
Show the pages in the book
 
Show the pages in the book
 
|| We will perform the below experiments using the shield.
 
|| We will perform the below experiments using the shield.
Line 157: Line 156:
 
|-
 
|-
 
|| Show the image:
 
|| Show the image:
||  
+
||
  
First, connect the shield to the''' Arduino Uno''' board.
+
First, connect the shield to the '''Arduino Uno board'''.
  
Then connect the board to the '''USB''' port of the computer.
+
Then connect the board to the USB port of the computer.
 
|-
 
|-
 
||  
 
||  
|| Open the linux terminal by pressing Ctrl+Alt+T keys simultaneously.
+
|| Open the '''Linux''' terminal by pressing Ctrl+Alt+T keys simultaneously.
 
|-
 
|-
 
|| Open the terminal
 
|| Open the terminal
|| First we have to check the port on which the '''Arduino''' '''Uno''' is connected.
+
|| First we have to check the port on which the '''Arduino''' '''Uno '''board is connected.
 
|-
 
|-
 
|| Type
 
|| Type
Line 191: Line 190:
  
 
>./arduino
 
>./arduino
||  
+
|  
  
 
I have already installed '''Arduino IDE''' in my system as specified in the book.
 
I have already installed '''Arduino IDE''' in my system as specified in the book.
Line 203: Line 202:
 
Point to '''ttyACM0'''
 
Point to '''ttyACM0'''
 
|| Click on the '''Tools''' menu and select '''Port'''.
 
|| Click on the '''Tools''' menu and select '''Port'''.
 
 
Make sure the port '''ttyACM0''' is selected.
 
Make sure the port '''ttyACM0''' is selected.
 
|-
 
|-
 
||  
 
||  
 
 
Show the chapter 4 heading and the program led-blue.ino
 
Show the chapter 4 heading and the program led-blue.ino
|| Let us test the working of the Arduino board with a simple program.
+
||Let us test the working of the '''Arduino Uno board''' with a simple program.
 
+
 
Let us check the experiment specified in chapter 4. That is, '''Interfacing a Light Emitting Diode.'''
 
Let us check the experiment specified in chapter 4. That is, '''Interfacing a Light Emitting Diode.'''
 
 
This program will light the blue '''LED''' on the shield.
 
This program will light the blue '''LED''' on the shield.
 
|-
 
|-
Line 224: Line 219:
 
Blue led.jpg
 
Blue led.jpg
 
|| Compile and upload the program.
 
|| Compile and upload the program.
 
 
Now we can see the blue '''LED''' is turned on.
 
Now we can see the blue '''LED''' is turned on.
 
+
This shows the '''Arduino Uno board''' and the shield are working correctly.
This shows the '''Arduino''' board and the shield are working correctly.
+
 
|-
 
|-
 
|| Show the experiments in the book
 
|| Show the experiments in the book
Line 238: Line 231:
  
 
'''About FLOSS Firmware:'''
 
'''About FLOSS Firmware:'''
|| For this, we have to upload the '''FLOSS''' firmware on the '''Arduino''' '''Uno''' using '''Arduino IDE.'''  
+
|| For this, we have to upload the '''FLOSS''' firmware on the '''Arduino''' '''Uno board''' using '''Arduino IDE.'''  
  
 
This firmware is an '''Arduino''' file with '''.ino''' extension.
 
This firmware is an '''Arduino''' file with '''.ino''' extension.
Line 258: Line 251:
  
 
Point to the success message
 
Point to the success message
|| Now we will upload the '''FLOSS''' firmware to the '''Arduino Uno.'''
+
|| Now we will upload the '''FLOSS''' firmware to the '''Arduino Uno board.'''
  
 
In the '''Arduino IDE''', open the file available at''' Origin/tools/floss-firmware/floss-firmware.ino'''
 
In the '''Arduino IDE''', open the file available at''' Origin/tools/floss-firmware/floss-firmware.ino'''
Line 273: Line 266:
  
 
|| '''Points to remember:'''
 
|| '''Points to remember:'''
* Whenever you plug the '''Arduino Uno''' into the computer, check for the port.
+
* Whenever you plug the '''Arduino Uno board''' into the computer, check for the port.
 
* Then execute the command required for read-write permission.  
 
* Then execute the command required for read-write permission.  
* Don’t upload any '''Arduino''' program after uploading the '''FLOSS''' firmware to '''Arduino Uno.'''
+
* Don’t upload any '''Arduino''' program after uploading the '''FLOSS''' firmware to '''Arduino Uno board.'''
 
* This would overwrite the '''FLOSS '''firmware.
 
* This would overwrite the '''FLOSS '''firmware.
 +
 
|-
 
|-
 
||  
 
||  
Line 287: Line 281:
 
Summary
 
Summary
 
|| In this tutorial, we learnt about
 
|| In this tutorial, we learnt about
* How to download the e-book and code files from the '''FLOSS Arduino '''website
+
* How to download the e-book and code files from the '''FLOSS-Arduino '''website
 
* '''Arduino''' Shield  
 
* '''Arduino''' Shield  
 
* Microcontroller Programming with''' Arduino IDE'''
 
* Microcontroller Programming with''' Arduino IDE'''
 
* '''FLOSS''' firmware
 
* '''FLOSS''' firmware
 
 
|-
 
|-
 
|| Slide 12:
 
|| Slide 12:
Line 304: Line 297:
 
(About Spoken Tutorial Project)
 
(About Spoken Tutorial Project)
 
|| The '''Spoken Tutorial''' Project Team conducts workshops and gives certificates.
 
|| The '''Spoken Tutorial''' Project Team conducts workshops and gives certificates.
 
 
For more details, please write to us.
 
For more details, please write to us.
 
|-
 
|-
Line 310: Line 302:
  
 
Forum questions:
 
Forum questions:
|| Please post your timed queries on this forum.
+
||  
 +
* Please post your timed queries on this forum.
 
|-
 
|-
 
|| '''Slide 15: '''Acknowledgement
 
|| '''Slide 15: '''Acknowledgement

Latest revision as of 18:35, 7 September 2021


VISUAL CUE NARRATION
Slide 1: Welcome to the Spoken tutorial on Getting ready for Arduino FLOSS.
Slide 2:

Learning Objectives

In this tutorial, we will learn about
  • How to download the e-book and code files from the FLOSS-Arduino website
  • Arduino Shield
  • Microcontroller Programming with Arduino IDE
  • FLOSS firmware
Slide 3:

System requirement

To record this tutorial, I’m using
  • Ubuntu Linux OS version 18.04
  • Arduino Shield
  • Arduino Uno Board and
  • Arduino IDE
Slide 4:

Prerequisites

To follow this tutorial,you should be familiar with
  • Arduino Uno Board
  • Any Programming language

If not, then go through the relevant spoken tutorials on this website.

Slide 5:

About Arduino:

Go through the Arduino Spoken Tutorials to know about:
  • Hardware components
  • Installation of Arduino IDE
  • Selecting the port in Arduino IDE and
  • Compiling and uploading a program
First, let us download the e-books and the code files required for the experiments.
Go to the website https://fossee.in/ Go to the FOSSEE website developed by the FOSSEE team at IIT Bombay.
Scroll down and point to FLOSS Arduino.

Point to various FLOSS

scroll down and show the content

  • Scroll down and locate the FLOSS Arduino. Click on it.
  • It will open the FLOSS Arduino webpage.
  • On the Home page, click on the FLOSS link in the left panel.
  • You will know more information about the FLOSS that are used in the e-book.
  • We have covered various FLOSS like Arduino IDE, Python, Scilab, Xcos, Julia, and OpenModelica.
Click on the Resource menu.

Point or highlight according to narration

Next, click on the Resources menu in the top menu bar.
  • Information about the Arduino shield and project file is available here.
  • The required gerber files to make the shield are given in this link.
  • Bill of material is available in this link.
  • Also, you can see the information regarding where to buy the Arduino shield.
  • You can also do experiments with the breadboard and the required components.
  • You can buy the components from the link given on the website.
Click on the Downloads menu

Point or highlight according to narration

Next, click on the Downloads tab.
  • You can see links to .pdf files, which contain the soft copy of the books.
  • Download the book on your computer based on your interest.
  • You can see an Origin zip file link.
  • This contains the code files that are used in the books for various experiments.
  • Download the zip file and extract the file on the Desktop.
highlight I have downloaded all the e-books and the Origin folder on my desktop.
Go to the Desktop and open the Origin folder.

Point or highlight according to narration

Let us see the content of theOrigin folder .

Open the Origin folder.

  • We can see two folders as tools and user-code.
  • In the tools folder, we have given the toolbox required for various software.
  • Follow the instructions given in the book on how to load the toolbox.
  • In theuser-code folder, all the codes required for various experiments are given here.
In this tutorial,we will see how to run experiments onArduino IDE.

I’ll open the python.pdf and show the various chapters of the book.

Show the relevant pages in the book.

Chapter 3: Page 18, 19

  • Refer to chapter 3 in the book that you have downloaded.
  • Follow the steps given for the installation of Arduino IDE
  • Install the Arduino IDE depending upon your OS
  • The experiments that are covered in the book are tested in Ubuntu Linux 18.04 and Windows 10 OS.
Slide 6:

Arduino IDE installation:

You have to install Arduino IDE 1.8.13 either in Linux or Windows OS.

Note that an internet connection is required to do the installation.

About Shield Show the image of the shield

shield placement.jpeg

Next, let us see the picture of the shield.
  • This is the shield developed by the FOSSEE team.
  • It contains various components required for the experiments.
  • It is a ready-to-use shield that is wired with the respective pin of the Arduino Uno board.

About the experiments

Show the pages in the book

We will perform the below experiments using the shield.
  1. Interfacing a Light Emitting Diode
  2. Interfacing a Pushbutton
  3. Interfacing a Light Dependent Resistor
  4. Interfacing a Potentiometer
  5. Interfacing a Thermistor
  6. Interfacing a Servo Motor
 :

About the experiments

The next two experiments are performed without the shield.
  1. Interfacing a DC Motor
  2. Implementation of Modbus Protocol
Show the image:

First, connect the shield to the Arduino Uno board.

Then connect the board to the USB port of the computer.

Open the Linux terminal by pressing Ctrl+Alt+T keys simultaneously.
Open the terminal First we have to check the port on which the Arduino Uno board is connected.
Type

ls /dev/ttyACM*

Highlight ttyACM0

sudo chmod a+rw /dev/ttyACM0

Type the below command.

In my case, the port is ttyACM0.

Please note down the port in your system.

Type the command as shown to give the read, write permission to the port.

Enter the system password if prompted

This command has to be executed each time when you connect the Arduino board to the computer.

> cd opt/arduino-1.8.13

>./arduino

I have already installed Arduino IDE in my system as specified in the book.

Follow the steps as shown in chapter 3 and launch Arduino IDE.

Arduino IDE opens as shown here.

Select Tools>>port

Point to ttyACM0

Click on the Tools menu and select Port.

Make sure the port ttyACM0 is selected.

Show the chapter 4 heading and the program led-blue.ino

Let us test the working of the Arduino Uno board with a simple program.

Let us check the experiment specified in chapter 4. That is, Interfacing a Light Emitting Diode. This program will light the blue LED on the shield.

Open the file In the Arduino IDE, open the file available at Origin/ user-code/ led/ arduino/led-blue/ led-blue.ino.
Compile and upload

Show the output

Blue led.jpg

Compile and upload the program.

Now we can see the blue LED is turned on. This shows the Arduino Uno board and the shield are working correctly.

Show the experiments in the book Likewise, practice the other experiments with arduino code that are specified in the book.
Now we will learn how to connect Arduino with various FLOSS.
Slide 8:

About FLOSS Firmware:

For this, we have to upload the FLOSS firmware on the Arduino Uno board using Arduino IDE.

This firmware is an Arduino file with .ino extension.

Slide 9:

Why do we need FLOSS Firmware?

Why do we need FLOSS Firmware?

This enables the communication betweenFLOSS and Serial port.

It will decode and execute the commands sent by other FLOSS.

For example FLOSS such as Python, Scilab, Julia, OpenModelica etc.

Open the file

Origin/tools/arduino-firmware/floss-firmware.ino

Point to the success message

Now we will upload the FLOSS firmware to the Arduino Uno board.

In the Arduino IDE, open the file available at Origin/tools/floss-firmware/floss-firmware.ino

Compile and upload the program.

We can see the success message at the bottom of the IDE.

It shows FLOSS firmware has been properly installed.

Slide 10:

Points to remember:

Points to remember:
  • Whenever you plug the Arduino Uno board into the computer, check for the port.
  • Then execute the command required for read-write permission.
  • Don’t upload any Arduino program after uploading the FLOSS firmware to Arduino Uno board.
  • This would overwrite the FLOSS firmware.
With this, we come to the end of this tutorial. Let us summarize.

Slide 11:

Summary

In this tutorial, we learnt about
  • How to download the e-book and code files from the FLOSS-Arduino website
  • Arduino Shield
  • Microcontroller Programming with Arduino IDE
  • FLOSS firmware
Slide 12:

(About Spoken Tutorial Project)

The video at the following link summarizes the Spoken Tutorial project.

Please download and watch it.

Slide 13:

(About Spoken Tutorial Project)

The Spoken Tutorial Project Team conducts workshops and gives certificates.

For more details, please write to us.

Slide 14:

Forum questions:

  • Please post your timed queries on this forum.
Slide 15: Acknowledgement Spoken Tutorial project is funded by the Ministry of Education (MoE), Govt. of India.
This is Nirmala venkat from Spoken Tutorial Project, IIT Bombay, signing off.

Thanks for joining.

Contributors and Content Editors

Nancyvarkey, Nirmala Venkat