
My Slot Machine project features 3 slots which all display 1 of 4 symbols. My project features 4 symbols. The symbols are: The number seven, a crown, a horseshoe, and a dollar sign. Initially, the slots will display a random flashing of symbols. After the start button is pressed, that is when the slots will start spinning (flashing the symbols faster) and then after around 5 seconds the first slot will stop spinning and the first symbol will be decided, then after around 3 seconds the second slot will stop spinning and the second symbol will be decided, and after around another 4 seconds the third slot will stop spinning and the third symbol will be decided. Once all 3 symbols have been decided, the 3 symbols will be displayed and you can press/hold the start button to start the spinning process again, and you can repeat this process indefinitely. If the slots ever get "stuck" simply press the reset button. Have fun gambling!
** Ensure that you are using a clock frequency of 25MHz **
You have to connect uin_in[0] to a push button. This will be your start button.
rst_n to another push button. This will be your reset button.
Finally, connect your TinyTapeout VGA PMOD pins to the chip output pins accordingly:
R1 -> uo_out[0]
G1 -> uo_out[1]
B1 -> uo_out[2]
VS -> uo_out[3]
R0 -> uo_out[4]
G0 -> uo_out[5]
B0 -> uo_out[6]
HS -> uo_out[7]
Make sure to also connect both grounds and 3V3 signals to their respective locations as well for the TinyTapeout VGA PMOD.
Then connect the Tiny VGA PMOD to a monitor that supports VGA using a VGA cable. You should see the slots beginning to spin on your display monitor. Then press your start button to start the spinning.
You will need 2 push buttons and the Tiny VGA PMOD
You need a push button for the reset_n signal
You need a push button for the start signal
The TinyTapeout VGA PMOD
Display monitor that supports VGA
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | Start button | red[1] | |
| 1 | green[1] | ||
| 2 | blue[1] | ||
| 3 | vsync | ||
| 4 | red[0] | ||
| 5 | green[0] | ||
| 6 | blue[0] | ||
| 7 | hsync |