4635Views14Replies

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

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
ReCreate
ReCreate

Answer 11 years ago

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

0
ReCreate
ReCreate

Answer 11 years ago

I'm Looking at it, Thanks!

0
Derin
Derin

12 years ago

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

0
ReCreate
ReCreate

Answer 12 years ago

ok...thanks

0
stuuf
stuuf

12 years ago

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.

0
frollard
frollard

Answer 12 years ago

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.

0
ReCreate
ReCreate

Answer 12 years ago

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

0
stuuf
stuuf

Answer 12 years ago

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

0
frollard
frollard

Answer 12 years ago

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

0
ReCreate
ReCreate

Answer 12 years ago

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

0
ReCreate
ReCreate

Answer 12 years ago

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

0
frollard
frollard

Answer 12 years ago

*stuuf