Difference between revisions of "OpenPLC-with-LDmicro/C2/OpenPLC-Mainboard/English"
(Created page with " {| style="border-spacing:0;" | style="border:1pt solid #000000;padding:0.176cm;"| <center>'''Visual Cue'''</center> | style="border:1pt solid #000000;padding:0.176cm;"| <cent...") |
Nancyvarkey (Talk | contribs) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
|- | |- | ||
| style="border:1pt solid #000000;padding:0.176cm;"| Slide 1: | | style="border:1pt solid #000000;padding:0.176cm;"| Slide 1: | ||
− | | style="border:1pt solid #000000;padding:0.176cm;"| Welcome to the spoken tutorial on '''OpenPLC | + | Welcome Slide |
+ | | style="border:1pt solid #000000;padding:0.176cm;"| Welcome to the spoken tutorial on '''OpenPLC Mainboard'''. | ||
|- | |- | ||
Line 13: | Line 14: | ||
Learning Objectives | Learning Objectives | ||
− | * Various Components on''' OpenPLC | + | * Various Components on''' OpenPLC Mainboard''' |
| style="border:1pt solid #000000;padding:0.176cm;"| In this tutorial, we will learn about | | style="border:1pt solid #000000;padding:0.176cm;"| In this tutorial, we will learn about | ||
− | * Various components of''' OpenPLC | + | * Various components of''' OpenPLC Mainboard''' |
|- | |- | ||
Line 24: | Line 25: | ||
System Requirements | System Requirements | ||
− | * OpenPLC | + | * OpenPLC Mainboard |
* 24V, 2A SMPS | * 24V, 2A SMPS | ||
* USBasp programmer | * USBasp programmer | ||
Line 31: | Line 32: | ||
| style="border:1pt solid #000000;padding:0.176cm;"| To record this tutorial I am using: | | style="border:1pt solid #000000;padding:0.176cm;"| To record this tutorial I am using: | ||
− | * '''OpenPLC | + | * '''OpenPLC Mainboard''' |
* 24V, 2A '''SMPS''' | * 24V, 2A '''SMPS''' | ||
− | * '''USBasp''' | + | * '''USBasp programmer''' |
* '''Ubuntu Linux 18.04''' operating system | * '''Ubuntu Linux 18.04''' operating system | ||
Line 50: | Line 51: | ||
|- | |- | ||
| style="border:1pt solid #000000;padding:0.176cm;"| Development-board.png | | style="border:1pt solid #000000;padding:0.176cm;"| Development-board.png | ||
− | | style="border:1pt solid #000000;padding:0.176cm;"| This is a picture of '''OpenPLC | + | | style="border:1pt solid #000000;padding:0.176cm;"| This is a picture of '''OpenPLC Mainboard.''' |
|- | |- | ||
Line 65: | Line 66: | ||
| style="border:1pt solid #000000;padding:0.176cm;"| We will now take a look at the '''input power section''' of the '''board'''. | | style="border:1pt solid #000000;padding:0.176cm;"| We will now take a look at the '''input power section''' of the '''board'''. | ||
− | The '''board''' must be powered using 24 volt '''DC''' | + | The '''board''' must be powered using 24 volt '''DC power supply'''. |
− | The 24 volt and 12 volt connections are capable of handling upto 2 amperes of current. | + | The 24 volt and 12 volt connections are capable of handling upto '''2 amperes''' of current. |
|- | |- | ||
Line 77: | Line 78: | ||
|- | |- | ||
| style="border:1pt solid #000000;padding:0.176cm;"| SMPS.jpg | | style="border:1pt solid #000000;padding:0.176cm;"| SMPS.jpg | ||
− | | style="border:1pt solid #000000;padding:0.176cm;"| We are using a 24V, 2A '''SMPS''' for power supply. | + | | style="border:1pt solid #000000;padding:0.176cm;"| We are using a 24V, 2A '''SMPS''' for '''power supply'''. |
|- | |- | ||
Line 83: | Line 84: | ||
(SMPS-front.jpg) | (SMPS-front.jpg) | ||
− | | style="border:1pt solid #000000;padding:0.176cm;"| We have to ''' | + | | style="border:1pt solid #000000;padding:0.176cm;"| We have to connect '''line, neutral''' and '''ground terminals''' of 3-pin '''AC''' power cord to '''SMPS'''. |
Make sure that you identify the '''terminals''' of 3-pin '''AC''' power cord correctly. | Make sure that you identify the '''terminals''' of 3-pin '''AC''' power cord correctly. | ||
Line 91: | Line 92: | ||
(input-power-connections.png) | (input-power-connections.png) | ||
− | | style="border:1pt solid #000000;padding:0.176cm;"| Connect the '''+V''' and '''-V''' ends of the '''SMPS''' to '''24V''' and '''GND''' of the | + | | style="border:1pt solid #000000;padding:0.176cm;"| Connect the '''+V''' and '''-V''' ends of the '''SMPS''' to '''24V''' and '''GND''' of the '''mainboard''' as shown here. |
|- | |- | ||
Line 115: | Line 116: | ||
|- | |- | ||
| style="border:1pt solid #000000;padding:0.176cm;"| | | style="border:1pt solid #000000;padding:0.176cm;"| | ||
− | | style="border:1pt solid #000000;padding:0.176cm;"| After making all the connections properly, turn | + | | style="border:1pt solid #000000;padding:0.176cm;"| After making all the connections properly, turn '''ON''' the '''power supply'''. |
|- | |- | ||
Line 126: | Line 127: | ||
<nowiki><output-power-pins.png with labels></nowiki> | <nowiki><output-power-pins.png with labels></nowiki> | ||
− | | style="border:1pt solid #000000;padding:0.176cm;"| We will now take a look at the ''' | + | | style="border:1pt solid #000000;padding:0.176cm;"| We will now take a look at the output '''power''' section. |
'''24, 12, 5 V''' and '''Ground outputs''' are provided for connections with '''external modules.''' | '''24, 12, 5 V''' and '''Ground outputs''' are provided for connections with '''external modules.''' | ||
Line 163: | Line 164: | ||
(Development-board.png) | (Development-board.png) | ||
− | | style="border:1pt solid #000000;padding:0.176cm;"| At the heart of the | + | | style="border:1pt solid #000000;padding:0.176cm;"| At the heart of the '''mainboard''' is '''ATMega16 microcontroller.''' |
|- | |- | ||
Line 268: | Line 269: | ||
In this tutorial, we learnt about | In this tutorial, we learnt about | ||
− | * Various components on''' OpenPLC | + | * Various components on''' OpenPLC Mainboard''' |
| style="border:1pt solid #000000;padding:0.176cm;"| Summary: | | style="border:1pt solid #000000;padding:0.176cm;"| Summary: | ||
Line 274: | Line 275: | ||
In this tutorial, we learnt about | In this tutorial, we learnt about | ||
− | * Various components of '''OpenPLC | + | * Various components of '''OpenPLC Mainboard''' |
|- | |- |
Latest revision as of 14:21, 1 July 2021
|
|
Slide 1:
Welcome Slide |
Welcome to the spoken tutorial on OpenPLC Mainboard. |
Slide 2:
Learning Objectives
|
In this tutorial, we will learn about
|
Slide 3:
System Requirements
|
To record this tutorial I am using:
|
Slide 4:
OpenPLC hardware
|
|
Development-board.png | This is a picture of OpenPLC Mainboard. |
power-unit.png | This highlighted section is the power unit of the board.
It is further subdivided into input and output power sections. |
Input Power Section:
input-power-unit.png |
We will now take a look at the input power section of the board.
The board must be powered using 24 volt DC power supply. The 24 volt and 12 volt connections are capable of handling upto 2 amperes of current. |
Highlight input power screw terminals
(input-power-unit.png) |
The on board 24V input power terminals are shown on your screen marked GND which is ground, and 24V. |
SMPS.jpg | We are using a 24V, 2A SMPS for power supply. |
Highlight L, N, GND
(SMPS-front.jpg) |
We have to connect line, neutral and ground terminals of 3-pin AC power cord to SMPS.
Make sure that you identify the terminals of 3-pin AC power cord correctly. |
Highlight -V, +V
(input-power-connections.png) |
Connect the +V and -V ends of the SMPS to 24V and GND of the mainboard as shown here. |
wrong-connection.jpg | While making connections, make sure that exposed metal from the wire is not protruding out. |
wrong-connection.jpg | This is a wrong way to connect a wire. |
wrong-connection.jpg | We should not connect the wires in this fashion as this may cause electrical shorts later on. |
correct-connection.jpg | This is a right way to connect a wire.
Tighten the screws properly. Tug the wire moderately to ensure that they are secured in place. |
After making all the connections properly, turn ON the power supply. | |
D2-glow.jpg | Make sure that the D2 LED is glowing on your board which indicates that the board is powered up. |
Output power section:
<output-power-pins.png with labels> |
We will now take a look at the output power section.
24, 12, 5 V and Ground outputs are provided for connections with external modules. The connections are provided through 4 different types of connectors. They are:
|
Highlight relimate connectors
(output-power-pins.png) |
There are 4 relimate connectors on the board as marked in the picture.
Most of the modules developed by FOSSEE will be compatible with these connectors. |
Highlight relimate connectors
(output-power-pins.png) |
These will be easier to access with multi strand cables, if you do not have single strand cables. |
Highlight female and male connectors
output-power-pins.png |
Some external modules in the market are available with either male or female berg connections.
In order to accommodate both types of modules, we have male as well as female connectors. |
Highlight microcontroller
(Development-board.png) |
At the heart of the mainboard is ATMega16 microcontroller. |
The microcontroller has 4 ports namely PORTA, PORTB, PORTC and PORTD.
These ports may be configured to use as a digital input or digital output as desired. | |
portA.png | Port A can be accessed from pin 0 to 7 through this section as labelled.
Port A can also be configured as analog inputs. |
Highlight 4 pins beside port A
(portA.png) |
The 4 pins marked doesn’t belong to Port A.
They are output power pins as described before. |
portB.png | Port B can be accessed from pin 0 to 7 through this section as labelled. |
portC.png | Similarly, PORT C |
portD.png | And PORT D |
Highlight female, male berg connectors and screw terminals(separately)
(portD.png) |
We can connect external inputs or outputs to the board in either of the 3 ways:
|
reset.png | We can reset the program in the microcontroller using the RESET button.
Pressing the RESET button will only reset the state of program variables. It will not erase the program from the microcontroller. |
ISP-header.png | This is a standard ISP header to program the microcontroller.
We can connect an external programmer to this header and program the controller. |
ISP-connection1.jpg
ISP-connection2.jpg |
To connect the header, simply match the notch on the ISP cable with the groove in the header as shown.
The programmer shown in this tutorial is an USBasp programmer. |
UART.png
(Highlight UART pins with red box) Highlight status LEDs |
The UART pins along with 5V and GND are provided to attach an external UART module.
The pin arrangements are shown in the picture. There are two status LEDs near the header to notify communication status. |
Slide 5:
Points to remember:
|
Points to remember:
|
This brings us to the end of this tutorial.
Let us summarize. | |
Slide 6:
Summary In this tutorial, we learnt about
|
Summary:
In this tutorial, we learnt about
|
Slide 7:
About Spoken Tutorial project |
The video at the following link summarises the Spoken Tutorial project.
Please download and watch it |
Slide 8:
Spoken Tutorial workshops |
The Spoken Tutorial Project team:
For more details, please write to us |
Slide 9:
Forum questions: |
Please post your timed queries in this forum. |
Slide 10:
Forum for specific questions: |
Do you have any general / technical questions on OpenPLC?
Please visit the FOSSEE forum and post your question. |
Slide 11:
Acknowledgement |
Spoken Tutorial Project is funded by MHRD, Government of India. |
Slide 12:
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. |