Jump to content

Arduino Game Controller

Thought I would try my hand at a tutorial, or install guide if you will.

 

Background, This TUT should get you up and running with vjoySerialFeeder for arduino and windows.

 

Step 1.)  Arduino setup

Spoiler

If you don't already have the arduino programing environment (or something of the like). your going to need it.

if you follow this link, it should walk you though how to install the arduino IDE under windows.

Step 2.) Download and install 'vjoy'

Spoiler

vjoy can be found here, download, and install. The extra 'companion applications' are not needed (probably).

 

3.png.7e946a6a45ea3ab8dedf62a082f7fa58.png

Step 3.) Download the vJoySerialFeeder release and unzip

Spoiler

vJoySerialFeeder can be found here.

 

5.png.7d054f4d668a8d14ec66456dba776b7a.png

 

Once downloaded, unzip the release.

 

6.png.8ab0a3cea574094ffd6a30caf535a904.png

Step 4.) Download the arduino files and place them all in the same directory, named "Joystick".

Step 5.) modifying the .ino file for your hardware.

Spoiler

This entails changing some pin declarations to match your hardware. More information can be found here.

 

8.png.fc3ee47966c1ccac803d234d20b0b7e3.png

Step 5B?) Running a test sketch instead.

Spoiler

Or run this test sketch, its a modified version of the above. This sketch generates random 'test data' for configuring things.

Joystick.zip

Step 6.) Starting and configuring the SerialFeeder application.

Spoiler

Upload the test sketch to the arduino and open the SerialFeeder application we unziped earlier (step 3).

 

11.png.b5a89b329ee9726129ed3c315e761197.png

 

Once the sketch is uploaded, connect to the arduino on the proper COM port using the Serialfeeder application (from step 3).

Step 7.) Adding buttons and configuring thresholds

Spoiler

12.png.4205e4b273552a69c64798e08b8ef255.png

13.png.a70b2aeefaf56cf6ca88b0fd9d824f5a.png

 

This again might change with your sketch, but this configuration should work with the test sketch.

Theses dialogs are accessed under 'Setup' after 'adding' a button or axis.

Step 8.) Profit

Spoiler

14.png.eb0e1d01d293c98b3a67f840a66cbcaa.png15.png.f68e2d041e57b98aa451e81570d79a84.png

 

This should be it, you can further check actions with joy2key or other program.

I hope this has been informative.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×