CircuitJS/C3/AND-Gate/English

From Script | Spoken-Tutorial
Revision as of 14:17, 1 February 2024 by Madhurig (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Visual Cue Narration
Slide:1 Welcome to the spoken tutorial on AND gate using circuitjs simulator.
Slide 2:

Learning Objective

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

About logic gates

  • Logic gates are the building blocks of Digital Electronics or computer operations.
  • These gates are made of multiple transistors.
  • Logic gates have one or more inputs and have one output.
  • Each input terminal is either True or False.
  • True is represented by 1 and False is represented by 0.
AND Gate Circuit.png We will create this circuit using switches and LEDs for the AND Gate demonstration.
Show the diagram To do this experiment, we will need
  • 2 Switches
  • 220 Ohm Resistor
  • 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 at the top.

Go to the Passive Components, 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.

Connect both switches in series.

In this circuit, these switches act as INPUTs for the AND Gate.

Add Resistor Go to Draw, and select the Add Resistor option.

Drag and draw the resistor as shown.

Place the resistor in series with the switches.

Change the resistor value to 220 Ohms using the Edit option.

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 it below the switches, as shown in the video

Click on the Draw menu and go to the Outputs and Labels option >>

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

Place the LED below the resistor as shown in the circuit.

Point to the circuit. We have all the required components in the work area.

Now let's connect the components using wires.

Click on Add Text option. 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:

AND Gate Truth Table.png

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

When both the inputs are 1, the AND Gate gives the output as 1.

If any of the inputs in AND gate is zero, the output is zero.

Let us go to circuitJS simulator to verify the truth table of AND gate.
Cursor on the interface. For the first condition in the truth table, both inputs A and B are 0, that is they are LOW.
Point to A and B in the circuit. 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.

Point to the circuit. For the second case, input A is 0 and the 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 not glowing.

This indicates that the output Y is 0, 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 AND gate truth table
Cursor on the interface. Next we will see how to use the AND gate component provided by CircuitJS simulator.
Draw AND Gate Click on the Draw and select, Logic Gates, Input and Output.

Select Add AND Gate option.

Click and drag the cursor in the working space to draw the AND gate.

Point to the AND gate component. We need to add two logic inputs and one logic output to see the working of AND gate.
Add Logic Input and Output Click on the Draw, Go to Logic Gates, Input and Output.

Select Add Logic Input option.

Click and drag the cursor in the working space to draw the logic input.

Press the Esc key to deselect the component wherever required.

Right click on the logic input >> 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 AND gate as shown.

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

Select Add Logic output >> draw it in working space.

Next we will add one logic output to the AND gate.

Now, click on the Draw menu, 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 AND Gate.

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

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

It implies that if any of the input is zero, the output is zero.

Check the remaining two conditions according to the AND gate truth table.

Only Narration This brings us to end of this tutorial.

Let us summarize.

Slide

Summary

In this tutorial, we learnt about
  • AND Gate and
  • Verify its truth table
Slide: Assignment 2

Image

As an assignment,
  • With the AND gate component, check and verify the AND 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