Professional Documents
Culture Documents
Digital Electronics Lab Worksheet: The Various Logical Gates Are
Digital Electronics Lab Worksheet: The Various Logical Gates Are
Digital Electronics Lab Worksheet: The Various Logical Gates Are
WORKSHEET
· OR
· NOT
· NAND
· NOR
· XOR
DIGITAL ELECTRONICS LAB
WORKSHEET
Requirements
IC for 7400, 7402, 7404, 7408, 7432, 7486, breadboard, connecting
wires, 2 momentary switches, two 10 KΩ resistors, 220 Ω resistor,
LED.
Logic OR Gate
The output, Q of a “Logic OR Gate” only returns “LOW” again when
ALL of its inputs are at a logic level “0” (Fig 2). In other words for a
logic OR gate, any “HIGH” input will give a “HIGH”, logic level “1”
output. The logic or Boolean expression is given for a digital logic OR
gate is that for Logical Addition which is denoted by a plus sign, (+)
giving us the Boolean expression of: A+B=Q. Then we can define the
operation of a 2-input logic OR gate as being:
Exclusive-OR Gate
The output of an Exclusive-OR gate ONLY goes “HIGH” when its two
input terminals are at “DIFFERENT” logic levels with respect to each
other (Fig 6). An odd number of logics “1’s” on its inputs gives a logic
“1” at the output. These two inputs can be at logic level “1” or at
logic level “0” giving us the Boolean expression of :
Result
The truth tables of logic gates NAND, NOR, AND, NOT, OR, XOR was
verified on circuits over a breadboard.
Learning / Observation
We learn how to make a circuit using various Logic Gate.
Troubleshooting
A problem that occurred during the experiment is that on high
voltage IC was busted, I added a resistor, which prevents IC from
blasting.
EXPERIMENT NUMBER-2
1. Design a Burglar alarm using AND gate such that the alarm should turn on
whenever the light falling on the LDR is disrupted.
2. Design a voting system such that a valid vote will be considered when a person
sitting at a desk press both the buttons. IN case only one button is pressed
during the casting of the vote will be considered invalid.
Also, a valid casted vote will be represented by green light and an invalid
casted vote will be represented by a red light.
3. Design an automatic heater controller using NOT gate such that at a
temperature below 10oC the heater should turn ON (the heater can be
represented by using an LED).
APPARATUS REQUIRED:
1. Photoresistor, slide switch, 7408, Two Resistor =10K ohm, One Resistor =
330 ohm, Piezo, Power supply= 5 Voltage 5 Ampere, LED
2. Slide switch, 7432, Two Resistor =10K ohm, One Resistor = 220 ohm,
Piezo, Power supply= 5 Voltage 5 Ampere, LED
Problem statement
1. An AND gate gives an output of logic 1 when input A AND input B are at
logic 1, i.e., when the alarm switch is ON and the LDR sensor detects a
light (flashlight that burglar uses), only then the Alarm will ring,
otherwise, it will not ring in any of the other cases.
In order to design the burglar alarm, the alarm switch which is a SPST (toggle)
switch and the person detection is achieved by the light falling on the sensor (
because of the light source used by the burglar) made from LDR, is used. The
schematic of the circuit is shown as below.
Simulation can be made to check the schematic as given during the
demonstration of the online lab session.
PROBLEM STATEMENT
1. The Logic OR Gate is a type of digital logic circuit whose output goes HIGH
to a logic level 1 only when one or more of its inputs are HIGH. It is
required that the doorbell should ring when someone presses either the
front door switch or the back door switch.
7432 IC Pinout.
OR gates are available in IC packages. The 7432 IC is a well-known QUAD 2-
Input OR gates IC and contains four independent gates each of which performs
the logic OR function.
In order to implement the doorbell ringer, the SPST (toggle) switches are used
as inputs to the OR gate, the output of the OR gate is attached to a Buzzer
which will ring when any one of the switches is pressed.
Problem Statement
The Logic NOT Gate is the most basic of all the logic gates and is often referred to as an Inverting
Buffer or simply an Inverter. It is required to control the central heating to turn on/off according
to the temperature threshold. The temperature is sensed by the LM-35 temperature sensor
having a linear relation of the output voltage to the temperature by 10mV/oC. The decision of
this temperature is above or below a threshold temperature is taken by OP Amp working as a
comparator. Since the relation is linear we know this that at 30 oC the output of LM-35 must be
300mV so we will make Vref of Op-Amp as 300mV.
If the temperature at –ve terminal or Op-AMP is above 30 oC then voltage output of LM-35 will be
greater than 300mV and output will be 0V which will act as logic LOW at the input of NOT gate
and in return, it will give logic HIGH at output turning the fan ON.
Whereas, if the temperature at –ve terminal or Op-AMP is below 30 oC then voltage output of LM-
35 will be less than 300mV and output will be 5V which will act as a logic HIGH at the input of
NOT gate and in return, it will give logic LOW at output turning the fan OFF.
Figure: 7404 IC Pinout
Each 7404 NOT gate IC has 6 NOT gates arranged as shown in Fig 12. 14th pin is the VCC (+5V) and
the 7th pin is the GND (Ground). In order to implement the experiment, the temp sensor input
needs to be given to the input terminal of any one of the NOT gate inside this IC, and the output
actuator can be driven from the output terminal of the same gate.
LEARNING OUTCOMES
• Design and develop modular programs for real-world problems using control
structure and selection structure.
4. Total Marks 20
DIGITAL
ELECTRONICS LAB
WORKSHEET
BHAVIKA
21BCS5054
EXPERIMENT NUMBER-3
Requirements.
➢ Hardware components.
• 5,5 power supply.
• Breadboard.
• Slide Switches.
• LED (Light emitting diode).
DIGITAL
ELECTRONICS LAB
WORKSHEET
BHAVIKA
21BCS5054
• Resistors.
• XOR Gate IC7486
• NOR Gate IC7402
➢ Software component.
• Tinker cad web application.
The Exclusive-OR logic function is a very useful circuit that can be used in many
different types of computational circuits. There are two other types of digital logic
gates which although they are not a basic gate in their own right as they are
constructed by combining together other logic gates, their output Boolean function
is important enough to be considered as complete logic gates. These two “hybrid”
logic gates are called the Exclusive-OR (Ex-OR) Gate and its complement the
Exclusive-NOR (Ex-NOR) Gate. The output of an Exclusive-OR gate ONLY goes “HIGH”
when its two input terminals are at “DIFFERENT” logic levels with respect to each
other. An odd number of logic “1’s” on its inputs gives a logic “1” at the output.
Circuit diagram :
DIGITAL
ELECTRONICS LAB
WORKSHEET
BHAVIKA
21BCS5054
SIMULATION RESULT
When both the switches are on OFF (0) state, the LEDis OFF
(0).
DIGITAL
ELECTRONICS LAB
WORKSHEET
BHAVIKA
21BCS5054
When both the switches are on the “ON” state; the LED willnot
glow (0).
DIGITAL
ELECTRONICS LAB
WORKSHEET
BHAVIKA
21BCS5054
Circuit Diagram :
SIMULATION RESULT
DIGITAL
ELECTRONICS LAB
WORKSHEET
BHAVIKA
21BCS5054
When both the switches are on OFF (0) state, the LED is ON(1).
When both the switches are on the “ON” state; the LED willnot
glow (0).
Concept used.
The basic concept of logic gates for forming the truth table. We
now use the knowledge of K- mapping in order to check
variouslogic gates and their validation.
RESULT:
The practical applications of logic gates (NAND, NOR & XOR) were
studied and implemented.
Troubleshooting.
1. Be very careful while joining the connections.
DIGITAL
ELECTRONICS LAB
WORKSHEET
BHAVIKA
21BCS5054
Learning/ observation.
EXPERIMENT NUMBER: - 4
Design and realize a given function using K-maps and verify its performance.
Requirements.
➢ Hardware components.
• 5,5 power supply.
• Breadboard.
• Slide Switches.
• LED (Light-emitting diode).
• Resistors.
• XOR Gate IC7486
➢ Software component.
• Tinker cad web application.
DIGITAL ELECTRONICS LAB
WORKSHEET
Circuit diagram/ Block diagram.
Simulation Results:
When both the switches are on OFF (0) state, the LED is OFF
(0).
DIGITAL ELECTRONICS LAB
WORKSHEET
When both the switches are on the “ON” state; the LED will not
glow (0).
DIGITAL ELECTRONICS LAB
WORKSHEET
Concept used
The basic concept of logic gates for forming the truth table. We
now use the knowledge of K- mapping in order to check
variouslogic gates and their validation.
Learning/ observation
By performing this worksheet, we learnt about:
1. The application of AND, OR, NOT gate in order to form
XOR gate.
2. Designing a given function with the basic knowledge of K-
map and verifying it.
Troubleshooting
Be very careful while joining the connections.
EXPERIMENT-2.1
Student Name: BHAVIKA Branch: BE(CSE)
UID: 21BCS5054 Section/Group:503A
Date of Performance: 21-03-2022 Subject Name: Digital Electronics
REQUIREMENTS
Breadboard, connecting wires, power supply, LED, Resistor, IC 7408, IC 7486, IC 7432,
and IC Trainer Kit and tinkercad.
Simulation Results:
EXPERIMENT-2.1
Concept used
Half-Adder: A combinational logic circuit that performs the addition of two data bits, A and
B, is called a half-adder. The addition will result in two output bits; one of which is the sum
bit, S, and the other is the carry bit, C. The Boolean functions describing the half-adder are:
S =A XOR B C=AB
Full-Adder: The half-adder does not take the carry bit from its previous stage into account.
This carry bit from its previous stage is called a carry-in bit. A combinational logic circuit that
adds two data bits, A and B, and a carry-in bit, Cin, is called a full-adder. The Boolean
functions describing the full-adder are:
LEARNING OUTCOMES
1) I have learned about full adder and half adder.
2) I have learned the application of AND, XOR and OR gate.
3) I have learned the truth table of half adder and full adder.
Troubleshooting
1. In connecting AND, OR, and XOR gate.
2. Be careful while joining connections.
EXPERIMENT-2.2
Student Name: BHAVIKA Branch: CSE
UID: 21BCS5054 Section/Group: 503A
Date of Performance: 31-03-2022 Subject Name: Digital Electronics
REQUIREMENTS
IC74153, Resistances (470 ohms,1K ohms,1.5 k ohms,2.2 k
ohms), 5V Power Supply, Breadboard, Connecting wires.
Schematic Diagram
EXPERIMENT-2.2
SIMULATION RESULT: -
EXPERIMENT-2.2
EXPERIMENT-2.2
CONCEPT USED
We assemble the circuit over a breadboard and check if they are working. To do
that we have used two pushbuttons are inputs for the control pins A and B. And,
used a series of potential divider combinations to provide variable voltages for
pins 12, 14, 15, and 11. The output pin 13 is connected to an LED. The variable
voltages supplied to the LED will make it to vary the brightness based on the
control signals. The circuit once built will look something like this below:-
EXPERIMENT-2.2
Inputs Output
S A1 A2 Out
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 0
1 1 1 1
SIMULATION RESULT:
We choose to execute the simulation of the circuits so as to understand and study
the various effects of the circuits. Over the course of the many simulations that
led to the final ones presented here, we understood that OrCAD Capture is a
highly resource-intensive simulation package. Once we gained enough
confidence over our circuit model and general proficiency in logic gates
implementation by using Josephson Junctions, we moved further to simulate the
Multiplexer formed by the logic circuits made earlier. The run configuration we
designed allowed us to use the multiple Josephson Junctions available in our
design.
LEARNING OUTCOMES
• I am able to identify the different types of digital circuits and
their difference and to illustrate the various types of gates.
• I am able to understand the various elements of the digital
system and implement their applications.
• I am able to illustrate the relation between Combinational &
Sequential Circuits and apply them for practical applications.
• I am able to solve the basic problems related to different types
of digital circuits and calculate them using various numerical
problems.
EXPERIMENT-2.2
• I am able to create different hardware and software-based digital
applications.
TROUBLESHOOTING
CONNECTIONS SHOULD BE CONNECTED PROPERLY AND
CAREFULLY.
EXPERIMENT-2.3
Aim
When the first switch is on and the second switch is off then led-2 will
glow.
EXPERIMENT-2.3
When the first switch is off and the second one is on then led-3 will glow.
When both the switches are off then led-4 will glow
EXPERIMENT-2.3
Concept used:
74LS138 is a member of ‘the 74xx’family of TTL logic gates. The chip is
designed for decoding or de-multiplexing applications and comes with 3 inputs
to 8 output setups. The design is also made for the chip to be used in high-
performance memory-decoding or data-routing applications, requiring very short
propagation delay times. In high-performance memory systems, these decoders
can be used to minimize the effects of system decoding. The three enable pins of
the chip (in which Two active-low and one active-high) reduce the need for
external gates or inverters when expanding.
About circuit:
Here the outputs are connected to LED to show which output pin goes LOW and
do remember the outputs of the device are inverted. We are using a single device
so we will connect G2A and G2B pin to the ground followed by connecting G1
to VCC to enable the chip. The three buttons here represent three input lines for
the device.
For understanding the working let us consider the truth table of the device.
EXPERIMENT-2.3
Learning/ observation:
1. I am able to learn about Decoder and they will be able to extract relevant
information from the Decoder Datasheet.
2. I am able to learn how Decoder works and how changing the Inputs of different
appliances can be made to turn on and off.
Result
The home appliance control system has been Designed and Implemented using 3 to 8
Decoder.
Troubleshooting:
No errors were encountered during performing the stimulation.
EXPERIMENT NUMBER-3.1
Requirements
• 74HC595
• LEDs
• 220Ω resistors
• Arduino Uno R3
• Tinkercad Simulator.
Simulation Results:
Concept used
In Serial in Parallel Out (SIPO) shift registers, the data is stored into the
register serially while it is retrieved from it in parallel-fashion. Figure 1
shows an n-bit synchronous SIPO shift register sensitive to positive edge
of the clock pulse.
Here the data word which is to be stored (Data in) is fed serially at the
input of the first flip-flop (D1 of FF1). It is also seen that the inputs of all
other flip-flops (except the first flip-flop FF1) are driven by the outputs of
the preceding ones like the input of FF2 is driven by the output of FF1. In
this kind of shift register, the data stored within the register is obtained as
a parallel-output data word (Data out) at the individual output pins of the
flip-flops (Q1 to Qn).
EXPERIMENT NUMBER-3.1
In general, the register contents are cleared by applying high on the clear
pins of all the flip-flops at the initial stage. After this, the first bit, B1 of the
input data word is fed at the D1 pin of FF1.This bit (B1) will enter into FF1,
get stored and thereby appears at its output Q1 on the appearance of first
leading edge of the clock. Further at the second clock pulse, the bit B1
right-shifts and gets stored into FF2 while appearing at its output pin Q2
while a new bit, B2 enters into FF1. Similarly, at each clock pulse the data
within the register moves towards right by a single bit while a new bit of
the input word enters into the register.
Meanwhile one can extract the bits stored within the register in parallel-
fashion at the individual flip-flop outputs.
Analysing on the same grounds, one can note that the n-bit input data word
is obtained as an n-bit output data word from the shift register at the rising
edge of the nth clock pulse. This working of the shift-register can be
summarized as in Table I and the corresponding waveforms are given by
figure 2.
DE LAB WORKSHEET
In the right-shift SIPO shift register, data bits shift from left to right for
each clock pulse. However, if the data bits are made to shift from right to
left in the same design, one gets a left-shift SIPO shift register as shown
in figure 3.
Nevertheless, the basic working principle remains the same except for
the fact that now Bn down to B1 is stored in Qn down to Q1 i.e., Q1 =
B1, Q2 = B2 … Qn = Bn at the nth clock pulse.
Learning/ observation
1. At the end of this experiment, I am able to learn about shift
registers and they will be able to extract relevant information
from the shift register Datasheet.
2. I am able to learn how the shift register works manually by
using Pushbutton.
Troubleshooting
Fault detection. Observe the circuit/system operation and compare
it with the expected correct operation.
Fault isolation. Perform tests and make measurements to isolate
the fault.
DE LAB WORKSHEET
Fault correction. Replace the faulty component, repair the faulty
connection, remove the short, and so on.
EXPERIMENT NUMBER-3.2
Student Name: BHAVIKA Branch: CSE
UID: 21BCS5054 Section/Group: 503A
Date of Performance:29-04-2022 Subject Name: Digital Electronics
Requirements
LDR, CD4026 IC, 7-segment display, 5V Power Supply, Breadboard,
Connecting wires, Windows 10 PC
Concept used
• In LIFT to count and display number of persons inside the lift at a particular
given time
• In any big super market or shopping malls as a visitor counter, to keep track
of the number of visitors who have visited the Mall.
• On the conveyor belt in the industry to count number of objects passed
• In vehicle parking place to count and display number of vehicles inside the
parking lot
Thus the application areas are varied where object counters are used. The object
counter is made up of sensor, counter and display. Sensor senses any object that
passes in front of it and gives output pulse to the counter. Counter increments
count by one when it gets pulse input from sensor. Current count is displayed on
any type of display like the 7-segment or LCD display.
EXPERIMENT NUMBER-3.2
The light source from the torch is continually hit on the LDR if so the resistance
of LDR is too low and the voltage drop across LDR and ground is less than 0.6V.
When an object is passed
between the light beams, light will not hit on the LDR so the resistance of LDR
becomes high. We have V=I x R (Voltage = Current x Resistance) i.e., the
resistance of LDR is the high voltage across LDR become high. As soon as the
object crosses the light beam a LOW and HIGH voltage transition occurs, which
is given to the Clock (input) of CD4026 IC, it will start to count with the clock
and display the count on 7- segment display.
Result
The working object counter using LDR, CD4026 and 7-segment was verified on
simulation software, and implemented on breadboard.
Learning/ observation
1. I have learned about 7-segement display.
2. I have learned about how 7-segement display work.
3. I have learned about how to connect devices on tinkercad.
Troubleshooting
BE CAREFUL WHILE CONNECTING APPLIANCES.
EXPERIMENT NUMBER-3.3
Student Name: BHAVIKA Branch: CSE
UID: 21BCS5054 Section/Group:503A
Date of Performance:05-05-22 Subject Name: Digital electronics
REQUIREMENTS
555 timer IC (NE555), D flip flop IC (7474), 5V Power Supply,
Breadboard, Connecting wires, Tinker cad simulator.
CIRCUIT DIAGRAM
EXPERIMENT NUMBER-3.3
Schematic Representation:
SIMULATION RESULT:
EXPERIMENT NUMBER-3.3
EXPERIMENT NUMBER-3.3
CONCEPT USED
Basically, D flops follow the input when the clock is enabled i.e. it
takes enable as a positive edge trigger and remains in the previous
state when the clock is disabled.
Initially
So, if you code Q of a first flip flop as Yellow led, Q' of a second flip
flop as the red led and Green led is coded to the combination Q' of first
and Q of the second. At the first positive edge trigger, you give input
as 0 to flip flop 1 so the output is also 0 and the output at Q' which is 1
will act as a positive edge trigger at flip flop 2 which will again give
input as 0 to Q of flip flop 2 so the output is also 0 and the output at
Q' of flip flop 2 which is 1 will turn ON the red led connected to it.
At the third positive edge at flip flop 1 the input which is 0 is given to
the output which is also made 0 and the output at Q' which is 1 will act
EXPERIMENT NUMBER-3.3
as a positive edge trigger at flip flop 2 which will again give input as 1
to Q of flip flop 2. Now Q of flip flop 2 and Q' of flip flop 1 which are
both at 1 will give 1 to the yellow LED turning it on.
Now once led glows make sure that the next positive edge trigger will
come after the required time in other words change the frequency of
clock pulse according to your requirement (you can use 555 timer to
generate required clock pulse) so that LED will stays glowing and after
that particular time give 1 as Input at positive edge of the clock the
other LED glows and maintain the same clock frequency.
RESULT:
The practical applications of D flip flop in designing traffic
lights are studied and implemented.
LEARNING OUTCOMES
TROUBLESHOOTING
Be careful while making connections.
DATE: 120
PAGE NO.
signment
UNI-1-
Name -Bhavika
UID-2BCS5054
Uass od Sechon - 503
z F
O
O
F z
Z
BHAVIKA DATE 2
31 Bcs 5o54 PAGE NO
Fo PoS Oum
F =A BC A
F A BcD A
A LB4T +D)(A+T)
A (Bt4D)(
= (A B+AT+AD) CA+)
AAB t AATA ARC ACCACD
AA =0 cEO
0 8 +0 OD - ABC+ AD +A:CD
X 0 =O O.XF0
F=ABC+ ACD
F= ABC+ACD
F AB) (AC D)
ArBT) ( +T+D)
= (A +B+T) (At+D)
Sondastd CoP lem mea taydasA um
IHOdutr Fesurn9o his LOm Pach pacduE
team need notlontan Cul tOals
Name-BhawiRa
OID-91 BLSSo54
ABC+ABCABC
-3 SimpB ly A'BLt LIblha
Boolean algebua
SolAB + ABC+
A'Bc+ AB
=A'8 +ABC+ A'BC+ABC
=C(AB+AB)t AlB4 A8
LCCA B-+ABY)+ CCA'B+ A8
Usi ng Demugn Laug
CCA+8)CA+B))+Ch 98)
tCAAAs+BA+ BB C(A O8)
0+ 98BA-O+d(A48)
cAB+8)+C(ASB)
CAB)+C(A
O8)
NouG t 0Dsume L,A B ) X
is C X
LSh Ch
DATE: 20
PAGE NO.
xO C
No Le
Aubstituding back y= (AO B) weget
A BOc)
Lhth is oqiued implH caion
hoe den0tes XOK.
do -O
do
DATE 20
PAGE NO
2/22
ASS nNMENT
UNIT-2
Name-BhauiRa
UID- 2Bcsso54
laas ond Sechon- 503A
Subiect Daitol 2ect.onits
Conat suc o 5x 32 deLodes uaing 2x
decode and 3x8 decodes
DE
3X8
Deradza
JE
3x 8
Detod e T5
2x 16
3x
Decodex 23
E
24
3Y
Derodar
E
BCD 9 lom
AB
Oo
O O
0
0 00O
LOX X X x
XXXX
o x X X
o XX
OXXX X
x X XX
DO o1 11 10
O1 W=A BC
A11
A 2x X X
BHAVIK A
2) 8CS 505. DATE: 20
PAGE NO
OD 1
A
A 11X X X
1 ol x = BC
c
0 0 0) 1 J 6
OO
A Y =C Z-D
B X X X
X x