Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=177)
-   -   Using non joystick controls with Operator Interface (Hacking Various Controllers) (http://www.chiefdelphi.com/forums/showthread.php?t=28898)

Astronouth7303 02-06-2004 20:36

Using non joystick controls with Operator Interface (Hacking Various Controllers)
 
Question: Has any atempted to use a non-joystick to control the robot? (Data must go through OI!) It doesn't have to compete or work, you just need to tell us about it.

Examples: Mice (Serial, PS/2, or USB), Game Controllers (XBox, PS2, Dreamcast, N64, GameCube, Super NES :p , ...), or anything else NOT designed for a gameport.

Stories, descriptions, and links are apreciated!

Those of you feeling ambitious can write a White Paper or a How-to.

Joshua May 02-06-2004 20:40

Re: Hacking Various Controllers
 
Quote:

Originally Posted by Astronouth7303
Question: Has any atempted to use a non-joystick to control the robot? (Data must go through OI!)

Examples: Mice (Serial, PS/2, or USB), Game Controllers (XBox, PS2, Dreamcast, N64, GameCube, Super NES :p , ...), or anything else NOT designed for a gameport.

Stories, descriptions, and links are apreciated!

Those of you feeling ambitious can write a White Paper or a How-to.

I've actually seen a steering wheel (I think it was 587 or 578) and I'm also planning to create a gas pedal system. I also thought about a GameCube controller, but I don't think their data packets are the same. Really, with the GameCube (or any other controller) though, and I'm thinking of doing this for my team, you could just strip the contoller of it's electronics and wire your own stuff for the serial ports, with simple buttons and such, but I'm not sure you how to do the joysticks, however.

phrontist 02-06-2004 20:54

Re: Hacking Various Controllers
 
Quote:

Originally Posted by Astronouth7303
Those of you feeling ambitious can write a White Paper or a How-to.

Hey, maybe even a FIRSTwiki entry?
:D

Astronouth7303 02-06-2004 21:02

Re: Hacking Various Controllers
 
I was thinking maybe you can use the EDU for serial to Ana/Dig conversion. Is this legal? And does it work?

greencactus3 02-06-2004 21:09

Re: Hacking Various Controllers
 
for my lego creations, ive hand made all of my controls.
i just get a bunch of resistors and arrange them so a switch or button runs a current with different voltage. (the lego RCX senses different voltages) and can use that as input. resistors you can find in any kind of old electronic device so its cheap. actually, free. just go aound saying youll take anything electrical that they dont need. youll be suprised how much junk people have.. :ahh:

and also not that its really probable for awhile, but controlling a robot with a touch screen would be COOL!!!.
have a field on the screen and touch a point on the screen and the robot moves to there. crab drive might be useful for this. omnis too.
oh the possibilities!

Astronouth7303 02-06-2004 21:13

Re: Hacking Various Controllers
 
it is portable. Haven't you heard of a tablet PC?

Billfred 02-06-2004 23:46

Re: Hacking Various Controllers
 
Quote:

Originally Posted by Astronouth7303
I was thinking maybe you can use the EDU for serial to Ana/Dig conversion. Is this legal? And does it work?

Is it legal? If the 2k4 rules hold, then yes. It's pretty much open range for controls, as long as you don't break any other rules in the process.

Would it work? That's the part I dunno...but it seems within the realm of possibility.

bheller 03-06-2004 00:54

Re: Hacking Various Controllers
 
A few years ago I interfaced a Playstation dualshock controller to a Basic Stamp 2. Wasn't too bad - it uses SPI, but the documentation on the net for the vibration motors was too sketchy to figure out analog control for them.

-Brandon Heller

Gateway Team 931
Blair Robot Project 449 Alum

Elgin Clock 03-06-2004 01:01

Re: Hacking Various Controllers
 
Ok, so I'm not gonna yell at you to search before you post, cause you are asking for different applications but...

http://www.chiefdelphi.com/forums/showthread.php?t=22845&highlight=Sega+Genesis+Cont roller

Ryan Albright 03-06-2004 02:36

Re: Hacking Various Controllers
 
yes this has been discussed but just like to add a team in the newton divison called ET not certain of there number but they used a actually phone to control there arm it was really cool like 2 was up 5 was grab or something like that it was really cool and the kid was really good at it they were picked for a alliance but i dont know how far they went

Astronouth7303 03-06-2004 21:04

Re: Hacking Various Controllers
 
Quote:

Originally Posted by Elgin Clock
Ok, so I'm not gonna yell at you to search before you post, cause you are asking for different applications but...

It was a general question. I just listed what I thought of. To get an idea just how ambitious people are about controls.

Nastay 10-06-2004 15:20

Re: Hacking Various Controllers
 
i was actually considering using a PS1 duel shock that i have left over because it seems that joysticks aren't very intuitive anymore, but everyone has used a PS2 or Xbox or gamecube controller and would more than likely be more efficient with one. The reason i didn't is because someone told me that you could only use the joysticks, so the controller would have just been confusing and illegal... But please i would still like to do it if you could go to a competition with a PS2 controller and use it, if this person misspoke when i was talking to them.

Billfred 10-06-2004 17:20

Re: Hacking Various Controllers
 
The person misspoke.

AFAIK, you can pretty much whatever you want with the OI and control system, as long as it's safe, doesn't block anyone's view, and doesn't break any rule in the manual de l'année. That's how you get teams with switches in their controls, or who-knows-what-else. (I will give a Krispy Kreme-shaped trophy to anyone who uses a wearable control system in 2005 with any degree of success. I guess the big challenge there would be to put in a quick-connect of some sort so you can still stand behind the line. Oh, and make it actually do something worthwhile.)

Joshua May 10-06-2004 18:37

Re: Hacking Various Controllers
 
Quote:

Originally Posted by Billfred
I will give a Krispy Kreme-shaped trophy to anyone who uses a wearable control system in 2005 with any degree of success. I guess the big challenge there would be to put in a quick-connect of some sort so you can still stand behind the line. Oh, and make it actually do something worthwhile.

I know there are a couple of teams that have created a wearble control system for previous competitions: We did gloves FIRST?

Tom Bottiglieri 19-12-2004 12:56

Re: Hacking Various Controllers
 
Not sure if this will work, but it may be of some relevance...

http://pcworld.pricegrabber.com/sear...asterid=433440

Hieb 19-12-2004 13:49

Re: Hacking Various Controllers
 
It won't be anything that we use this year (I doubt it is really practical), but I am working with one of our students to create a controller that reads the electrical impulses of a muscle (say a bicep squeeze) and converts it into a useable signal. If it works we plan to have a demonstration model at the St. Louis regional.

Wetzel 19-12-2004 22:33

Re: Hacking Various Controllers
 
116 has used a steering wheel with an attached throttle control. It was mounted on the same board as the switches. It worked and we competed with it in 2001. I couldn't tell you more about how they implemented it.



Wetzel

Steven Carmain 21-12-2004 19:28

Re: Hacking Various Controllers
 
Just a side note, is this really FIRST legal? I can understand modifying a couple pins in a joystick is easy(I don't know about legal, see rules below), but using a game controller is more than likely illegal. Unless it was specially designed for standard 15-pin joystick ports without MIDI In, chances are slim to work. I can't speak for all controllers, but I know the N64 & Gamecube would require special circuitry to operate.

Steven

P.S.
N64 Controller Interface
GCN Controller Interface

Quote:

(Quoted from Section 5 - The Robot, Rev- C Incorporated 3-3-04)
5.2.8 Custom Circuit Rules
<R49> Additional electronics must be wired to their ATC breaker using a 16 AWG or larger diameter wire.
<R50> The use of additional electronics is intended to allow teams to construct custom circuits for their robots. The custom circuits may be used to indirectly affect the robot outputs, by providing enhanced sensor
feedback to the Robot Controller to allow it to more effectively decide how to control the robot. The custom circuits must draw power from a 20A circuit breaker. Smaller value fuses may be incorporated into the custom circuits for additional protection. All outputs from the custom circuits must be connected
to the analog inputs, digital I/O, TTL Serial Port, or Program Port on the Robot Controller.
<R51> Inputs to custom circuits may be connected to the following sources:
• Circuit breaker outputs
• Speed Controller or Relay module outputs
• PWM or Relay outputs on Robot Controller
• Switches, Potentiometers, the outputs from Current Sensors, Optical Sensors, Motors, and other additional electronics allowed
<R52> Custom Circuits may not:
• Interfere with the operation of other robots
• Directly affect any output devices on the robot, such as by providing power directly to a motor, supplying a PWM signal to a speed controller or supplying a control signal to a relay module. (Custom high impedance voltage monitoring or low impedance current monitoring circuitry connected to the robot’s electrical system are acceptable, because the effect on the robot outputs should be inconsequential.)
• Be used for wireless communication, such as sending or receiving a signal to and/or from the alliance station
• Connect to the radio or tether ports on the Robot Controller

Nick Fury 21-12-2004 19:39

Re: Hacking Various Controllers
 
I know there is much talk of what has been done by teams in previous years and I know a lot of it has been pretty cool but what I don't see are diagrams and white papers. If your team has used alternatives to the standard joysticks then please post a white paper or a wiring diagram or something.

BTW, If anyone is interested, I posted a wiring diagram for a joystick last year. It wasn't much but it is still floating around on CD somewhere.

Wetzel 21-12-2004 19:58

Re: Hacking Various Controllers
 
Steven,

Those rules apply to the custom circuits that are on the robot itself, not what you use in the player station. I am currently traveling and am unable to locate the rules from 2001, but I know that it was legal then. I will see if I can find anyone on the team that remembers how it was implemented.


Wetzel

Al Skierkiewicz 21-12-2004 21:25

Re: Hacking Various Controllers
 
Steven,
The rule you quoted is for the robot controller interface as suggested above. The rules on OI wiring are these...
<R85> The Operator Interface Console designed by your team must fit on the 42” wide by 9” deep shelf in the Alliance Station and The Radio Modem connected to the Operator Interface must be able to reach the mounting bracket on the operator stations. Be sure to leave at least 48” of slack in the 9-pin cable.
And
5.7.2 Operator Interface Sensor Inputs
The exact wiring configuration for the joysticks, switches, potentiometers, LEDs, and analog sensors connected to the Operator Interface is not specified. Teams may wire these devices, within the rules as described below and according to the documentation supplied by Innovation First, in order to create a custom interface for the robot operators.
The second rule goes on to present examples and add a few more restrictions. The greatest of these is that the interface not use any power supply connections to the OI other than the LED outputs and sensor wiring as shown. That leaves a lot open to designing your own human interface. As always, check over the rules when the game is announced for further details, these rules may and often do change each year.

WebWader125 22-12-2004 13:07

Digital control (was Re: Hacking Various Controllers)
 
I recently hacked up a controller, just to see what was involved. The switches were easy to handle, but the joysticks were a pain. I had to replace the joystick pots with 100K-ohm versions. The new pots didn't have exactly the same footprint as the old, so it took some effort to get it back together.

Anyway, this controller also has a digital D-pad which is essentially four contact switches (fwd/rev/left/right). I was thinking about changing the software to use the D-pad instead of the joysticks. The big problem is the lack of speed control. The analog joysticks provide about 128 speed gradients in any direction, whereas a digital interface provides two (on or off). I could, of course, use some other buttons to select speed, but I'm not going to get anywhere near 128 different speeds. And I'm guessing it wouldn't be as intuitive to the operators.

I'm wondering if any teams have used a strictly digital interface to control their robots? I'm not talking about digitally encoding the joystick positions; I'm thinking about getting rid of the joysticks altogether.

Al Skierkiewicz 22-12-2004 13:58

Re: Digital control (was Re: Hacking Various Controllers)
 
Quote:

Originally Posted by WebWader125
Anyway, this controller also has a digital D-pad which is essentially four contact switches (fwd/rev/left/right). I was thinking about changing the software to use the D-pad instead of the joysticks. The big problem is the lack of speed control.

Just add a pot for throttle to your pad switches. I am sure you will be unhappy with it, but it can be done. You will need some software intervention for the switches since you do not want to go from forward to reverse at speed. (This tends to tear the tranny out and leave it in pieces on the floor.) The joysticks are something most people have already learned and translating to robot movement come fairly easily for most drivers.

Steven Carmain 26-12-2004 19:47

Re: Hacking Various Controllers
 
Quote:

Originally Posted by Al Skierkiewicz
That leaves a lot open to designing your own human interface.

(Sorry, I was on vacation...) So, does this mean a processor circuit can be build on the OI(meeting all the other rules). We have thought about doing this before, but always ruled it out due to the rules stating the circuits have to be on the robot. Just curious, could be a YMC(You Make the Call).

663.keith 27-12-2004 00:01

Re: Hacking Various Controllers
 
our mentor found this on line and modified it to control our robot. It works reasonably well and can drive our robot easily with the two joysticks. The only problem with this design is that when both thumbs are on the joysticks it becomes reasonably hard to use the other buttons at the same time (ie. trying to raise an arm while driving the bot). We may bring this to the regionals this year if we work all of the kinks out.

link to the controller
http://www.compgeeks.com/details.asp?invtid=FSDAGP-TR

who thinks we should hack a ddr max game "controller" to drive the robot!

Al Skierkiewicz 27-12-2004 17:54

Re: Hacking Various Controllers
 
Quote:

Originally Posted by Steven Carmain
(Sorry, I was on vacation...) So, does this mean a processor circuit can be build on the OI(meeting all the other rules). We have thought about doing this before, but always ruled it out due to the rules stating the circuits have to be on the robot. Just curious, could be a YMC(You Make the Call).

Steve,
The rules for 2004 that apply to your question is...
R86> Teams are permitted to connect a portable computing device (Laptop computer, PDAs, etc.) to the RS232
Output of the Dashboard Port of the Operator Interface for the purpose of displaying feedback from the
robot while competing in Competition matches. Portable computing devices may not be connected to
inputs on the Operator Interface. Please note that AC power will not be available at the playing field so
these devices will have to run on internal batteries.

So I would have to say No to your question. This would give you an unfair advantage over teams that only had switches and pots.

Venkatesh 27-12-2004 18:42

Re: Hacking Various Controllers
 
Quote:

Teams are permitted to connect a portable computing device (Laptop computer, PDAs, etc.) to the RS232
Output of the Dashboard Port of the Operator Interface for the purpose of displaying feedback from the
robot while competing in Competition matches. Portable computing devices may not be connected to
inputs on the Operator Interface
I was always happy with that rule, since it forces humans to be integral parts of feedback systems involved.

Now if only we could build a human which (who?) passed through all data unmodified and in real time... We need a better human...

Last year, we planned and began construction of an audio feedback system for the command team. We never had a chance to finish it, but I will post diagrams et al. as soon as I find them.

Al Skierkiewicz 28-12-2004 23:51

Re: Hacking Various Controllers
 
Quote:

Originally Posted by 663.keith
our mentor found this on line and modified it to control our robot. It works reasonably well and can drive our robot easily with the two joysticks. The only problem with this design is that when both thumbs are on the joysticks it becomes reasonably hard to use the other buttons at the same time (ie. trying to raise an arm while driving the bot). We may bring this to the regionals this year if we work all of the kinks out.

link to the controller
http://www.compgeeks.com/details.asp?invtid=FSDAGP-TR

who thinks we should hack a ddr max game "controller" to drive the robot!

We tried the same controller but it was rejected by the drive team. They wanted something a little more full size and some of us felt that reliability might suffer. Joysticks do get a bit beatup during competition.

FIRST JerseyKid 12-01-2005 20:48

Controls and joysticks
 
Can you use any joysticks or controls you want?

CJO 12-01-2005 21:04

Re: Controls and joysticks
 
Basically, see the rules, but unless they have major onboard processors, they are ok. Also, wearable controls are kosher too.

phrontist 12-01-2005 21:07

Re: Controls and joysticks
 
Quote:

Originally Posted by CJO
Basically, see the rules, but unless they have major onboard processors, they are ok. Also, wearable controls are kosher too.

Yeah, he is right. You can have some microcontroller-based fun control-wise, but you aren't allowed to use "a computer." The line is kind of fuzzy...

CJO 12-01-2005 21:12

Re: Controls and joysticks
 
For instance, I think that it would be OK to use a couple of IC's to hook up an XBox controller to the 15 pin serial (and I think you could too, use an IC to split the signal/ convert the packets into analog values), but attaching a pocket PC is definatly not cool.

(ok, so maybe it is cool, but only if it runs linux -- www.handhelds.org)

Chronic 26-01-2005 10:49

Playstation Controler
 
We are a rookie team so we're still learning about the game play and we are wondering if we are allowed to use a playstation controller instead of the joysticks provided.

Any help you can give would be appriciated

Thank you for your time

Dara_Ter 26-01-2005 10:59

Re: Playstation Controler
 
Well for one thing you would have to get a cord that transfer the joystick connector with the playstation controller and I am sure that there would be compatability issues. Now you could do this with a PC game controller but there would be trouble matching up the default code with this type of controller. In either case I do not think that the rules allow for that kind of thing.

663.keith 26-01-2005 11:03

Re: Playstation Controler
 
its allowed according to the rules (many teams have done it) it is just fairly difficult to accomplish. A playstation controller does not have a db15 end to it, so it couldn't be simply attached to the operator interface. pretty much the only way to do it would be to rewire the entire game pad.

Katie Reynolds 26-01-2005 11:05

Re: Playstation Controler
 
Chronic,

Check out this thread; it may be of some use to you:

http://www.chiefdelphi.com/forums/sh...ad.php?t=28898

Eria4044 26-01-2005 16:43

Re: Playstation Controler
 
Quote:

Originally Posted by Dara_Ter
Well for one thing you would have to get a cord that transfer the joystick connector with the playstation controller and I am sure that there would be compatability issues. Now you could do this with a PC game controller but there would be trouble matching up the default code with this type of controller. In either case I do not think that the rules allow for that kind of thing.

Oh no...the console wars have begun anew. :ahh:

physics_guy47 26-01-2005 18:36

Re: Playstation Controler
 
I was looking at something like this as an option for our robot. There are a lot of controllers out there for the PC that are set up like a Playstation 2 controller. Like was mentioned before, the difficulty would be modifying the code to make it mesh with the controller.

Eria4044 27-01-2005 18:27

Re: Playstation Controler
 
Quote:

Originally Posted by physics_guy47
I was looking at something like this as an option for our robot. There are a lot of controllers out there for the PC that are set up like a Playstation 2 controller. Like was mentioned before, the difficulty would be modifying the code to make it mesh with the controller.

I was just kidding. Reading through I thought that it would be a better idea to use a PC controller similar to a PS2 controller, if using a PS2 controller meant rewiring it and writing code and stuff.

Hershey 27-01-2005 18:39

Re: Playstation Controler
 
Cool! I never would have thought of that! Last year, we were going to try a controller that goes with videogames for the computer that deal with cars. That didn't work so well. As long as you have the time and your driver likes the idea, I would recomend it. Last year, my team decided that we would try to design our controll system on the preferences of our driver. We were a rookie team, so we didn't get that time.

AIBob 27-01-2005 19:47

Re: Playstation Controler
 
you cannot really use a ps controller, not because of the rules, but because of the way it is set up..
The controllers for FIRST are analog. PS controllers are digital.... it doesnt match, you will find some problems if you try it.

ConKbot of Doom 28-01-2005 11:22

Re: Playstation Controler
 
Hmm, Digital pots anyone?

If a microcontroller is allowed, you may be able to take whatever the controller of your choice and convert it to analog with a microcontroller, and output it to the OI with one of those. Of course that is one more thing to program, but if you can't get it done this year, why not in the off season?

Josh Hambright 28-01-2005 11:57

Re: Playstation Controler
 
Quote:

Originally Posted by AIBob
you cannot really use a ps controller, not because of the rules, but because of the way it is set up..
The controllers for FIRST are analog. PS controllers are digital.... it doesnt match, you will find some problems if you try it.

You cannot immediately write off using the PS controller for the robot, simply because it is digital and the controller has analog inputs. There are digital input on the controller as well, which gives that option if you can figure out how to make it work with those digital inputs. Also there is the option of producing a Digital to Analog converter. The same way that the robot converts the analog signal to digital so that it can process it, you can do the reverse and give it an analog signal from digital.

I'm sure you can find a digital to analog converter online.

Saying that something cannot be done, is always good inspiration for someone to find a way to do it.

AIBob 29-01-2005 18:12

Re: Playstation Controler
 
Quote:

Originally Posted by oneangrydwarf
You cannot immediately write off using the PS controller for the robot, simply because it is digital and the controller has analog inputs. There are digital input on the controller as well, which gives that option if you can figure out how to make it work with those digital inputs. Also there is the option of producing a Digital to Analog converter. The same way that the robot converts the analog signal to digital so that it can process it, you can do the reverse and give it an analog signal from digital.

I'm sure you can find a digital to analog converter online.

Saying that something cannot be done, is always good inspiration for someone to find a way to do it.

I didn't say that it couldnt be done, well atleast didn't mean it in that way, I said you would have problems, I am sorry if you misinterpretted me, but i meant that you would have to search around for one and have some other problems. Please forgive my bad wording.

iwearshoes 31-01-2005 20:20

Question about controller/joystick method.
 
ok, I want to rig an Xbox controller as the main interface for our robot. I have converted them to USB before and have a USB driver and i was wondering if any of you had wiring diragrams of serial ports so i can figure out how to power it and where all the handshakes are. If so please let me know where i can find them. Thank you. Also is it legal to make an xbox controller the interface?

AIBob 31-01-2005 20:46

Re: Question about controller/joystick method.
 
I am not sure where you can get a diagram of the serial port, hopefully you will get it, and I am almost certain that you can use an Xbox controller legally.
But USB is digital isnt it... and the serial port is analog.

pakrat 31-01-2005 20:49

Re: Question about controller/joystick method.
 
Yeah, the digital/analog swith would be enough to steer me towards playstation, but i dunno

iwearshoes 31-01-2005 21:14

Re: Question about controller/joystick method.
 
I thought Serial cables were both digital and analog.

If you need it the wiring for USB is as follows:

5V / Red

D+ / Green

D - / White

Ground / Black

Lets say we forget about the pressure sensetive buttons (255 levels of sensitivity to be exact) and just wanted to use them as toggels. I know I can get a driver for it, the only thing I need is a way to wire it to a serial port.

Does anyone know of an adapter or crossover that would work?

I thought about PS2 but everyone knows xbox is superior.

Alright, thanks for the help so far.

(P.S. If you want your game system modified [LEDs, Paint Jobs, other crazy stuff, Preformance Xbox mods, etc.] let me know.)

Billfred 31-01-2005 21:21

Re: Question about controller/joystick method.
 
Search before you post:

http://www.chiefdelphi.com/forums/sh...+controlle rs

But since I'm a nice guy, I'll tell you--unless you are up for some serious hacking and programming, you are not going to get an XBox controller to interface with the 2005 FRC OI to much success. It's mainly because the DB15 (gameport) connector used is rather old-school.

Many others have looked for a way to do it. None have done it yet. Don't take this as bashing--take it as a challenge. (And of course, IFI provides some resources to aid you in your effort.) Every good thing in FIRST has happened because someone wanted to do a particular task a better/cheaper/faster/more interesting way. (Hence we have the kitbot this year!)

iwearshoes 31-01-2005 21:34

Re: Question about controller/joystick method.
 
Sorry about not searching for the post guys...... I just assumed this was kinda random and not many people would talk about it... oh well....


Well, if anyone knows the wiring schematics of the DB15 than let me know.

Rickertsen2 31-01-2005 21:38

Re: Question about controller/joystick method.
 
Quote:

Originally Posted by iwearshoes
ok, I want to rig an Xbox controller as the main interface for our robot. I have converted them to USB before and have a USB driver and i was wondering if any of you had wiring diragrams of serial ports so i can figure out how to power it and where all the handshakes are. If so please let me know where i can find them. Thank you. Also is it legal to make an xbox controller the interface?

This question comes up at least once every year, and there have been multiple threads about it. No offence, but if you are even asking this question i don't think you should attempt this. You CANNOT directly connect USB stuff to the OI no matter what kind of crazy software you right. This is a hardware restriction and there is no way around it without making a USB to gameport converter. This is not an easy task even for a seasoned hardware developer. USB is an extremely in depth and bulky protocol that is not for the faint of heart. I speak from experience. I have developed USB peripherals in the past. In order to interface with an Xbox controller, you would have to make a device that could act as a USB host. This is far worse than a peripheral. If you absolutely feel you need to to have an Xbox controller then i would rip it apart and see if you can bypass all of the control electronics. I have never opened one up but it probably boils down to mess of switches and potentiometers. If this is the case, you can just hook some wires up to the bottons/axis slap the proper DB15 connector on it and plug it directly into the OI.

BTW yes it is legal

Rickertsen2 31-01-2005 22:25

Re: Question about controller/joystick method.
 
Quote:

Originally Posted by AIBob
I am not sure where you can get a diagram of the serial port, hopefully you will get it, and I am almost certain that you can use an Xbox controller legally.
But USB is digital isnt it... and the serial port is analog.

The serial port on the OI is not analog. Perhaps you are confusing it with the gameports(joystick imputs) on the OI which are Analog. BTW the serial port on the OI is also unidirectional. It can only recieve information from the robot. It can't transmit anything to the robot.

AIBob 31-01-2005 22:33

Re: Question about controller/joystick method.
 
Quote:

Originally Posted by Rickertsen2
The serial port on the OI is not analog. Perhaps you are confusing it with the gameports(joystick imputs) on the OI which are Analog. BTW the serial port on the OI is also unidirectional. It can only recieve information from the robot. It can't transmit anything to the robot.

The reason that I would automatically consider the 'Serial Port' as a Joystick by the way they said it, and knowing the serial ports unidirectional. That is why I had said that it is analog, I am sorry for the confusion.

Rickertsen2 31-01-2005 22:46

Re: Question about controller/joystick method.
 
Quote:

Originally Posted by AIBob
The reason that I would automatically consider the 'Serial Port' as a Joystick by the way they said it, and knowing the serial ports unidirectional. That is why I had said that it is analog, I am sorry for the confusion.

Its ait. Don't worry about it.

ElCrazon 02-02-2005 12:34

Re: Using non joystick controls with Operator Interface (Hacking Various Controllers)
 
Well, we're a rookie team and I just wired up a playstation controller to our robot yesterday. It took about an hour and a half once I got the d-sub conectors in the mail. Anyway, it's really cool to drive the robot with.

Bremma 02-02-2005 14:02

Re: Using non joystick controls with Operator Interface (Hacking Various Controllers)
 
I'm trying to figure out how to wire and program a non joystick device for controlling the robot. I'm not sure how many switches we would use, though it will probably be 3 or 4, depending on what exactly we use for/on our arm. Does any know if I need to take any special considerations when deciding where to wire these on a serial port and what pins match up for the different controls on the ports? Any help is appriecated, and if a thread already exists for this, I can't find it, so point me there.

Al Skierkiewicz 02-02-2005 14:04

Re: Using non joystick controls with Operator Interface (Hacking Various Controllers)
 
Quote:

Originally Posted by Bremma
I'm trying to figure out how to wire and program a non joystick device for controlling the robot. I'm not sure how many switches we would use, though it will probably be 3 or 4, depending on what exactly we use for/on our arm. Does any know if I need to take any special considerations when deciding where to wire these on a serial port and what pins match up for the different controls on the ports? Any help is appriecated, and if a thread already exists for this, I can't find it, so point me there.

Heather,
Switches are connected and mapped through the four joystick ports on the OI not the serial port. If you check in the OI manual you will find the pinout for the four ports and the buttons they call in the OI and default software.

Bremma 02-02-2005 14:17

Re: Using non joystick controls with Operator Interface (Hacking Various Controllers)
 
OK, so will I need to ground all of my switches on 4 and 12? Or do I just need to connect the ends of the switches to the pins?

Al Skierkiewicz 02-02-2005 15:56

Re: Using non joystick controls with Operator Interface (Hacking Various Controllers)
 
Quote:

Originally Posted by Bremma
OK, so will I need to ground all of my switches on 4 and 12? Or do I just need to connect the ends of the switches to the pins?

In looking at section 4 of the OI manual...
"Digital Inputs (see pinouts on pages 7-10)
To utilize these inputs, wire buttons or switches between the desired digital input signal pin and any ground pin. A digital input senses a connection to ground to become active. Do not connect switches or digital inputs to 5V. Do not use lighted switches."
Any switch will have one side wired to the desired digital input on one of the four ports and the other side of the switch will be wired to either/both pin 4 and/or 12 on any port. If you search you will find a reference that allows you to construct a "y" cable that will connecto two of the ports so that you can have a button box that has more switches than one port can provide. Also note that digital inputs are duplicated on two ports. See port 2 & port 4 pinout tables.


All times are GMT -5. The time now is 12:25.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi