FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

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!
Oh and we are using labview too.
Edit/Delete Message


0 Kudos
Message 1 of 6
(8,386 Views)

Hi,

As you are using an ultrasonic sensor, remember that the first thing you should do is be familiar with using sensors in LabVIEW FRC. There are a number of useful resources in this community. There is a complete example using the Devantech SRF08 (an ultrasonic rangefinder) in the LabView FRC examples. It is called the "Devantech SRF08 Example". This will give you an idea of how to get input from or send ouput to the sensor. There are also regular ultrasonic sensors functions in the functions palette in the Sensors library. Regarding which sensor to use, I would go for whatever is optimal for you. The generic ultrasonic sensor VIs can be used independent of brand. Howver, as we already have a Devantech example, the safest option is possible Devantech. Hope this helps.

Ipshita C.

National Instruments
Applications Engineer
Message 2 of 6
(3,201 Views)

Hi Ipshita,

This example uses I2C.  I am wondering why it doesn't use the ultrasonic VIs in the functions palette and if you have another example that uses those VIs.

Regards,

rking

Message 3 of 6
(3,201 Views)

Hi RKing,

I would use the Devantech example as a template. The programming paradigm behind any FRC program is the same--open, get/set and close. The ultrasonic VIs have an extra functionality of being able to ping the sensor. The Get Range function will give you the distance that you are trying to measure. There is no specific example with those functions but as I mentioned before, using the Devantech project as a template you can build your own VI. Hope this helps.

Ipshita C.

National Instruments
Applications Engineer
0 Kudos
Message 4 of 6
(3,201 Views)

Where is the example code? I am not able to find it.

0 Kudos
Message 5 of 6
(3,201 Views)

Hi Needler,

You can find the example code at Help>>Find Examples>>Directory Structure>>.FRC>>I2C>>DeventechSRF08

Message 6 of 6
(3,201 Views)