Go to Post I'm not suffering from my FIRST "addiction". I enjoy every minute of it. - Katie_UPS [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2010, 19:32
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
PSoC black magic

So, today the programming team took a braek from actually programming in order to design our control board. This included an in-depth test of the Cypress PSoC device, which exhibited some strage behavior.

The default configured analog inputs on the PSoC, when not connected to anything, seemed to be showing us data like an accelerometer would if mounted with its axis perpendicular to the board. In other words, the voltage that the Classmate reads varies depending on the number of Gs the board is experiencing.

When a jumper is placed along the analog input, it stops showing accelerometer data and jumps up. However, any analog input with a higher number than it also shows the same value. In other words, any analog inputs with a higher number behave as if they were reading from the same input.

The PSoC does this both when it is in "compatible" mode and "advanced" mode. Does anyone know what's going on, or how to fix it? I'm hoping we don't have to have it replaced/exorcised.
__________________
Get yer robot source code here!
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2010, 20:05
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: PSoC black magic

Unconnected Analog Inputs don't have a defined behavior, and should be ignored - there is nothing that defines the voltage, so you get really weird symptoms. This is not considered to be an error; putting a pull up/down resistor would have clearned up readings that don't matter but negatively affect readings that actually do matter.

What you are seeing is called "charge injection". Any muxed analog to digital converter will squirt a tiny bit of charge into or out of each channel proportional to the difference in voltage between that channel and the one before it. Since the accelerometer is the only thing active on the mux, ghosts of its signal will propogate down the chain.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2010, 21:41
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: PSoC black magic

Like Eric said, don't read any channel you didn't wire up. Better yet, ground every analog you haven't wired so that you won't chase ghosts while debugging.

Greg McKaskle
Reply With Quote
Reply


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
Programming the Psoc railerobotics Technical Discussion 5 18-02-2010 10:10
PSOC Interface Card Lafleur Technical Discussion 4 09-02-2010 13:26
Wiring Switches to the PSoC board Raj1977 Electrical 13 07-02-2010 23:24
PSoC Build error adamdb Programming 8 06-02-2010 16:14
Programming the PSoC PortugazD.Ace Programming 19 31-01-2010 13:14


All times are GMT -5. The time now is 19:21.

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