Go to Post The card system worked. Well. It was used properly and (except for when Paul yellow carded Andy during his "Thank you" speech) wasn't abused. I applaud the referees. Kudos. - Collin Fultz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-02-2008, 20:20
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
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
It works fine when I change the position, but it give me a weird number every once in a while which could mess things up. Has anyone else had problems like this or know why this is? Thank you
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
  #2   Spotlight this post!  
Unread 14-02-2008, 20:51
eugenebrooks eugenebrooks is offline
Team Role: Engineer
AKA: Dr. Brooks
no team (WRRF)
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Livermore, CA
Posts: 601
eugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond repute
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   Spotlight this post!  
Unread 14-02-2008, 21:02
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,988
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
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
__________________

I am N2IRZ - What's your callsign?
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 13:35.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi