Go Down

Topic: Using Microsoft SideWinder 3D Pro as a joystick for our robot (Read 2 times) previous topic - next topic


You cannot use these modules as they are. They depend on the Linux kernel header files and APIs and the way they access the hardware is different. It may be feasible to port some parts of joy-sidewinder.c to the Arduino. Or at least you can use is as a template or reference for your own implementation.


I think you have everything you need to get started; what you'll want to do figure out which pins of the game port correspond to the "button pins", and there is probably power and ground needed. One of those pins is for the clock, as the info you found suggested, and the other three for data. You'll want to look thru the source code you found to see if you can find the "triplet decoder" functionality - or, you can try writing your own up, based on the information you already have. You'll probably want to use direct port access along with a pin-change interrupt on the arduino to detect the falling edge of the clock pin, then read the other three pins at the same time, then stuffing all of this into a small 66 bit buffer...
I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.


Have you gotten the arduino code to decode it yet? I'm in the exact same situation as you. I'm 100% clueless. If you have the code could you please post it?


I notice much of the talk and referenced links centers around the joystick "buttons". Is the stick itself attached to the usual type pots, or to some analog multiplexing setup?
Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   8)

Go Up