Difference between revisions of "Arduino/C4/Getting-Ready-for-Arduino-FLOSS/English"
Nancyvarkey (Talk | contribs) |
|||
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 |
− | * | + | * Microcontroller Programming with''' Arduino IDE''' |
− | * '''FLOSS | + | * '''FLOSS''' firmware |
|- | |- | ||
|| '''Slide 3:''' | || '''Slide 3:''' | ||
− | |||
+ | '''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 | + | * '''Arduino''' '''Uno Board''' |
− | + | * Any Programming language | |
If not, then go through the relevant spoken tutorials on this website. | If not, then go through the relevant spoken tutorials on this website. | ||
Line 41: | Line 41: | ||
'''About Arduino:''' | '''About Arduino:''' | ||
|| Go through the '''Arduino Spoken Tutorials''' to know about: | || Go through the '''Arduino Spoken Tutorials''' to know about: | ||
− | * | + | * Hardware components |
* Installation of '''Arduino IDE''' | * Installation of '''Arduino IDE''' | ||
− | * Selecting the | + | * Selecting the port in '''Arduino IDE '''and |
− | * | + | * Compiling and uploading a program |
|- | |- | ||
|| | || | ||
− | || First, let us download the''' e-books''' and the | + | ||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. | ||
− | * On the ''' | + | * 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 | + | * You will know more information about the '''FLOSS''' that are used in the e-book. |
− | * We have covered various | + | * We have covered various FLOSS like''' Arduino IDE, Python, Scilab, Xcos, Julia,''' and '''OpenModelica'''. |
− | + | ||
|- | |- | ||
|| Click on the '''Resource''' menu. | || Click on the '''Resource''' menu. | ||
Point or highlight according to narration | Point or highlight according to narration | ||
− | || Next, click on the '''Resources | + | || Next, click on the '''Resources''' menu in the top menu bar. |
− | * Information about the '''Arduino shield''' and '''project | + | * Information about the '''Arduino shield''' and '''project''' file is available here. |
− | * The required '''gerber''' files to make the shield are given in this | + | * The required '''gerber''' files to make the shield are given in this link. |
− | * '''Bill of material''' is available in this | + | * '''Bill of material''' is available in this link. |
* Also, you can see the information regarding where to buy the '''Arduino shield.''' | * Also, you can see the information regarding where to buy the '''Arduino shield.''' | ||
− | * You can also do experiments with the | + | * You can also do experiments with the breadboard and the required components. |
− | * You can buy the components from the | + | * 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 | + | * You can see links to''' .pdf '''files, which contain the soft copy of the books. |
− | * You can see | + | |
* Download the book on your computer based on your interest. | * Download the book on your computer based on your interest. | ||
− | * You can see an '''Origin zip file link | + | * You can see an '''Origin '''zip file link. |
− | * This contains the | + | * This contains the code files that are used in the books for various experiments. |
− | * Download the | + | * Download the zip file and extract the file on the '''Desktop.''' |
− | + | ||
|- | |- | ||
|| highlight | || highlight | ||
− | || I have downloaded all the '''e-books''' and the '''Origin''' folder on my | + | || I have downloaded all the '''e-books''' and the '''Origin''' folder on my desktop. |
|- | |- | ||
|| Go to the Desktop and open the Origin folder. | || Go to the Desktop and open the Origin folder. | ||
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 | + | * We can see two folders as '''tools''' and '''user-code.''' |
− | * In the '''tools''' folder, we have given the | + | * 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 | + | * Follow the instructions given in the book on how to load the toolbox. |
− | * In the '''user-code '''folder, all the | + | * In the'''user-code '''folder, all the codes required for various experiments are given here. |
− | + | ||
|- | |- | ||
|| | || | ||
− | || In this tutorial, we will see how to | + | ||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 112: | Line 111: | ||
|| | || | ||
* Refer to chapter 3 in the book that you have downloaded. | * Refer to chapter 3 in the book that you have downloaded. | ||
− | * Follow the steps given for the | + | * 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 | + | * 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: | ||
− | || You have to ''' | + | || You have to install '''Arduino IDE 1.8.13''' either in''' Linux or Windows OS.''' |
− | Note that an | + | Note that an internet connection is required to do the installation. |
|- | |- | ||
Line 128: | Line 126: | ||
About Shield | About Shield | ||
+ | Show the image of the shield | ||
− | || Next, let us see the picture of the | + | shield placement.jpeg |
− | * This is the | + | || 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 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.''' | |
− | * It is a ready-to-use | + | |
− | + | ||
|- | |- | ||
|| | || | ||
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 | + | || We will perform the below experiments using the shield. |
− | # | + | # Interfacing a Light Emitting Diode |
− | # | + | # Interfacing a Pushbutton |
− | # | + | # Interfacing a Light Dependent Resistor |
− | # | + | # Interfacing a Potentiometer |
− | # | + | # Interfacing a Thermistor |
− | # | + | # Interfacing a Servo Motor |
|- | |- | ||
|| : | || : | ||
About the experiments | About the experiments | ||
− | || The next two experiments are performed without the | + | || The next two experiments are performed without the shield. |
− | # | + | # Interfacing a DC Motor |
− | # | + | # Implementation of Modbus Protocol |
|- | |- | ||
|| Show the image: | || Show the image: | ||
− | || | + | || |
− | First, connect the | + | First, connect the shield to the '''Arduino Uno board'''. |
− | Then connect the | + | Then connect the board to the USB port of the computer. |
|- | |- | ||
|| | || | ||
− | || Open the '''Linux | + | || Open the '''Linux''' terminal by pressing Ctrl+Alt+T keys simultaneously. |
|- | |- | ||
|| Open the terminal | || Open the terminal | ||
− | || First we have to check the ''' | + | || First we have to check the port on which the '''Arduino''' '''Uno '''board is connected. |
|- | |- | ||
|| Type | || Type | ||
Line 176: | Line 175: | ||
sudo chmod a+rw /dev/ttyACM0 | sudo chmod a+rw /dev/ttyACM0 | ||
− | || Type the below | + | || Type the below command. |
− | In my case, the | + | In my case, the port is '''ttyACM0'''. |
− | Please note down the | + | Please note down the port in your system. |
− | Type the | + | Type the command as shown to give the read, write permission to the port. |
− | Enter the | + | Enter the system password if prompted |
− | This | + | This command has to be executed each time when you connect the Arduino board to the computer. |
|- | |- | ||
|| '''> cd '''''opt''/arduino-1.8.13 | || '''> cd '''''opt''/arduino-1.8.13 | ||
>./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. | ||
− | Follow the steps as shown in chapter 3 and launch | + | Follow the steps as shown in chapter 3 and launch Arduino IDE. |
'''Arduino IDE '''opens as shown here. | '''Arduino IDE '''opens as shown here. | ||
Line 202: | Line 201: | ||
Point to '''ttyACM0''' | Point to '''ttyACM0''' | ||
− | || Click on the '''Tools | + | || Click on the '''Tools''' menu and select '''Port'''. |
− | + | Make sure the port '''ttyACM0''' is selected. | |
− | Make sure the ''' | + | |
|- | |- | ||
|| | || | ||
− | |||
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 | + | ||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 | + | |
|- | |- | ||
|| Open the file | || Open the file | ||
Line 223: | Line 218: | ||
Blue led.jpg | Blue led.jpg | ||
− | || | + | || Compile and upload the program. |
− | + | Now we can see the blue '''LED''' is turned on. | |
− | Now we can see the blue '''LED''' is turned | + | This shows the '''Arduino Uno board''' and the shield are working correctly. |
− | + | ||
− | This shows the '''Arduino board''' and the | + | |
|- | |- | ||
|| Show the experiments in the book | || Show the experiments in the book | ||
− | || Likewise, practice the other experiments with | + | || Likewise, practice the other experiments with arduino code that are specified in the book. |
|- | |- | ||
|| | || | ||
− | || Now we will learn how to connect | + | || Now we will learn how to connect Arduino with various FLOSS. |
|- | |- | ||
|| '''Slide 8:''' | || '''Slide 8:''' | ||
'''About FLOSS Firmware:''' | '''About FLOSS Firmware:''' | ||
− | || For this, we have to upload the '''FLOSS | + | || For this, we have to upload the '''FLOSS''' firmware on the '''Arduino''' '''Uno board''' using '''Arduino IDE.''' |
− | This | + | This firmware is an '''Arduino''' file with '''.ino''' extension. |
|- | |- | ||
|| '''Slide 9:''' | || '''Slide 9:''' | ||
'''Why do we need FLOSS Firmware?''' | '''Why do we need FLOSS Firmware?''' | ||
− | || Why do we need '''FLOSS | + | || Why do we need '''FLOSS''' Firmware? |
− | This enables the communication between'''FLOSS''' and | + | This enables the communication between'''FLOSS''' and Serial port. |
− | It will decode and execute the | + | It will decode and execute the commands sent by other '''FLOSS'''. |
− | For example ''' | + | For example FLOSS such as '''Python''', '''Scilab, Julia, OpenModelica etc.''' |
|- | |- | ||
|| Open the file | || Open the file | ||
Line 258: | Line 251: | ||
Point to the success message | Point to the success message | ||
− | || Now we will upload the '''FLOSS | + | || 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''' |
− | + | Compile and upload the program. | |
− | We can see the | + | We can see the success message at the bottom of the IDE. |
− | It shows '''FLOSS | + | It shows '''FLOSS''' firmware has been properly installed. |
|- | |- | ||
|| '''Slide 10:''' | || '''Slide 10:''' | ||
Line 273: | Line 266: | ||
|| '''Points to remember:''' | || '''Points to remember:''' | ||
− | * Whenever you | + | * Whenever you plug the '''Arduino Uno board''' into the computer, check for the port. |
− | * Then | + | * Then execute the command required for read-write permission. |
− | * Don’t upload any '''Arduino | + | * Don’t upload any '''Arduino''' program after uploading the '''FLOSS''' firmware to '''Arduino Uno board.''' |
− | * This would overwrite the '''FLOSS | + | * 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 | + | * How to download the e-book and code files from the '''FLOSS-Arduino '''website |
− | * '''Arduino | + | * '''Arduino''' Shield |
− | * | + | * Microcontroller Programming with''' Arduino IDE''' |
− | * '''FLOSS | + | * '''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
|
Slide 3:
System requirement |
To record this tutorial, I’m using
|
Slide 4:
Prerequisites |
To follow this tutorial,you should be familiar with
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:
|
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 |
|
Click on the Resource menu.
Point or highlight according to narration |
Next, click on the Resources menu in the top menu bar.
|
Click on the Downloads menu
Point or highlight according to narration |
Next, click on the Downloads tab.
|
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.
|
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 |
|
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.
|
About the experiments Show the pages in the book |
We will perform the below experiments using the shield.
|
:
About the experiments |
The next two experiments are performed without the shield.
|
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:
|
With this, we come to the end of this tutorial. Let us summarize. | |
Slide 11: Summary |
In this tutorial, we learnt about
|
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: |
|
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. |