Asked — Edited

Help Me Hook Up Arduino Joystick To Ez-B To Control Servo

i have a joystick, it looks like a ps3 or something, its for arduino boards. it has 3 connectors on it, each has a 3-wire attached. (9 wires total)

connector 1 is blue wire, black wire, red wire and labeled (S, GND X, VCC) connector 2 is same, blue, black, and red wires labeled (S, GND Y, VCC) connector 3 is green wire, red wire, and black wire labeled (D, VCC Z R1, GND)

WHERE DO I connect into the ARC with these 3 connectors, also do i need to open anything in the software to tell it what to do? thanks TJ

i added closed captions! so you can read what i say for hearing impaired or if you can not understand my stupid kentucky hick accent!

i also provide a cc service where i will add words to your favorite videos, for a low cost. thanks thegoodrobot atyahoodotcom


ARC Pro

Upgrade to ARC Pro

Elevate your robot's capabilities to the next level with Synthiam ARC Pro, unlocking a world of possibilities in robot programming.

PRO
Synthiam
#1  

The joystick would have to be USB connected to your computer to show up in the ARC.

That arduino joystick thingy is actually just a few POTS. They're variable resistors, or also known as volume controls. There are 3 wires per pot. A middle wire, and two side wires.

This is a nice writeup on variable resistors: www.st-andrews.ac.uk/~www_pa/Scots_Guide/info/comp/passive/resistor/pots/var_res/var_res.htm

So if you want your joystick connected to your robot directly, you kind of can use that joystick. You'd have to write some code in EZ-B Builder to make that happen. You'd have to use ADC conditions because each pot would need to be connected to ADC inputs.

I'd suggest simply getting a cheap USB joystick from eBay: here or a cheap wireless joystick here

#2  

ok thanks.

well i'm also going to be using analog reader, from http://www.endurance-rc.com/analogreader.php

and i will make an exoskeleton to wear,and the joints are pots, and they go thru the analog reader, it connects to computer using usb i think, then i hope it will show up in ez-b, then its suppose to control servos, on a robot arm i will make. this is my top secret project shhhhh

like the movie about boxing robots, real steel,,,, sorta

or iron man, or well u will just see when i get done!

PRO
Synthiam
#3  

You wouldn't need that analog reader becuase the EZ-B has 8 analog reader ports already. That analog reader won't show up in ARC because it has nothing to do with EZ-B:)

You can buy USB joysticks with two analog knobs. That won't be much of a problem to control with ARC.

Your idea is pretty awesome:) To wear a robot. Man that'll be cool

#4  

i need analog reader because it converts up to 10 pot signals into 10 joystick commands and sends to your computer using usb cable. then your ARC can see it as a 10 button joystick. those 10 pots will be the joints that control up to 10 servos on a robot arm to mimic exactly how i'm moving my arm. i will be able to wear exoskeleton and watch the robot arm move the same in the room, remotely, wirelessly, or over the internet evenutally.

well you said i can use the analog inputs in ez-b but how do i make the pot in the analog input, control a servo?

PRO
Synthiam
#5  

Ah I see what you're doing now. I didn't see that it turns it into a joystick. I'd have to make the joystick control have more axis points then. Because it has 4 right now compared to 10.

The easiest solution would be to use the EZ-SDK. But if you're wanting to stick with ARC, then you'd do something funny like this...

if (adc(0) = 1) servo(d0, 1) if (adc(0) = 2) servo(d0, 2) if (adc(0) = 3) servo(d0, 3) ... etc ... all the way to the number of servo positions you'd support. There are 70 servo positions and 254 analog input values.

#6  

i'm not familiar with the sdk at all. i will check into it though,,,

in making my robot hand controlled by an exoskeleton that i will wear using potentiometers....

well each pot will control a servo, i will show a website and video of what the other guy hooked up...

potentiometer controlling servo

each dof (degree of freedom) which is each joint, will need a pot. the pot's resistance is sent into the analog reader, it goes into computer through usb, looks like joystick in the computer. using ARC, it will show up as a joystick, i will make this new "joystick" send servo commands to the robot arm, made by connecting standard servos and standard servo brackets (or a home made robot arm using metal). the analog reader has up to 10 inputs, but i think you said the ez-b only has 4 axis points for a joystick, that is ok, as long as the robot arm only has 4 dof (joints) or less. (example: shoulder, elbow, wrist, pinching finger)

the other guy "http://www.endurance-rc.com/"; has a software program that he sells, here is the direct link: ServoCommander software it is called "servo commander" which looks pretty cool, but maybe a little confusing at first.

he also sells a pctx which allows me to using my spektrum transmitter (for rc airplanes) as a joystick in my computer, to control the servos.

the "analog reader" that he sells, allows up to 10 inputs for pots, and also has a 16 button pad that connects to it, to turn up to 16 things on/off.

i think we can use those items with ARC, but i'm not 100% sure yet.

he also has a 25 servo controller for sale.

but ez-b is definately easier to work with, and does more things that i always wanted to do, thats why i bought ARC with free software instead of servocommander software.

tell me what you think of merging some of his gadgets and ez-b....

TJ

PRO
Synthiam
#7  

Youtube links look like this: http://www.youtube.com/watch?v=wa4liJQPh5M .. They have a v= in the url line. If the url you add is a channel, then it won't be recognized as a video. Channel views are different, where it lists a whole persons profile, etc.

I'll read the rest of your email in a bit;) Super busy tonight. Good stuff happening:D

#8  

weird, i just clicked the youtube video button on the right (while editing or creating my post) and i put in just zZwnyZPkylk and it shows the youtube video. i dont have to put the long link.

anyway.

i got in my analog reader and 16 button pad with the 20 wire connector to connect them both, along with the usb cord to connect to my computer. using this analog reader, it should show up as a joystick (i hope) i will work on it thursday or friday and let you know how it went.

i also got in 4 xbee pro with antenna, and xbee arduino boards to go in my arduino duemilanove for longer distance remote control (i hope). didnt you say its possible to use xbee instead of your blue tooth adapter? i will see if you have a tutorial for taking off the bluetooth and installing 2 of the xbee's.

i will also work on the exoskeleton, similar to the video you see above that i found on youtube.