Go to Post When you start thinking of FIRST as a robotic building contest you have left the pavement and you are in deep weeds. - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-09-2007, 20:05
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Potentiometer on Parallel Port?

Is there anyway I can hook up a potentiometer I have the the parallel port of my desktop pc? I've been trying to find wiring diagrams but haven't had any luck with

Thanks,
Nathan
__________________
Save money with PriceWombat, a shopping comparison and price tracking tool (that I made!).

Check out my hobby electronics business!

My former robotics team: Huntington County 4-H Robotics
  #2   Spotlight this post!  
Unread 30-09-2007, 20:10
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,022
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Potentiometer on Parallel Port?

The parallel port of your PC has 8 digital signal lines, and a bunch of control lines. It deals with ones and zeros. A potentiometer is an analog device, it deals with varying resistance. So, no you can't just connect a potentiometer to a parallel port. You'd need an analog to digital converter, and then some circuitry and software that would make the converted number show up on the computer in a way you could use it.

I don't know how to do it, but I do know it ain't real easy.
  #3   Spotlight this post!  
Unread 30-09-2007, 20:39
Mike AA's Avatar
Mike AA Mike AA is offline
Programmer and Mentor
AKA: Mike Aalderink
FRC #3458 (Code Blue)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Holland, Mi
Posts: 698
Mike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to behold
Send a message via MSN to Mike AA
Re: Potentiometer on Parallel Port?

what were you looking or hoping to do?

-Mike
  #4   Spotlight this post!  
Unread 30-09-2007, 21:35
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: Potentiometer on Parallel Port?

Oh, ok. I'm trying to make a throttle and rudder pedals that I can use with FS9.

Does anybody know of a good chip that would convert an analog signal from a pot into USB format? If I can't use my empty parallel port I'd like to make it go through USB...

Thanks,
Nathan
__________________
Save money with PriceWombat, a shopping comparison and price tracking tool (that I made!).

Check out my hobby electronics business!

My former robotics team: Huntington County 4-H Robotics
  #5   Spotlight this post!  
Unread 30-09-2007, 22:02
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,022
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Potentiometer on Parallel Port?

The easiest solution would be to get a sound card with a game port on it, and add that to the computer, and take apart a joystick or maybe one of the car racing pedal/steering setups and use the pots from it. I'm assuming you're already using the game port on the computer for a joystick. Although I don't know what's up with USB game stuff these days, it's probably taken over the old 15 pin game ports that I'm familiar with
  #6   Spotlight this post!  
Unread 30-09-2007, 22:50
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Potentiometer on Parallel Port?

This is possible, but it is very very ugly. And when I say ugly, I mean that a Spartan mother would have left this solution on the side of the mountain.

You may remember this basic method from the days of PBASIC.

Take the pot and wire it such that its middle pin goes into one of the IO pins on the parallel port, and one of its other pins goes to the ground pin. Wire a capacitor in parallel with the pot.

Voila! You have an RC network whose time constant varies with the pot's value.

Set the pin to an output. Wait a small while. Set the pin to an input, and time how long it takes for it to go from 1 to 0.

The reason this is not awesome is that you don't have a great idea of exactly what voltage will cause a transition from 1 to 0. In fact, the spec for the parallel port probably doesn't even say that it is repeatable.

However, you get what you paid for.

Enjoy and good luck!
  #7   Spotlight this post!  
Unread 01-10-2007, 09:41
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: Potentiometer on Parallel Port?

I do know how to do this with a game port. But because almost no pc's have them anymore, and every new pc has an abundance of USB ports I'd rather stick with that.

This guy accomplished what I'm trying to do: http://www.flightsim.com/cgi/kds?$=main/howto/mind.htm

Problem is I'm not very electronics savvy. I may just need to go with something like this: http://www.lbodnar.dsl.pipex.com/joystick/

-Nathan
__________________
Save money with PriceWombat, a shopping comparison and price tracking tool (that I made!).

Check out my hobby electronics business!

My former robotics team: Huntington County 4-H Robotics
  #8   Spotlight this post!  
Unread 01-10-2007, 10:50
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Potentiometer on Parallel Port?

Radioshack may have exactly what you need, and for only $5.

http://www.radioshack.com/product/in...33180&cp=&sr=1

Plug this into your USB port, and now you have a game port interface, which is really easy to interface with switches and potentiometers.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #9   Spotlight this post!  
Unread 01-10-2007, 11:08
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,022
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Potentiometer on Parallel Port?

That little USB-Game port adapter looks like a great solution! or see if you can find some old sound cards, they all have a game port on them too.
  #10   Spotlight this post!  
Unread 01-10-2007, 11:22
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: Potentiometer on Parallel Port?

Anyone know the ADC specs on that USB converter? I think it might make a great (if laggy) DAQ... especially since it's $5.

-q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
  #11   Spotlight this post!  
Unread 01-10-2007, 12:21
Cody Carey's Avatar
Cody Carey Cody Carey is offline
,':-)
AKA: C. Carey
FRC #0306 (CRT)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry, PA
Posts: 1,137
Cody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond reputeCody Carey has a reputation beyond repute
Send a message via AIM to Cody Carey Send a message via Yahoo to Cody Carey
Re: Potentiometer on Parallel Port?

Sadly, anything with a 97 cent tag trailing the dollar amount is discontinued and will soon disappear in the annals of things you wish RadioShack still carried. If your store doesn't have it, unless another one close to you does, chances are you won't be finding one. Luckily, when I first saw these things go discount for $5.00, I bought 6 of them for $3.50 (Employee discount ) and thus, if some of you guys need one it would be a matter of me putting it in a padded envelope and sending it to you.

Some things to know about it: It can only be configured to work with up to 8 buttons. It does work with Vista, and depending on what stick you use, it can have very high latency times. It also has trouble with store-bought wheels/rudders.

Not FIRST legal, but something to tinker around with in your spare time.\

Also, since 15 bucks isn't that much, You could also look at these.


-Cody
__________________
  #12   Spotlight this post!  
Unread 01-10-2007, 12:57
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,022
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Potentiometer on Parallel Port?

Quote:
Originally Posted by Cody Carey View Post
Sadly, anything with a 97 cent tag trailing the dollar amount is discontinued and will soon disappear in the annals of things you wish RadioShack still carried.
Like all the stuff in this catalog, which we used to read for hours on end (along with Lafayette, Heathkit, and Burnstein-Applebee catalogs)



I had a few of the Archer Kits in this Radio Shack catalog.
  #13   Spotlight this post!  
Unread 01-10-2007, 15:16
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: Potentiometer on Parallel Port?

Well, I might end up going with this: http://www.lbodnar.dsl.pipex.com/joystick/

Since it can support a lot of devices, and seems very straightforward as to how to hook things up. I just wish I could build something like it for $5-10 bucks instead of $45

BTW, what does the Ohm rating on a potentiometer mean?

Thanks,
Nathan
__________________
Save money with PriceWombat, a shopping comparison and price tracking tool (that I made!).

Check out my hobby electronics business!

My former robotics team: Huntington County 4-H Robotics
  #14   Spotlight this post!  
Unread 01-10-2007, 15:31
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,022
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Potentiometer on Parallel Port?

The ohm rating on a potentiometer (pot) is it's resistance. All a pot is really is just a resistor with a center contact that you can move.

You can get pots with all different resistances, which one you want depends on the circuit you're making. If you are going to use it to replace a joystick, then you'd probably want to use a pot with a resistance in the neighborhood of 10,000 to 100,000 (10k to 100k) ohms.
  #15   Spotlight this post!  
Unread 02-10-2007, 12:22
Nathan's Avatar
Nathan Nathan is offline
Registered User
FRC #1501 (Team T.H.R.U.S.T.)
Team Role: Alumni
 
Join Date: Sep 2006
Rookie Year: 2007
Location: United States
Posts: 149
Nathan has a spectacular aura aboutNathan has a spectacular aura aboutNathan has a spectacular aura about
Re: Potentiometer on Parallel Port?

I'll probably buy a gameport to USB adapter in the near future, but for now I found an old PCI card that has a gameport on it.

I'm having a little problem though. I hooked up two pots and two limit switches to the gameport, and installed it as a two-axis joystick with two buttons in control panel. But when I turn one of the pots all the way in one direction a dialog box pops up saying the controller cannot be found.

Why would windows say the joystick is unplugged when I turn the pot all the way in one direction?

I haven't tested this yet, and won't be able to until later tonight, but is it possible that the pots were set to full resistance and too little current got back to the gameport causing windows to say the joystick is unplugged?

Thanks,
Nathan
__________________
Save money with PriceWombat, a shopping comparison and price tracking tool (that I made!).

Check out my hobby electronics business!

My former robotics team: Huntington County 4-H Robotics
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PC Parallel Port Circuit f4cepl4nt Electrical 7 05-01-2006 22:04
TTL port to a serial port on a demo board ImmortalAres Programming 16 09-07-2005 23:44
Parallel Processor rohandalvi Kit & Additional Hardware 25 27-10-2004 20:21
Serial/Parallel Interface mchan1111 Programming 2 22-10-2004 23:36
Working in Parallel dubya404 3D Animation and Competition 7 28-01-2003 11:48


All times are GMT -5. The time now is 07:00.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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