OpenPLC-with-LDmicro/C2/Installation-of-LDmicro-on-Linux/English

From Script | Spoken-Tutorial
Revision as of 18:53, 18 June 2021 by Priyanka.guntaka123 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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,
  • LDmicro
  • AVRDUDE
  • Drivers for USBasp programmer
Slide 3:

System Requirements

To record this tutorial I am using:
  • Ubuntu Linux 18.04 operating system
  • USBasp programmer
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
  • USBasp programmer is used to program the controller on OpenPLC Mainboard.
  • AVRDUDE will not recognize the USBasp, if drivers are not installed.
Why USBasp drivers?
  • A USBasp programmer is used to program the controller on OpenPLC Mainboard.
  • AVRDUDE will not recognize the USBasp, if drivers are not installed.
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

  • LDmicro
  • AVRDUDE
  • Drivers for USBasp programmer
In this tutorial, we learnt to install
  • LDmicro
  • AVRDUDE and
  • Drivers for USBasp programmer
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:
  • conducts workshops using spoken tutorials and
  • gives certificates on passing online tests.

For more details, please write to us.

Slide 11 :

Answers for THIS Spoken Tutorial

  • Do you have questions in THIS Spoken Tutorial?
  • Please visit this site.
  • Choose the minute and second where you have the question.
  • Explain your question briefly.
  • The Spoken Tutorial project will ensure an answer.
  • You will have to register to ask questions.
Slide 12:

Forum for specific questions:

  • The Spoken Tutorial forum is for specific questions on this tutorial.
  • Please do not post unrelated and general questions on them.
  • This will help reduce the clutter.
  • With less clutter, we can use these discussions as instructional material.
Slide 12:

Forum for specific questions:

  • Do you have any general / technical questions on OpenPLC?
  • Please visit the FOSSEE forum and post your question.
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.

Contributors and Content Editors

Nirmala Venkat, Priyanka.guntaka123