3561Views14Replies

Author Options:

How can i get reading from a potentiometer on a computer? Answered

a Potentiometer, like the one in the picture I want to be able to get the reading of that on the computer...like numbers from 0 to 255(or whatever) Maybe through the serial post,if there is an instructable for this show me if not then tell me how

14 Replies

user
ReCreate (author)dexhand2009-06-10

It uses a servo, expensive stuff...Won't work...

Select as Best AnswerUndo Best Answer

user
ReCreate (author)dexhand2009-06-10

I'm Looking at it, Thanks!

Select as Best AnswerUndo Best Answer

user
Derin (author)2009-04-21

Use a AVR or PIC with serial comms and connect the pot to the ADC input.

Select as Best AnswerUndo Best Answer

user
Infinitevortex (author)2009-03-15

You might try looking through the projects on FlightSim.com's How-To page:
http://www.flightsim.com/main/m-howto.htm.
I recall seeing some DIY control yoke / throttle projects that interfaced through the game port.

Select as Best AnswerUndo Best Answer

user
stuuf (author)2009-03-14

One way is to use a USB to I²C bridge and an I²C A-D converter. Or a USB GPIO board with analog inputs, but the I²C adapters tend to be cheaper, and are also easier to stack multiple sensors on a single USB interface.

Select as Best AnswerUndo Best Answer

user
frollard (author)stuuf2009-03-14

Stuff has it right - you need an analogue to digital converter - and it has to 'talk' serial so the computer can read it. An easy method would involve a dev kit like Arduino (open source, easy to learn). The arduino reads the pot, then sends the signal to the computer via serial over usb.

Select as Best AnswerUndo Best Answer

user
ReCreate (author)frollard2009-03-14

hmm yeah another thing is maybe through the joystick connector...ever looked inside a joystick?...yeah

Select as Best AnswerUndo Best Answer

user
stuuf (author)ReCreate2009-03-14

yeah, i just thought about the joystick/gameport too. I think the axis positions are just sent as analog voltages, so the interface to a pot would be really simple (or take an old joystick and wire your own pots to it). look in your attic for an old computer that still has a gameport and try it :P

Select as Best AnswerUndo Best Answer

user
frollard (author)stuuf2009-03-15

Great idea! I never knew gameport was pin-for-pin analogue.

Select as Best AnswerUndo Best Answer

user
ReCreate (author)frollard2009-03-15

yeah if you stick your screwdriver in between two pins the x or y will change to full 100%

Select as Best AnswerUndo Best Answer

user
ReCreate (author)stuuf2009-03-15

yeah...my computer has a gameport but if i disconnect even just one of the cables...the computer complains that there is a problem and stops viewing the x and y I would have to make a bunch of dummy connections to make it work also i only have one joystick...and i don't want to risk destroying it so i will probably buy another...or the cable itself

Select as Best AnswerUndo Best Answer