Difference between revisions of "CircuitJS/C3/NAND-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 '''NAND''' Gate using '''CircuitJS''' simulator |- style="backgr...")
 
Line 9: Line 9:
 
|| Slide 1:
 
|| Slide 1:
 
|| Welcome to the spoken tutorial on '''NAND''' Gate using '''CircuitJS''' simulator
 
|| Welcome to the spoken tutorial on '''NAND''' Gate using '''CircuitJS''' simulator
|- style="background-color:transparent;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;">'''NAND''' Gate and</div>
+
* '''NAND''' Gate and
* <div style="margin-left:1.27cm;margin-right:0cm;">Verify its truth table</div>
+
* Verify its truth table
  
|- style="background-color:transparent;border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;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="background-color:transparent;border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;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="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| '''Slide 5:'''
 
|| '''Slide 5:'''
  
 
'''NAND Gate'''
 
'''NAND Gate'''
 
||
 
||
* <div style="margin-left:1.27cm;margin-right:0cm;">'''NAND''' is an abbreviation for “'''NOT AND”'''</div>
+
* '''NAND''' is an abbreviation for “'''NOT AND”'''
* <div style="margin-left:1.27cm;margin-right:0cm;">Its truth table is exactly opposite of the '''AND''' gate.</div>
+
* Its truth table is exactly opposite of the '''AND''' gate.
* <div style="margin-left:1.27cm;margin-right:0cm;">The output is "LOW" if both inputs are "HIGH."</div>
+
* The output is "LOW" if both inputs are "HIGH."
  
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| '''NAND Gate.png'''
 
|| '''NAND Gate.png'''
  
 
0:50 - NAND Gate - title
 
0:50 - NAND Gate - title
|| <span style="background-color:#ffffff;">It is the combination of two basic logic gates, the </span><span style="background-color:#ffffff;">'''AND'''</span><span style="background-color:#ffffff;"> gate and the </span><span style="background-color:#ffffff;">'''NOT'''</span><span style="background-color:#ffffff;"> gate connected in series.</span>
+
|| It is the combination of two basic logic gates, the '''AND''' gate and the '''NOT''' gate connected in series.
  
 
We will make this circuit for the '''NAND''' Gate''' '''demonstration'''.'''
 
We will make this circuit for the '''NAND''' Gate''' '''demonstration'''.'''
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Show the diagram
 
|| Show the diagram
  
 
|| To do this experiment, we will need
 
|| To do this experiment, we will need
* <div style="margin-left:1.27cm;margin-right:0cm;">1 AND Gate</div>
+
* 1 AND Gate
* <div style="margin-left:1.27cm;margin-right:0cm;">1 NOT Gate</div>
+
* 1 NOT Gate
* <div style="margin-left:1.27cm;margin-right:0cm;">2 Logic Inputs</div>
+
* 2 Logic Inputs
* <div style="margin-left:1.27cm;margin-right:0cm;">1 Logic Output</div>
+
* 1 Logic Output
  
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
||  
 
||  
 
|| Let us open the '''CircuitJS''' interface.
 
|| Let us open the '''CircuitJS''' interface.
  
 
Click on '''File''' in the menu bar and select '''New Blank Circuit.'''
 
Click on '''File''' in the menu bar and select '''New Blank Circuit.'''
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Click on the '''Draw''' option
 
|| Click on the '''Draw''' option
  
Line 73: Line 73:
  
 
Drag and draw the '''AND gate''' in the working area.
 
Drag and draw the '''AND gate''' in the working area.
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
||  
 
||  
 
|| We need two inputs and one output to see the result of the '''NAND''' Gate.
 
|| We need two inputs and one output to see the result of the '''NAND''' Gate.
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
||  
+
|| Select Logic Input
 
+
Select Logic Input
+
 
|| Go to the '''Draw''' menu and select the''' Logic Gates, Input and Output'''.
 
|| Go to the '''Draw''' menu and select the''' Logic Gates, Input and Output'''.
  
Line 89: Line 87:
  
 
By doing this, the input values will be shown in either 0’s or 1’s.
 
By doing this, the input values will be shown in either 0’s or 1’s.
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
||  
 
||  
 
|| We need two logic inputs to build the '''NAND''' gate.
 
|| We need two logic inputs to build the '''NAND''' gate.
Line 96: Line 94:
  
 
Connect both the logic inputs to the '''AND''' Gate as shown.
 
Connect both the logic inputs to the '''AND''' Gate as shown.
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
||  
+
|| Select Add Inverter
 
+
Select Add Inverter
+
  
 
|| We require a '''NOT''' gate to get the desired output of '''NAND''' Gate.
 
|| We require a '''NOT''' gate to get the desired output of '''NAND''' Gate.
Line 110: Line 106:
  
 
Connect the output of the '''AND''' gate to the input of the '''NOT''' gate.
 
Connect the output of the '''AND''' gate to the input of the '''NOT''' gate.
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
||  
+
|| Select Logic Output
 
+
Select Logic Output
+
  
 
|| Now we need a logic output to see the result.
 
|| Now we need a logic output to see the result.
Line 130: Line 124:
  
 
Connect the logic output to the output pin of '''NOT''' gate.
 
Connect the logic output to the output pin of '''NOT''' gate.
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Use Add text option to give labels
 
|| Use Add text option to give labels
 
|| Use the '''Add text''' option to label these input and output pins.
 
|| Use the '''Add text''' option to label these input and output pins.
  
 
Let us label the inputs as A and B, and output as Y.
 
Let us label the inputs as A and B, and output as Y.
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| '''NAND Gate Truthtable.png'''
 
|| '''NAND Gate Truthtable.png'''
  
Line 141: Line 135:
  
 
If any of the inputs in the '''NAND''' gate is 0, the output is 1.
 
If any of the inputs in the '''NAND''' gate is 0, the output is 1.
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
||  
 
||  
 
|| Let us go to '''circuitJS''' simulator to verify the truth table of the '''NAND '''gate.
 
|| Let us go to '''circuitJS''' simulator to verify the truth table of the '''NAND '''gate.
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
||  
+
|| Working of the circuit
 
+
Working of the circuit
+
 
|| 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.
  
Line 155: Line 147:
  
 
Thus the first condition is verified.
 
Thus the first condition is verified.
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
||  
 
||  
 
|| To verify the second condition in the truth table, we need to change the value of input B.
 
|| To verify the second condition in the truth table, we need to change the value of input B.
Line 166: Line 158:
  
 
Check the remaining two input conditions of the '''NAND''' gate with the truth table.
 
Check the remaining two input conditions of the '''NAND''' gate with the truth table.
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Slide:
 
|| Slide:
  
Line 173: Line 165:
  
 
Note the small circle added in the '''AND''' gate which represents the '''NAND''' gate.
 
Note the small circle added in the '''AND''' gate which represents the '''NAND''' gate.
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
||  
 
||  
  
Line 183: Line 175:
  
 
Drag and draw the gate in the working area.
 
Drag and draw the gate in the working area.
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Slide:
 
|| Slide:
  
Line 192: Line 184:
 
|| As an assignment,
 
|| As an assignment,
  
# <div style="margin-left:1.27cm;margin-right:0cm;">Connect the logic input and logic output to the '''NAND''' gate.</div>
+
# Connect the logic input and logic output to the '''NAND''' gate.
# <div style="margin-left:1.27cm;margin-right:0cm;">Use''' Add Logic Input '''and '''Add Logic Output''' to connect input and output of the '''NAND''' gate.</div>
+
# Use''' Add Logic Input '''and '''Add Logic Output''' to connect input and output of the '''NAND''' gate.
# <div style="margin-left:1.27cm;margin-right:0cm;">Label the input pins as''' A and B '''and output pin as''' Y.'''</div>
+
# Label the input pins as''' A and B '''and output pin as''' Y.'''
# <div style="margin-left:1.27cm;margin-right:0cm;">Follow the truth table input values and verify the '''NAND''' Gate.</div>
+
# Follow the truth table input values and verify the '''NAND''' Gate.
  
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| Slide :
 
|| Slide :
  
Line 205: Line 197:
  
 
'''3-INPUT NAND Gate Truthtable.png'''
 
'''3-INPUT NAND Gate Truthtable.png'''
|| <div style="color:#ff0000;"></div>
+
|| Do this assignment with 3-input gate:
 
+
<div style="color:#000000;">Do this assignment with 3-input gate:</div>
+
  
* <div style="margin-left:1.27cm;margin-right:0cm;">Build a 3-input '''NAND''' gate as shown in the image.</div>
+
* Build a 3-input '''NAND''' gate as shown in the image.
* <div style="margin-left:1.27cm;margin-right:0cm;">Label the input pins as A, B and C and the output pin as Y.</div>
+
* Label the input pins as A, B and C and the output pin as Y.
* <div style="margin-left:1.27cm;margin-right:0cm;">Verify the truth table for the 3-input NAND gate.</div>
+
* Verify the truth table for the 3-input NAND gate.
  
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
||  
 
||  
 
|| This brings us to the end of this tutorial. Let us summarize.
 
|| This brings us to the end of this tutorial. Let us summarize.
|- style="background-color:transparent;border:1pt solid #000000;padding:0.176cm;"
+
|-  
 
|| 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;">NAND Gate and</div>
+
* NAND Gate and
* <div style="margin-left:1.27cm;margin-right:0cm;">Verify its truth table</div>
+
* Verify its truth table
  
|- style="background-color:transparent;border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"
+
|-  
 
|| Slide :
 
|| Slide :
  
Line 231: Line 221:
  
 
Please download and watch it.
 
Please download and watch it.
|- style="background-color:transparent;border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"
+
|-  
 
|| 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="background-color:transparent;border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"
+
|-  
 
|| 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="background-color:transparent;border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"
+
|-  
 
|| 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="background-color:transparent;border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;"
+
|-  
 
|| 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.

Revision as of 17:54, 14 February 2024


Visual Cue Narration
Slide 1: Welcome to the spoken tutorial on NAND Gate using CircuitJS simulator
Slide 2:

Learning Objective

In this tutorial, we will learn about
  • NAND 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
Slide 5:

NAND Gate

  • NAND is an abbreviation for “NOT AND”
  • Its truth table is exactly opposite of the AND gate.
  • The output is "LOW" if both inputs are "HIGH."
NAND Gate.png

0:50 - NAND Gate - title

It is the combination of two basic logic gates, the AND gate and the NOT gate connected in series.

We will make this circuit for the NAND Gate demonstration.

Show the diagram To do this experiment, we will need
  • 1 AND Gate
  • 1 NOT Gate
  • 2 Logic Inputs
  • 1 Logic Output
Let us open the CircuitJS interface.

Click on File in the menu bar and select New Blank Circuit.

Click on the Draw option

Browse through the menu

Draw AND Gate

Click on the Draw menu and select Logic Gates, Input and Output.

Then select Add AND Gate.

Drag and draw the AND gate in the working area.

We need two inputs and one output to see the result of the NAND Gate.
Select Logic Input Go to the Draw menu and select the Logic Gates, Input and Output.

Select Add Logic Input and draw the logic input as shown.

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.

We need two logic inputs to build the NAND gate.

Right click on the logic input component and select the Duplicate option.

Connect both the logic inputs to the AND Gate as shown.

Select Add Inverter We require a NOT gate to get the desired output of NAND Gate.

Click on the Draw menu and go to Logic Gates, Input and Output and select the Add Inverter option.

The NOT gate is named as Inverter in CircuitJS.

Drag and draw the NOT gate in the working area.

Connect the output of the AND gate to the input of the NOT gate.

Select Logic Output Now we need a logic output to see the result.

Click on the Draw menu and go to Logic Gates, Input and Output.

Select Add Logic output component from the list.

Drag and draw the Logic output component.

Right click on the Logic output component and select 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 values will be shown in either 0’s or 1’s.

Connect the logic output to the output pin of NOT gate.

Use Add text option to give labels Use the Add text option to label these input and output pins.

Let us label the inputs as A and B, and output as Y.

NAND Gate Truthtable.png This is the truth table for the NAND Gate, where A and B are the inputs and Y is the output.

If any of the inputs in the NAND gate is 0, the output is 1.

Let us go to circuitJS simulator to verify the truth table of the NAND gate.
Working of the circuit For the first condition in the truth table, both inputs A and B are 0, i.e. they are LOW.

By default, the values of both the inputs is 0.

Notice that the output Y in the circuit is showing the value 1, i.e. output Y is HIGH.

Thus the first condition is verified.

To verify the second condition in the truth table, we need to change the value of input B.

Click on the input B value, and notice the input value changes from 0 to 1.

The result at the output Y is still the same. i.e. output Y is 1.

The second condition from the truth table is verified.

Check the remaining two input conditions of the NAND gate with the truth table.

Slide:

Symbol_NAND Gate.png

NAND Gate is represented with this symbol.

Note the small circle added in the AND gate which represents the NAND gate.

In CircuitJS, a NAND gate component is available.

Let us see how to use it.

Go to Draw, then select Logic Gates, Input and Output, and then select the Add NAND gate option.

Drag and draw the gate in the working area.

Slide:

Assignment 1

Symbol_NAND Gate.png

As an assignment,
  1. Connect the logic input and logic output to the NAND gate.
  2. Use Add Logic Input and Add Logic Output to connect input and output of the NAND gate.
  3. Label the input pins as A and B and output pin as Y.
  4. Follow the truth table input values and verify the NAND Gate.
Slide :

Assignment 2

3-INPUT NAND Gate.png

3-INPUT NAND Gate Truthtable.png

Do this assignment with 3-input gate:
  • Build a 3-input NAND gate as shown in the image.
  • Label the input pins as A, B and C and the output pin as Y.
  • Verify the truth table for the 3-input NAND gate.
This brings us to the end of this tutorial. Let us summarize.
Slide

Summary

In this tutorial, we learnt about
  • NAND Gate and
  • Verify its 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