SlideShare a Scribd company logo
1 of 1
Download to read offline
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

Viewers also liked

Oltre la retta tra sapere scientifico e apprendimento
Oltre la retta tra sapere scientifico e apprendimentoOltre la retta tra sapere scientifico e apprendimento
Oltre la retta tra sapere scientifico e apprendimentovasaricomenius
 
Mart, maths in art
Mart, maths in artMart, maths in art
Mart, maths in artgian9000
 
Incontro 4 - I solidi platonici
Incontro 4 - I solidi platoniciIncontro 4 - I solidi platonici
Incontro 4 - I solidi platonicidcirri
 
Corso Le Nuove NTC 2008. Costruzioni Esistenti. Progettazione Strutturale in ...
Corso Le Nuove NTC 2008. Costruzioni Esistenti. Progettazione Strutturale in ...Corso Le Nuove NTC 2008. Costruzioni Esistenti. Progettazione Strutturale in ...
Corso Le Nuove NTC 2008. Costruzioni Esistenti. Progettazione Strutturale in ...Eugenio Agnello
 
Riepilogo geometria solida
Riepilogo geometria solidaRiepilogo geometria solida
Riepilogo geometria solidalusirigu
 
Introduzione alla geometria euclidea
Introduzione alla geometria euclideaIntroduzione alla geometria euclidea
Introduzione alla geometria euclideaProveZacademy
 
Fotografia per l'Architettura. By the media-network team
Fotografia per l'Architettura. By the media-network teamFotografia per l'Architettura. By the media-network team
Fotografia per l'Architettura. By the media-network teamDenis Mior
 
Introduzione alla geometria euclidea
Introduzione alla  geometria euclideaIntroduzione alla  geometria euclidea
Introduzione alla geometria euclidea31081960
 
Approcci alla Geometria
Approcci alla GeometriaApprocci alla Geometria
Approcci alla GeometriaU.S.R. Liguria
 
Il Disegno su tavola per l'Architettura. By the media-network team
Il Disegno su tavola per l'Architettura. By the media-network teamIl Disegno su tavola per l'Architettura. By the media-network team
Il Disegno su tavola per l'Architettura. By the media-network teamDenis Mior
 
G. Lariccia, Gioco con il mio corpo e imparo la geometria
G. Lariccia, Gioco con il mio corpo e imparo la geometriaG. Lariccia, Gioco con il mio corpo e imparo la geometria
G. Lariccia, Gioco con il mio corpo e imparo la geometriaGIOVANNI LARICCIA
 
Geometria i solidi spiegati e illustrati semplicemente e prisma a base trian...
Geometria  i solidi spiegati e illustrati semplicemente e prisma a base trian...Geometria  i solidi spiegati e illustrati semplicemente e prisma a base trian...
Geometria i solidi spiegati e illustrati semplicemente e prisma a base trian...danost7
 
Giocando con la geometria
Giocando con la geometria Giocando con la geometria
Giocando con la geometria geogioca
 

Viewers also liked (18)

Solidi di rotazione
Solidi di rotazioneSolidi di rotazione
Solidi di rotazione
 
Oltre la retta tra sapere scientifico e apprendimento
Oltre la retta tra sapere scientifico e apprendimentoOltre la retta tra sapere scientifico e apprendimento
Oltre la retta tra sapere scientifico e apprendimento
 
Mart, maths in art
Mart, maths in artMart, maths in art
Mart, maths in art
 
Simboli e icone
Simboli e iconeSimboli e icone
Simboli e icone
 
Incontro 4 - I solidi platonici
Incontro 4 - I solidi platoniciIncontro 4 - I solidi platonici
Incontro 4 - I solidi platonici
 
Corso Le Nuove NTC 2008. Costruzioni Esistenti. Progettazione Strutturale in ...
Corso Le Nuove NTC 2008. Costruzioni Esistenti. Progettazione Strutturale in ...Corso Le Nuove NTC 2008. Costruzioni Esistenti. Progettazione Strutturale in ...
Corso Le Nuove NTC 2008. Costruzioni Esistenti. Progettazione Strutturale in ...
 
Riepilogo geometria solida
Riepilogo geometria solidaRiepilogo geometria solida
Riepilogo geometria solida
 
Introduzione alla geometria euclidea
Introduzione alla geometria euclideaIntroduzione alla geometria euclidea
Introduzione alla geometria euclidea
 
Solidi cavalieri
Solidi cavalieriSolidi cavalieri
Solidi cavalieri
 
Fotografia per l'Architettura. By the media-network team
Fotografia per l'Architettura. By the media-network teamFotografia per l'Architettura. By the media-network team
Fotografia per l'Architettura. By the media-network team
 
Prismi e-piramidi
Prismi e-piramidiPrismi e-piramidi
Prismi e-piramidi
 
Introduzione alla geometria euclidea
Introduzione alla  geometria euclideaIntroduzione alla  geometria euclidea
Introduzione alla geometria euclidea
 
Approcci alla Geometria
Approcci alla GeometriaApprocci alla Geometria
Approcci alla Geometria
 
Il Disegno su tavola per l'Architettura. By the media-network team
Il Disegno su tavola per l'Architettura. By the media-network teamIl Disegno su tavola per l'Architettura. By the media-network team
Il Disegno su tavola per l'Architettura. By the media-network team
 
G. Lariccia, Gioco con il mio corpo e imparo la geometria
G. Lariccia, Gioco con il mio corpo e imparo la geometriaG. Lariccia, Gioco con il mio corpo e imparo la geometria
G. Lariccia, Gioco con il mio corpo e imparo la geometria
 
Geometria i solidi spiegati e illustrati semplicemente e prisma a base trian...
Geometria  i solidi spiegati e illustrati semplicemente e prisma a base trian...Geometria  i solidi spiegati e illustrati semplicemente e prisma a base trian...
Geometria i solidi spiegati e illustrati semplicemente e prisma a base trian...
 
architettura 900
architettura 900architettura 900
architettura 900
 
Giocando con la geometria
Giocando con la geometria Giocando con la geometria
Giocando con la geometria
 

Similar to Ece lab5 proposal

Ece3140 lab5 writeup
Ece3140 lab5 writeupEce3140 lab5 writeup
Ece3140 lab5 writeupChuck Moyes
 
The Ring programming language version 1.9 book - Part 80 of 210
The Ring programming language version 1.9 book - Part 80 of 210The Ring programming language version 1.9 book - Part 80 of 210
The Ring programming language version 1.9 book - Part 80 of 210Mahmoud Samir Fayed
 
Opensource Rapidfire X360 Project2
Opensource Rapidfire X360 Project2Opensource Rapidfire X360 Project2
Opensource Rapidfire X360 Project2guestf6f4e8
 
Console design 1
Console design 1Console design 1
Console design 1bowes96123
 
Console design template
Console design templateConsole design template
Console design templateLewisB2013
 
FINAL_Report_RAMEYJM_NAGR
FINAL_Report_RAMEYJM_NAGRFINAL_Report_RAMEYJM_NAGR
FINAL_Report_RAMEYJM_NAGRJacob Ramey
 
Hurdle Race Game
Hurdle Race GameHurdle Race Game
Hurdle Race GameAsawal
 
Robotics Final Project Report
Robotics Final Project ReportRobotics Final Project Report
Robotics Final Project ReportAndrew Kocur
 
Development of Gamig Platforms PR1
Development of Gamig Platforms PR1Development of Gamig Platforms PR1
Development of Gamig Platforms PR1Sokyo
 
The Ring programming language version 1.7 book - Part 74 of 196
The Ring programming language version 1.7 book - Part 74 of 196The Ring programming language version 1.7 book - Part 74 of 196
The Ring programming language version 1.7 book - Part 74 of 196Mahmoud Samir Fayed
 
The Ring programming language version 1.2 book - Part 50 of 84
The Ring programming language version 1.2 book - Part 50 of 84The Ring programming language version 1.2 book - Part 50 of 84
The Ring programming language version 1.2 book - Part 50 of 84Mahmoud Samir Fayed
 
Lucky seven game using 7 segment display in fpga
Lucky seven game using 7 segment display in fpgaLucky seven game using 7 segment display in fpga
Lucky seven game using 7 segment display in fpgaDhruv Agarwal
 
2 Level Guitar Hero Final Report
2 Level Guitar Hero Final Report2 Level Guitar Hero Final Report
2 Level Guitar Hero Final ReportCem Recai Çırak
 
Console design template
Console design templateConsole design template
Console design templateLewisB2013
 
Forecasting Online Game Addictiveness
Forecasting Online Game AddictivenessForecasting Online Game Addictiveness
Forecasting Online Game AddictivenessAcademia Sinica
 
The Ultimate Gaming
The Ultimate GamingThe Ultimate Gaming
The Ultimate Gamingkoolshreeram
 
The Ring programming language version 1.8 book - Part 76 of 202
The Ring programming language version 1.8 book - Part 76 of 202The Ring programming language version 1.8 book - Part 76 of 202
The Ring programming language version 1.8 book - Part 76 of 202Mahmoud Samir Fayed
 

Similar to Ece lab5 proposal (20)

Ece3140 lab5 writeup
Ece3140 lab5 writeupEce3140 lab5 writeup
Ece3140 lab5 writeup
 
The Ring programming language version 1.9 book - Part 80 of 210
The Ring programming language version 1.9 book - Part 80 of 210The Ring programming language version 1.9 book - Part 80 of 210
The Ring programming language version 1.9 book - Part 80 of 210
 
Opensource Rapidfire X360 Project2
Opensource Rapidfire X360 Project2Opensource Rapidfire X360 Project2
Opensource Rapidfire X360 Project2
 
Ddn
DdnDdn
Ddn
 
Console design 1
Console design 1Console design 1
Console design 1
 
Console design template
Console design templateConsole design template
Console design template
 
FINAL_Report_RAMEYJM_NAGR
FINAL_Report_RAMEYJM_NAGRFINAL_Report_RAMEYJM_NAGR
FINAL_Report_RAMEYJM_NAGR
 
Hurdle Race Game
Hurdle Race GameHurdle Race Game
Hurdle Race Game
 
Robotics Final Project Report
Robotics Final Project ReportRobotics Final Project Report
Robotics Final Project Report
 
snake game
snake gamesnake game
snake game
 
Development of Gamig Platforms PR1
Development of Gamig Platforms PR1Development of Gamig Platforms PR1
Development of Gamig Platforms PR1
 
The Ring programming language version 1.7 book - Part 74 of 196
The Ring programming language version 1.7 book - Part 74 of 196The Ring programming language version 1.7 book - Part 74 of 196
The Ring programming language version 1.7 book - Part 74 of 196
 
The Ring programming language version 1.2 book - Part 50 of 84
The Ring programming language version 1.2 book - Part 50 of 84The Ring programming language version 1.2 book - Part 50 of 84
The Ring programming language version 1.2 book - Part 50 of 84
 
Lucky seven game using 7 segment display in fpga
Lucky seven game using 7 segment display in fpgaLucky seven game using 7 segment display in fpga
Lucky seven game using 7 segment display in fpga
 
2 Level Guitar Hero Final Report
2 Level Guitar Hero Final Report2 Level Guitar Hero Final Report
2 Level Guitar Hero Final Report
 
Console design template
Console design templateConsole design template
Console design template
 
publish manual
publish manualpublish manual
publish manual
 
Forecasting Online Game Addictiveness
Forecasting Online Game AddictivenessForecasting Online Game Addictiveness
Forecasting Online Game Addictiveness
 
The Ultimate Gaming
The Ultimate GamingThe Ultimate Gaming
The Ultimate Gaming
 
The Ring programming language version 1.8 book - Part 76 of 202
The Ring programming language version 1.8 book - Part 76 of 202The Ring programming language version 1.8 book - Part 76 of 202
The Ring programming language version 1.8 book - Part 76 of 202
 

More from Chuck Moyes

Gameplay specificationfinal
Gameplay specificationfinalGameplay specificationfinal
Gameplay specificationfinalChuck Moyes
 
Final presentation
Final presentationFinal presentation
Final presentationChuck Moyes
 
Concept documentfinal
Concept documentfinalConcept documentfinal
Concept documentfinalChuck Moyes
 
Beta releasereport
Beta releasereportBeta releasereport
Beta releasereportChuck Moyes
 
Beta presentation
Beta presentationBeta presentation
Beta presentationChuck Moyes
 
Alpha releasepresentation
Alpha releasepresentationAlpha releasepresentation
Alpha releasepresentationChuck Moyes
 
Manual small (1)
Manual small (1)Manual small (1)
Manual small (1)Chuck Moyes
 
CS 2110 Programming Competition Entry Readme
CS 2110 Programming Competition Entry ReadmeCS 2110 Programming Competition Entry Readme
CS 2110 Programming Competition Entry ReadmeChuck Moyes
 
Ece4760 progress report2
Ece4760 progress report2Ece4760 progress report2
Ece4760 progress report2Chuck Moyes
 
Ece4760 progess report1
Ece4760 progess report1Ece4760 progess report1
Ece4760 progess report1Chuck Moyes
 
Cs 4621 presentation slides
Cs 4621 presentation slidesCs 4621 presentation slides
Cs 4621 presentation slidesChuck Moyes
 
Presentation slides
Presentation slidesPresentation slides
Presentation slidesChuck Moyes
 
Car sim rendering
Car sim renderingCar sim rendering
Car sim renderingChuck Moyes
 

More from Chuck Moyes (19)

Gameplay specificationfinal
Gameplay specificationfinalGameplay specificationfinal
Gameplay specificationfinal
 
Final presentation
Final presentationFinal presentation
Final presentation
 
Concept documentfinal
Concept documentfinalConcept documentfinal
Concept documentfinal
 
Beta releasereport
Beta releasereportBeta releasereport
Beta releasereport
 
Beta presentation
Beta presentationBeta presentation
Beta presentation
 
Alpha releasepresentation
Alpha releasepresentationAlpha releasepresentation
Alpha releasepresentation
 
Manual small (1)
Manual small (1)Manual small (1)
Manual small (1)
 
CS 2110 Programming Competition Entry Readme
CS 2110 Programming Competition Entry ReadmeCS 2110 Programming Competition Entry Readme
CS 2110 Programming Competition Entry Readme
 
Ece4760 progress report2
Ece4760 progress report2Ece4760 progress report2
Ece4760 progress report2
 
Ece4760 hw5
Ece4760 hw5Ece4760 hw5
Ece4760 hw5
 
Ece4760 hw4
Ece4760 hw4Ece4760 hw4
Ece4760 hw4
 
Ece4760 progess report1
Ece4760 progess report1Ece4760 progess report1
Ece4760 progess report1
 
Fb graph
Fb graphFb graph
Fb graph
 
Cs 4621 presentation slides
Cs 4621 presentation slidesCs 4621 presentation slides
Cs 4621 presentation slides
 
Ai plan
Ai planAi plan
Ai plan
 
Final report
Final reportFinal report
Final report
 
Presentation slides
Presentation slidesPresentation slides
Presentation slides
 
Car sim rendering
Car sim renderingCar sim rendering
Car sim rendering
 
Cs665 writeup
Cs665 writeupCs665 writeup
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