Go to Post There are simply not enough words to say how much the contributions of Dave and Woodie have given to FIRST, and countless students across the world. - Libby K [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 12-02-2009, 23:17
Sparky_68 Sparky_68 is offline
Registered User
FRC #0068
 
Join Date: Jan 2008
Location: Michigan
Posts: 4
Sparky_68 is an unknown quantity at this point
sonar is being lame

So i have been trying to get a ultra sonic senor working and i am having no luck. i have 3 to chose from but don't know what to use or how to use them.
we have:
1. The Paralex Ping)))
http://www.parallax.com/Store/Sensor...me,ProductName

2. the VEX kit one

3. Max Sonar EZ1 modle

We haven't gotten anything to give me a good value. If anyone has can they tell me what they did and tell me or show me. If you can that will be a great help to us!
  #2   Spotlight this post!  
Unread 13-02-2009, 00:13
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: sonar is being lame

Are you using labview or windriver?

Use either the vex kit one of the maxbotics one.

The vex kit one should have two pwm's on it one is the ping channel and one is the echo channel. Wire each of these to a digital port on the sidecar. I don't know what environment you are using.

The Maxbotics one can either be wired for serial, digital, or analog (although you can't really use serial this year), digital should also have 2 pwm's, analog should have 1. Our team is using this sensor wired for digital.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
  #3   Spotlight this post!  
Unread 13-02-2009, 00:42
chmp09 chmp09 is offline
Registered User
AKA: Marc Pulte
FRC #1702 (Robocubs)
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Troy, Michigan
Posts: 25
chmp09 is a jewel in the roughchmp09 is a jewel in the roughchmp09 is a jewel in the rough
Re: sonar is being lame

I recommend using an analogue ultrasound sensor. If you use a digital sensor, you will have to use interrupts to time how long it takes for the signal to return. I have not tried to do so this year in labview, and have not even looked at windriver. If you use an analogue sensor, you will only have to check to see how much voltage is coming back.
  #4   Spotlight this post!  
Unread 13-02-2009, 00:51
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: sonar is being lame

Quote:
Originally Posted by chmp09 View Post
I recommend using an analogue ultrasound sensor. If you use a digital sensor, you will have to use interrupts to time how long it takes for the signal to return. I have not tried to do so this year in labview, and have not even looked at windriver. If you use an analogue sensor, you will only have to check to see how much voltage is coming back.
It is all provided in the default code so its not as hard as it was previously
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
  #5   Spotlight this post!  
Unread 13-02-2009, 00:54
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: sonar is being lame

Quote:
Originally Posted by chmp09 View Post
If you use a digital sensor, you will have to use interrupts to time how long it takes for the signal to return. I have not tried to do so this year in labview, and have not even looked at windriver.
The WPI libraries for both LabVIEW and C++ handle all of the timing for you.
  #6   Spotlight this post!  
Unread 13-02-2009, 00:55
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: sonar is being lame

Quote:
Originally Posted by Sparky_68 View Post
So i have been trying to get a ultra sonic senor working and i am having no luck. i have 3 to chose from but don't know what to use or how to use them.
we have:
If you mean the Maxbotics EZ1 sonar, then that's what we used last year to hug the track divide and it was GREAT.

It's an analog input so you need to feed it into the Analog Bumper. Read the input voltage and divide by 0.0098 to get inches (9.8mV / inch). You will probably need to filter the input because the cRIO seems VERY noisy.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
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
How to program sonar FearlessLeader C/C++ 1 11-02-2009 22:39
Sonar Function Issue Andrew Blair Programming 2 20-02-2007 13:39
Maxbotix Sonar Sensor DonRotolo Electrical 17 04-02-2007 12:27
VEX Sonar question Joohoo Programming 2 06-05-2006 01:18
Lame Question RBrandy Chit-Chat 1 28-07-2003 17:29


All times are GMT -5. The time now is 03: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