際際滷

際際滷Share a Scribd company logo
Catch or Die!
1
息Mustafakamel
Team Members
Ahmed Orabi
Omar Raafat
Mahmoud El-Sayed
Mahmoud Eidarous
Mustafa Kamel
2
Egg catcher game
 Inspired from egg catcher game
 Classic game
 Gain points or loss lives
3
The main idea
 Array of LEDs
 Each luminous led represents an egg
 Lighting and extinction of LEDs represents
egg movement
 Basket position is represented by a row of LEDs
 Two seven-segment chips show the score
 Another seven-segment chip shows
number of lives
4
The circuit
 Consists of seven subcircuits:
1. Random position generator
2. Display (Array of LEDs)
3. Transition bus
4. Basket position controller
5. Comparator
6. Counter and score display
7. Lives Display
5
The circuit schema
6
RPG
circuit
Display LEDs
Transition
bus
Basket position Comparator
Century
Counter
Livesdisplay
The circuit
1. Random position generator
2. Display (Array of LEDs)
3. Transition bus
4. Basket position controller
5. Comparator
6. Counter and score display
7. Lives Display
7
1. Random position generator subcircuit
 Purpose: Illuminating a random led every cycle
 The idea depends on different transition delays
 Consists of three XOR gates
 Each of them uses the other two outputs as inputs
 The path of every output-to-input is different in transition delays
8
The subcircuit schematic
9
The circuit
1. Random position generator
2. Display (Array of LEDs)
3. Transition bus
4. Basket position controller
5. Comparator
6. Counter and score display
7. Lives Display
10
2. Display subcircuit
 Purpose: Displaying current position to the player
 Consists of 64 LEDs
 8 rows x 8 columns
 Only one led can illuminate at a time
 No two subsequent rows can have an illuminated LEDs
 An extra row of 8 LEDs represents basket position
11
The circuit
1. Random position generator
2. Display (Array of LEDs)
3. Transition bus
4. Basket position controller
5. Comparator
6. Counter and score display
7. Lives Display
12
3. Transition bus subcircuit
 Purpose: Moving the position of illuminated LED to next row
 The idea depends on flip flop state transition
 Consists of either :
 three flip flops and a decoder for each row 8 more ICs
 eight flip flops for each row 8 more complex comparator
(more likely to be used)
13
Transition bus schematic (feeder)
14
Transition bus schematic (flip flops)
15
The circuit
1. Random position generator
2. Display (Array of LEDs)
3. Transition bus
4. Basket position controller
5. Comparator
6. Counter and score display
7. Lives Display
16
4. Basket position controller subcircuit
 Purpose: Moving the basket right or left
 The idea depends on an up down counter
 Consists of two push buttons, an up down counter and a decoder
 We can use a 3-bit adder and flip-flops instead of the counter
 The up button will be connected to the input carry
 the down button will be connected to all the B inputs
 All the A inputs are connected to the flip flops which will store the adder's last state
17
BPC schematic
18
The circuit
1. Random position generator
2. Display (Array of LEDs)
3. Transition bus
4. Basket position controller
5. Comparator
6. Counter and score display
7. Lives Display
19
5. Comparator subcircuit
 Acts as a logical judge
 Purpose: Comparing the last row with the controlled row
 The output is a single bit 0/1 to fit the counter input
 The output is 0 if die and 1 if caught
 Its output is valid only if the last row has an illuminated led
 Can done using a set of AND & OR gates
20
Comparator schematic
21
Comparator schematic
22
The circuit
1. Random position generator
2. Display (Array of LEDs)
3. Transition bus
4. Basket position controller
5. Comparator
6. Counter and score display
7. Lives Display
23
6.1 Counter subcircuit
 Purpose: Calculates the score
 If the comparator o/p is high, increase one
 Counts up in range from 0:99
 The score will be displayed on two 7-segment chips
 It will be implemented using two subsequent 4026 Ics
24
7490 counter
25
7490 counter
 Every clock counts one
 Output is 4-bit BCD
 So output will be no more than 15
 Can be used only for a decade (0:9)
 We need to count in a century range (0:99)
26
Alternative solution
 We need to display the score on two 7-segment chips
 7490 IC is inadequate
 We can use two 4026 ICs alternatively
 Every clock it counts up one
 It produces a clock every decade
 Its output is the 7-segment input
27
4026 subcircuit
 Every time the first IC reaches 9 the second
IC counts one
 The clock is the comparator o/p
 The o/p goes to 7-segment directly
 No need to use 7447 (BCD to 7-segment
decoder)
28
6.2 Score display subcircuit
 Just take the counter output and display it on two 7-segments
29
Comparator and score display
30
The circuit
1. Random position generator
2. Display (Array of LEDs)
3. Transition bus
4. Basket position controller
5. Comparator
6. Counter and score display
7. Lives Display
31
7. Lives display subcircuit (1)
 Purpose: Displays Players Lives
 If the comparator o/p is low and valid, decrease one
 Counts down in range from 3 to 0
 If the o/p goes to 0 then GAME OVER
 We CAN use the 7490 counter here
32
7. Lives display subcircuit (2)
 The Circuit uses a 7490 counter that counts UP from 0 to 3
 The 1st two bits are inverted to count down from 3 to 0
 When it reaches zero a game-over flag is raised and the game
stops
 The game's clock will remain high when the player loses
33
Lives display schematic
34
Conclusion
35
Components
Component Quantity Component Quantity Component Quantity
Red LEDs 8x8 Decoders 2 PWM ICs 1
Green LEDs 8 IC 2047 2 PPM circuit 1
Push buttons 2 7490 1 4-bit adder 1
Octal flip flops 8 Green 7-seg 2
Hex not
(Schmitt Triggered)
3
Quad flip flop 2 Red 7-seg 1 Double 4-input OR 3
Monostable multivibrator 1 BCD to 7Seg 1 Hex Schmitt buffer 1
Quad 2-input AND 4 Quad 2-input XOR 3 Resistors --
36
37
Any questions!
Thank you!
38

More Related Content

Similar to Catch or die Project (20)

DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptxDLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
SaveraAyub2
Freescale Microcontroller programming
Freescale Microcontroller programmingFreescale Microcontroller programming
Freescale Microcontroller programming
Shih Cheng Tung
Chapter 5 counter1
Chapter 5 counter1Chapter 5 counter1
Chapter 5 counter1
CT Sabariah Salihin
Traffic signal
Traffic signalTraffic signal
Traffic signal
Riaz Gul Sheikh
Ece221 Ch7 Part1
Ece221 Ch7 Part1Ece221 Ch7 Part1
Ece221 Ch7 Part1
developmentalnerd
Dee2034 chapter 5 counter
Dee2034 chapter 5 counterDee2034 chapter 5 counter
Dee2034 chapter 5 counter
SITI SABARIAH SALIHIN
Project Report On 0-9 decade counter
Project Report On 0-9 decade counterProject Report On 0-9 decade counter
Project Report On 0-9 decade counter
Omkar Rane
Chapter 5 counter
Chapter 5 counterChapter 5 counter
Chapter 5 counter
CT Sabariah Salihin
Digital Clock Using Logic Gates
Digital Clock Using Logic GatesDigital Clock Using Logic Gates
Digital Clock Using Logic Gates
JalpaMaheshwari1
PIC Microcontroller
PIC MicrocontrollerPIC Microcontroller
PIC Microcontroller
Divya Bansal
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
Nabarun Chakraborty
Temperature Controlled Fan Report
Temperature Controlled Fan ReportTemperature Controlled Fan Report
Temperature Controlled Fan Report
Peeyush Pashine
Design and Fabrication of 4-bit processor
Design and Fabrication of  4-bit processorDesign and Fabrication of  4-bit processor
Design and Fabrication of 4-bit processor
Priyatham Bollimpalli
Digital Logic Counter.ppt
Digital Logic Counter.pptDigital Logic Counter.ppt
Digital Logic Counter.ppt
RaziyaSultana30
Bcd counter
Bcd counterBcd counter
Bcd counter
Surbhi Katar
Proyecto final curso Electr坦nica Digital I
Proyecto final curso  Electr坦nica Digital IProyecto final curso  Electr坦nica Digital I
Proyecto final curso Electr坦nica Digital I
Daniel A. Lopez Ch.
Temperature detection and control
Temperature detection and controlTemperature detection and control
Temperature detection and control
MALLIKARJUNAN M
Digital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav Raikar
Digital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav RaikarDigital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav Raikar
Digital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav Raikar
GauravRaikar3
Automaticdcfanenglish 170102145329
Automaticdcfanenglish 170102145329Automaticdcfanenglish 170102145329
Automaticdcfanenglish 170102145329
Ronito Simbolon
Automatic DC Fan Using Arduino
Automatic DC Fan Using ArduinoAutomatic DC Fan Using Arduino
Automatic DC Fan Using Arduino
Mohammad Daddy Refa Manreza
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptxDLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
SaveraAyub2
Freescale Microcontroller programming
Freescale Microcontroller programmingFreescale Microcontroller programming
Freescale Microcontroller programming
Shih Cheng Tung
Project Report On 0-9 decade counter
Project Report On 0-9 decade counterProject Report On 0-9 decade counter
Project Report On 0-9 decade counter
Omkar Rane
Digital Clock Using Logic Gates
Digital Clock Using Logic GatesDigital Clock Using Logic Gates
Digital Clock Using Logic Gates
JalpaMaheshwari1
PIC Microcontroller
PIC MicrocontrollerPIC Microcontroller
PIC Microcontroller
Divya Bansal
Temperature Controlled Fan Report
Temperature Controlled Fan ReportTemperature Controlled Fan Report
Temperature Controlled Fan Report
Peeyush Pashine
Design and Fabrication of 4-bit processor
Design and Fabrication of  4-bit processorDesign and Fabrication of  4-bit processor
Design and Fabrication of 4-bit processor
Priyatham Bollimpalli
Digital Logic Counter.ppt
Digital Logic Counter.pptDigital Logic Counter.ppt
Digital Logic Counter.ppt
RaziyaSultana30
Proyecto final curso Electr坦nica Digital I
Proyecto final curso  Electr坦nica Digital IProyecto final curso  Electr坦nica Digital I
Proyecto final curso Electr坦nica Digital I
Daniel A. Lopez Ch.
Temperature detection and control
Temperature detection and controlTemperature detection and control
Temperature detection and control
MALLIKARJUNAN M
Digital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav Raikar
Digital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav RaikarDigital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav Raikar
Digital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav Raikar
GauravRaikar3
Automaticdcfanenglish 170102145329
Automaticdcfanenglish 170102145329Automaticdcfanenglish 170102145329
Automaticdcfanenglish 170102145329
Ronito Simbolon

Recently uploaded (20)

Essentials of a Good PMO, presented by Aalok Sonawala
Essentials of a Good PMO, presented by Aalok SonawalaEssentials of a Good PMO, presented by Aalok Sonawala
Essentials of a Good PMO, presented by Aalok Sonawala
Association for Project Management
How to attach file using upload button Odoo 18
How to attach file using upload button Odoo 18How to attach file using upload button Odoo 18
How to attach file using upload button Odoo 18
Celine George
Computer Application in Business (commerce)
Computer Application in Business (commerce)Computer Application in Business (commerce)
Computer Application in Business (commerce)
Sudar Sudar
Storytelling instructions...............
Storytelling instructions...............Storytelling instructions...............
Storytelling instructions...............
Alexander Benito
The Dravidian Languages: Tamil, Telugu, Kannada, Malayalam, Brahui, Kuvi, Tulu
The Dravidian Languages: Tamil, Telugu, Kannada, Malayalam, Brahui, Kuvi, TuluThe Dravidian Languages: Tamil, Telugu, Kannada, Malayalam, Brahui, Kuvi, Tulu
The Dravidian Languages: Tamil, Telugu, Kannada, Malayalam, Brahui, Kuvi, Tulu
DrIArulAram
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptxCRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
PoojaSen20
Rass MELAI : an Internet MELA Quiz Finals - El Dorado 2025
Rass MELAI : an Internet MELA Quiz Finals - El Dorado 2025Rass MELAI : an Internet MELA Quiz Finals - El Dorado 2025
Rass MELAI : an Internet MELA Quiz Finals - El Dorado 2025
Conquiztadors- the Quiz Society of Sri Venkateswara College
DUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAM
DUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAMDUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAM
DUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAM
vlckovar
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
sandynavergas1
Kaun TALHA quiz Prelims - El Dorado 2025
Kaun TALHA quiz Prelims - El Dorado 2025Kaun TALHA quiz Prelims - El Dorado 2025
Kaun TALHA quiz Prelims - El Dorado 2025
Conquiztadors- the Quiz Society of Sri Venkateswara College
Digital Tools with AI for e-Content Development.pptx
Digital Tools with AI for e-Content Development.pptxDigital Tools with AI for e-Content Development.pptx
Digital Tools with AI for e-Content Development.pptx
Dr. Sarita Anand
English 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom ObsEnglish 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom Obs
NerissaMendez1
The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .
saanidhyapatel09
Kaun TALHA quiz Finals -- El Dorado 2025
Kaun TALHA quiz Finals -- El Dorado 2025Kaun TALHA quiz Finals -- El Dorado 2025
Kaun TALHA quiz Finals -- El Dorado 2025
Conquiztadors- the Quiz Society of Sri Venkateswara College
cervical spine mobilization manual therapy .pdf
cervical spine mobilization manual therapy .pdfcervical spine mobilization manual therapy .pdf
cervical spine mobilization manual therapy .pdf
SamarHosni3
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
Association for Project Management
Year 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptxYear 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptx
mansk2
EDL 290F Week 3 - Mountaintop Views (2025).pdf
EDL 290F Week 3  - Mountaintop Views (2025).pdfEDL 290F Week 3  - Mountaintop Views (2025).pdf
EDL 290F Week 3 - Mountaintop Views (2025).pdf
Liz Walsh-Trevino
Principle and Practices of Animal Breeding || Boby Basnet
Principle and Practices of Animal Breeding || Boby BasnetPrinciple and Practices of Animal Breeding || Boby Basnet
Principle and Practices of Animal Breeding || Boby Basnet
Boby Basnet
SOCIAL CHANGE(a change in the institutional and normative structure of societ...
SOCIAL CHANGE(a change in the institutional and normative structure of societ...SOCIAL CHANGE(a change in the institutional and normative structure of societ...
SOCIAL CHANGE(a change in the institutional and normative structure of societ...
DrNidhiAgarwal
How to attach file using upload button Odoo 18
How to attach file using upload button Odoo 18How to attach file using upload button Odoo 18
How to attach file using upload button Odoo 18
Celine George
Computer Application in Business (commerce)
Computer Application in Business (commerce)Computer Application in Business (commerce)
Computer Application in Business (commerce)
Sudar Sudar
Storytelling instructions...............
Storytelling instructions...............Storytelling instructions...............
Storytelling instructions...............
Alexander Benito
The Dravidian Languages: Tamil, Telugu, Kannada, Malayalam, Brahui, Kuvi, Tulu
The Dravidian Languages: Tamil, Telugu, Kannada, Malayalam, Brahui, Kuvi, TuluThe Dravidian Languages: Tamil, Telugu, Kannada, Malayalam, Brahui, Kuvi, Tulu
The Dravidian Languages: Tamil, Telugu, Kannada, Malayalam, Brahui, Kuvi, Tulu
DrIArulAram
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptxCRITICAL THINKING AND NURSING JUDGEMENT.pptx
CRITICAL THINKING AND NURSING JUDGEMENT.pptx
PoojaSen20
DUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAM
DUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAMDUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAM
DUBLIN PROGRAM DUBLIN PROGRAM DUBLIN PROGRAM
vlckovar
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
Eng7-Q4-Lesson 1 Part 1 Understanding Discipline-Specific Words, Voice, and T...
sandynavergas1
Digital Tools with AI for e-Content Development.pptx
Digital Tools with AI for e-Content Development.pptxDigital Tools with AI for e-Content Development.pptx
Digital Tools with AI for e-Content Development.pptx
Dr. Sarita Anand
English 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom ObsEnglish 4 Quarter 4 Week 4 Classroom Obs
English 4 Quarter 4 Week 4 Classroom Obs
NerissaMendez1
The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .The Constitution, Government and Law making bodies .
The Constitution, Government and Law making bodies .
saanidhyapatel09
cervical spine mobilization manual therapy .pdf
cervical spine mobilization manual therapy .pdfcervical spine mobilization manual therapy .pdf
cervical spine mobilization manual therapy .pdf
SamarHosni3
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
APM People Interest Network Conference - Oliver Randall & David Bovis - Own Y...
Association for Project Management
Year 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptxYear 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptx
mansk2
EDL 290F Week 3 - Mountaintop Views (2025).pdf
EDL 290F Week 3  - Mountaintop Views (2025).pdfEDL 290F Week 3  - Mountaintop Views (2025).pdf
EDL 290F Week 3 - Mountaintop Views (2025).pdf
Liz Walsh-Trevino
Principle and Practices of Animal Breeding || Boby Basnet
Principle and Practices of Animal Breeding || Boby BasnetPrinciple and Practices of Animal Breeding || Boby Basnet
Principle and Practices of Animal Breeding || Boby Basnet
Boby Basnet
SOCIAL CHANGE(a change in the institutional and normative structure of societ...
SOCIAL CHANGE(a change in the institutional and normative structure of societ...SOCIAL CHANGE(a change in the institutional and normative structure of societ...
SOCIAL CHANGE(a change in the institutional and normative structure of societ...
DrNidhiAgarwal

Catch or die Project

  • 2. Team Members Ahmed Orabi Omar Raafat Mahmoud El-Sayed Mahmoud Eidarous Mustafa Kamel 2
  • 3. Egg catcher game Inspired from egg catcher game Classic game Gain points or loss lives 3
  • 4. The main idea Array of LEDs Each luminous led represents an egg Lighting and extinction of LEDs represents egg movement Basket position is represented by a row of LEDs Two seven-segment chips show the score Another seven-segment chip shows number of lives 4
  • 5. The circuit Consists of seven subcircuits: 1. Random position generator 2. Display (Array of LEDs) 3. Transition bus 4. Basket position controller 5. Comparator 6. Counter and score display 7. Lives Display 5
  • 6. The circuit schema 6 RPG circuit Display LEDs Transition bus Basket position Comparator Century Counter Livesdisplay
  • 7. The circuit 1. Random position generator 2. Display (Array of LEDs) 3. Transition bus 4. Basket position controller 5. Comparator 6. Counter and score display 7. Lives Display 7
  • 8. 1. Random position generator subcircuit Purpose: Illuminating a random led every cycle The idea depends on different transition delays Consists of three XOR gates Each of them uses the other two outputs as inputs The path of every output-to-input is different in transition delays 8
  • 10. The circuit 1. Random position generator 2. Display (Array of LEDs) 3. Transition bus 4. Basket position controller 5. Comparator 6. Counter and score display 7. Lives Display 10
  • 11. 2. Display subcircuit Purpose: Displaying current position to the player Consists of 64 LEDs 8 rows x 8 columns Only one led can illuminate at a time No two subsequent rows can have an illuminated LEDs An extra row of 8 LEDs represents basket position 11
  • 12. The circuit 1. Random position generator 2. Display (Array of LEDs) 3. Transition bus 4. Basket position controller 5. Comparator 6. Counter and score display 7. Lives Display 12
  • 13. 3. Transition bus subcircuit Purpose: Moving the position of illuminated LED to next row The idea depends on flip flop state transition Consists of either : three flip flops and a decoder for each row 8 more ICs eight flip flops for each row 8 more complex comparator (more likely to be used) 13
  • 15. Transition bus schematic (flip flops) 15
  • 16. The circuit 1. Random position generator 2. Display (Array of LEDs) 3. Transition bus 4. Basket position controller 5. Comparator 6. Counter and score display 7. Lives Display 16
  • 17. 4. Basket position controller subcircuit Purpose: Moving the basket right or left The idea depends on an up down counter Consists of two push buttons, an up down counter and a decoder We can use a 3-bit adder and flip-flops instead of the counter The up button will be connected to the input carry the down button will be connected to all the B inputs All the A inputs are connected to the flip flops which will store the adder's last state 17
  • 19. The circuit 1. Random position generator 2. Display (Array of LEDs) 3. Transition bus 4. Basket position controller 5. Comparator 6. Counter and score display 7. Lives Display 19
  • 20. 5. Comparator subcircuit Acts as a logical judge Purpose: Comparing the last row with the controlled row The output is a single bit 0/1 to fit the counter input The output is 0 if die and 1 if caught Its output is valid only if the last row has an illuminated led Can done using a set of AND & OR gates 20
  • 23. The circuit 1. Random position generator 2. Display (Array of LEDs) 3. Transition bus 4. Basket position controller 5. Comparator 6. Counter and score display 7. Lives Display 23
  • 24. 6.1 Counter subcircuit Purpose: Calculates the score If the comparator o/p is high, increase one Counts up in range from 0:99 The score will be displayed on two 7-segment chips It will be implemented using two subsequent 4026 Ics 24
  • 26. 7490 counter Every clock counts one Output is 4-bit BCD So output will be no more than 15 Can be used only for a decade (0:9) We need to count in a century range (0:99) 26
  • 27. Alternative solution We need to display the score on two 7-segment chips 7490 IC is inadequate We can use two 4026 ICs alternatively Every clock it counts up one It produces a clock every decade Its output is the 7-segment input 27
  • 28. 4026 subcircuit Every time the first IC reaches 9 the second IC counts one The clock is the comparator o/p The o/p goes to 7-segment directly No need to use 7447 (BCD to 7-segment decoder) 28
  • 29. 6.2 Score display subcircuit Just take the counter output and display it on two 7-segments 29
  • 30. Comparator and score display 30
  • 31. The circuit 1. Random position generator 2. Display (Array of LEDs) 3. Transition bus 4. Basket position controller 5. Comparator 6. Counter and score display 7. Lives Display 31
  • 32. 7. Lives display subcircuit (1) Purpose: Displays Players Lives If the comparator o/p is low and valid, decrease one Counts down in range from 3 to 0 If the o/p goes to 0 then GAME OVER We CAN use the 7490 counter here 32
  • 33. 7. Lives display subcircuit (2) The Circuit uses a 7490 counter that counts UP from 0 to 3 The 1st two bits are inverted to count down from 3 to 0 When it reaches zero a game-over flag is raised and the game stops The game's clock will remain high when the player loses 33
  • 36. Components Component Quantity Component Quantity Component Quantity Red LEDs 8x8 Decoders 2 PWM ICs 1 Green LEDs 8 IC 2047 2 PPM circuit 1 Push buttons 2 7490 1 4-bit adder 1 Octal flip flops 8 Green 7-seg 2 Hex not (Schmitt Triggered) 3 Quad flip flop 2 Red 7-seg 1 Double 4-input OR 3 Monostable multivibrator 1 BCD to 7Seg 1 Hex Schmitt buffer 1 Quad 2-input AND 4 Quad 2-input XOR 3 Resistors -- 36