Skip to content

Creating this repository for the CS 207 Class Project.

Notifications You must be signed in to change notification settings

MMeer/CS207_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS207_Project

An Arduino Based Mini Game Console

This Github repository was created for Computer Science 207. In this class we had to recreate an existing Arduino project and maintain a Github repository with all related files. In addition, we were required to make some sort of modification/alteration to the project.

For our project we decided to combine two projects into one. The projects are:

By combing these two projects our hope was to create a sort of game console where the user will be able to switch between games using a potentiometer. In order to accomplish this we first had to convert the racing game to use buttons instead of a rotary angle sensor. Afterwards, we had to combine the seperate Arduino codes into one file. This allows the user to select which game to play by choosing a mode using the potentiometer. The mode determines what set section of Arduino code is run. See Mode Selection folder for complete code for this feature.

Important:

The folders Original PHP Code and Original Arduino Code contains code from the above projects. All credit goes to the respective authors from those projects. Please see links above for the original projects.

Requirements and Materials

Dependencies

Bill of Materials

  • Arduino UNO
  • PHPoC Wi-Fi Shield
  • Four Buttons
  • Four 10K Ohm resistors
  • One Potentiometer
  • Two Half Breadboards
  • micro-USB cord (to upload files to the Shield)

Build Instructions & Usage

In order to replicate this build, you will need to setup your Arduino and breadboards in a configuration similar to the image below. (Note: You will need to plug your PHPoC Shield into the top of your Arduino UNO before connecting the wires to the respective digital/analog pins)

You will also need to make sure that the PHP files are uploaded to the PHPoC Shield. The PHP files required are: the Default Two-Player game file located in Original PHP Code folder and the modified racing PHP Code located in the Modified PHP Code folder. To upload the files follow this instruction: https://www.phpoc.com/support/manual/phpoc_debugger_manual/contents.php?id=major_upload. In addition the Wi-Fi shield will need to be connecting to the network following the instructions at: https://www.phpoc.com/support/manual/p4s-347_user_manual/contents.php?id=network_first_setup

The next step will be uploading the Arduino sketch from the Mode Selection folder. The sketch requires the PHPoC library which can be found at: https://github.com/phpoc/arduino

After the sketch is uploaded, open the serial monitor to see the IP address of the web server. To run the game you will need to type in the URL in a format similar to http://IP_Address/racing_game.php. (Note: the name of PHP file entered in the URL needs to be the same name as the PHP file uploaded to the Shield).

In order to switch between games, turn the potentiometer until the mode you want shows up on the Serial Monitor. Then enter the URL corresponding to the game you want to play. Mode 1 is for the two-player game whereas Mode 2 is for the racing game.

alt text

Team

  • Mitra
  • Md Meer

Credits

The original and seperate builds for the two games were done by the users below. All of the original Arduino and PHP code was done by them. All credit for that code belongs to those users. Visit the following links to see the original projects and the corresponding user profiles.

Two-Player Game

Racing Game

About

Creating this repository for the CS 207 Class Project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages