|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Potentiometer issues
A properly wired potentiometer is an "absolute rotary encoder" with an analog output. What sort of high current situation did you think you might encounter? What kind of value were you seeing on the signal wire when you measured it, and how were you powering it?
|
|
#2
|
||||
|
||||
|
Re: Potentiometer issues
Quote:
|
|
#3
|
||||||
|
||||||
|
Re: Potentiometer issues
What value potentiometer are you using?
|
|
#4
|
||||
|
||||
|
Re: Potentiometer issues
I used a 1 meg linear taper potentiometer and a 10K carbon resistor....thinking was at full, the 1 meg made the 10k essentially nothing, thus nearly all of the 5 volts would drop across my variable resistance.
|
|
#5
|
|||||
|
|||||
|
Re: Potentiometer issues
A megohm is quite a large value. That's likely to result in a lot of noise on the Analog Input. A 10k to 100k pot is typical for a sensor in an FRC robot, with lower values giving better noise immunity but requiring more current.
If you're worried about "variable resistance", then you might not be understanding the proper use of a potentiometer. You're supposed to connect +5 and (-) across the device, and the wiper goes to the Analog Input. 5 volts is always across the pot. The output is a voltage which is proportional to the turning of the shaft. The only way you'd need to be concerned with excess current is if you improperly connected the wiper to one of the power supply pins (or if you used a pot with much too small a value). |
|
#6
|
||||
|
||||
|
Re: Potentiometer issues
Quote:
For educational purposes - Why is a larger value potentiometer value synonymous with additional noise? |
|
#7
|
|||||
|
|||||
|
Re: Potentiometer issues
It's a matter of source impedance. The higher the resistance, the less able it is to overpower any noise being induced on the signal.
|
|
#8
|
||||
|
||||
|
Re: Potentiometer issues
Thank you for the much needed lesson...
We are currently picking up the signal from our encoder and multiplying it by 72 to simulate degrees around the circle. The problem we're having is that the break point between 360 and 0 (between 5 volts and 0 volts from the encoder) is very close to the top of our travel, and there were times when we over drove the tilt and surpassed the maximum point on the circle. Then, our autonomous code read the current angle to be something like 3 degrees (rather than 355 degrees) and tried to raise rather than lower the shooter to reach the desired set point. We should have rotated the magnet as soon as we discovered this, but we thought we could handle it by adjusting the limit switch location...hind sight! Can I install a potentiometer in the manner discussed here without any significant code changes (except perhaps the multiplier and the desired "set point") and read the value just like we're reading the encoder value? |
|
#9
|
|||||
|
|||||
|
Re: Potentiometer issues
Yes, it should be that simple. The one difference between the sensors that you need to worry about is that potentiometers typically have physical limits on how far they travel. If you do get a continuous-travel pot, the "dead zone" at the transition from maximum directly to minimum is usually a significant angle. For your purposes, just make sure the pot is rotated so the normal range of travel is not exceeded.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|