This is our (Shentong Wang and myself) ECE 3140 final project at Cornell University. The idea is to implement a playable game of Craps (casino dice rolling game) using the MSP430 microcontroller board. External LEDs arranged in dice shaped format are 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 are connected across the LEDs and the digital +5V IO pins in series to ground. The push button is used to trigger dice rolls. The built-in green and red LEDs on the MSP430 board 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."
Technical Details: We used pulse width modulation (PWM) to square wave signals to the piezoelectric speaker, Charlie-plexing to multiplex the LED's (cycling through all of them at a high refresh rate), and Linear Congruential Generators for the pseudo-random number generator (seeded by garbage/scrambled memory values). It was about 1000 lines of C code, and it took about 3 days of work to build.
For more information, read: http://charlesmoyes.com/~chuck/ece3140_lab5_writeup.pdf
Link to this comment:
All Comments (0)