Go to Post That wheel appears to have been forged deep within the fires of Mount Awesome. - viking1902 [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 15-02-2010, 15:15
gokul gokul is offline
Registered User
FRC #0571
 
Join Date: Jan 2006
Location: CT
Posts: 25
gokul is an unknown quantity at this point
Connecting switches/pots to PSoC

We have managed to hook up a rotary switch, a SPST switch and a 100K pot to the PSoC kit, using one of the breakout boards available now.

The switches are working fine and their states can be seen in the Driver Station (inside the I/O tab) but the Analog Input has an odd behavior.

When nothing is connected on the AI lines, the voltage as reported by the Driver Station is jittery but around the max 3.3 range for each of the AIs.

When I connect one 100K Lin pot to AI 01, that input stays rock steady and moves correctly to 3.3V without jitters.

Oddly the other AIs (2,3,4) that are not connected and are floating, also follow the AI 01 - when the pot is changed!

Why would this be the case?
What should be the teams doing ? Tie the unused AIs to ground ? Of course one should not be checking the unused ones in the software but what would be the safest solution ?

Please advise.
  #2   Spotlight this post!  
Unread 15-02-2010, 15:28
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Connecting switches/pots to PSoC

This is normal behavior for an unconnected analog input. There's not really anything you have to do as long as you're not looking at those values in your code. If you want to eliminate the distraction, you could tie the unused inputs to ground. If you use a series resistor instead of a direct connection you'll be safe even if that input somehow becomes an output.
  #3   Spotlight this post!  
Unread 15-02-2010, 16:01
gokul gokul is offline
Registered User
FRC #0571
 
Join Date: Jan 2006
Location: CT
Posts: 25
gokul is an unknown quantity at this point
Re: Connecting switches/pots to PSoC

Thanks Dave.
I was wondering why the other unconnected AIs were following the connected one's behavior although electrically they are all independant. May be the PSoC has some internal parameters?
Gopal
  #4   Spotlight this post!  
Unread 15-02-2010, 16:08
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Connecting switches/pots to PSoC

Basically, the unconnected inputs are very high impedance and are picking up the signal that's on the other input. There's no electrical connection between them and the PSoC isn't doing anything to make it happen. The signal traces for the unconnected analog inputs are acting kind of like an antenna and picking up the AI01 signal that is nearby.
  #5   Spotlight this post!  
Unread 15-02-2010, 16:58
gokul gokul is offline
Registered User
FRC #0571
 
Join Date: Jan 2006
Location: CT
Posts: 25
gokul is an unknown quantity at this point
Re: Connecting switches/pots to PSoC

Thanks Dave!
  #6   Spotlight this post!  
Unread 15-02-2010, 17:04
Daniel_LaFleur's Avatar
Daniel_LaFleur Daniel_LaFleur is offline
Mad Scientist
AKA: Me
FRC #2040 (DERT)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Peoria, IL
Posts: 1,971
Daniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond repute
Send a message via MSN to Daniel_LaFleur
Re: Connecting switches/pots to PSoC

Quote:
Originally Posted by Dave Flowerday View Post
Basically, the unconnected inputs are very high impedance and are picking up the signal that's on the other input. There's no electrical connection between them and the PSoC isn't doing anything to make it happen. The signal traces for the unconnected analog inputs are acting kind of like an antenna and picking up the AI01 signal that is nearby.
... and this is exactly why most DAQ modules have either pull-up or pull-down resistors.
__________________
___________________
"We are not now that strength which in old days moved earth and heaven; that which we are, we are;
One equal temper of heroic hearts, Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield. "
- Tennyson, Ulysses
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
PSoC + Java frcchile Programming 1 08-02-2010 22:12
Wiring Switches to the PSoC board Raj1977 Electrical 13 07-02-2010 23:24
PSOC Understanding Gamer930 FRC Control System 1 03-02-2010 15:03
Limit Switches/Pots Brett W Technical Discussion 3 28-01-2003 14:25
3-turn pots archiver 2001 2 24-06-2002 01:24


All times are GMT -5. The time now is 07: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