Difference between revisions of "OpenPLC-with-LDmicro/C2/OpenPLC-Traffic-Light-and-Switchboard-Modules/English"
(Created page with " {| border="1" |- || '''VISUAL CUE''' || '''NARRATION''' |- || Slide 1: || Welcome to the spoken tutorial on '''OpenPLC Traffic Light & Switchboard modules.''' |- || Slide 2...") |
|||
Line 5: | Line 5: | ||
|| '''NARRATION''' | || '''NARRATION''' | ||
|- | |- | ||
− | || Slide 1: | + | || Slide 1: Welcome Slide |
|| Welcome to the spoken tutorial on '''OpenPLC Traffic Light & Switchboard modules.''' | || Welcome to the spoken tutorial on '''OpenPLC Traffic Light & Switchboard modules.''' | ||
|- | |- |
Latest revision as of 10:17, 30 June 2021
VISUAL CUE | NARRATION |
Slide 1: Welcome Slide | Welcome to the spoken tutorial on OpenPLC Traffic Light & Switchboard modules. |
Slide 2: Learning Objectives
|
In this tutorial, we will learn about
|
Slide 3: System Requirements
|
To record this tutorial I am using:
|
Slide 4: Pre-requisites
|
|
First we will learn about the OpenPLC Traffic light module. | |
Slide 5: Traffic Light module
This module is used to
|
This module is used to
|
Traffic.jpg | This is a picture of the Traffic light module.
This module replicates a traffic light. It has one red LED marked as STOP and one yellow LED marked as READY. At the bottom, it has 3 green LEDs marked as LEFT, GO and RIGHT. |
led-connectors.png | You can access all these LEDs using the connectors present below. |
traffic-sled.png or (traffic.jpg) | The red LED can also be accessed through the two connectors on the right of it.
If you want to use a single LED you can use these connectors. |
Let us see how to do simple experiments using a single LED. | |
traffic.jpg | The anode and cathode of the red LED are given as connectors to the right of it.
The anode is marked as +5V and cathode as GND, which is Ground. |
These connectors can be connected in 3 different ways.
We will see one by one. | |
traffic.jpg | We can connect +5V pin to 5V and GND pin to any I/O pin of the microcontroller. |
traffic.jpg | Connect GND pin to 0V and +5V pin to any I/O pin of the microcontroller. |
traffic.jpg | Otherwise connect both +5V and GND pins to the I/O pins of the microcontroller. |
Led-connectors.png
traffic.jpg image |
We will see how to use LEDs with the connectors at the bottom of the module.
Each LED’s cathode is taken out through the connectors at the bottom of the module. Note that the rightmost pin marked as ‘EN’ is not an LED connector. |
Led-connectors.png
traffic.jpg image |
Each connector is marked with the first letter of the respective LED name.
We will see one by one starting from right.
|
traffic-enable.png | ‘EN’ is an active low enable pin which enables all the LED pins.
To the left of the yellow LED, we can find a connector marked +5V. This is the power pin of the module. That is, none of the LED glows unless you make these two connections. |
Slide 6: LED to glow
|
Therefore, for any LED to glow you should follow the below:
|
Now we’ll see the working of the module. | |
Slide 7: How can the Traffic Light module be powered?
Traffic Light module can be powered using the output power pins of the Mainboard |
How can the Traffic Light module be powered?
It can be powered using the output power pins of the Mainboard. |
SMPS-Mainboard.jpg - add in editing | Connect the SMPS to the Mainboard as shown here. |
led-connectors.png | First we will see the demo of this module using the connectors available at the bottom. |
demo1.png
Point to the image as per narration |
Connect 5V to the power pin i.e. +5V pin to the left of the yellow LED.
Connect 0V to the ‘EN’ pin. Then, connect 0V to any of the LEDs. I’m connecting it to the pins marked ‘G’, ‘Re’ and ‘S’. |
demo1.png | Make the connections as shown in the picture.
Remember to turn off the power supply when you change or make new connections. |
Turn on the power supply | After making all the connections turn on the power supply of the Mainboard.
The red, yellow and middle green LED has started glowing. |
Do not use I/O pins of the Mainboard to power up the pin marked +5V.
Because it may affect the intensity of the LED. | |
Disconnect the ‘EN’ pin | Now disconnect the ‘EN’ pin.
We can observe that all LEDs go off. |
Turn off the power supply | Turn off the power supply. |
traffic-sled.png | Next, we will see the demo on how to use this module when a single LED is needed. |
demo2.png | Connect 5V to the +5V pin on the right of the red LED.
Connect 0V to the pin marked GND. |
Turn on the power supply | Turn on the power supply.
This will make only the red LED to glow. Thus, there is no need to connect power and enable pins for this connection. |
Turn off the power supply | Turn off the power supply. |
We have seen how Traffic light module can be used in different ways. | |
Now we’ll learn about the OpenPLC Switchboard module. | |
Slide 5: Switchboard module
|
The goal of this module is to get familiarized with different types of switches. In particular their usage in the real time applications in industries. |
Slide 6: Main Components
|
This module has
|
switchboard.jpg | This is the Switchboard module. |
Slide 7: Types of Switches:
|
In this module, there are three kinds of switches available.
They are Normally Open, Normally Closed and Latched action switches. Normally Open is represented as NO and Normally Closed is represented as NC. Latched action switches are represented as L. |
SB-switches.png | We will now look at their arrangement on the module from bottom to top. |
SB-switches.png
Highlight Latch switches Then NC and then NO |
At the bottom, we have two Latched action switches.
Above that we have 4 Normally Closed and then 4 Normally Open switches. |
SB-leds.png | Above these switches we have LEDs corresponding to each switch.
The LEDs are arranged in the same order as that of switches. |
Each LED glow indicates a corresponding switch press. | |
SB-connectors.png | On the top we have female berg connectors for connections. |
SB-connectors-z.png
Point to each particular pin |
Next, we will see about the pins.
Starting from the right, the first two pins are GND and 5V respectively. These are the input power pins of this module. Then we have 4 pins for 4 NO switches and 4 pins for 4 NC switches. The last 2 pins are for 2 latched action switches. |
Slide 8: Important Note
|
NO and Latched action switches must be connected to the I/Os of the microcontroller.
Only then the LEDs of the corresponding switches will work. LEDs of NC switches will work, even if they are not connected to the I/Os of the microcontroller. |
Now, we’ll learn how each type of the switch works. | |
Slide 9: Normally Open Switch
|
The output pin of a NO switch will read logic 0 when it is not pressed.
When the switch is pressed, the output pin will read 5V. This is due to the supply from the microcontroller’s internal pull up register. |
Slide 10: Normally Closed switch
|
The output pin of a NC switch will read 5V when it is not pressed.
This is due to the supply from the microcontroller’s internal pull up register. Upon switch press, the output pin will read logic 0 or ground. |
Slide 11: Latched action switch
|
Latched action switch is basically a push-to-make, push-to-break type of switch.
That is, the output pin will read 5V, when it is pressed for the first time. The output pin will read 0V, when it is pressed for the second time. Working of the LED of a latched action switch corresponds to that of a NO switch. |
Slide 12: How can the Switchboard module be powered?
Switchboard module can be powered using the output power pins of the Mainboard |
How can the Switchboard module be powered?
It can be powered using the output power pins of the Mainboard. |
We have learnt about the different types of switches in the Switchboard module. | |
Using these modules we will learn about LDmicro instructions on OpenPLC in future tutorials. | |
This brings us to the end of this tutorial.
Let us summarize. | |
Slide 8: Summary
|
In this tutorial, we learnt about
|
Slide 9: About
Spoken Tutorial project |
The video at the following link summarises 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:
Forum for specific questions: |
Please post your timed queries in this forum. |
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 the FOSSEE team, signing off. Thanks for watching. |