Results 1 to 5 of 5

Thread: Joystick and arduino.

  1. Question Joystick and arduino.

    Hello people!
    I new in robotic world!
    I bought an arduino Duemilanove and made some exercice.
    So, now, I want to learm more, but I dont know how...

    I want to do something like this:

    What Im want is exactly what the video show.
    When I move left joystick (usb) , the signal pass to computer, computer pass signals for arduino
    and arduino pass signal to a servo and servo move to the left. Same when I will move joystick
    to the right.

    BUT, I dont know how can I do that, where I begin?
    I want to use C.

    Really thanks!

  2. #2
    Join Date
    Apr 2008
    Sacramento, CA, USA Area
    Rep Power

    Re: Joystick and arduino.

    You'd read the joystick on the computer using DirectX/DirectInput (if it's Windows).

    You'd translate that into a range for the servo, then send that out to the Arduino. The Arduino would have an application running that would turn that into PWM using the servo library.

    Have you considered maybe doing a google search? I mean, just searching something like "read joystick in c" returns links like this:
    Last edited by Adrenalynn; 12-31-2009 at 11:37 PM.
    I Void Warranties´┐Ż

  3. Thumbs up Re: Joystick and arduino.

    Thanks for help!
    Belive me, I search in google a lot, but not like this your can you think I found this site/forum?

    My problem is understand how can I make communication with joystick via USB.
    I have some skill with Java, Visual Basic, C# and C. But I never program to communicated an hardware. But will be fun!
    I will now search more in google "read joystick in c"

    Really thanks for your help!
    But, I will come back!


  4. Re: Joystick and arduino.

    You can also get a PS-2 type joystick (wired or wireless), and have it talk directly to the Arduino. My friend has a wireless one he got from Lynxmotion (including the plug in adapter), and it works great.

    - Jon
    "The best way to predict the future is to invent it." - Alan Kay, inventor of Smalltalk

  5. Cool Re: Joystick and arduino.

    Thanks your reply Jon!
    But, I want to know how conect usb joystick talked to pc and after talked with arduino because I want to control a robot on pc, but the "orders" to my robotic walk, turn and more else, via wirelles.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Project Wii nunchuck + Arduino controlling a Pan and Tilt Camera
    By Alex in forum Robotics General Discussion
    Replies: 15
    Last Post: 04-29-2008, 10:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts