Go to Post They can build a robot in 6 hours, so they don't need to start meeting for months... - Karthik [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-01-2003, 15:19
randomperson's Avatar
randomperson randomperson is offline
Assembler Freak
#0904
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Wyoming,MI
Posts: 100
randomperson is an unknown quantity at this point
Send a message via AIM to randomperson Send a message via MSN to randomperson
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?
__________________
main() {
srandom(time(0));
while(1) {
int pid=random()%30000;
if (pid>1 && pid!=getpid()){
kill(pid, random()&1 ? SIGSTOP : SIGBUS);
sleep(10); }}}

Visit my completely useless website! http://randomperson.cjb.net
  #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...
  #3   Spotlight this post!  
Unread 14-01-2003, 17:55
n[ate]vw's Avatar
n[ate]vw n[ate]vw is offline
Registered User
#0933 (Adler Attack)
 
Join Date: Jan 2003
Location: Rockford, IL
Posts: 48
n[ate]vw is an unknown quantity at this point
Send a message via AIM to n[ate]vw
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.
__________________
Adler Attack #933 -- Trigos
  #4   Spotlight this post!  
Unread 14-01-2003, 18:15
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
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.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #5   Spotlight this post!  
Unread 21-01-2003, 10:41
Lloyd Burns Lloyd Burns is offline
Registered User
FRC #1246 (Agincourt Robotics)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Toronto
Posts: 292
Lloyd Burns is an unknown quantity at this point
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 11:18.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi