You are on page 1of 13

BAHRIA UNIVERSITY, ISLAMABAD

Department of Computer
Science

Digital Design Lab

Lab journal-02

Name: Muhammad Bilal


Enrollment: 01-134232-115
Submitted to: Sir Haseeb Yousaf
Date: 23 rd February, 2024
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer
Science

Question 1: write a detailed note on slider switch and discuss the following topics:
1. Terminal 1 usage with example
2. Common usage with example
3. Terminal 2 usage with example
Solution:
1. Definition:

A slider switch, also known as a slide switch or toggle switch, is a type of


electrical switch that is commonly used in electronic circuits to control the flow of
electricity. It typically consists of a lever or slider mechanism that can be moved
back and forth between different positions to open or close a circuit. Slider
switches are widely used in various applications due to their simplicity, reliability,
and ease of use.

➢ Terminal 1 Usage:

Terminal 1 (often labeled as "T1") of a slider switch is typically connected to one


end of the circuit, serving as the input or output terminal depending on the circuit's
configuration. This terminal is usually connected to one of the fixed contacts
within the switch assembly. One common usage of Terminal 1 is in circuitry where
it serves as the input terminal. For instance, in a simple LED circuit, Terminal 1
might be connected to the positive (anode) terminal of the power source, allowing
current to flow into the switch.

Example:

Consider a basic flashlight circuit with a slider switch. When the slider is moved to
one position, Terminal 1 is connected to Terminal 2 (discussed later), completing
the circuit and allowing current to flow through the flashlight bulb, thereby
illuminating it. When the slider is moved to the other position, Terminal 1
disconnects from Terminal 2, breaking the circuit and turning off the flashlight.
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer
Science

➢ Common Usage:

The common terminal (often labeled as "C" or "COM") of a slider switch is the
central terminal that is typically connected to the load or device being controlled.
In many slider switches, the common terminal is the moving contact, meaning it
connects to either Terminal 1 or Terminal 2 depending on the position of the slider.
Common usage involves connecting this terminal to the load or device that needs
to be controlled by the switch

Example:

➢ Terminal 2 Usage:

Terminal 2 (often labeled as "T2") of a slider switch is another fixed contact within
the switch assembly. This terminal is typically used in conjunction with Terminal 1
to establish the connection required for the circuit to function properly. Depending
on the position of the slider, Terminal 2 connects either to Terminal 1 or to the
common terminal, completing the circuit in one of two possible configurations.
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer
Science

Example:

In a portable radio circuit, Terminal 2 might be connected to the positive terminal


of the speaker. When the slider is in one position, Terminal 2 connects to Terminal
1, allowing the radio to play sound through the speaker. When the slider is moved
to the other position, Terminal 2 connects to the common terminal, breaking the
circuit and muting the sound output.

In summary, a slider switch is a versatile component used in electronic circuits to


control the flow of electricity. Terminal 1, common usage, and Terminal 2 each
play crucial roles in establishing the desired connections within the circuit,
allowing the switch to perform its intended function effectively.

Question#2: Draw an AND gate or any other gate circuit on Tinker cad.
Solution:
AND gate
1. Symbol:
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer
Science

2. Formula:

C=A.B
3. Truth table:

A B A.B

1 0 0

0 0 0

1 1 1

0 1 0

4. Circuit:
For making circuits using AND gate, we have used tinker cad:

➢ When both switches are on, the LED will be on as shown in figure:
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer
Science

➢ When both switches are off, the LED will also be off as there is no flow of
current as shown in figure:

➢ When either one of the switches are off/on, the LED will also be off as there
is no flow of current as shown in figure:
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer
Science

OR gate
1. Symbol:

2. Formula:

C=A.B
3. Truth table:
A B A+B

1 0 1
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer
Science

0 0 0

1 1 1

0 1 1

4. Circuits:
➢ In OR gate, when both switches are off, the LED will remain off,as there is
no flow of current as shown in figure:

➢ When either one of the switches are off/on, the LED will be on as there is
flow of current as shown in figure:
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer
Science

➢ When both switches are on, the LED will be on as shown in figure:

Question#3: Draw another circuit of your own choice on Tinker cad.

NOT gate
1. Symbol:
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer
Science

2. Formula:

Z=𝐴̅
3. Truth table:

Z ̅
𝑨

1 0

0 1

4. Circuit:
➢ When switch is on, the LED will be on.
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer
Science

➢ When switch is off, the LED will be off.

Question#3: Draw an AND gate or any other gate circuit on Proteus.


Solution:
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer
Science

Question#04: Draw the given circuit on proteus:

Solution:

Components used:
1. Battery(Multiple cell)
2. Motor
3. Switch(DPDT)
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer
Science

Circuit:

The End

You might also like