Pages: [1]   Go Down
Author Topic: Motor control through USB Joystick  (Read 684 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,

I'm trying to build a small robotic arm that can be controlled by my Duemilanove (ATmega328p) through a USB Joystick.

In looking around, I've figured that to power my several servos and one DC motor, I'll need a motor shield, so I can't use a shield to connect the USB joystick to the Arduino board.

So my thought is to connect the Arduino board to my laptop, and the laptop to the joystick. Is there any way to do this?
Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6134
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

In looking around, I've figured that to power my several servos and one DC motor, I'll need a motor shield, so I can't use a shield to connect the USB joystick to the Arduino board.
Why?  Does the motor shield consume every available I/O pin and/or the pins used by the USB Host shield?

So my thought is to connect the Arduino board to my laptop, and the laptop to the joystick. Is there any way to do this?
Yes.  Write a program on your PC that reads the Joystick's status and then communicates with the Arduino over Serial.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

0
Offline Offline
Newbie
*
Karma: 0
Posts: 37
:D
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You could also get the joysticks position directly from its potentiometers. You may need a bit of clever Arduino work to get the x and y however..

Nadav
Logged

Pages: [1]   Go Up
Jump to: