Go to Post Note: Please don't actually mob them or cause them any harm. It's just a saying people. :) - CalTran [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 22-01-2008, 11:06
Mars Mars is offline
Registered User
FRC #0334
 
Join Date: Dec 2007
Location: New York City
Posts: 5
Mars is on a distinguished road
Can you use this?

Some of my friends and I want to know if you can use this.

http://www.radioshack.com/product/in...t&tab=features

Its an Ultra-Sonic Range Finder.

-Thanks
  #2   Spotlight this post!  
Unread 22-01-2008, 11:13
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,016
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Can you use this?

I can't think of any reason why you could not, it's a COTS sensor.

Although it would be helpful for you to read the manual, specifically the Robot Rules, and see if you can figure out for yourself if it is OK.
  #3   Spotlight this post!  
Unread 22-01-2008, 13:24
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Can you use this?

Yes. We've used ultrasonics on our bot before.

The ones we used were analog sensors. The "ultrasonic" block in easyC, if that's what you're using, calls for a digital input plus an interrupt. I would say that most ultrasonic sensors (correct if wrong) have an analog output, and you simply need to use an analog input block.

Of course if you are using MPLAB or similar, you don't even need to worry about this confusion.

Ultrasonics have worked GREAT for us in the past. I'll see if I can dig up a link for the model we used (I remember the cost was similar (about 35 dollars), but it only had one sensor onboard. It was accurate to about an inch up to 30 feet.

Jacob
  #4   Spotlight this post!  
Unread 22-01-2008, 13:47
lukevanoort lukevanoort is offline
in between teams
AKA: Luke Van Oort
no team
 
Join Date: Oct 2005
Rookie Year: 2005
Location: Waterloo, ON, Canada
Posts: 1,873
lukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond repute
Send a message via AIM to lukevanoort
Re: Can you use this?

Most ultrasonic sensors need an interrupt and a timer to measure the time the sound pulse takes to travel from the sensor to the object and back. That's why the Maxbotix sensor is so nice; it does this with its onboard electronics.
__________________
Team 1219: 2009 - Mentor
Team 587: 2005 - Animator, 2006-2008 - Team Captain
  #5   Spotlight this post!  
Unread 22-01-2008, 13:52
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Can you use this?

Quote:
Originally Posted by lukevanoort View Post
Most ultrasonic sensors need an interrupt and a timer to measure the time the sound pulse takes to travel from the sensor to the object and back. That's why the Maxbotix sensor is so nice; it does this with its onboard electronics.
I guess the reason that the one we used was so expensive (for just one) is that it had an onboard (microprocessor I'm assuming... perhaps it was just a CPLD or something) that converted it to a readable analog signal.... no interrupts required. It could just be read in by the processor whenever it needs it.

Makes coding simpler. Dunno how common those are though.

Jacob
  #6   Spotlight this post!  
Unread 22-01-2008, 14:15
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 325
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Can you use this?

You can also get that same sensor straight from www.parallax.com
you just need to make sure they have it in stock and can get it to you. There is a good example of how to read the input somewhere on these boards and the datasheet from parallax helps as well, but yeah, that sensor requires the use of a timer and interrupts.
  #7   Spotlight this post!  
Unread 23-01-2008, 02:48
Steve_Alaniz Steve_Alaniz is offline
Registered User
FRC #2848 (All Sparks)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 1997
Location: Dallas
Posts: 211
Steve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond repute
Re: Can you use this?

You can indeed use that sensor... but let me also suggest

http://www.maxbotix.com/uploads/LV-M...-Datasheet.pdf

I've ordered one of these to test but it appears the analog output can be applied directly to an analog input. No interrupt routine. At least that's how I read the Datasheet. I'll verify this in a day or two.

Best wishes

Steve
  #8   Spotlight this post!  
Unread 23-01-2008, 08:24
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Can you use this?

Quote:
Originally Posted by Steve_Alaniz View Post
You can indeed use that sensor... but let me also suggest

http://www.maxbotix.com/uploads/LV-M...-Datasheet.pdf

I've ordered one of these to test but it appears the analog output can be applied directly to an analog input. No interrupt routine. At least that's how I read the Datasheet. I'll verify this in a day or two.

Best wishes

Steve
INDEED!!!

This is the exact model in which we used last year. I clicked on your link and was SO surprised to see a picture of what we used staring at me.

Indeed, you simply need to apply power, ground, and you can use the AN pin directly to the analog input on the RC. Simply get the analog input in your program, and you have a number (0-255 I believe, but I think its more like 12-220 or something.)

Ironically, I just tested ours out last night (we have 2 currently, perhaps we will be ordering more.

Jacob
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
I can read this....can you? Wayne Doenges Chit-Chat 2 22-03-2006 14:49
Can we use the 2005 RC for this year's robot? DemonYawgmoth Control System 6 13-02-2006 17:34
can you use Carbon Fibre? Greg Perkins Technical Discussion 9 05-02-2004 14:15
Can you use other tubing? Skabana159 Pneumatics 2 06-02-2003 22:04


All times are GMT -5. The time now is 05:50.

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