Society of Robots
     | Robot Forum | Robot Tutorials | Robot FAQ |
September 02, 2010, 09:49:37 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: SoR Robot Chat every friday night. Join us! (forum integration fix coming when I have time)
http://www.societyofrobots.com/robotforum/chat/

Robot Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Weird IR reciever values  (Read 526 times)
0 Members and 1 Guest are viewing this topic.
silo_xtremeTopic starter
Robot Overlord
****

Helpful? 0
Offline Offline

Posts: 167


I really love robots, they keep me awake at night.


View Profile WWW
« on: November 07, 2009, 09:24:59 AM »

Hey All,

Anyone know why I would get values in the range of 65533 - 65535 on an ADC measurement?  I only seem to get this on my IR receiver from my ATXMEGA chip.

I've verified that we're not exceeding any electrical characteristics.

I have an interrupt that keeps sampling the ADC pin and updated a variable.

Could I be sampling too fast or something?  Huh
Logged
bsamuels
Jr. Member
**

Helpful? 0
Offline Offline

Posts: 24


View Profile
« Reply #1 on: November 13, 2009, 10:42:00 PM »

Try it with another IR sensor, or another microcontroller and make sure the problem isn't hardware related.
Logged
silo_xtremeTopic starter
Robot Overlord
****

Helpful? 0
Offline Offline

Posts: 167


I really love robots, they keep me awake at night.


View Profile WWW
« Reply #2 on: November 14, 2009, 08:44:44 AM »

Heh.  Sorry for not updating this sooner.

The problem is actually cause because the Voltage was too small for the resolution selected on the ADC.

Thanks,

Logged
bo13th
Beginner
*

Helpful? 0
Offline Offline

Posts: 1


View Profile
« Reply #3 on: November 14, 2009, 08:48:41 AM »

what type of ADC?
Logged
silo_xtremeTopic starter
Robot Overlord
****

Helpful? 0
Offline Offline

Posts: 167


I really love robots, they keep me awake at night.


View Profile WWW
« Reply #4 on: November 14, 2009, 08:51:16 AM »

The Xmega128A1 ADC.

For some reason it was not resolving values less than 1.7 ma.  Huh
Logged
Admin
Administrator
Supreme Robot
*****

Helpful? 110
Offline Offline

Posts: 9,833



View Profile WWW
« Reply #5 on: November 14, 2009, 10:23:52 PM »

The Xmega128A1 ADC.

For some reason it was not resolving values less than 1.7 ma.  Huh
ma or mV?

Is it 10 bit ADC?
Logged

silo_xtremeTopic starter
Robot Overlord
****

Helpful? 0
Offline Offline

Posts: 167


I really love robots, they keep me awake at night.


View Profile WWW
« Reply #6 on: November 29, 2009, 08:12:43 PM »

mV ... Yes, 10 bit.  It ends up being a moot problem since I don't need to filter out ambient light in the s/w ... We have a hardware filter on it Wink
Logged
Admin
Administrator
Supreme Robot
*****

Helpful? 110
Offline Offline

Posts: 9,833



View Profile WWW
« Reply #7 on: November 29, 2009, 08:16:23 PM »

Well

5V/(2^10 bit) = 0.0049 V

or 4.9mV

So getting 1.7mV resolution with a 10 bit system is impossible Tongue

. . . well, unless you are making assumptions based on a timer in a dynamic system . . .
Logged

silo_xtremeTopic starter
Robot Overlord
****

Helpful? 0
Offline Offline

Posts: 167


I really love robots, they keep me awake at night.


View Profile WWW
« Reply #8 on: November 29, 2009, 08:22:35 PM »

Doh!  Now that is good to remember! Thanks.
Logged
Pages: [1]
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Weird Self-building robot
Robot Videos
hazzer123 6 2460 Last post April 26, 2007, 04:04:07 PM
by gamefreak
weird rprintf bug?
Software
Admin 10 2214 Last post February 20, 2010, 11:41:25 PM
by Razor Concepts
Weird Op Amp thing.........
Electronics
TrickyNekro 15 1252 Last post February 17, 2009, 12:17:05 PM
by Admin
weird stuff...
Misc
Vepar 4 422 Last post December 22, 2009, 05:27:14 PM
by SmAsH
Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!


Advertise on this Forum