https://script.spoken-tutorial.org/index.php?title=OpenPLC-with-LDmicro/C2/Installation-of-LDmicro-on-Linux/English&feed=atom&action=history
OpenPLC-with-LDmicro/C2/Installation-of-LDmicro-on-Linux/English - Revision history
2024-03-29T09:00:07Z
Revision history for this page on the wiki
MediaWiki 1.23.17
https://script.spoken-tutorial.org/index.php?title=OpenPLC-with-LDmicro/C2/Installation-of-LDmicro-on-Linux/English&diff=55251&oldid=prev
Priyanka.guntaka123 at 13:23, 18 June 2021
2021-06-18T13:23:22Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 13:23, 18 June 2021</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 12:</td>
<td colspan="2" class="diff-lineno">Line 12:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|| Slide 2:  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|| Slide 2:  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">Learning Objectives</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|| In this tutorial, we will see how to install,</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|| In this tutorial, we will see how to install,</div></td></tr>
</table>
Priyanka.guntaka123
https://script.spoken-tutorial.org/index.php?title=OpenPLC-with-LDmicro/C2/Installation-of-LDmicro-on-Linux/English&diff=55250&oldid=prev
Priyanka.guntaka123 at 13:22, 18 June 2021
2021-06-18T13:22:58Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 13:22, 18 June 2021</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 12:</td>
<td colspan="2" class="diff-lineno">Line 12:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|| Slide 2:  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|| Slide 2:  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">Learning Objectives</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|| In this tutorial, we will see how to install,</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|| In this tutorial, we will see how to install,</div></td></tr>
</table>
Priyanka.guntaka123
https://script.spoken-tutorial.org/index.php?title=OpenPLC-with-LDmicro/C2/Installation-of-LDmicro-on-Linux/English&diff=55236&oldid=prev
Nirmala Venkat at 11:55, 17 June 2021
2021-06-17T11:55:12Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 11:55, 17 June 2021</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 202:</td>
<td colspan="2" class="diff-lineno">Line 202:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|-  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|-  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|| Slide 7: why USBasp drivers</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|| Slide 7: why USBasp drivers</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* '''USBasp programmer''' is used to '''program''' the '''controller''' on '''OpenPLC <del class="diffchange diffchange-inline">V1 </del>Mainboard'''.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* '''USBasp programmer''' is used to '''program''' the '''controller''' on '''OpenPLC Mainboard'''.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* '''AVRDUDE''' will not recognize the '''USBasp''', if '''drivers''' are not '''installed'''.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* '''AVRDUDE''' will not recognize the '''USBasp''', if '''drivers''' are not '''installed'''.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>
Nirmala Venkat
https://script.spoken-tutorial.org/index.php?title=OpenPLC-with-LDmicro/C2/Installation-of-LDmicro-on-Linux/English&diff=55235&oldid=prev
Nirmala Venkat: Created page with " {| border="1" |- || '''VISUAL CUE''' || '''NARRATION''' |- || Slide 1: Welcome slide || Welcome to the spoken tutorial on''' Installation of LDmicro on Linux.''' |- || Sli..."
2021-06-17T11:54:24Z
<p>Created page with " {| border="1" |- || '''VISUAL CUE''' || '''NARRATION''' |- || Slide 1: Welcome slide || Welcome to the spoken tutorial on''' Installation of LDmicro on Linux.''' |- || Sli..."</p>
<p><b>New page</b></p><div><br />
{| border="1"<br />
|-<br />
|| '''VISUAL CUE'''<br />
|| '''NARRATION'''<br />
|-<br />
|| Slide 1: <br />
<br />
Welcome slide<br />
|| Welcome to the spoken tutorial on''' Installation of LDmicro on Linux.'''<br />
|- <br />
|| Slide 2: <br />
<br />
Learning Objectives<br />
<br />
|| In this tutorial, we will see how to install,<br />
* '''LDmicro'''<br />
* '''AVRDUDE'''<br />
* '''Drivers''' for '''USBasp programmer'''<br />
<br />
|- <br />
|| Slide 3:<br />
<br />
System Requirements<br />
|| To record this tutorial I am using:<br />
* '''Ubuntu Linux''' 18.04 operating system<br />
* '''USBasp programmer'''<br />
<br />
|- <br />
|| <br />
|| Now we’ll see how to install '''LDmicro'''.<br />
|- <br />
|| OpenPLC website<br />
<br />
|| To download the '''installation files''', open the '''web browser''' of your choice.<br />
<br />
I’m using '''Firefox'''.<br />
<br />
Go to the website [https://openplc.fossee.in/ https://openplc.fossee.in]<br />
<br />
Make sure you’ve an active '''internet connection'''.<br />
|- <br />
|| OpenPLC website<br />
|| In the top menu bar, click on the '''Downloads link'''.<br />
|- <br />
|| OpenPLC website<br />
<br />
<point to various links><br />
|| Here we will find the '''links''' to download '''LDmicro installation files'''.<br />
<br />
The '''installation files''' are available for '''Windows''' and '''Ubuntu Linux''' OS.<br />
<br />
'''Ubuntu '''has two columns as''' Linux Ubuntu using Gtk '''and''' Linux Ubuntu using Qt.'''<br />
|- <br />
|| <br />
|| We will download the '''installation files''' of '''LDmicro''' developed using''' Qt toolkit.'''<br />
|- <br />
|| OpenPLC website<br />
<br />
Click LDmicro for Linux(deb)''' '''>> Click Save File''' '''>> Click OK<br />
|| Click on the appropriate '''link''' depending on your '''operating system'''’s version.<br />
<br />
I will click on '''LDmicro for Ubuntu 18.04(deb) link'''.<br />
<br />
A dialog box opens.<br />
<br />
Click on '''Save File, '''and then click the '''OK '''button.<br />
|- <br />
|| Point to the .deb file in the downloads folder<br />
|| In the '''Downloads '''folder, we can see that the downloaded '''.deb '''file is available.<br />
|- <br />
|| Open the terminal.<br />
<br />
Press CTRL+ALT+T<br />
|| Now let us open the '''Terminal '''by pressing '''CTRL +ALT + T''' keys simultaneously.<br />
|- <br />
|| Terminal<br />
<br />
Type >> cd Downloads<br />
|| Go to the '''Downloads '''folder by typing '''cd <space>Downloads '''and press ‘'''Enter'''’.<br />
|- <br />
|| Terminal <br />
<br />
Type >> ls<br />
|| Type '''ls '''to see the '''LDmicro package''' name.<br />
<br />
Press''' Enter'''.<br />
|- <br />
|| Highlight the LDmicro version<br />
|| Here, in my system, it shows '''LDMicro_Qt-2.3.2-Linux-bionic.deb '''<br />
<br />
The name may vary in future.<br />
|- <br />
|| Type <br />
<br />
>> '''sudo dpkg -i LDMicro_Qt-2.3.2-Linux-bionic.deb'''<br />
|| To do the '''installation''', type the '''command sudo dpkg -i LDMicro_Qt-2.3.2-Linux-bionic.deb '''and press '''ENTER.'''<br />
|- <br />
|| Type >> <''password''><br />
|| Type the '''admin password''' if prompted and press '''ENTER'''.<br />
|- <br />
|| <br />
|| We can see '''LDmicro''' is '''installed''' successfully.<br />
|- <br />
|| Slide 4: Installation error<br />
<br />
Error:<br />
<br />
“dpkg: dependency problems prevent configuration of ldmicro”.<br />
<br />
<br />
|| You might receive an error saying '''“dpkg: dependency problems prevent configuration of ldmicro”.'''<br />
<br />
This is because '''LDmicro''' is dependent on some '''Qt libraries'''.<br />
<br />
This is the '''command''' to '''install''' those '''libraries'''.<br />
|- <br />
|| Highlight the error in the terminal<br />
|| Switch back to '''terminal'''.<br />
<br />
Please follow the steps as shown here only if you get the error as shown.<br />
|- <br />
|| Solution:<br />
<br />
sudo apt install qt5-default<br />
|| We will now '''install''' a '''Qt package''' which has the required basic '''libraries'''.<br />
<br />
For that type '''‘sudo apt install qt5-default’ '''and press '''ENTER'''.<br />
<br />
|-<br />
||Permission prompt will appear >> press Y<br />
<br />
<br />
<br />
<br />
<br />
Type <br />
<br />
>> '''sudo dpkg -i LDMicro_Qt-2.3.2-Linux-bionic.deb'''<br />
<br />
<br />
<br />
||After that it’ll ask your '''permission''' again to '''install''' these '''libraries'''.<br />
<br />
Type '''Y''' and press '''ENTER'''.<br />
<br />
We have now '''installed''' required '''qt5 libraries'''.<br />
<br />
Now again type the '''command''' as shown here to do the '''installation'''.<br />
<br />
Press '''Enter'''.<br />
|- <br />
|| <br />
|| Now''', LDmicro''' software is installed.<br />
|- <br />
|| Type >> '''ldmicro''' <br />
<br />
|| To make sure, type '''‘ldmicro’ '''in the '''terminal''' and press '''ENTER.'''<br />
|- <br />
|| '''LDmicro '''interface <br />
|| '''LDMicro''' interface opens. <br />
<br />
This ensures that '''LDmicro''' is installed successfully.<br />
|- <br />
|| <br />
|| Next we’ll see how to install '''AVRDUDE'''.<br />
|- <br />
|| Slide 5:<br />
<br />
What is AVRDUDE?<br />
|| What is '''AVRDUDE'''?<br />
<br />
'''AVRDUDE '''stands for '''AVR Downloader Uploader'''.<br />
<br />
It is a tool for downloading or uploading the '''on-chip memories''' of '''AVR microcontrollers'''.<br />
|- <br />
|| Switch back to terminal<br />
|| To install '''AVRDUDE''', switch back to '''terminal'''.<br />
|- <br />
|| Type, sudo apt-get install avrdude<br />
<br />
|| Type, '''sudo apt<hyphen>get install avrdude''' and press '''ENTER'''.<br />
<br />
Wait until the '''installation''' is completed.<br />
|- <br />
|| Type avrdude<br />
<br />
Highlight the version<br />
|| To check the installed version, type '''avrdude '''and press '''ENTER'''.<br />
<br />
Here, you can find the version number at the bottom of the '''terminal'''.<br />
|- <br />
|| <br />
|| Next, we will see about '''USBasp programmer'''<br />
|- <br />
|| Slide 6:<br />
<br />
(picture of USBasp programmer, '''USBasp_Programmer.jpg''')<br />
|| <br />
<br />
This is a picture of a '''USBasp programmer'''.<br />
|- <br />
|| Slide 7: why USBasp drivers<br />
* '''USBasp programmer''' is used to '''program''' the '''controller''' on '''OpenPLC V1 Mainboard'''.<br />
* '''AVRDUDE''' will not recognize the '''USBasp''', if '''drivers''' are not '''installed'''.<br />
<br />
|| Why USBasp drivers?<br />
* A '''USBasp programmer''' is used to '''program''' the '''controller''' on '''OpenPLC Mainboard'''.<br />
* '''AVRDUDE''' will not recognize the '''USBasp''', if '''drivers''' are not '''installed'''.<br />
|- <br />
|| <br />
|| Now, we’ll see how to install '''USBasp''' drivers.<br />
<br />
In '''Linux OS''', the '''USBasp drivers''' are pre-installed.<br />
|- <br />
|| Switch back to the terminal<br />
|| Switch back to the '''terminal'''.<br />
|- <br />
|| Terminal<br />
<br />
Type >>lsusb<br />
|| Type''' lsusb '''and press '''Enter'''.<br />
<br />
This will give the information about '''USB buses''' in the system and the '''devices''' connected to them. <br />
|- <br />
|| <br />
|| The information you get on the '''terminal''' may not be the same as mine.<br />
|- <br />
|| Connect USBasp to a USB port of Computer<br />
|| Now, connect a '''USBasp programmer''' to one of the '''USB ports''' of your computer.<br />
|- <br />
|| Terminal<br />
<br />
Type >> '''‘'''lsusb’<br />
|| Now again, in the '''terminal''' type '''‘lsusb’''' and press '''ENTER.'''<br />
|- <br />
|| Terminal<br />
<br />
<br />
|| We can observe there is an extra line of information of the '''bus''' and the '''device''' connected to it.<br />
<br />
We can find a keyword '''libusb '''in the new line which indicates that '''USBasp programmer''' is connected. <br />
<br />
This indicates that the '''drivers''' are installed successfully.<br />
|- <br />
|| <br />
|| This brings us to the end of this tutorial. <br />
<br />
Let us summarize.<br />
|- <br />
|| Slide 8: Summary<br />
<br />
We learnt to install<br />
* '''LDmicro'''<br />
* '''AVRDUDE'''<br />
* Drivers for '''USBasp''' programmer<br />
<br />
|| In this tutorial, we learnt to install<br />
* '''LDmicro'''<br />
* '''AVRDUDE '''and<br />
* '''Drivers''' for '''USBasp programmer'''<br />
|- <br />
|| Slide 9:<br />
<br />
About Spoken Tutorial project<br />
|| The video at the following link summarizes the Spoken Tutorial project.<br />
<br />
Please download and watch it<br />
|- <br />
|| Slide 10:<br />
<br />
Spoken Tutorial workshops<br />
|| The''' Spoken Tutorial Project''' team:<br />
* conducts workshops using spoken tutorials and<br />
* gives certificates on passing online tests.<br />
<br />
For more details, please write to us.<br />
|- <br />
|| Slide 11 :<br />
<br />
Answers for THIS Spoken Tutorial<br />
|| <br />
* Do you have questions in THIS Spoken Tutorial?<br />
* Please visit this site.<br />
* Choose the minute and second where you have the question.<br />
* Explain your question briefly.<br />
* The Spoken Tutorial project will ensure an answer.<br />
* You will have to register to ask questions.<br />
<br />
|- <br />
|| Slide 12:<br />
<br />
Forum for specific questions:<br />
|| <br />
* The Spoken Tutorial forum is for specific questions on this tutorial.<br />
* Please do not post unrelated and general questions on them.<br />
* This will help reduce the clutter.<br />
* With less clutter, we can use these discussions as instructional material.<br />
<br />
|- <br />
|| Slide 12:<br />
<br />
Forum for specific questions:<br />
|| <br />
* Do you have any general / technical questions on OpenPLC?<br />
* Please visit the FOSSEE forum and post your question.<br />
|- <br />
|| Slide 13:<br />
<br />
Acknowledgement<br />
|| Spoken Tutorial Project is funded by MHRD, Government of India.<br />
|- <br />
|| Slide 14:<br />
<br />
Thank you slide<br />
|| This tutorial has been contributed by FOSSEE and Spoken Tutorial Project, IIT Bombay.<br />
<br />
And this is Harsha Priyanka from FOSSEE team, signing off.<br />
<br />
Thanks for watching.<br />
|-<br />
|}</div>
Nirmala Venkat