We did some research on input via an xbox controller and found a simple digital input and a much more complex analog style input. I did the simple digital input(for now at least). The method uses a program called xpadder which emulates a keyboard using a controller. From there a program was adapted using processing, to take keyboard input and send it over serial to the arduino. Next I did some work on our control sketch and tested this by turning an led on and off with one of the joysticks. The guide used can be found in this link
http://www.instructables.com/id/Control-Arduino-functions-with-a-USB-controller-n/#step1.
Processor Code:
Arduino Code:
Screenshot of xpadder setup:
- Mike
No comments:
Post a Comment