View Single Post
  #2   Spotlight this post!  
Unread 10-01-2003, 17:00
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
The best sampling rate that you can have (if the sensor is hooked directly to the RC) is only about 40Hz, due to the extreme slowness of the BASIC Stamp.

The actual sensor can detect changes much, much faster than this (1000Hz according to it's datasheet).

Quote:
how long does it actually take before the controller will tell the program that the sensor is on/off?
Worst case the delay between the actual transition of the light sensor output and the time at which your code knows about it is 25 milliseconds. Also, if whatever you're doing with the light sensor causes a pulse that is less than 25ms long, you run the risk of the RC never knowing about the pulse in the first place.

Let me know if this didn't answer your question, and I'll try to explain it better...