digital pong maisee brownchris andrewshoang nguyenomar alattar
TRANSCRIPT
![Page 1: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/1.jpg)
ECE 411Digital Pong
Maisee Brown
Chris AndrewsHoang Nguyen Omar Alattar
![Page 2: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/2.jpg)
WHAT IS IT, WHAT DOES IT DO? A machine that allows two players to play the game
of pong One player begins the game by triggering the IR
sensor adjacent to a row on the LED matrix which causes a “ball” of light to launch towards the opposite side
The opposing player triggers the IR sensor corresponding to the same row to nullify the “attack” then responds by launching his own ball
If a player is unable to “block” an oncoming ball, the other player receives a point
As the game goes on, it increases in difficulty by increasing the ball speed more and more, requiring quicker reaction times from both players
The game ends when one player’s score reaches 9
![Page 3: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/3.jpg)
INTERFACE Two players communicate with the
device by triggering one of the three IR sensors situated at their respective end of the board
Two 7-segment displays on the front of the board display the current score, the one on the right for player 1 and the one on the left for player 2.
The 5 x 16 LED matrix on the top is the game play interface; it displays the “ball” and scoring and game messages
![Page 4: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/4.jpg)
HOW DOES IT WORK
![Page 5: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/5.jpg)
RATIONALE Fulfill project requirements Simple
Feasible in terms of knowledge Feasible in terms of time
Interesting Exciting Captivating Easy to use, intuitive
Adequately demonstrate our team’s skill at engineering
The objective of our project was a working prototype
![Page 6: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/6.jpg)
HOW WE DID ITApproach
Design
Implementation
Testing
![Page 7: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/7.jpg)
APPROACH Concurrently Worked on Software and
Hardware Built small prototypes at every step to
verify each piece of the design Ran software to insure we could
interface each component the way we expected
Fully prototyped before sending layout
![Page 8: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/8.jpg)
INFRA RED DETECTION ARRAY
Player 2 Signal Interrupt
Player 1IR emitter
Player 2IR Detector
Player 2IR emitter
Player 2IR Detector
Player 1 Signal Interrupt
![Page 9: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/9.jpg)
REQUIREMENTS SPECIFIC TO INPUTS
Must have an interface between the player and machine that is without wires or buttons during play mode.
Must be playable indoors with respect to signal interference.
Motivation for choosing IR technology:• Provides novel and intuitive
interface between player and Pong board
• Provides a “wireless” feel without wireless interfacing
![Page 10: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/10.jpg)
SPECTRUM CONSIDERATIONS
Source: www.mtholyoke.edu/~mpeterso/classes/phys301/projects2001/awgachor/awgachor.htm
• Fluorescent and halogen lights have a reduced spectrum emission at 950nm
![Page 11: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/11.jpg)
IR DETECTOR CIRCUITVERY SIMPLE, BUT ADEQUATE
![Page 12: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/12.jpg)
HARDWARE DESIGN
Hoang Nguyen
![Page 13: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/13.jpg)
DESIGN- SCHEMATIC
![Page 14: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/14.jpg)
DESIGN – VOLATGE SUPPLY
![Page 15: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/15.jpg)
DESIGN - INPUT
ATMEGA32
INT0
INT1IR
SIGNALS
IR SIGNA
LS
OR GAT
E
OR GAT
E
PC 0 1 2
PA 0 1 2
![Page 16: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/16.jpg)
DESIGN - OUTPUT
![Page 17: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/17.jpg)
DESIGN - PCB LAYOUT
![Page 18: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/18.jpg)
SOFTWARE DESIGN
Maisee Brown
![Page 19: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/19.jpg)
SOFTWARE- CONTROLLING THE LED MATRIX
Use SPI interface clock serial data into shift register
Shift Register acts as a serial to parallel converter
Use decoder to select row to be on Lights were the row is selected and there is a
0 from the shift register will be on To scroll you just << the data word you are
sending to the SPI and re-send
![Page 20: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/20.jpg)
CONTROLLING THE LED MATRIX
Cannot light multiple columns at the same time
To write a message:Combine multiple lettersSelect each row very quicklyAppears to human eyes all lights are on
Load data1 into shift regSelect row one
Load data 2 into shift regSelect row two…
![Page 21: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/21.jpg)
MAIN Only flashes through the rows one at a
time and shifts data words out to the shift registers
![Page 22: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/22.jpg)
INTERRUPT SERVICE ROUTINEFLOW CHART
![Page 23: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/23.jpg)
TIMER INTERRUPT ROUTINE
![Page 24: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/24.jpg)
HOUSINGChris Andrews
![Page 25: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/25.jpg)
HOUSING
Requirements Must be assembled using materials, skills, and tools available. Should have an attractive physical case.
Other considerations that guided housing design Must provide mounting and shielding (physical and EM) for IR arrays. Must hold LED matrix and 7 segment displays for easy viewing Must have components accessible for inspection and rework
![Page 26: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/26.jpg)
CABLES: A NON-TRIVIAL DESIGN CHOICE
If you must use cables… Connect components with headers and bus cables Label and document all connections Account for the physical space of the cable in the housing design
Many bugs traced to cabling problems and last minute design changes traced to cabling problems.
![Page 27: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/27.jpg)
TESTINGOmar Alattar
![Page 28: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/28.jpg)
TESTING Modular testing
Shift register testBCD to 7 segment testMicrocontroller testPower system testOR gate interrupt test3-8 decoder test IR function test
Incremental/concurrent testing Integration testing Criteria for knowing our project worked
![Page 29: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/29.jpg)
Power Supply Test
Micro-Controller Test
3-8 Decoder Test
BCD-7 Segment
Decoder Test
Shift Register Test
OR Gate Interrupt
Test
IR Test
Integration Test 1
![Page 30: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/30.jpg)
Setup: Solder capacitors 3 and 5(.01 uF) , IC3 and 4 (74HCT4511D,652), and SV4 and 5 to the board. Plug two seven segment LED's into SV4 and SV5
Step Action Expected Result
Pass
Fail
N/A
Comments
1 Plug AVR programmer into ISB header pins
X
2 Open Pong_BCDTest X
3
Progam the board and watch both 7- segment displays
Both 7 segments should run through the numbers 0-9
X
Overall test Result: X BCD - 7 and 7 segment displays functional
![Page 31: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/31.jpg)
LESSONS LEARNED
Omar
Chris
Hoang
Maisee
![Page 32: Digital Pong Maisee BrownChris AndrewsHoang NguyenOmar Alattar](https://reader036.vdocuments.net/reader036/viewer/2022062519/56649f185503460f94c2f703/html5/thumbnails/32.jpg)
THINGS WE WOULD HAVE DONE DIFFERENTLY Add light to show whose turn it is Add buffer to IR circuit Perhaps use capacitive buttons Perhaps implement a real pong where
the position of the paddle is controlled by IR sensors detecting the position of a player’s finger