Go to Post IMO the main idea behind FIRST is for the mentors and students to work together to produce a machine that the students could never have produced on their own. - Tim Sharp [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 07-01-2003, 21:03
mjt902 mjt902 is offline
Registered User
#0902
 
Join Date: Apr 2002
Location: Heritage High School
Posts: 31
mjt902 is an unknown quantity at this point
Question Sensor Tracking the Boxes

I want to use a servo to rotate the optical sensor. When the sensor variable switches on, I want the chassis to turn the exact degree of the servo. (My engineer says to forget about it, so I need to do this quick before we rule it impossible ). Anyway, How do I get input or anything to control the turn degree on the chassis?? We have tank drive so it seems harder than the one joystick drive system we had last year.
I'm extremely thankful for any help I can get, and thanks 47 for the great site.

mjt
__________________
Top Ten Reasons to Procrastinate:
1.
  #2   Spotlight this post!  
Unread 07-01-2003, 21:36
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
One thing you could do would be mount three optical sensors next to each other, spaced a few inches apart, with all three rotating together.

Then, once you get a "lock-on" from moving the servo, start turning in the direction that the servo is pointing. As you turn, move the servo so that only the center optical sensor sees the target (ie if the left sees it, move the servo left). Doing this, the servo will eventually line itself up with the robot.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #3   Spotlight this post!  
Unread 07-01-2003, 21:48
nwagers nwagers is offline
Registered User
#0240 (Mach Vee)
 
Join Date: Oct 2001
Location: Monroe, MI
Posts: 88
nwagers is an unknown quantity at this point
Send a message via AIM to nwagers Send a message via Yahoo to nwagers
perhaps you are attacking the problem the wrong way. We'll probably do this on our robot, so I'm hesitant to share, but mount the optical sensor in a fixed position and turn the robot until the sensor input changes. Once you have a "lock" just drive straight forward, the turning will already be done. I plan on scanning while following the white line.
  #4   Spotlight this post!  
Unread 07-01-2003, 22:53
Mongoose's Avatar
Mongoose Mongoose is offline
Registered User
#0948 (Newport Robotics Group (NRG 948))
 
Join Date: Oct 2002
Location: Bellevue, WA
Posts: 45
Mongoose is an unknown quantity at this point
Send a message via AIM to Mongoose
Once you detect the tape, you could rotate the servo back toward the center of the robot (the axis going from stern to bow) a couple degrees, turn the robot until the sensor reads true again, and rinse and repeat until the servo reads that it is pointing straight forward.

Last edited by Mongoose : 07-01-2003 at 23:03.
  #5   Spotlight this post!  
Unread 08-01-2003, 12:24
chewie chewie is offline
Registered User
#0564
 
Join Date: Jan 2003
Location: NY
Posts: 5
chewie is an unknown quantity at this point
white tape?

hrm...i'm under the impression that the tape on the carpet is white....or so i have read from the manual, is it white or reflective?
__________________
Nick Falletta

Last edited by chewie : 08-01-2003 at 12:27.
  #6   Spotlight this post!  
Unread 08-01-2003, 12:32
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
white
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos
  #7   Spotlight this post!  
Unread 08-01-2003, 12:40
chewie chewie is offline
Registered User
#0564
 
Join Date: Jan 2003
Location: NY
Posts: 5
chewie is an unknown quantity at this point
white hrm...

so, i'm guessing the sensors are sensitive enough to detect the white surface, even though it is not as reflective as the reflective tape on the boxes?
__________________
Nick Falletta
  #8   Spotlight this post!  
Unread 08-01-2003, 13:19
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
In theory, yes. However, you will definately need to experiment with the correct gain setting (that little dial on the back) and the distance from the ground to find the optimal setting such that it reflects on the white but not on the carpet.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #9   Spotlight this post!  
Unread 08-01-2003, 17:14
Mike537Strategy Mike537Strategy is offline
Registered User
#0537 (Charger Robotics)
 
Join Date: Jan 2003
Location: Sussex Wisconsin
Posts: 25
Mike537Strategy is an unknown quantity at this point
Anyone used the boe-bots? I am new on my team, and there was an option for new members to take a summer school course where out final test was to use optical sensors to follow a black line on a white surface and be able to turn off the sensors and skip over some white. That was fairly simple, and we had to convert the pre-given white line follower to make it follow black.
__________________
"Charging into the future, one game at a time." - Team 537 motto
  #10   Spotlight this post!  
Unread 08-01-2003, 17:56
imjustmatthew's Avatar
imjustmatthew imjustmatthew is offline
Registered User
#0638 (Operation Oxidation)
 
Join Date: Jan 2003
Location: Richmond, VA
Posts: 19
imjustmatthew is an unknown quantity at this point
Send a message via AIM to imjustmatthew Send a message via Yahoo to imjustmatthew
Re: Sensor Tracking the Boxes

Quote:
Originally posted by mjt902
I want to use a servo to rotate the optical sensor. When the sensor variable switches on, I want the chassis to turn the exact degree of the servo. (My engineer says to forget about it, so I need to do this quick before we rule it impossible ). Anyway, How do I get input or anything to control the turn degree on the chassis?? We have tank drive so it seems harder than the one joystick drive system we had last year.
I'm extremely thankful for any help I can get, and thanks 47 for the great site.

mjt
we thought about trying that, but then ruled out "box finding" all together, because we didn't see it as time efficent with autonomous control, a human could do it far better.

Our solution however, was a variable gain sensor that would allow us to track the rotation of the light sensor. When we tested it the only problem was the detection range and width of the containor strips. At distance, you have to "hit" the tape on the containers almost exactly with your sensor's line of sight, and it has to stay in the line of sight long enough to register in your programs loop. Good luck with it if you try it.
__________________
Matthew Roy

"We propose to decompose the competition."
  #11   Spotlight this post!  
Unread 08-01-2003, 18:09
Ryan Meador Ryan Meador is offline
Registered User
#0190
Team Role: Electrical
 
Join Date: Jan 2002
Rookie Year: 1999
Location: Worcester, NH
Posts: 68
Ryan Meador will become famous soon enough
Don't forget our wonderful yaw rate sensor. I've used it in an application that could be equated to this, and it did it within a couple of degrees accuracy. I'm not sure if this is the solution my team is going to use or not... our (hopefully) unique chassis might offer another possibility
  #12   Spotlight this post!  
Unread 09-01-2003, 15:15
mjt902 mjt902 is offline
Registered User
#0902
 
Join Date: Apr 2002
Location: Heritage High School
Posts: 31
mjt902 is an unknown quantity at this point
To anyone that still cares about my original post:

I asked my math teacher how to figure distance based on a single angle. I found that to be impossible. Howver, if I read from the first sensor switch to on, then at the sensor switch to off, and move foward on the half angle an alotted distance, the process can be simplified. After moving foward an alotted distance, I take two more readings and parts of the imaginary triangles are revealed using law of sin and other stuff. This is necessary for the distance you want to travel to the boxes only if you want to pick them up.

Anyway, if you want an expanded explanatyion, just post and ask for it.
__________________
Top Ten Reasons to Procrastinate:
1.
  #13   Spotlight this post!  
Unread 09-01-2003, 15:28
Gobiner Gobiner is offline
Registered User
#0753 (High Desert Droids)
 
Join Date: Nov 2002
Location: Bend, Oregon
Posts: 54
Gobiner is an unknown quantity at this point
Send a message via ICQ to Gobiner Send a message via AIM to Gobiner
The problem with that solution is that PBASIC doesn't have trigonometry support. At least, I'm pretty sure.
__________________
0N3 1337 PR0G|24MM1N6 N1NJ4
  #14   Spotlight this post!  
Unread 09-01-2003, 15:35
frumious frumious is offline
Registered User
#0847
 
Join Date: Jan 2003
Location: Philomath, Oregon
Posts: 10
frumious is an unknown quantity at this point
Send a message via ICQ to frumious Send a message via AIM to frumious Send a message via Yahoo to frumious
You can always do trig with calculus using functions pbasic does support, altho you'd probably end up slowing the processor down so much that your execution time would provide noticable lag in doing anything

Tyson
  #15   Spotlight this post!  
Unread 09-01-2003, 15:57
Skabana159's Avatar
Skabana159 Skabana159 is offline
Robotics and Field Hockey
AKA: Jesse C. Owens
#0159 (Alpine Robotics)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2000
Location: Ft. Collins, CO
Posts: 92
Skabana159 is on a distinguished road
Send a message via AIM to Skabana159
To find distance is pretty hard in PBASIC, anyways. We thought about it last year, but threw it away after realizing it would take up like 3 or 4 words. If you recall last year's kickoff, they had a crazy contraption with four light sensors on it, three stationary rotating on an axis and the fourth on top of them, rotating the light up and down. You could use this to find an angle between the ground and the top of the bin.
You could do all of this by finding the angle between flat and the top sensor, and finding the hypotenuse. However, sin, cosin, and tan are all unsigned integers in a word in PBASIC. However, if you didn't care about any of that, you could just chase down a bin by putting a pot on the robot, attaching the knob to your sensor array, and turning the robot untill the pot was 127 or whatever value is lined up.
__________________
"What most people do not understand is that the Buddha, the Godhead, resides just as comfortably in gears and circuits as in hills and trees. To believe otherwise is to dilute the Godhead."
-Robert Pirsig, Zen and the Art of Motorcycle Maintenance

Last edited by Skabana159 : 09-01-2003 at 15:59.
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
Dimensions of the kit boxes Jean McAuliffe General Forum 2 24-06-2003 00:40
sliding boxes Jeff Rodriguez General Forum 11 11-03-2003 00:24
breaking boxes illumanat'i Rules/Strategy 6 19-01-2003 15:44
question on launching boxes 2PI4Julia Rules/Strategy 4 18-01-2003 10:17
plastic boxes Suzy General Forum 6 12-01-2003 03:27


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

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