Difference between revisions of "OpenPLC-version1-with-LDmicro/C2/Installation-of-LDmicro-on-Linux/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
Line 1: Line 1:
{| style="border-spacing:0;"
 
| style="border:1pt solid #000000;padding:0.176cm;"| <center>'''Visual Cue'''</center>
 
| style="border:1pt solid #000000;padding:0.176cm;"| <center>'''Narration'''</center>
 
  
 +
{| border="1"
 
|-
 
|-
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 1:  
+
|| '''VISUAL CUE'''
 +
|| '''NARRATION'''
 +
|-
 +
|| Slide 1:  
  
 
Welcome slide
 
Welcome slide
| style="border:1pt solid #000000;padding:0.176cm;"| Welcome to the spoken tutorial on''' Installation of LDmicro on Linux.'''
+
|| Welcome to the spoken tutorial on''' Installation of LDmicro on Linux.'''
 
+
|-  
|-
+
|| Slide 2:  
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 2:  
+
  
 
Learning Objectives
 
Learning Objectives
  
| style="border:1pt solid #000000;padding:0.176cm;"| In this tutorial, we will see how to install,
+
|| In this tutorial, we will see how to install,
 
+
 
* '''LDmicro'''
 
* '''LDmicro'''
 
* '''AVRDUDE'''
 
* '''AVRDUDE'''
 
* '''Drivers''' for '''USBasp programmer'''
 
* '''Drivers''' for '''USBasp programmer'''
  
|-
+
|-  
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 3:
+
|| Slide 3:
  
 
System Requirements
 
System Requirements
| style="border:1pt solid #000000;padding:0.176cm;"| To record this tutorial I am using:
+
|| To record this tutorial I am using:
 +
* Ubuntu Linux''' '''18.04 operating system
 +
* USBasp programmer
  
* '''Ubuntu Linux''' 16.04 operating system
+
|-
* '''USBasp programmer'''
+
||
|-
+
|| Now we’ll see how to install '''LDmicro'''.
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 4a:
+
|-  
 +
|| OpenPLC website
  
What is LDmicro?
+
|| To download the installation files, open the web browser of your choice.
| style="border:1pt solid #000000;padding:0.176cm;"| What is '''LDmicro'''?
+
  
* '''LDmicro''' is an open source software.
+
I’m using Firefox.
* It is used to draw a '''ladder diagram '''or''' ladder logic''' to program PLCs.
+
 
+
|-
+
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 4b:
+
 
+
What is LDmicro?
+
| style="border:1pt solid #000000;padding:0.176cm;"|
+
* We can simulate this '''ladder diagram '''or''' ladder logic''' in real time on our computer.
+
* It can also generate native code for certain '''PIC16''' and '''Atmel AVR microcontrollers'''.
+
 
+
|-
+
| style="border:1pt solid #000000;padding:0.176cm;"|
+
| style="border:1pt solid #000000;padding:0.176cm;"| Now we’ll see how to install '''LDmicro'''.
+
 
+
|-
+
| style="border:1pt solid #000000;padding:0.176cm;"| OpenPLC website
+
 
+
| style="border:1pt solid #000000;padding:0.176cm;"| To download the installation files, open the web browser of your choice.
+
 
+
Make sure you’ve an active '''internet''' connection.
+
  
 
Go to the website [https://openplc.fossee.in/ https://openplc.fossee.in]
 
Go to the website [https://openplc.fossee.in/ https://openplc.fossee.in]
  
|-
+
Make sure you’ve an active internet connection.
| style="border:1pt solid #000000;padding:0.176cm;"| OpenPLC website
+
|-  
| style="border:1pt solid #000000;padding:0.176cm;"| In the top menu bar, click on the '''Resources''' link.
+
|| OpenPLC website
 +
|| In the top menu bar, click on the '''Downloads''' link.
 +
|-
 +
|| OpenPLC website
  
Click on '''User Downloads '''link present under the '''Downloads '''tab'''.'''
+
<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.
| style="border:1pt solid #000000;padding:0.176cm;"| OpenPLC website
+
  
<nowiki><point to various links></nowiki>
+
'''Ubuntu '''has two columns as''' Linux Ubuntu using Gtk '''and''' Linux Ubuntu using Qt.'''
| style="border:1pt solid #000000;padding:0.176cm;"| Here we will find links to download '''LDmicro''' installation files for different versions of '''Ubuntu Linux'''.
+
|-
 
+
||
|-
+
|| We will download the installation files of '''LDmicro''' developed using''' Qt toolkit.'''
| style="border:1pt solid #000000;padding:0.176cm;"| OpenPLC website
+
|-  
 +
|| OpenPLC website
  
 
Click LDmicro for Linux(deb)''' '''>> Click Save File''' '''>> Click OK
 
Click LDmicro for Linux(deb)''' '''>> Click Save File''' '''>> Click OK
| style="border:1pt solid #000000;padding:0.176cm;"| Click on appropriate link depending upon your operating system’s version.
+
|| Click on the appropriate link depending on your operating system’s version.
  
I will click on '''LDmicro for Ubuntu 16.04(deb) '''link .
+
I will click on '''LDmicro for Ubuntu 18.04(deb) '''link.
  
 
A dialog box opens.
 
A dialog box opens.
  
Click on '''Save File, '''and then click '''OK '''button.
+
Click on '''Save File, '''and then click the '''OK '''button'''.'''
 
+
|-  
|-
+
|| Point to the .deb file in the downloads folder
| style="border:1pt solid #000000;padding:0.176cm;"| Point to the .deb file in the downloads folder
+
|| In the '''Downloads '''folder, we can see that the downloaded '''.deb '''file is available.
| style="border:1pt solid #000000;padding:0.176cm;"| In the '''Downloads '''folder, the downloaded '''.deb '''file is available.
+
|-  
 
+
|| Open the terminal.
Note that, the extension for the downloaded file for '''Linux''' will be ('''.deb''').
+
 
+
|-
+
| style="border:1pt solid #000000;padding:0.176cm;"| Open the terminal.
+
  
 
Press CTRL+ALT+T
 
Press CTRL+ALT+T
| style="border:1pt solid #000000;padding:0.176cm;"| Now let us open the '''Terminal '''by pressing '''CTRL +ALT + T''' keys simultaneously.
+
|| Now let us open the '''Terminal '''by pressing
  
|-
+
'''CTRL +ALT + T''' keys simultaneously.
| style="border:1pt solid #000000;padding:0.176cm;"| Terminal
+
|-  
 +
|| Terminal
  
 
Type >> cd Downloads
 
Type >> cd Downloads
| style="border:1pt solid #000000;padding:0.176cm;"| Go to the '''Downloads '''folder''' '''by typing '''<nowiki>cd <space> Downloads </nowiki>'''and press ‘'''Enter'''’.
+
|| Go to the '''Downloads '''folder''' '''by typing '''cd <space>Downloads '''and press ‘'''Enter'''’.
 
+
|-  
|-
+
|| Terminal  
| style="border:1pt solid #000000;padding:0.176cm;"| Terminal  
+
  
 
Type >> ls
 
Type >> ls
| style="border:1pt solid #000000;padding:0.176cm;"| Type '''ls '''to see the LDmicro package name
+
|| Type '''ls '''to see the '''LDmicro''' package name.
  
 
Press''' Enter'''.
 
Press''' Enter'''.
 
+
|-  
|-
+
|| Highlight the LDmicro version
| style="border:1pt solid #000000;padding:0.176cm;"| Highlight the LDmicro version
+
|| Here, in my system, it shows '''LDMicro_Qt-2.3.2-Linux-bionic.deb '''
| style="border:1pt solid #000000;padding:0.176cm;"| Here, in my system, it shows '''LDMicro-2.2.4-Linux.deb '''
+
  
 
The name may vary in future.
 
The name may vary in future.
 +
|-
 +
|| Type
  
|-
+
>> '''sudo dpkg -i LDMicro_Qt-2.3.2-Linux-bionic.deb'''
| style="border:1pt solid #000000;padding:0.176cm;"| Type  
+
|| 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
  
>> '''sudo dpkg -i LDMicro-2.2.4-Linux.deb'''
+
Error:
| style="border:1pt solid #000000;padding:0.176cm;"| To do the installation, type the command '''sudo dpkg -i LDMicro-2.2.4-Linux.deb '''and press '''Enter'''
+
  
|-
+
“dpkg: dependency problems prevent configuration of ldmicro”.
| style="border:1pt solid #000000;padding:0.176cm;"| <nowiki>Type >> <</nowiki>''password''>
+
| style="border:1pt solid #000000;padding:0.176cm;"| Type the '''admin password''' if prompted and press '''Enter'''.
+
  
|-
+
Solution:
| style="border:1pt solid #000000;padding:0.176cm;"|
+
| style="border:1pt solid #000000;padding:0.176cm;"| Now, '''LDmicro''' software is installed.
+
  
|-
+
sudo apt install qt5-default
| style="border:1pt solid #000000;padding:0.176cm;"| Type >> '''ldmicro'''  
+
|| You might receive an error saying '''“dpkg: dependency problems prevent configuration of ldmicro”.'''
  
| style="border:1pt solid #000000;padding:0.176cm;"| To make sure, type '''LDMicro '''in the terminal and press '''Enter.'''
+
This is because LDmicro is dependent on some '''Qt libraries'''.
  
|-
+
This is the command to install those libraries.
| style="border:1pt solid #000000;padding:0.176cm;"| '''LDmicro '''interface
+
|-  
| style="border:1pt solid #000000;padding:0.176cm;"| '''LDMicro''' interface opens.  
+
|| Highlight the error in the terminal
 +
|| Switch back to terminal.
  
This ensures that '''LDmicro''' is installed successfully.
+
Please follow the steps as shown here only if you get the error as shown.
 +
|-
 +
||
 +
|| We will now install a Qt package which has the required basic libraries.
  
|-
+
For that type '''‘sudo apt install qt5-default’ '''and press ENTER.
| style="border:1pt solid #000000;padding:0.176cm;"|
+
| style="border:1pt solid #000000;padding:0.176cm;"| Next we’ll see how to install '''AVRDUDE'''.
+
  
|-
+
After that it’ll ask your permission again to install these libraries.
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 5:
+
  
What is AVRDUDE?
+
Type Y and press ENTER.
| style="border:1pt solid #000000;padding:0.176cm;"| What is '''AVRDUDE'''?
+
  
*'''AVRDUDE '''stands for '''AVR Downloader Uploader'''.
+
We have now installed required qt5 libraries.
  
*It is a tool for downloading or uploading the on-chip memories of '''AVR microcontrollers'''.
+
Now again type the command as shown here to do the installation.
 +
|-  
 +
||
 +
|| Now''', LDmicro''' software is installed.
 +
|-
 +
|| Type >> '''ldmicro'''
  
|-
+
|| To make sure, type '''‘ldmicro’ '''in the terminal and press '''ENTER.'''
| style="border:1pt solid #000000;padding:0.176cm;"| Switch back to terminal
+
|-
| style="border:1pt solid #000000;padding:0.176cm;"| To install '''AVRDUDE''', switch back to '''terminal'''.
+
|| '''LDmicro '''interface
 +
|| '''LDMicro''' interface opens.  
  
|-
+
This ensures that '''LDmicro''' is installed successfully.
| style="border:1pt solid #000000;padding:0.176cm;"| Type sudo apt-get install avrdude
+
|-  
 +
||
 +
|| Next we’ll see how to install '''AVRDUDE'''.
 +
|-  
 +
|| Slide 5:
  
Type y
+
What is AVRDUDE?
 +
|| What is '''AVRDUDE'''?
  
Press ENTER
+
'''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
  
| style="border:1pt solid #000000;padding:0.176cm;"| Type, '''<nowiki>sudo apt <hyphen> get install avrdude</nowiki>''' and press '''ENTER'''.
+
|| Type, '''sudo apt<hyphen>get install avrdude''' and press '''ENTER'''.
 
+
It will ask for your permission to continue the installation.
+
 
+
Type ‘y’ and press '''Enter'''.
+
  
 
Wait until the installation is completed.
 
Wait until the installation is completed.
 
+
|-  
|-
+
|| Type avrdude
| style="border:1pt solid #000000;padding:0.176cm;"| Type avrdude
+
  
 
Highlight the version
 
Highlight the version
| style="border:1pt solid #000000;padding:0.176cm;"| To check the installed version, type '''avrdude '''and press '''ENTER'''.
+
|| To check the installed version, type '''avrdude '''and press '''ENTER'''.
  
Here, you can find version number at the bottom of the terminal.
+
Here, you can find the version number at the bottom of the terminal.
 
+
|-  
|-
+
||  
| style="border:1pt solid #000000;padding:0.176cm;"|  
+
|| Next, we will see about '''USBasp programmer'''
| style="border:1pt solid #000000;padding:0.176cm;"| Next, we will see about '''USBasp programmer'''
+
|-  
|-
+
|| Slide 6:
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 6:
+
  
 
(picture of USBasp programmer, '''USBasp_Programmer.jpg''')
 
(picture of USBasp programmer, '''USBasp_Programmer.jpg''')
| style="border:1pt solid #000000;padding:0.176cm;"| This is a picture of a '''USBasp programmer'''.
+
||  
  
|-
+
This is a picture of a USBasp programmer
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 7:
+
|-  
 +
|| Slide 7: why USBasp drivers
 +
* '''USBasp programmer''' is used to program the controller on '''OpenPLC V1''' '''Mainboard'''.
 +
* '''AVRDUDE''' will not recognize the '''USBasp''', if drivers are not installed.
  
Why USBasp drivers?
+
|| Why USBasp drivers?
| style="border:1pt solid #000000;padding:0.176cm;"| Why USBasp drivers?
+
* A '''USBasp programmer''' is used to program the controller on '''OpenPLC Mainboard'''.
 
+
* A '''USBasp programmer''' is used to program the controller on '''OpenPLC''' main board.
+
 
* '''AVRDUDE''' will not recognize the '''USBasp''', if drivers are not installed.
 
* '''AVRDUDE''' will not recognize the '''USBasp''', if drivers are not installed.
|-
+
|-  
| style="border:1pt solid #000000;padding:0.176cm;"|  
+
||  
| style="border:1pt solid #000000;padding:0.176cm;"| Now, we’ll see how to install '''USBasp''' drivers.
+
|| Now, we’ll see how to install '''USBasp''' drivers.
  
In Linux OS, the '''USBasp drivers''' are pre-installed.
+
In Linux OS, the '''USBasp''' drivers are pre-installed.
 
+
|-  
|-
+
|| Switch back to the terminal
| style="border:1pt solid #000000;padding:0.176cm;"| Switch to the terminal
+
|| Switch back to the terminal.
| style="border:1pt solid #000000;padding:0.176cm;"| Switch back to the '''terminal'''.
+
|-  
 
+
|| Terminal
|-
+
| style="border:1pt solid #000000;padding:0.176cm;"| Terminal
+
  
 
Type >>lsusb
 
Type >>lsusb
| style="border:1pt solid #000000;padding:0.176cm;"| Type''' lsusb '''and press '''Enter'''.
+
|| Type''' lsusb '''and press '''Enter'''.
  
 
This will give the information about '''USB buses''' in the system and the devices connected to them.  
 
This will give the information about '''USB buses''' in the system and the devices connected to them.  
 
+
|-  
|-
+
||  
| style="border:1pt solid #000000;padding:0.176cm;"|  
+
|| The information you get on the terminal may not be the same as mine.
| style="border:1pt solid #000000;padding:0.176cm;"| The information you get on the terminal may not be 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.
| style="border:1pt solid #000000;padding:0.176cm;"| Connect USBasp to an USB port of Computer
+
|-  
| style="border:1pt solid #000000;padding:0.176cm;"| Now, connect a '''USBasp programmer''' to one of the '''USB ports''' of your computer.
+
|| Terminal
 
+
|-
+
| style="border:1pt solid #000000;padding:0.176cm;"| Terminal
+
  
 
Type >> '''‘'''lsusb’
 
Type >> '''‘'''lsusb’
| style="border:1pt solid #000000;padding:0.176cm;"| Now again, in the '''terminal''' type '''‘lsusb’''' and press '''Enter.'''
+
|| Now again, in the terminal type '''‘lsusb’''' and press '''ENTER.'''
 +
|-
 +
|| Terminal
  
|-
 
| style="border:1pt solid #000000;padding:0.176cm;"| Terminal
 
  
(Highlight to that extra line, in particular the word libusb)
+
|| We can observe there is an extra line of information of the bus and the device connected to it.
| style="border:1pt solid #000000;padding:0.176cm;"| 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.  
 
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 indicates that the drivers are installed successfully.
 
+
|-  
|-
+
||  
| style="border:1pt solid #000000;padding:0.176cm;"|  
+
|| This brings us to the end of this tutorial.  
| style="border:1pt solid #000000;padding:0.176cm;"| This brings us to the end of this tutorial.  
+
  
 
Let us summarize.
 
Let us summarize.
 +
|-
 +
|| Slide 8: Summary
  
|-
+
We learnt to install
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 8:
+
 
+
Summary
+
 
+
In this tutorial, we learnt to install
+
 
+
 
* '''LDmicro'''
 
* '''LDmicro'''
 
* '''AVRDUDE'''
 
* '''AVRDUDE'''
 
* Drivers for '''USBasp''' programmer
 
* Drivers for '''USBasp''' programmer
  
| style="border:1pt solid #000000;padding:0.176cm;"|  
+
|| In this tutorial, we learnt to install* '''LDmicro'''
 
+
In this tutorial, we learnt to install
+
 
+
* '''LDmicro'''
+
 
* '''AVRDUDE '''and
 
* '''AVRDUDE '''and
 
* Drivers for '''USBasp''' programmer
 
* Drivers for '''USBasp''' programmer
 
+
|-  
|-
+
|| Slide 9:
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 9:
+
  
 
About Spoken Tutorial project
 
About Spoken Tutorial project
| style="border:1pt solid #000000;padding:0.176cm;"| The video at the following link summarizes the Spoken Tutorial project.
+
|| The video at the following link summarizes the Spoken Tutorial project.
  
 
Please download and watch it
 
Please download and watch it
 
+
|-  
|-
+
|| Slide 10:
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 10:
+
  
 
Spoken Tutorial workshops
 
Spoken Tutorial workshops
| style="border:1pt solid #000000;padding:0.176cm;"| The''' Spoken Tutorial Project''' team:
+
|| The''' Spoken Tutorial Project''' team:
 
+
 
* conducts workshops using spoken tutorials and
 
* conducts workshops using spoken tutorials and
 
* gives certificates on passing online tests.
 
* gives certificates on passing online tests.
  
For more details, please write to us
+
For more details, please write to us.
 +
|-
 +
|| Slide 11 :
  
|-
+
Answers for THIS Spoken Tutorial
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 11:
+
|| * 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:
 
Forum for specific questions:
| style="border:1pt solid #000000;padding:0.176cm;"| Do you have questions in THIS Spoken Tutorial?
+
|| * 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.
  
* Please visit this site
+
|-  
* Choose the minute and second where you have the question
+
|| Slide 12:
* Explain your question briefly
+
* Someone from our team will answer them
+
 
+
|-
+
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 12:
+
  
 
Forum for specific questions:
 
Forum for specific questions:
| style="border:1pt solid #000000;padding:0.176cm;"| Do you have any general / technical questions on OpenPLC?
+
|| * Do you have any general / technical questions on OpenPLC?
 
+
* Please visit the FOSSEE forum and post your question.
Please visit the FOSSEE forum and post your question.
+
|-  
 
+
|| Slide 13:
|-
+
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 13:
+
  
 
Acknowledgement
 
Acknowledgement
| style="border:1pt solid #000000;padding:0.176cm;"| Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.
+
|| Spoken Tutorial Project is funded by MHRD, Government of India.
 
+
|-  
More information on this mission is available at
+
|| Slide 14:
 
+
this link.
+
 
+
|-
+
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 14:
+
  
 
Thank you slide
 
Thank you slide
| style="border:1pt solid #000000;padding:0.176cm;"| This tutorial has been contributed by FOSSEE and Spoken Tutorial Project, IIT Bombay.
+
|| This tutorial has been contributed by FOSSEE and Spoken Tutorial Project, IIT Bombay.
  
 
And this is Harsha Priyanka from FOSSEE team, signing off.
 
And this is Harsha Priyanka from FOSSEE team, signing off.
  
 
Thanks for watching.
 
Thanks for watching.
 
+
|-
 
|}
 
|}

Revision as of 15:12, 13 January 2021

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”.

Solution:

sudo apt install qt5-default

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.

We will now install a Qt package which has the required basic libraries.

For that type ‘sudo apt install qt5-default’ and press ENTER.

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.

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 V1 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

Nancyvarkey, Nirmala Venkat, Priyanka.guntaka123