go_away

Author Topic: The Axon's ADCs  (Read 475 times)

0 Members and 1 Guest are viewing this topic.

Offline mstachoTopic starter

  • Supreme Robot
  • *****
  • Posts: 360
  • Helpful? 10
The Axon's ADCs
« on: October 27, 2011, 07:56:39 AM »
Howdy,

I'd doing a project now that requires me to read 16 sensors.  There are 2, 4-pin addresses, call them A and B.  It is essential that only one pin in set A and one in set B are being read at one time, or else the current will spill over and you get washed out sensor readings.

So here's my question: I have set A connected to ADC0 through 3 on the Axon.  If I understand it correctly, the ADC's should just be multiplexed, right?  Or is there some weird spillover effect that I'm not aware of?  My sensors have that washout I was talking about and I want to know if it's due to my setup on the Axon or if it's due to my setup to read pin set B (which is being done with a 4051 MUX chip).

Any thoughts?

MIKE
Current project: tactile sensing systems for multifingered robot hands

Offline joe61

  • Supreme Robot
  • *****
  • Posts: 417
  • Helpful? 16
Re: The Axon's ADCs
« Reply #1 on: October 27, 2011, 08:22:49 AM »
Are you reading the channels using single conversion mode or free running mode? If you're using free running mode there's a note in the data sheet that points out you need to skip a conversion. I don't have the reference handy right now, but it's due to the fact that the channel has to be changed before the next conversion starts. If you're changing it in an ISR, the next conversion has already started, so the second and subsequent conversions are off by one. You need to drop the second conversion, and then things will be in sync.

Sorry if that's not it. I'm not sure what the problem you're seeing is.

Joe

Offline mstachoTopic starter

  • Supreme Robot
  • *****
  • Posts: 360
  • Helpful? 10
Re: The Axon's ADCs
« Reply #2 on: October 27, 2011, 08:36:41 AM »
Hm...now that I've run more experiments (and have tried what you suggested), it looks like the problem is actually in the other set of pins -- it's my 4051 MUX that's screwing up.  Oh well.  I guess it's back to the drawing board :-P

Thanks for the info,

MIKE
Current project: tactile sensing systems for multifingered robot hands

 


Get Your Ad Here

data_list