Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: Commanderbob on December 17, 2008, 10:43:13 PM

Title: Sound Localization
Post by: Commanderbob on December 17, 2008, 10:43:13 PM
I wanted to know if anyone has tried to add sound localization (being able to detect which direction a sound came from) to a robot. I thought of doing it with three microphones in a triangle. An microcontroller could then detect a sound wave and measure how long it takes for it to get to the other two microphones. That way you could tell which direction it came from. I don't exactly know how well that would work or how you could one sound from another, but it seems like a good start to me. Just brainstorming.

Justin
Title: Re: Sound Localization
Post by: SeagullOne on December 17, 2008, 11:50:23 PM
I'm plannig a similar design for my robot, NINA.

My theoretical approach is to have a ring of microphones attached to analogue-to-digital converters and measure how much voltage is received from which microphone. The microphone that returns the highest voltage is the most probable direction the sound comes from, or the robot can use a mathematical algorithm to find a "medium" in the voltage of the ring of microphones. The Robot can move toward the noise using a digital compass, encoders...whatever you see fit.

I don't know how well this would work either, though. Anyone Else?
Title: Re: Sound Localization
Post by: Commanderbob on December 18, 2008, 09:18:57 AM
I thought about doing that only slightly different. Still using three microphones, some how filter their output so you get a smooth voltage and compare them with an ADC. I also think you would need to separate each microphone with some sort of barrier so sound from one direction affects it more than the others. Some thing like the inside of a peace sign.
Title: Re: Sound Localization
Post by: dunk on December 18, 2008, 10:55:52 AM
i remember seeing a link once where someone was using a PC sound card with attached speaker and microphone for experimenting with sonar.
that might be a good way to research viable sound frequencies and microphone positions.

dunk.
Title: Re: Sound Localization
Post by: HDL_CinC_Dragon on December 18, 2008, 03:02:59 PM
I dont think finding the maximum voltage would be helpful. The difference in sound level at that proximity would be immeasurably small. Your best bet would be to measure which mic spiked first. You would have to query the mics a hell of a lot each second though as sounds travels at around 340m/s.
Title: Re: Sound Localization
Post by: dunk on December 18, 2008, 04:04:48 PM
ah, here it is:
http://eddiem.com/projects/chirp/chirp.htm (http://eddiem.com/projects/chirp/chirp.htm)
(sonar using your PC soundcard.)

dunk.
Title: Re: Sound Localization
Post by: SeagullOne on December 19, 2008, 02:20:30 PM
That was one of my concerns, Dragon. You're right. :P

What about a ring of unidirectional microphones instead of omnidirectional microphones? This way the sound localization would only be received by microphones which are directly pointed at the source. Use an A2D converter for each microphone and find a medium.

My only concern with this idea would that the sound would have to be really close for the robot to localize it...

What do you guys think?
Title: Re: Sound Localization
Post by: fuzzyt on December 19, 2008, 05:44:36 PM
You all have probably seen this, but it might be adapted to the localization problem.

http://www.societyofrobots.com/robotforum/index.php?topic=6038.0

Title: Re: Sound Localization
Post by: Ro-Bot-X on December 19, 2008, 06:48:45 PM
I think you guys should read this page:

hghttp://www.convict.lu/Jeunes/Gaston/Gaston_Ears.htm (http://www.convict.lu/Jeunes/Gaston/Gaston_Ears.htm)

It has concept, schematics, program... and it was done in 2003. At the end, there is a link to the main page, you should also go through all of their pages, as their work is astonishing.

Better yet, look at the bottom of this page for the provided Links:

http://www.convict.lu/htm/rob/spatial_sound_localizing_robot_xyztuvw.htm (http://www.convict.lu/htm/rob/spatial_sound_localizing_robot_xyztuvw.htm)
Title: Re: Sound Localization
Post by: SeagullOne on December 19, 2008, 08:30:44 PM
Wow. Those methods look engaging to try!
Title: Re: Sound Localization
Post by: Kirk on December 21, 2008, 10:07:22 PM
I have a "tape measure" that is an ultra sonic gadget. The transducer is at the bottom of a long tube. This makes the microphone extremely directional.  Perhaps such a microphone could be mounted on a hobby servo and could pan to listen for the beacon tone.  The loudest volume is the beacon. (or an echo)
Kirk
Title: Re: Sound Localization
Post by: Admin on January 26, 2009, 02:23:52 AM
The http://www.auvsi.org competition has a section where robots are required to localize sound and move the robot to that sound.

Dozens of teams have done it, just search online for it.