CircuitJS/C3/NAND-Gate/English

From Script | Spoken-Tutorial
Jump to: navigation, search


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, that is 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, that is 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. That is 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.

Go to Draw, then select Logic Gates, Input and Output,

select the Add NAND gate option.

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 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