Welcome to the Spoken tutorial on Arduino Programming with Julia.
In this tutorial, we will learn about Arduino Julia toolbox
Interfacing Arduino with Julia
To record this tutorial, I’m using
Ubuntu Linux OS version 18.04
Arduino Shield and
Arduino UNO Board
To follow this tutorial, you should go through the below Arduino spoken tutorial.
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
I have downloaded Microcontroller Programming with Arduino and Julia e-book on my Desktop.
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.
Connect the Arduino UNO board with Arduino shield to the USB port of the computer
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 slash tools slash floss hyphen firmware slash floss hyphen firmware dot ino
As discussed in the earlier tutorial the above steps have to be done before proceeding further.
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 slash tools slash Julia slash ArduinoTools dot 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.
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.
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.
Switch back to the terminal.
Let us go to the folder where the pot-threshold.jl program is saved.
Type the command as shown to execute the program.
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.
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.
In this tutorial, we learnt about
Arduino Julia toolbox
Interfacing Arduino with Julia
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.