To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 3028
3027  |  3029
Subject: 
Re: Sensor monitoring
Newsgroups: 
lugnet.robotics
Date: 
Wed, 20 Jan 1999 20:45:06 GMT
Viewed: 
1159 times
  
lego-robotics@crynwr.com (Bible, Bryan) writes:
question is can I monitor both the sensors in parallel so
neither one has an advantage?

I think the sensors are read every 3ms and the value stored somewhere.  I don't
think they are read just when you ask for them in software.  You get the last
value read. I base this on the way the rotation sensor and some of the sensor
modes work. They would require a separate background task to process.  Two
readings would never be at the exact same time.  I would guess that sensor 1 is
always read just before sensor 2.

How about this for a solution: using 4 variables; Read sensor 1 then sensor 2
twice then sensor 1 again;  Average each of the two sensor values.  The average
sensor readings will both be at the same point in time.  Use the thresholded
value of the average to determine if there is a car over the sensor.



Message has 1 Reply:
  Re: Sensor monitoring
 
(...) The H8 object code reading crowd may know for sure. Those of us with dual trace oscilliscopes can also figure it out. An oscilliscope can show when a port in light sensor mode is being read. With a dual trace scope we can see if the sensors (...) (26 years ago, 21-Jan-99, to lugnet.robotics)

Message is in Reply To:
  Sensor monitoring
 
I have a project that I am building, it is a finish line monitor for a pinewood derby track. What I am doing is putting two light sensors above the track pointing down so the ambient light will change when the car crosses the finish line. One sensor (...) (26 years ago, 20-Jan-99, to lugnet.robotics)

10 Messages in This Thread:




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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
4 hours ago
Custom Search

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