|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Potentiometer issues
Our team was trying to wire up a potentiometer to our control system so that we can use it to control the force of our kicking mechanism. The problem we're having is in reading the value from the potentiometer--we are reading the value using the GetValue method of AnalogChannel, but instead of registering a static value, the value continually either climbs up or climbs down. We're resetting the accumulator on the channel after each read that we do, so we know that it's just that we're reading an accumulated value. We've had problems simil;ar to this in the past, and I vaguely suspect that it is related to the wiring of the pot. Has anyone had this problem or know how to resolve it?
|
|
#2
|
|||
|
|||
|
Re: Potentiometer issues
I believe accumulators are only present on the first 2 channels of Analog Module 1. So if you plug in to channel 3 it should work. Also something you may want to consider is setting up the averaging engine, as it will allow you to get the calibrated voltage from the analog input. I'd recommend having a look at the gyro source code
I know we've been using potentiometer-like sensors on the analog breakout and they've worked fine. |
|
#3
|
|||
|
|||
|
Re: Potentiometer issues
We tried moving it to Analog 3, and it still just counts up. incidentally, it exhibits the same behavior when unplugged, and we've tested all possible permutations of pot wiring and gotten the same result.
|
|
#4
|
|||||
|
|||||
|
Re: Potentiometer issues
Nathan,
If you wire the pot so that one outside terminal is connected to five volts and the other outside terminal is connected to zero volts, then the wiper will vary between almost 5 volts and zero volts as the pot moves through it's rotation. |
|
#5
|
||||||
|
||||||
|
Re: Potentiometer issues
Quote:
Do you have an electrical mentor who can check your wiring? There's only so much that descriptions from the Internet can help in this situation. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Potentiometer help | hullingerbr | NI LabVIEW | 6 | 15-02-2009 18:42 |
| Potentiometer | fezkazi | Electrical | 3 | 24-01-2007 13:29 |
| Potentiometer Help! | thoughtful | Programming | 4 | 18-02-2005 08:21 |
| Potentiometer | Joshua May | Technical Discussion | 8 | 22-05-2004 19:51 |
| Potentiometer Theory | Ulibrium | Technical Discussion | 6 | 25-01-2002 21:16 |