Welcome to the Spoken tutorial on Getting ready for Arduino FLOSS.
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
To record this tutorial, I’m using Ubuntu Linux OS version 18.04
Arduino Shield
Arduino Uno Board and
Arduino IDE
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.
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 FOSSEE website developed by the FOSSEE team at IIT Bombay.
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.
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.
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.
I have downloaded all the e-books and the Origin folder on my desktop.
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.
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.
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.
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.
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
The next two experiments are performed without the shield.
Interfacing a DC Motor
Implementation of Modbus Protocol
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.
First we have to check the port on which the Arduino Uno board is connected.
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.
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.
Click on the Tools menu and select Port.
Make sure the port ttyACM0 is selected.
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.
In the Arduino IDE, open the file available at Origin slash user-code slash led slash arduino slash led-blue slash led-blue.ino
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.
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.
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.
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.
Now we will upload the FLOSS firmware to the Arduino Uno board.
In the Arduino IDE, open the file available at Origin slash tools slash floss hyphen firmware slash floss hyphen 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.
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.
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
The video at the following link summarizes the Spoken Tutorial project. Please download and watch it.
The Spoken Tutorial Project Team conducts workshops and gives certificates. For more details, please write to us.
Please post your timed queries on this forum.
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.