Difference between revisions of "CircuitJS/C3/OR-Gate/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with " {| border="1" |- || '''Visual Cue''' || '''Narration''' |- || slide:1 || Welcome to the spoken tutorial on '''OR''' gate using '''circuitjs''' simulator |- style="border:1p...")
 
 
Line 1: Line 1:
 
 
 
 
{| border="1"
 
{| border="1"
 
|-
 
|-
Line 9: Line 6:
 
|| slide:1
 
|| slide:1
 
|| Welcome to the spoken tutorial on '''OR''' gate using '''circuitjs''' simulator
 
|| Welcome to the spoken tutorial on '''OR''' gate using '''circuitjs''' simulator
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Slide 2:
 
|| Slide 2:
  
 
Learning Objective
 
Learning Objective
|| In this tutorial, we will learn about
+
|| In this tutorial, we will learn about:
* <div style="margin-left:1.27cm;margin-right:0cm;">OR Gate and</div>
+
* OR Gate and
* <div style="margin-left:1.27cm;margin-right:0cm;">Verify its truth table</div>
+
* Verify its truth table
  
|- style="border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;"
+
|-  
 
|| Slide 3:
 
|| Slide 3:
  
 
Prerequisite
 
Prerequisite
 
|| To follow this tutorial, you should have a basic knowledge of,
 
|| To follow this tutorial, you should have a basic knowledge of,
* <div style="margin-left:1.27cm;margin-right:0cm;">Electrical circuits</div>
+
* Electrical circuits
  
|- style="border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;"
+
|-  
 
|| Slide 4:
 
|| Slide 4:
  
 
System Requirement
 
System Requirement
 
|| To record this tutorial, I am using:
 
|| To record this tutorial, I am using:
* <div style="margin-left:1.27cm;margin-right:0cm;">'''Ubuntu Linux '''20.04 OS</div>
+
* '''Ubuntu Linux '''20.04 OS
* <div style="margin-left:1.27cm;margin-right:0cm;">CircuitJS Application</div>
+
* CircuitJS Application
  
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| OR Gate Circuit.png
 
|| OR Gate Circuit.png
 
|| We will create this circuit using switches and LEDs for the '''OR''' Gate''' '''demonstration'''.'''
 
|| We will create this circuit using switches and LEDs for the '''OR''' Gate''' '''demonstration'''.'''
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Show the diagram
 
|| Show the diagram
  
Line 41: Line 38:
  
 
|| To do this experiment, we will need
 
|| To do this experiment, we will need
* <div style="margin-left:1.27cm;margin-right:0cm;">2 Switches</div>
+
* 2 Switches
* <div style="margin-left:1.27cm;margin-right:0cm;">2 Resistors of 220 Ohm</div>
+
* 2 Resistors of 220 Ohm
* <div style="margin-left:1.27cm;margin-right:0cm;">1 DC Power supply of 5 Volts</div>
+
* 1 DC Power supply of 5 Volts
* <div style="margin-left:1.27cm;margin-right:0cm;">1 LED</div>
+
* 1 LED
  
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Keep the circuit diagram on the top right
 
|| Keep the circuit diagram on the top right
 
|| Let us open the '''circuitjs''' interface.
 
|| Let us open the '''circuitjs''' interface.
  
 
Click on '''File''' and select '''New Blank Circuit.'''
 
Click on '''File''' and select '''New Blank Circuit.'''
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Click on the '''Draw''' option
 
|| Click on the '''Draw''' option
  
Line 60: Line 57:
  
 
Drag and place the switch in the working space.
 
Drag and place the switch in the working space.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
||  
+
|| Point to the switch
 
|| We will use 2 switches in this circuit.
 
|| We will use 2 switches in this circuit.
  
Line 69: Line 66:
  
 
In this circuit, these switches act as '''INPUTs''' for the '''OR''' Gate.
 
In this circuit, these switches act as '''INPUTs''' for the '''OR''' Gate.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Add Resistor
 
|| Add Resistor
 
|| Go to '''Draw''', and select the '''Add Resistor''' option.
 
|| Go to '''Draw''', and select the '''Add Resistor''' option.
Line 80: Line 77:
  
 
Connect one resistor each to the switches in series connection.
 
Connect one resistor each to the switches in series connection.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Show the path to find the DC power supply and draw it
 
|| Show the path to find the DC power supply and draw it
 
 
|| Now we need a '''DC Power''' supply to make the circuit work.
 
|| Now we need a '''DC Power''' supply to make the circuit work.
  
Line 90: Line 86:
  
 
Place the power supply in the working space, as shown in the video.
 
Place the power supply in the working space, as shown in the video.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Add LED
 
|| Add LED
 
|| We need an LED to show the output of the circuit.
 
|| 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
+
Click on the '''Draw '''menu and then go to the '''Outputs and Labels''' option and
  
 
select '''Add LED.'''
 
select '''Add LED.'''
  
 
Now click and drag to draw the '''LED''' in the working space.
 
Now click and drag to draw the '''LED''' in the working space.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Use wire
 
|| Use wire
 
|| We have all the required components in the working space.  
 
|| We have all the required components in the working space.  
  
 
Now let's connect the components using wires.
 
Now let's connect the components using wires.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Add Text
 
|| Add Text
 
|| Use the''' Add Text''' option to label the switches and LED.
 
|| 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.
 
Give names to these switches as A and B and to the LED as Y.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Slide:
 
|| Slide:
  
Line 118: Line 114:
  
 
If both the inputs in the OR gate are zero, then the output is zero.
 
If both the inputs in the OR gate are zero, then the output is zero.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
||  
 
||  
 
|| Let us go to '''circuitJS''' simulator to verify the truth table of '''OR''' gate.
 
|| Let us go to '''circuitJS''' simulator to verify the truth table of '''OR''' gate.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
||  
 
||  
 
|| For the first condition in the truth table, both inputs A and B are 0, i.e. they are LOW.
 
|| For the first condition in the truth table, both inputs A and B are 0, i.e. they are LOW.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
||  
 
||  
 
|| This means, we have to open both switches A and B in the circuit.
 
|| This means, we have to open both switches A and B in the circuit.
Line 135: Line 131:
  
 
Thus the first condition is verified.
 
Thus the first condition is verified.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
||  
 
||  
 
|| For the second case, input A is 0 and input B is 1.
 
|| For the second case, input A is 0 and input B is 1.
Line 146: Line 142:
  
 
Thus the second condition is verified.
 
Thus the second condition is verified.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Slide :
 
|| Slide :
  
Line 154: Line 150:
 
|| As an assignment,
 
|| As an assignment,
  
* <div style="margin-left:1.27cm;margin-right:0cm;">Using the switches and LED circuit, verify the '''OR''' gate truth table </div>
+
* Using the switches and LED circuit, verify the '''OR''' gate truth table  
  
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
||  
 
||  
 
|| Next we will see how to use the '''OR''' gate component provided by '''CircuitJS''' simulator.
 
|| Next we will see how to use the '''OR''' gate component provided by '''CircuitJS''' simulator.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
||  
+
|| Click on '''Draw''', Go to '''Logic Gates, Input and Output.'''
 +
 
 +
Select '''Add OR Gate''' option.
 
|| Click on '''Draw''', Go to '''Logic Gates, Input and Output.'''
 
|| Click on '''Draw''', Go to '''Logic Gates, Input and Output.'''
  
Line 166: Line 164:
  
 
Click and drag the cursor in the working space to draw the '''OR gate'''.
 
Click and drag the cursor in the working space to draw the '''OR gate'''.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
||  
 
||  
 
|| We require two logic inputs and one logic output to see the working of '''OR gate'''.
 
|| We require two logic inputs and one logic output to see the working of '''OR gate'''.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
||  
+
|| Click on '''Draw''', Go to '''Logic Gates, Input and Output.'''
 +
 
 +
Select''' Add Logic Input''' option.
 
|| Click on '''Draw''', Go to '''Logic Gates, Input and Output.'''
 
|| Click on '''Draw''', Go to '''Logic Gates, Input and Output.'''
  
Line 178: Line 178:
  
 
Press the '''Esc''' key to deselect the component wherever required.
 
Press the '''Esc''' key to deselect the component wherever required.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
||  
+
|| Right click on the logic input and select the '''Edit''' option.
 
|| Right click on the logic input and select the '''Edit''' option.  
 
|| Right click on the logic input and select the '''Edit''' option.  
  
Line 191: Line 191:
  
 
Connect these logic inputs to the input pins of the '''OR''' gate as shown.
 
Connect these logic inputs to the input pins of the '''OR''' gate as shown.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
||  
+
|| Go to '''Draw''', click on '''Logic gates, Input and Output.'''
 +
 
 +
Select '''Add Logic output '''and draw it in the working space.
 +
 
 +
Right click on the logic output and select the '''Edit''' option.
 
|| Next we will add one logic output to the '''OR''' gate.
 
|| Next we will add one logic output to the '''OR''' gate.
  
Line 206: Line 210:
  
 
Connect the logic output to the output pin of '''OR''' Gate.
 
Connect the logic output to the output pin of '''OR''' Gate.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
||  
+
|| Click the  '''Add text '''option to give labels to pins.
 
|| Use the '''Add text '''option to give labels to pins as shown.
 
|| Use the '''Add text '''option to give labels to pins as shown.
  
 
Letters A and B are the inputs and Y is the output.
 
Letters A and B are the inputs and Y is the output.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
||  
+
|| Click on the input B to make its value 1.
 
|| To change the state of the input value from 0 to 1 or vice-versa, click on the input value.
 
|| To change the state of the input value from 0 to 1 or vice-versa, click on the input value.
  
Line 222: Line 226:
  
 
Check the remaining two conditions according to the OR gate truth table.
 
Check the remaining two conditions according to the OR gate truth table.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
||  
+
|| Only narration
|| This brings us to the end of this tutorial. Let us summarize.
+
|| This brings us to the end of this tutorial.  
|- style="border:1pt solid #000000;padding:0.176cm;"
+
 
 +
Let us summarize.
 +
|-  
 
|| Slide
 
|| Slide
  
 
Summary
 
Summary
 
|| In this tutorial, we learnt about
 
|| In this tutorial, we learnt about
* <div style="margin-left:1.27cm;margin-right:0cm;">OR Gate and</div>
+
* OR Gate and
* <div style="margin-left:1.27cm;margin-right:0cm;">Verify its truth table</div>
+
* Verify its truth table
  
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Slide: Assignment 2
 
|| Slide: Assignment 2
 
|| As an assignment,
 
|| As an assignment,
  
* <div style="margin-left:1.27cm;margin-right:0cm;">With the '''OR''' gate component, check and verify the '''OR''' gate truth table </div>
+
* With the '''OR''' gate component, check and verify the '''OR''' gate truth table  
  
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Slide :
 
|| Slide :
  
Line 246: Line 252:
  
 
Please download and watch it.
 
Please download and watch it.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Slide&nbsp;:Spoken Tutorial workshops
 
|| Slide&nbsp;:Spoken Tutorial workshops
 
|| The&nbsp;'''Spoken Tutorial Project'''&nbsp;Team conducts workshops and gives certificates.
 
|| The&nbsp;'''Spoken Tutorial Project'''&nbsp;Team conducts workshops and gives certificates.
  
 
For more details, please write to us.
 
For more details, please write to us.
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Slide : Forum for specific questions
 
|| Slide : Forum for specific questions
 
|| Please post your timed queries in this forum
 
|| Please post your timed queries in this forum
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Acknowledgement
 
|| Acknowledgement
 
|| Spoken Tutorial project was established by the Ministry of Education(MoE), Govt of India
 
|| Spoken Tutorial project was established by the Ministry of Education(MoE), Govt of India
|- style="border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Thank You
 
|| Thank You
 
|| 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.
Line 264: Line 270:
 
|-
 
|-
 
|}
 
|}
<div style="margin-left:-1.588cm;margin-right:-1.429cm;"></div>
 

Latest revision as of 12:15, 1 February 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:
  • OR Gate and
  • Verify its truth table
Slide 3:

Prerequisite

To follow this tutorial, you should have a basic knowledge of,
  • Electrical circuits
Slide 4:

System Requirement

To record this tutorial, I am using:
  • Ubuntu Linux 20.04 OS
  • CircuitJS Application
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
  • 2 Switches
  • 2 Resistors of 220 Ohm
  • 1 DC Power supply of 5 Volts
  • 1 LED
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.

Point to the switch 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 then 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,
  • Using the switches and LED circuit, verify the OR gate truth table
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 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 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. 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.

Go to Draw, click on Logic gates, Input and Output.

Select Add Logic output and draw it in the working space.

Right click on the logic output and select the Edit option.

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.

Click the Add text option to give labels to pins. Use the Add text option to give labels to pins as shown.

Letters A and B are the inputs and Y is the output.

Click on the input B to make its value 1. 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.

Only narration This brings us to the end of this tutorial.

Let us summarize.

Slide

Summary

In this tutorial, we learnt about
  • OR Gate and
  • Verify its truth table
Slide: Assignment 2 As an assignment,
  • With the OR gate component, check and verify the OR gate truth table
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.

Contributors and Content Editors

Madhurig, Nirmala Venkat