Arduino/C4/Arduino-Programming-with-Julia/English

From Script | Spoken-Tutorial
Jump to: navigation, search


VISUAL CUE NARRATION
Slide 1: Welcome to the Spoken tutorial on Arduino Programming with Julia.
Slide 2:

Learning Objectives

In this tutorial, we will learn about
  • Arduino Julia toolbox
  • Interfacing Arduino with Julia
Slide 3:

System requirements

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

Prerequisites

To follow this tutorial, you should go through the below Arduino spoken tutorial.

  • Getting ready for Arduino Floss.
Slide 5:

Getting ready for Arduino Floss

In the above tutorial, you will learn
  • How to download the e-book and code files required for the experiments.
  • How to upload and compile Arduino programs in Arduino IDE.
  • About FLOSS Firmware
Point to the book in the Desktop

and open the book

I have downloaded Microcontroller Programming with Arduino and Julia e-book on my Desktop.
Show the relevant pages in the book.

Chapter 3 : Page 18, 25

  • Refer to chapter 3 in the book.
  • Follow the steps and do the installation of Arduino IDE and Julia depending upon your OS.
  • Installation steps are given for Windows and Linux OS.
  • The experiments that are covered in the book are tested in Ubuntu Linux 18.04 and Windows 10 OS.

Arduino shield_USB.jpg

Connect the Arduino UNO board with Arduino shield to the USB port of the computer
Slide 6:

Points to be noted:

Note the below points:

1. Launch Arduino IDE

2. Check the port

3. Upload the FLOSS firmware

  • That is, in the Arduino IDE, upload the file available at Origin/tools/floss-firmware/floss-firmware.ino

As discussed in the earlier tutorial the above steps have to be done before proceeding further.

Slide 7:

About Arduino-Julia toolbox

  • By default, Julia does not have the capability to connect to Arduino.
  • All such add-on functionalities are added to Julia using the toolbox.
  • These functions are required to run various experiments on the Arduino Uno board.
  • It also establishes a serial communication with Arduino.
The Arduino Julia toolbox can be found inside the directory

Origin/tools/julia/ArduinoTools.jl

Open the terminal by pressing Ctrl+Alt+T keys.

I have already installed Arduino IDE and Julia1.6.0 in my Linux system as specified in the book.

Cd Desktop/Origin/tools/julia

> julia test_firmware.jl

In the terminal, go to the directory where the Julia toolbox is available.

Next, we have to load the Arduino-Julia toolbox.

Type the command as shown to execute the firmware.

We can see three "ok" messages.

This shows that the FLOSS-firmware and Arduino Julia toolbox are working properly.

Show chapter 7

7.4.2

Next let us run the Julia program in chapter 7. That is, Interfacing a Potentiometer.

This program will turn ON LEDs depending on the potentiometer threshold.

>cd orgin/user-code/pot/julia

Switch back to the terminal.

Let us go to the folder where the pot-threshold.jl program is saved.

> julia pot-threshold.jl Type the command as shown to execute the program.
Video: (required) Rotate the knob of the potentiometer in the shield.

Observe the change in the color of the RGB LED.

The corresponding threshold values are displayed on the terminal.

Do the other Julia experiments as specified in the book.
slide 8:

Points to remember:

Points to remember:
  • Whenever you plug the Arduino UNO board into the computer, check for the port.
  • Then execute the commands 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.
  • Check if the Arduino Julia toolbox is properly running or not.
With this we come to the end of this tutorial. Let us summarize.

Slide 9:

Summary

In this tutorial, we learnt about
  • Arduino Julia toolbox
  • Interfacing Arduino with Julia
Slide 10:

(About Spoken Tutorial Project)

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

Please download and watch it.

Slide 11:

(About Spoken Tutorial Project)

The Spoken Tutorial Project Team conducts workshops and gives certificates.

For more details, please write to us.

Slide 12:

Forum questions:

Please post your timed queries on this forum.
Slide 13: 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