SlideShare a Scribd company logo
Charles Moyes (cwm55) and Shentong Wang (sw477)                                       Lab 5 Project Proposal


Lab 5 Project Proposal - Craps Game
Idea
The idea is to implement a playable game of Craps (casino dice rolling game) using the MSP430 microcon-
troller board. External LEDs arranged in dice shaped format will be used to show the values of the dice
rolls. A basic description of the game rules can be found at:
http://en.wikipedia.org/wiki/Craps
Current limiting resistors will be connected across the LEDs and the digital +5V IO pins in series to ground.
The push button will be used to trigger dice rolls. The built-in green and red LEDs on the MSP430 board
will indicate whether the “Pass” (green LED lit) or the “Don’t Pass” (red LED lit) betters win the round.
The Craps embedded system will act as dice for each player in the game, and as such, will be passed around
the table to each player who wishes to be a “shooter.”

Pseudo-random Number Generator
A pseudo-random number generator will be used to determine the values of the dice rolls in software. The
Linear Congruential Generator algorithm based on modulo arithmetic seems to fit the bill:

                                         Xn+1 ≡ (aXn + c)(mod m)

where Xn is the sequence of values generated and m, a, c, and X0 (the so-called seed) are constants. Because
the microcontroller board lacks a built-in real-time clock, the value of the on-chip temperature sensor instead
will be used to seed the random number generator (X0 ). Hardcoding a random number generator seed into
the code would make playing the game much less interesting since upon rebooting, all games would have the
same sequence of dice rolls and thus would not be random.

Bill of Materials
For this project we will need 7x red LEDs (Part #: COM-09590 on Spark Fun), 7x green LEDs (Part #:
COM-09592 on Spark Fun), 1 yellow LED (Part #: COM-09594 on Spark Fun), a piezoelectric speaker (Part
#: COM-07950 on Spark Fun), 15x 150 Ω resistors (resistance values calculated to match the chosen LEDs),
and a 1K Ω resistor to limit current across the speaker. It is probably a good idea to have some extras of
each component in case we mess up.

Additional Features
If time permits, possible extensions to this idea include using audio feedback via a piezoelectric speaker to
communicate game state by sending PWM signals out of one of the I/O pins. Another idea is to implement
more rules of the game such as the dealer “On” button using an additional LED to signal which phase of
the round that the game is in {come-out, point}, although this state is implicitly encoded by the value of
the first dice roll in the rules of the game so it is not entirely necessary.




                                                                                                             1

More Related Content

PPTX
Best 2011 Christmas Holiday Gifts
PDF
Presupuesto Periferico
PDF
GAME24 Jen-Hsun Huang Keynote
PDF
6 i2c spi шестое занятие
TXT
Sysinfo
PPT
Tom Woolley
DOCX
Andrea p
DOCX
gaming research
Best 2011 Christmas Holiday Gifts
Presupuesto Periferico
GAME24 Jen-Hsun Huang Keynote
6 i2c spi шестое занятие
Sysinfo
Tom Woolley
Andrea p
gaming research

Viewers also liked (17)

PPT
Solidi di rotazione
PPTX
Oltre la retta tra sapere scientifico e apprendimento
PPTX
Mart, maths in art
PDF
Simboli e icone
PPTX
Incontro 4 - I solidi platonici
PDF
Riepilogo geometria solida
PPT
Introduzione alla geometria euclidea
PPTX
Solidi cavalieri
PDF
Fotografia per l'Architettura. By the media-network team
PPT
Prismi e-piramidi
PPT
Introduzione alla geometria euclidea
PPT
Approcci alla Geometria
PDF
Il Disegno su tavola per l'Architettura. By the media-network team
PPTX
G. Lariccia, Gioco con il mio corpo e imparo la geometria
PDF
Geometria i solidi spiegati e illustrati semplicemente e prisma a base trian...
PPTX
architettura 900
PPT
Giocando con la geometria
Solidi di rotazione
Oltre la retta tra sapere scientifico e apprendimento
Mart, maths in art
Simboli e icone
Incontro 4 - I solidi platonici
Riepilogo geometria solida
Introduzione alla geometria euclidea
Solidi cavalieri
Fotografia per l'Architettura. By the media-network team
Prismi e-piramidi
Introduzione alla geometria euclidea
Approcci alla Geometria
Il Disegno su tavola per l'Architettura. By the media-network team
G. Lariccia, Gioco con il mio corpo e imparo la geometria
Geometria i solidi spiegati e illustrati semplicemente e prisma a base trian...
architettura 900
Giocando con la geometria
Ad

Similar to Ece lab5 proposal (20)

PDF
Ece3140 lab5 writeup
PDF
Build your own NES Emulator... with Kotlin
PDF
The Ring programming language version 1.9 book - Part 80 of 210
PDF
Opensource Rapidfire X360 Project2
PDF
DOCX
Console design 1
DOCX
Console design template
PDF
FINAL_Report_RAMEYJM_NAGR
PDF
Hurdle Race Game
DOCX
Robotics Final Project Report
PDF
snake game
PPTX
Development of Gamig Platforms PR1
PDF
The Ring programming language version 1.7 book - Part 74 of 196
PDF
The Ring programming language version 1.2 book - Part 50 of 84
PPTX
Lucky seven game using 7 segment display in fpga
PDF
2 Level Guitar Hero Final Report
DOCX
Console design template
PDF
publish manual
PPT
Forecasting Online Game Addictiveness
PPTX
The Ultimate Gaming
Ece3140 lab5 writeup
Build your own NES Emulator... with Kotlin
The Ring programming language version 1.9 book - Part 80 of 210
Opensource Rapidfire X360 Project2
Console design 1
Console design template
FINAL_Report_RAMEYJM_NAGR
Hurdle Race Game
Robotics Final Project Report
snake game
Development of Gamig Platforms PR1
The Ring programming language version 1.7 book - Part 74 of 196
The Ring programming language version 1.2 book - Part 50 of 84
Lucky seven game using 7 segment display in fpga
2 Level Guitar Hero Final Report
Console design template
publish manual
Forecasting Online Game Addictiveness
The Ultimate Gaming
Ad

More from Chuck Moyes (19)

PDF
Gameplay specificationfinal
PDF
Final presentation
PDF
Concept documentfinal
PDF
Beta releasereport
PDF
Beta presentation
PDF
Alpha releasepresentation
PDF
Manual small (1)
TXT
CS 2110 Programming Competition Entry Readme
PDF
Ece4760 progress report2
PDF
Ece4760 hw5
PDF
Ece4760 hw4
PDF
Ece4760 progess report1
PDF
Fb graph
PPT
Cs 4621 presentation slides
TXT
Ai plan
PDF
Final report
PDF
Presentation slides
PPTX
Car sim rendering
PDF
Cs665 writeup
Gameplay specificationfinal
Final presentation
Concept documentfinal
Beta releasereport
Beta presentation
Alpha releasepresentation
Manual small (1)
CS 2110 Programming Competition Entry Readme
Ece4760 progress report2
Ece4760 hw5
Ece4760 hw4
Ece4760 progess report1
Fb graph
Cs 4621 presentation slides
Ai plan
Final report
Presentation slides
Car sim rendering
Cs665 writeup

Ece lab5 proposal

  • 1. Charles Moyes (cwm55) and Shentong Wang (sw477) Lab 5 Project Proposal Lab 5 Project Proposal - Craps Game Idea The idea is to implement a playable game of Craps (casino dice rolling game) using the MSP430 microcon- troller board. External LEDs arranged in dice shaped format will be used to show the values of the dice rolls. A basic description of the game rules can be found at: http://en.wikipedia.org/wiki/Craps Current limiting resistors will be connected across the LEDs and the digital +5V IO pins in series to ground. The push button will be used to trigger dice rolls. The built-in green and red LEDs on the MSP430 board will indicate whether the “Pass” (green LED lit) or the “Don’t Pass” (red LED lit) betters win the round. The Craps embedded system will act as dice for each player in the game, and as such, will be passed around the table to each player who wishes to be a “shooter.” Pseudo-random Number Generator A pseudo-random number generator will be used to determine the values of the dice rolls in software. The Linear Congruential Generator algorithm based on modulo arithmetic seems to fit the bill: Xn+1 ≡ (aXn + c)(mod m) where Xn is the sequence of values generated and m, a, c, and X0 (the so-called seed) are constants. Because the microcontroller board lacks a built-in real-time clock, the value of the on-chip temperature sensor instead will be used to seed the random number generator (X0 ). Hardcoding a random number generator seed into the code would make playing the game much less interesting since upon rebooting, all games would have the same sequence of dice rolls and thus would not be random. Bill of Materials For this project we will need 7x red LEDs (Part #: COM-09590 on Spark Fun), 7x green LEDs (Part #: COM-09592 on Spark Fun), 1 yellow LED (Part #: COM-09594 on Spark Fun), a piezoelectric speaker (Part #: COM-07950 on Spark Fun), 15x 150 Ω resistors (resistance values calculated to match the chosen LEDs), and a 1K Ω resistor to limit current across the speaker. It is probably a good idea to have some extras of each component in case we mess up. Additional Features If time permits, possible extensions to this idea include using audio feedback via a piezoelectric speaker to communicate game state by sending PWM signals out of one of the I/O pins. Another idea is to implement more rules of the game such as the dealer “On” button using an additional LED to signal which phase of the round that the game is in {come-out, point}, although this state is implicitly encoded by the value of the first dice roll in the rules of the game so it is not entirely necessary. 1