Difference between revisions of "CircuitJS/C3/OR-Gate/English"
(Created page with " {| border="1" |- || '''Visual Cue''' || '''Narration''' |- || slide:1 || Welcome to the spoken tutorial on '''OR''' gate using '''circuitjs''' simulator |- style="border:1p...") |
(No difference)
|
Revision as of 15:16, 29 January 2024
Visual Cue | Narration |
slide:1 | Welcome to the spoken tutorial on OR gate using circuitjs simulator |
Slide 2:
Learning Objective |
In this tutorial, we will learn about
|
Slide 3:
Prerequisite |
To follow this tutorial, you should have a basic knowledge of,
|
Slide 4:
System Requirement |
To record this tutorial, I am using:
|
OR Gate Circuit.png | We will create this circuit using switches and LEDs for the OR Gate demonstration. |
Show the diagram
OR Gate circuit.png |
To do this experiment, we will need
|
Keep the circuit diagram on the top right | Let us open the circuitjs interface.
Click on File and select New Blank Circuit. |
Click on the Draw option
Browse through the menu |
Click on the Draw menu.
Go to the Passive Components, and then select Add Switch. Drag and place the switch in the working space. |
We will use 2 switches in this circuit.
Right-click on the switch, then select the Duplicate option to make another one. Place both the switches in parallel alignment as shown. In this circuit, these switches act as INPUTs for the OR Gate. | |
Add Resistor | Go to Draw, and select the Add Resistor option.
Drag and draw the resistor as shown. Change the resistor value to 220 Ohms using the Edit option. Use the Duplicate option to have another resistor of 220 Ohms. Connect one resistor each to the switches in series connection. |
Show the path to find the DC power supply and draw it | Now we need a DC Power supply to make the circuit work.
Click on Draw, then go to Inputs and Sources to see a list of components. Select Add Voltage Source (2-terminal), and drag the DC power supply. Place the power supply in the working space, as shown in the video. |
Add LED | We need an LED to show the output of the circuit.
Click on the Draw menu and go to the Outputs and Labels option and select Add LED. Now click and drag to draw the LED in the working space. |
Use wire | We have all the required components in the working space.
Now let's connect the components using wires. |
Add Text | Use the Add Text option to label the switches and LED.
Give names to these switches as A and B and to the LED as Y. |
Slide:
OR Gate Truth Table.png |
This is the truth table for the OR Gate, where A and B are the inputs and Y is the output.
When any one of the inputs is 1, the OR Gate gives the output as 1. If both the inputs in the OR gate are zero, then the output is zero. |
Let us go to circuitJS simulator to verify the truth table of OR gate. | |
For the first condition in the truth table, both inputs A and B are 0, i.e. they are LOW. | |
This means, we have to open both switches A and B in the circuit.
Click on the center of the switch to open it. Now we can see that the output LED is not glowing. This indicates that the output Y is 0, as given in the truth table. Thus the first condition is verified. | |
For the second case, input A is 0 and input B is 1.
To attain this condition in the circuit, keep switch A open and close switch B as shown. Note that the output LED is now glowing. This indicates that the output Y is 1, as given in the truth table. Thus the second condition is verified. | |
Slide :
Assignment1 Image |
As an assignment,
|
Next we will see how to use the OR gate component provided by CircuitJS simulator. | |
Click on Draw, Go to Logic Gates, Input and Output.
Select Add OR Gate option. Click and drag the cursor in the working space to draw the OR gate. | |
We require two logic inputs and one logic output to see the working of OR gate. | |
Click on Draw, Go to Logic Gates, Input and Output.
Select Add Logic Input option. Click and drag the cursor in the working area to draw the logic input. Press the Esc key to deselect the component wherever required. | |
Right click on the logic input and select the Edit option.
In the pop-up window , check the Numeric box and click on the OK button to save the changes. By doing this, the input values will be shown in either 0’s or 1’s. As we require two logic inputs, let us select the Duplicate option. Now we have two logic inputs. Connect these logic inputs to the input pins of the OR gate as shown. | |
Next we will add one logic output to the OR gate.
Now, go to Draw, click on Logic gates, Input and Output. Then Select Add Logic output and draw it in the working space. Right click on the logic output and select the Edit option. In the pop-up window , check the Numeric box and click on the OK button to save the changes. By doing this, the output value will be shown in either 0’s or 1’s. Connect the logic output to the output pin of OR Gate. | |
Use the Add text option to give labels to pins as shown.
Letters A and B are the inputs and Y is the output. | |
To change the state of the input value from 0 to 1 or vice-versa, click on the input value.
Now click on the input B to make its value 1. Notice the output value Y is 1. It implies that when at least one of the inputs is 1, the output will be 1. Check the remaining two conditions according to the OR gate truth table. | |
This brings us to the end of this tutorial. Let us summarize. | |
Slide
Summary |
In this tutorial, we learnt about
|
Slide: Assignment 2 | As an assignment,
|
Slide :
About Spoken Tutorial project |
The video at the following link summarizes the Spoken Tutorial project.
Please download and watch it. |
Slide :Spoken Tutorial workshops | The Spoken Tutorial Project Team conducts workshops and gives certificates.
For more details, please write to us. |
Slide : Forum for specific questions | Please post your timed queries in this forum |
Acknowledgement | Spoken Tutorial project was established by the Ministry of Education(MoE), Govt of India |
Thank You | This tutorial has been contributed by FOSSEE and Spoken Tutorial Project, IIT Bombay.
Thanks for watching. |