Lab Report dld
Lab Report dld
SOLUTION:
First we make logic state diagram for better understanding.
In this specific task , we make logic that when we enter 1 dime and then 1 dime it open and no
return, or when we enter 1 dime and 1 nickel it also open but no return , or when we enter 1
nickel then 1 nickel then nickel it open and no return.
So we are bounded to enter two different currency at one time .
Functional Inputs:
S0=00
S1=01
S2=10
S3=11
These are the state .
And we are using two d flip flops so we have two present states A and B .
State Diagram:
The state diagram for the following project will be as follows:
1
Logic Table:
A B D N A B Y
0 0 0 0 0 0 0
0 0 0 1 0 1 0
0 0 1 0 1 0 0
0 0 1 1 X X X
0 1 0 0 0 1 0
0 1 0 1 1 0 0
0 1 1 0 1 1 0
0 1 1 1 X X X
2
1 0 0 0 1 0 0
1 0 0 1 1 1 0
1 0 1 0 1 1 0
1 0 1 1 X X X
1 1 0 0 1 1 1
1 1 0 1 1 1 1
1 1 1 0 1 1 1
1 1 1 1 X X X
Kmap:
0 0 X 1
0 1 X 1
1 1 X 1
1 1 X 1
DA =D+A+NB
0 1 X 0
1 0 X 1
1 1 X 1
0 1 X 1
DB =AB+B’N+N’B+AD
0 0 X 0
0 0 X 0
1 1 X 1
0 0 X 0
Y =A.B
3
Logic Diagram:
4
With Pushbutton:
Hardware Components:
Breadboard :
IC 7474 For Dual Flip flop
IC 7408 For AND Gate
IC 7432 For OR Gate
IC 7404 For NOT Gate
IC 4072 For 4-input OR Gate
LEDS
Resistors
For Clockpulse:
IC 555 Timer
1 Variable Potentiometer (10K)
1 Capacitor (Micro F)
1 LED For Output
1 Resistor Across Output
5
Conclusion:
The vending machine is simple and easy to use. It accepts dimes (10¢) and nickels (5¢) and releases
the item once 15 cents are deposited. There is no option to give back extra money if more than 15
cents are added. This design works well where users are expected to have the exact amount.