Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   sonar is being lame (http://www.chiefdelphi.com/forums/showthread.php?t=74308)

Sparky_68 12-02-2009 23:17

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!

wt200999 13-02-2009 00:13

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.

chmp09 13-02-2009 00:42

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.

wt200999 13-02-2009 00:51

Re: sonar is being lame
 
Quote:

Originally Posted by chmp09 (Post 819767)
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 ;)

Alan Anderson 13-02-2009 00:54

Re: sonar is being lame
 
Quote:

Originally Posted by chmp09 (Post 819767)
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.

PhilBot 13-02-2009 00:55

Re: sonar is being lame
 
Quote:

Originally Posted by Sparky_68 (Post 819707)
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.


All times are GMT -5. The time now is 17:59.

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