In electronics , a logic gate is an idealized or physical device implementing a Boolean function;that is,it performs a logical operation on one or more logical input, and produces a single logical output .Logic gates are elementary building block of a digital circuit .at any given moment ,every terminal is in one of the two binary conditions ,low(0)or high (1) represented by different voltage levels .

In this instructables I will show you how you can virtually verify the truth tables of OR,AND,NOT,NAND,NOR and X-OR gates using Tinkercad Circuits.You can use the simulator any time to test your circuits. Tinkercad Circuits is a free browser-based program that lets you build and simulate circuits. It's perfect for learning, teaching, and prototyping.

## Step 1: AND Gate

AND gate produces an output as 1, when all its inputs are 1; otherwise the output is 0. This gate can have minimum 2 inputs but output is always one. Its output is 0 when any input is 0.

For simulation follow this link: https://www.tinkercad.com/things/2pyWpVVi6qF

- Here red wire represents high(1).
- Black wire represents low(0).
- orange wire represents output.

You can see that when you simulate above circuit ,then the 4th led turns on .Hence we verified truth table for AND gate using Tinkercad Circuits .

## Step 2: OR Gate

OR gate produces an output as 1, when any or all its inputs are 1; otherwise the output is 0. This gate can have minimum 2 inputs but output is always one. Its output is 0 when all input are 0.

For simulation follow this link:https://www.tinkercad.com/things/6yzvbCiXRBt

- Here red wire represents high(1).
- Black wire represents low(0).
- orange wire represents output.

You can see that when you simulate above circuit ,then 2nd,3rd and 4th leds turns on .Hence we verified truth table for OR gate using Tinkercad Circuits .

## Step 3: NOT Gate

NOT gate produces the complement of its input. This gate is also called an INVERTER. It always has one input and one output. Its output is 0 when input is 1 and output is 1 when input is 0.

For simulation follow this link:https://www.tinkercad.com/things/kXdF6YDBOGh

- Here red wire represents high(1).
- Black wire represents low(0).
- orange wire represents output.

You can see that when you simulate above circuit ,then the 1st led turns on .Hence we verified truth table for NOT gate using Tinkercad Circuits .

## Step 4: NAND Gate

- NAND gate is actually a series of AND gate with NOT gate. If we connect the output of an AND gate to the input of a NOT gate, this combination will work as NOT-AND or NAND gate. Its output is 1 when any or all inputs are 0, otherwise output is 1.

For simulation follow this link:https://www.tinkercad.com/things/ldEHEFdnrag

- Here red wire represents high(1).
- Black wire represents low(0).
- orange wire represents output.

You can see that when you simulate above circuit ,then 1st,2nd and 3rd leds turns on .Hence we verified truth table for NAND gate using Tinkercad Circuits .

## Step 5: NOR Gate

NOR gate is actually a series of OR gate with NOT gate. If we connect the output of an OR gate to the input of a NOT gate, this combination will work as NOT-OR or NOR gate. Its output is 0 when any or all inputs are 1, otherwise output is 1.

For simulation follow this link:https://www.tinkercad.com/things/l7Zriyjjh0e

- Here red wire represents high(1).
- Black wire represents low(0).
- orange wire represents output.

You can see that when you simulate above circuit ,then the 1st led turns on .Hence we verified truth table for NOR gate using Tinkercad Circuits .

## Step 6: Exclusive OR (X-OR) Gate

X-OR gate produces an output as 1, when number of 1’s at its inputs is odd, otherwise output is 0. It has two inputs and one output.

For simulation follow this link:https://www.tinkercad.com/things/23XptbioKAd

- Here red wire represents high(1).
- Black wire represents low(0).
- orange wire represents output.

You can see that when you simulate above circuit ,then 2nd and 3rd leds turns on .Hence we verified truth table for X-OR gate using Tinkercad Circuits .

## Discussions