1128 - Sonar Sensor

C, C++, and Visual C++
cizzi
Phidgeteer!
Posts: 54
Joined: Mon Apr 16, 2007 10:33 am
Contact:

1128 - Sonar Sensor

Postby cizzi » Sun Nov 13, 2011 11:15 am

I would like to know if the 1128 - Sonar Sensor can be used in a C program that runs constantly in memory to check for objects in front of it, so for example it could check for anything closer than 1 meter and then stop all wheels if true in a Linux process.

Regards,

User avatar
burley
Human-Cyborg Relations
Posts: 441
Joined: Tue Sep 27, 2011 2:37 pm
Location: Calgary
Contact:

Re: 1128 - Sonar Sensor

Postby burley » Mon Nov 14, 2011 8:27 am

yes, this would work.
Brian Burley
403-282-7335 ext. 6003
support@phidgets.com

cizzi
Phidgeteer!
Posts: 54
Joined: Mon Apr 16, 2007 10:33 am
Contact:

Re: 1128 - Sonar Sensor

Postby cizzi » Mon Nov 14, 2011 12:07 pm

Which example would specifically return the distance measured from an object using this sensor? According to the product page there is a C# .zip file to download which I did and saw IR-Simple, however I'm not convinced this is the right example for this product.

Regards,

erik
King of the Lab
Posts: 476
Joined: Fri Mar 06, 2009 12:42 pm
Location: Calgary, Canada
Contact:

Re: 1128 - Sonar Sensor

Postby erik » Mon Nov 14, 2011 12:49 pm

This would be the InterfaceKit example, since the 1128 plugs into one of the analog input channels on the InterfaceKit. Once that example is opened, click the Sensor button and then select the 1128 on the appropriate channel to see the measured distance.

Alternatively, you can take the analog measurement and run it through the formula in the product manual for the 1128 (which is pretty much what the Sensor button does).

cizzi
Phidgeteer!
Posts: 54
Joined: Mon Apr 16, 2007 10:33 am
Contact:

Re: 1128 - Sonar Sensor

Postby cizzi » Tue Nov 15, 2011 5:19 pm

would you have a better device? something that would sit in the middle of the robot and scan its radius? i.e instead of buying 4 sonar densors and place them in 4 directions, just have 1 sensor that senses up to a 2 foot radius from its center?

erik
King of the Lab
Posts: 476
Joined: Fri Mar 06, 2009 12:42 pm
Location: Calgary, Canada
Contact:

Re: 1128 - Sonar Sensor

Postby erik » Wed Nov 16, 2011 9:09 am

Unfortunately we do not sell an omnidirectional sensor, but it does sound interesting.

User avatar
burley
Human-Cyborg Relations
Posts: 441
Joined: Tue Sep 27, 2011 2:37 pm
Location: Calgary
Contact:

Re: 1128 - Sonar Sensor

Postby burley » Wed Nov 16, 2011 9:27 am

Your best bet for something like this is to have a small servo motor and mount the sensor on that. Then, at each sensing interval do a sweep with the servo. Its much slower, but it prevents the need for extra sensors (which is a bad idea to start with as sonar sensors tend to interfere with one another quite badly).
Brian Burley
403-282-7335 ext. 6003
support@phidgets.com

cizzi
Phidgeteer!
Posts: 54
Joined: Mon Apr 16, 2007 10:33 am
Contact:

Re: 1128 - Sonar Sensor

Postby cizzi » Sat Nov 19, 2011 6:11 pm

Does the 1128 with the sharp distance sensors interfer with one another? i.e if there's on in the front/back/both sides facing different directions, will they work? someone mentioned sensors have problems when close or is that just sonar sensor (i.e non sharp)

User avatar
burley
Human-Cyborg Relations
Posts: 441
Joined: Tue Sep 27, 2011 2:37 pm
Location: Calgary
Contact:

Re: 1128 - Sonar Sensor

Postby burley » Mon Nov 21, 2011 8:10 am

The Sharps have a very narrow laser-like sensor beam. They will not interfere with one another.

The reason the sonar is so bad is because its sensor beam is quite wide and sound tends to reflect much more than light does.

If you use an array of the IR range finders you will not have a problem.
Brian Burley
403-282-7335 ext. 6003
support@phidgets.com


Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 2 guests