2015年5月21日星期四

Final Project: Arduino Game Controller

Created by Danny Nguyen and Lanxi Xing

This is our final project for the Physical Computing project. We made a game controller that is well-compatible with the PC's and Macs. Initially we're thinking to make each controls a little fruit so when you press a certain part of the fruit, the signal will conduct through the fruit to the arduino. However we later decided to kill that idea because the fruits are way too unstable and it's very hard to keep it in the best condition.

We later decided to order joysticks and game controller buttons to make our controller. They came in smaller than we thought but they're good enough for us to work with. We first had the two buttons and the joysticks separated in two different boxes. Both the boxes will send signals to another arduino box. The arduino box will then connect to the computer to make it's process. However when we try to install the buttons to the boxes, we realized that the soldering part on the buttons and joysticks are way too fragile. Therefore we decided to move both the buttons and the joysticks to the arduino box.

To keep the arduino and controllers stable. We filled the inside space of the box with foams. The wires will then go from the controllers (which are on top of the inner box) directly to the arduino breadboard.

We tested the controller with a game called Tetris Friends. It is a web-based flash game that runs on most of the browsers. Using the controller, the game does not require keyboard inputs anymore. Additionally, the controller also supports other games as well.
Programming wise, we implemented the controls by watching for and mapping the inputs of the joystick and buttons to keys on the keyboard. This approach allows us the flexibility to quickly change the inputs to other keys. 

FINAL:




没有评论:

发表评论