8-bit AT90S8535 AVR microcontroller producing a video blackjack machine.


The project utilizes an 8-bit AT90S8535 AVR microcontroller in order to produce a video blackjack machine.

Explanation

A random number generator that uses a 16-bit shift register and a primitive polynomial modulo 2 is the core of the program. To obtain a random number, 8 random bits are generated. The accepted input comes from the push buttons and the text is outputted through the UART by the blackjack machine. There are 8 push buttons in the machine with LEDs next to them to show the valid inputs. Through simulating in AVR studio and thorough inspection of the codes, the problems with the output of text messages through the UART interfaces were eliminated.

During the game, the player attempts to beat the dealer by obtaining a hand total that is equal to or less than 21 so that it will be higher than the dealer. Two cards are first dealt in sequence to the player and two cards for the dealer. The player has the choice to stand, to hit, or to double down. If the hand of the player is not busted and is greater than the dealer, the player wins.

S:www.circuit-projects.com/miscellaneous-circuits/



EmoticonEmoticon

Advertisement