OpenPLC-with-LDmicro/C2/Installation-of-LDmicro-on-Linux/English
VISUAL CUE | NARRATION |
Slide 1:
Welcome slide |
Welcome to the spoken tutorial on Installation of LDmicro on Linux. |
Slide 2:
Learning Objectives |
In this tutorial, we will see how to install,
|
Slide 3:
System Requirements |
To record this tutorial I am using:
|
Now we’ll see how to install LDmicro. | |
OpenPLC website | To download the installation files, open the web browser of your choice.
I’m using Firefox. Go to the website https://openplc.fossee.in Make sure you’ve an active internet connection. |
OpenPLC website | In the top menu bar, click on the Downloads link. |
OpenPLC website
<point to various links> |
Here we will find the links to download LDmicro installation files.
The installation files are available for Windows and Ubuntu Linux OS. Ubuntu has two columns as Linux Ubuntu using Gtk and Linux Ubuntu using Qt. |
We will download the installation files of LDmicro developed using Qt toolkit. | |
OpenPLC website
Click LDmicro for Linux(deb) >> Click Save File >> Click OK |
Click on the appropriate link depending on your operating system’s version.
I will click on LDmicro for Ubuntu 18.04(deb) link. A dialog box opens. Click on Save File, and then click the OK button. |
Point to the .deb file in the downloads folder | In the Downloads folder, we can see that the downloaded .deb file is available. |
Open the terminal.
Press CTRL+ALT+T |
Now let us open the Terminal by pressing CTRL +ALT + T keys simultaneously. |
Terminal
Type >> cd Downloads |
Go to the Downloads folder by typing cd <space>Downloads and press ‘Enter’. |
Terminal
Type >> ls |
Type ls to see the LDmicro package name.
Press Enter. |
Highlight the LDmicro version | Here, in my system, it shows LDMicro_Qt-2.3.2-Linux-bionic.deb
The name may vary in future. |
Type
>> sudo dpkg -i LDMicro_Qt-2.3.2-Linux-bionic.deb |
To do the installation, type the command sudo dpkg -i LDMicro_Qt-2.3.2-Linux-bionic.deb and press ENTER. |
Type >> <password> | Type the admin password if prompted and press ENTER. |
We can see LDmicro is installed successfully. | |
Slide 4: Installation error
Error: “dpkg: dependency problems prevent configuration of ldmicro”.
|
You might receive an error saying “dpkg: dependency problems prevent configuration of ldmicro”.
This is because LDmicro is dependent on some Qt libraries. This is the command to install those libraries. |
Highlight the error in the terminal | Switch back to terminal.
Please follow the steps as shown here only if you get the error as shown. |
Solution:
sudo apt install qt5-default |
We will now install a Qt package which has the required basic libraries.
For that type ‘sudo apt install qt5-default’ and press ENTER. |
Permission prompt will appear >> press Y
Type >> sudo dpkg -i LDMicro_Qt-2.3.2-Linux-bionic.deb
|
After that it’ll ask your permission again to install these libraries.
Type Y and press ENTER. We have now installed required qt5 libraries. Now again type the command as shown here to do the installation. Press Enter. |
Now, LDmicro software is installed. | |
Type >> ldmicro | To make sure, type ‘ldmicro’ in the terminal and press ENTER. |
LDmicro interface | LDMicro interface opens.
This ensures that LDmicro is installed successfully. |
Next we’ll see how to install AVRDUDE. | |
Slide 5:
What is AVRDUDE? |
What is AVRDUDE?
AVRDUDE stands for AVR Downloader Uploader. It is a tool for downloading or uploading the on-chip memories of AVR microcontrollers. |
Switch back to terminal | To install AVRDUDE, switch back to terminal. |
Type, sudo apt-get install avrdude | Type, sudo apt<hyphen>get install avrdude and press ENTER.
Wait until the installation is completed. |
Type avrdude
Highlight the version |
To check the installed version, type avrdude and press ENTER.
Here, you can find the version number at the bottom of the terminal. |
Next, we will see about USBasp programmer | |
Slide 6:
(picture of USBasp programmer, USBasp_Programmer.jpg) |
This is a picture of a USBasp programmer. |
Slide 7: why USBasp drivers
|
Why USBasp drivers?
|
Now, we’ll see how to install USBasp drivers.
In Linux OS, the USBasp drivers are pre-installed. | |
Switch back to the terminal | Switch back to the terminal. |
Terminal
Type >>lsusb |
Type lsusb and press Enter.
This will give the information about USB buses in the system and the devices connected to them. |
The information you get on the terminal may not be the same as mine. | |
Connect USBasp to a USB port of Computer | Now, connect a USBasp programmer to one of the USB ports of your computer. |
Terminal
Type >> ‘lsusb’ |
Now again, in the terminal type ‘lsusb’ and press ENTER. |
Terminal
|
We can observe there is an extra line of information of the bus and the device connected to it.
We can find a keyword libusb in the new line which indicates that USBasp programmer is connected. This indicates that the drivers are installed successfully. |
This brings us to the end of this tutorial.
Let us summarize. | |
Slide 8: Summary
We learnt to install
|
In this tutorial, we learnt to install
|
Slide 9:
About Spoken Tutorial project |
The video at the following link summarizes the Spoken Tutorial project.
Please download and watch it |
Slide 10:
Spoken Tutorial workshops |
The Spoken Tutorial Project team:
For more details, please write to us. |
Slide 11 :
Answers for THIS Spoken Tutorial |
|
Slide 12:
Forum for specific questions: |
|
Slide 12:
Forum for specific questions: |
|
Slide 13:
Acknowledgement |
Spoken Tutorial Project is funded by MHRD, Government of India. |
Slide 14:
Thank you slide |
This tutorial has been contributed by FOSSEE and Spoken Tutorial Project, IIT Bombay.
And this is Harsha Priyanka from FOSSEE team, signing off. Thanks for watching. |