Professional Documents
Culture Documents
Department of Computer
Science
Lab journal-02
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:
➢ Terminal 1 Usage:
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:
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:
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
Solution:
Components used:
1. Battery(Multiple cell)
2. Motor
3. Switch(DPDT)
BAHRIA UNIVERSITY, ISLAMABAD
Department of Computer
Science
Circuit:
The End