|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Occational weird value from Potentiometer
I have been testing out a Potentiometer on analog 2, and when I print back the data every once in a while I get a weird number, My terminal would look like such for example (this is at one set position, not changing much at all)
Code:
221 221 221 221 221 221 221 220 221 221 456 221 221 221 220 |
|
#2
|
|||
|
|||
|
Re: Occational weird value from Potentiometer
This is too large of a fluctuation to be electrical noise.
Are you using a quality pot? A cheap pot can be intermittent on its wiper and cause fluctuations of this sort. |
|
#3
|
|||||
|
|||||
|
Re: Occational weird value from Potentiometer
Too wild for electrical noise, but eliminate it anyway: Use a 0.1 microfarad (not critical, can be +/- 100%) capacitor between the wiper and ground.
What value pot? Should be 5k-10k for the RC ADC inputs. Try it with 2 fixed resistors - does it still jump? (One resistor goes from +5 to center, other from center to ground, center is also your signal. 4.7k resistors or so). Those should get you to the root cause. Don |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Did anyone get a Value from the GTS? | Da_Dude | Programming | 2 | 16-01-2008 15:17 |
| Weird tangus value (i. e. tan(75)=27,XXX) | DanDon | Programming | 4 | 16-02-2005 01:24 |
| Weird Al? | George A. | Chit-Chat | 6 | 13-07-2004 07:22 |
| Weird Output from Dashboard Port | Ian W. | Programming | 9 | 06-03-2004 21:33 |
| Weird Al | MattK | Chit-Chat | 7 | 10-11-2002 00:33 |