To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3687
3686  |  3688
Subject: 
Re: Spurious bad readings from sensors
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 25 Feb 2004 22:29:49 GMT
Viewed: 
4481 times
  
In lugnet.robotics.rcx.legos, Kevin L. Clague wrote:
Hi Mark,
  Thanks for the help.  In Steve's legway code he reads from LIGHT_1 and LIGHT_3
(even if there is no sensor hooked to LIGHT_3).  When I was running his code
with instrumentation for both sensors, I had nothing hooked to SENSOR_3, and I
still got the suprious readings from SENSOR_3.

  It would seem the issue is not related to powering the sensor.

Kevin

Could it be noise getting into the analog power supply?  If you're switching
between brake and full power with the motor ports, it seems possible that some
spikes could get through to the A/D converter.  You might be able to test this
by commenting out the motor drive commands and then looking at your sensor log.

If this is the case, then you'd want to try and make sure the A/D conversion
period doesn't overlap any motor commands that would cause transients.

HTH,

Mark



Message is in Reply To:
  Re: Spurious bad readings from sensors
 
Hi Mark, Thanks for the help. In Steve's legway code he reads from LIGHT_1 and LIGHT_3 (even if there is no sensor hooked to LIGHT_3). When I was running his code with instrumentation for both sensors, I had nothing hooked to SENSOR_3, and I still (...) (20 years ago, 25-Feb-04, to lugnet.robotics.rcx.legos)

4 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR