Introduction: Monopoly: Howest Edition With RFID

Picture of Monopoly: Howest Edition With RFID

Monopoly:
Howest edition is a schoolproject based on the original Monopoly but uses RFID cards instead of actual money bills.

The most important sensor is the RFID reader. When the sensor reads a card, it will show what kind of card it is (creditcard, property card, station, …) and who it belongs to. The dice is a box that can be passed, when a player presses the button, it will give you a random number from one to six on a 7 segment display. Next to the 7 segment display is a LCD to see which player has which amount of money left. Next to the board there is a website where you can start a new game. On the website, the game board can be retrieved.

Step 1: Parts

Picture of Parts

In the attachment you will find an excel file, BOM (bill of materials). You can find all the materials you need in that file, also where to find them and what they’re price is.

Requirements:

· 1 x Raspberry Pi 3

· 1 x Arduino Mega 2560

· 1 x 7 segment display

· 1 x LCD

· 1 x RC522 RFID Reader

· 1 x Plexiglas (50cm, 50cm, 0.8cm)

· 1 x Plexiglas (20cm, 20cm, 0.3cm)

· 38 x jumper cables

· 1 x breadboard

· 4 x 220Ω resistors

· 1 x button

· 38 x RFID cards

· 1 x micro SD card

· 1 x micro SD card adapter

Step 2: Setup

Picture of Setup

With these steps it will make it easy to install and configure the necessary software.

Installing Raspbian

You will need to install Raspbian by following this link.

When you open the file you’ll see something like in the photo above.

With WinZip you can write this file to your Micro SD card.

After that you have to give your Raspberry Pi an IP-Address. By opening ‘cmd.txt’ with a texteditor and place an IP-Address (169.254.X.X) of your own choosing right before ‘rootwait’. You also have to make a new txt file called ‘ssh’, delete the ‘.txt’.

Now you can put the Micro SD card in your Raspberry Pi.

Installing PuTTY

You can download the installer here.

When you run PuTTY you will need to type your IP-Address (make sure the connection type is ‘SSH’)

Then hit ‘Open’.

You can log in with default username and password:

Username: Pi

Password: Raspberry

Now you’re ready to use the command line for Raspberry Pi.

Installing MSQL

The first thing you need to do is make sure that all updates and upgrades are installed. You can do that by running the following command:

sudo apt-get update && sudo apt-get upgrade

Now you can install the MySQL server and client by running the following command.

With the client you can connect to your server from the command line.

sudo apt-get install mysql-server && sudo apt-get install mysql-client

You will have to provide a root password. The installation is almost finished.

When the MySQL server is installed, you have to try connecting to the server. You can connect using the MySQL client by running the following command.

mysql -uroot -p

After you retyped your password you will be logged in.

The screen you will see is something like this:

(foto)

Now you have installed the MySQL server.

Step 3: Wiring

Picture of Wiring

Based on the below fritzing schema, the components can be attached to the breadboard.

Step 4: Code

I used Python to program it. You can download the installer here. (Downloads > Python 3.6.2)

You can find all code in my GitHub repository: https://github.com/elienknockaert/Monopoly_Howest

With the python files and the fritzing schema, the electronics should work.

Step 5: Lasercutting

Picture of Lasercutting

With the laser cutter, the plexiglas and a illustrator file, we can engrave and cut the plexiglas. First, the laser cutter will engrave, then it will cut out the game board. See: result. It’s exactly the same for the pawns, except the illustrator file is going to be another one.

Step 6: Database

Picture of Database

I used MySQL to create the database. This project uses 5 tables: ‘spelers’, ‘eigendomskaarten’, ‘overige_kaarten’, ‘spelers_has_eigendomskaarten’ en ‘spelers_has_overige_kaarten’. It stores all the data of the cards and the players who play the game (cleared after each game).

Step 7: Site

Picture of Site

In the attachment you will find the wireframes of the website I used to display the results from my database. You can also find the code in my github repository: https://github.com/elienknockaert/Monopoly_Howest

Comments

Clinton_Matos (author)2017-08-18

Would love to see a video of this in action.

AzizW3 (author)Clinton_Matos2017-09-07

+1

Swansong (author)2017-08-07

That's a neat version of the game, and much easier to keep track of :)

About This Instructable

1,368views

28favorites

License:

More by knockaertelien:Monopoly: Howest Edition With RFID
Add instructable to: