Go to Post - Just because you can buy 50 giant pixie stix with your roommates Sam's club membership does not mean you should eat them all at once. - Not2B [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 11-04-2005, 19:39
chantilly_team chantilly_team is offline
Registered User
#0612
 
Join Date: Oct 2004
Location: Virginia
Posts: 28
chantilly_team is an unknown quantity at this point
Help with motion detector

We want to use motion detector to sense a particular distance. We have measure the distance between the ground and robot every second, and if that distance is less than a pre-fixed value, we have to trigger an operation.

So how do we go around with motion detectors? Are there any specific available for FRC robot-controller? How can we convert the data we receive from motion detector into distance.

Thanks,
Team 612.
  #2   Spotlight this post!  
Unread 12-04-2005, 15:18
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Help with motion detector

We use an IR distance sensor on our robot, which I think is what you want... I'm not sure how well its going to work for you, depending on the color of the carpet, etc.

This, I think is the exact one we use http://www.acroname.com/robotics/par...6-GP2D120.html

That should be pretty simple to wire up.. programming it is even simpler, its an analog sensor, get Get_Analog_Value() it

Using a distance sensor might be overkill for what you want though.. are you sure theres no way you can do it with some type of switch?
  #3   Spotlight this post!  
Unread 12-04-2005, 20:33
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is online now
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,714
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Help with motion detector

Depending on the distance you have to measure and the clearances involved, you could do this mechanically using a rod with a ball on the end, a spring, and a linear potentiometer. Less likely to be finicky about carpet color, more likely to dislike bumps and ledges underneath your robot.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #4   Spotlight this post!  
Unread 05-05-2005, 19:19
chantilly_team chantilly_team is offline
Registered User
#0612
 
Join Date: Oct 2004
Location: Virginia
Posts: 28
chantilly_team is an unknown quantity at this point
Re: Help with motion detector

Would using a motion detector really kill the OI of the FRC (the one provided by innovationFirst) ?

We need some kind of sensor to measure the distance.

Would the ultrasonic transducers work there?

Thanks,
Team 612.
  #5   Spotlight this post!  
Unread 06-05-2005, 11:55
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Help with motion detector

Quote:
Originally Posted by chantilly_team
Would using a motion detector really kill the OI of the FRC (the one provided by innovationFirst) ?

We need some kind of sensor to measure the distance.
Brian's use of the term "overkill" is a military reference. It means using much more firepower and causing much more damage than is necessary to accomplish an objective, and usually implies nuclear bombs.

If your requirement is to trigger an action when the distance to the ground is less than a specified threshhold, you don't really need to measure the distance. You can use a simple switch mounted so that it activates when a physical "feeler" makes contact with the ground.
  #6   Spotlight this post!  
Unread 06-05-2005, 13:43
chantilly_team chantilly_team is offline
Registered User
#0612
 
Join Date: Oct 2004
Location: Virginia
Posts: 28
chantilly_team is an unknown quantity at this point
Re: Help with motion detector

I realised that a lot you guys are advicing us to use a physical / mechanical sensor, but in the project, we need to have an electronic sensor of some kind, to measure distance. If that distance is more than or less a specific value (say 4 feet), then it should trigger something.

So we wanted to place an electronic sensor there. But we are not sure. Ultrasonic transducers (transmitter+receiver pair) is a good option. But we dont know if they work well, or what kind of output do they give(digital/analog).

Thanks,
Team 612.
  #7   Spotlight this post!  
Unread 06-05-2005, 15:33
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Help with motion detector

Quote:
Originally Posted by chantilly_team
I realised that a lot you guys are advicing us to use a physical / mechanical sensor, but in the project, we need to have an electronic sensor of some kind, to measure distance. If that distance is more than or less a specific value (say 4 feet), then it should trigger something.
Your robot is going to be more than 4 feet from the ground? I'm curious to know what exactly you're trying to build here.

With a threshhold distance on the order of a meter, an ultrasonic rangefinder sounds fine for your application. You can find simple ones that give a digital output pulse proportional in length to the distance, requiring the controller to both initiate and measure that pulse (typically using interrupts), and you can find fancier and more expensive ones that constantly provide a nice analog voltage representing the distance. Search the web for "ultrasonic rangefinder" and you'll find lots to choose from.
  #8   Spotlight this post!  
Unread 06-05-2005, 23:38
chantilly_team chantilly_team is offline
Registered User
#0612
 
Join Date: Oct 2004
Location: Virginia
Posts: 28
chantilly_team is an unknown quantity at this point
Re: Help with motion detector

Basically we are trying to make a Community project for someone in our city. (Chantilly). We are building a "robotics walker" for a handicapped baby. One of the safety features is that the walker doesnot bump into walls, or doesnot fall off the stairs. We were thinking of solving this problem by using some distance/range finders, and constantly checking the distance between the robo-walker and the wall, and the distance between walker and the ground. So if the distance between walker and wall is less than say 4 feet, the walker should do some safety feature.

Thats the reason we needed range finders. Also I checked some ultrasonic rangefinders (http://www.hobbyengineering.com/SectionS.html) and I saw that this specific one works on 40 KHz frequency. So if we want two of them, mounted and working together, that might produce an interference. How would we avoid this. We also dont know if this specific one gives output in analog or digital values.

Thanks,
Tem 612.
  #9   Spotlight this post!  
Unread 07-05-2005, 08:46
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Help with motion detector

The easiest way to measure the short distances that you're looking for is to use an infrared rangefinder. The device mentioned above (GP2D120) is a good choice. it gives you the value directly. With an ultrasonic rangefinder you need to do timing of the return (echo) pulse to measure distance. So now you need timers and interrupts.

With the GP2D120 you get the distance back directly with only an A/D conversion so it's really simple.

One thing that you need to be aware of is that the value that the value that is returned is inversely proportional to distance - the closer the distance the higher the value. But you are probably only looking for fixed distances so that should not be a problem - you an simply look to see if you're less than the range where you want to turn (that is the value is greater than some reference you choose).

The other quirky thing about these components is that if you are less than the minimum sensing range (which in this case is 3cm) then the values start decreasing, remember decreasing values normally means longer distances.

You can get around that problem by mounting the sensor in such a way that it never sees things less than 3cm - for instance mounting it 4cm above the floor as it's looking for stairs.

If you look at the datasheet: http://www.acroname.com/robotics/parts/GP2D120_SS.pdf
you can see a graph of distance vs voltage returned.

Hope this helps.

Brad
  #10   Spotlight this post!  
Unread 07-05-2005, 11:22
chantilly_team chantilly_team is offline
Registered User
#0612
 
Join Date: Oct 2004
Location: Virginia
Posts: 28
chantilly_team is an unknown quantity at this point
Re: Help with motion detector

Thanks Brad,

We were at first thinking of using ultrasonic range finders, but they have the problem of interefering of sounds, which cannot be avoided, unless we change the piezo-electric crystal in them. But that becomes too complicated.

Thats why we are shifting towards Infrared rangefinders. We were looking for those, and came across one IR rangefinder. Its name is GP2Y0A02YK . This one is similar to the one mentioned above (GP2D120), except that it has more range. (20 cm to 150 cm) Around 8" to 59". Its data sheet is provided at http://info.hobbyengineering.com/spe...GP2Y0A02YK.pdf .

This gives output in the same way - analog output inversely proportional to distance. THe output can be feeded directly to innovationFirst miroprocessor.

If we put two of these sensors, would they interfere with each other ?

Thanks,
Team 612.
  #11   Spotlight this post!  
Unread 08-05-2005, 05:26
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Help with motion detector

That's a good point - Sharp actually makes a whole set of rangefinders that vary in min/max distance that they detect and fixed distance detection (trips when hit the fixed distance) vs. analog range output.

A good comparison guide for anyone else looking for the right device is here:
http://www.acroname.com/robotics/parts/sharp_guide.pdf
  #12   Spotlight this post!  
Unread 09-05-2005, 22:27
chantilly_team chantilly_team is offline
Registered User
#0612
 
Join Date: Oct 2004
Location: Virginia
Posts: 28
chantilly_team is an unknown quantity at this point
Re: Help with motion detector

Yeah, got all the information through the Sparp website. Thanks for that. I was very helpful.

I was also wondering, can we use the QS18VN6D IR sensors for this purpose. These sensors are the digital inputs that sense white and black colors. Is there any way we can use this somehow to measure distance?

Or is there any other use for these sensors except distinquishing from black and white color.

Team 612.
  #13   Spotlight this post!  
Unread 31-01-2006, 20:33
Jimbo5051's Avatar
Jimbo5051 Jimbo5051 is offline
Rep' da Goat
AKA: Jimmie Nickerson
FRC #0829 (The Digital Goats)
Team Role: Electrical
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Indiana
Posts: 87
Jimbo5051 is an unknown quantity at this point
Send a message via MSN to Jimbo5051
Re: Help with motion detector

Quote:
Originally Posted by chantilly_team
We want to use motion detector to sense a particular distance. We have measure the distance between the ground and robot every second, and if that distance is less than a pre-fixed value, we have to trigger an operation.

So how do we go around with motion detectors? Are there any specific available for FRC robot-controller? How can we convert the data we receive from motion detector into distance.

Thanks,
Team 612.
I am not all that particularly sure but I do think you would have a moniter sort of like a heart machine. If it were like that you woud be able to watch it manually and detect change that way.
__________________
2007 St. Louis Regional Winners
  #14   Spotlight this post!  
Unread 31-01-2006, 22:10
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Help with motion detector

I've had success with that line of IR sensors in the past.
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
Pothole Detector David Kelly Math and Science 1 17-11-2004 10:02
Building a Clock with Periodic Motion IMDWalrus Math and Science 15 24-03-2004 16:48
voltage detector _GP_ General Forum 1 16-01-2004 16:06
Thanks to Metal in Motion and Operation Oxidation! Zack Ghahramani Thanks and/or Congrats 0 09-03-2003 17:18
#343 Metal In Motion is taking the nation by storm! archiver 2001 1 24-06-2002 02:03


All times are GMT -5. The time now is 15:39.

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