View Single Post
  #10   Spotlight this post!  
Unread 14-03-2013, 00:54
Crawler Crawler is offline
Registered User
FRC #3749
 
Join Date: Jan 2012
Location: San Diego
Posts: 19
Crawler is a jewel in the roughCrawler is a jewel in the roughCrawler is a jewel in the roughCrawler is a jewel in the rough
Re: arduino victor 884 and a cim

Quote:
Originally Posted by thinker&planner View Post
I recently had to do a bunch or research on this topic, so here's my code. I read joysticks as pots through analog pins, so it might be a little different. I would love to know how you end up getting raw pot data from attack 3 because I looked for a bit but couldn't find out how.
^cut that down for quoteing
ill be looking through this soon but not tonight, it looks promising though so thank you, i was scared people werent understanding my goals.

to answer your question, i took apart the attack 3, where the usb comes into the housing there is a red and a black wire, and a few more but dont worry about those, so i ran the red to the 5v supply on the arduino and the black to the ground. then on the right side of the stick there is a 5 pin connector. Red, yellow, green, orange, and blue. The red and blue are power, the yellow and green give direct analog output though, so does the orange but that is for the throttle control on the back of the joystick. So since I gave the entire joystick power through the wires on the usb, I can really get all the buttons to work, but I connected wires to the green and yellow wires and was able to get an analog read on the arduino

https://photos-5.dropbox.com/t/0/AAD...?size=1280x960

Last edited by Crawler : 14-03-2013 at 01:01. Reason: adding a picture of the joystick