|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Sensor response time...
Hmm.. does anyone know the response time for the optical sensors? I know that it says it in the paper for them.. but how long does it actually take before the controller will tell the program that the sensor is on/off? I guess a simplified version of this question would be what kind of sampling rate are we getting with the sensors?
|
|
#2
|
||||
|
||||
|
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:
Let me know if this didn't answer your question, and I'll try to explain it better... |
|
#3
|
||||
|
||||
|
We've been playing with automatic control using the light sensors and their response time seems to be negligible. Like Dave said, the delay is going to come from the code, not the sensors. If a light sensor is physically triggered at the time the loop is running, it's safe to assume that your program will know it.
|
|
#4
|
||||||
|
||||||
|
You get the same sampling rate as with everything else connected to the RC: 26ms minimum. If your code is excessive complex, this could be as high as 40ms, but I haven't seen much past that.
|
|
#5
|
|||
|
|||
|
The "response" seems to depend on setting of the sensitivy, which in turn depends on what is needed to discriminate between the red carpet and the white line.
On a red broadloom, I notice 'considerable' (and considerably varying) time between the light hitting the calculator-tape curve, and the robot's reaction to it. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| time change | David Kelly | Chit-Chat | 14 | 06-04-2003 23:10 |
| Solution to Timing Loops | Steven Carmain | Programming | 39 | 10-02-2003 13:33 |
| How long should production time be??? | archiver | 1999 | 4 | 23-06-2002 23:16 |
| what time zone? | Amy Beth | CD Forum Support | 5 | 15-04-2002 02:41 |
| need help with time zone! | Ken Leung | General Forum | 6 | 25-06-2001 12:44 |