Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

camera tracking of a single sound source

Status
Not open for further replies.

matar7

Electrical
Apr 21, 2014
3
0
0
JO
im trying to bulid a system which steers a camera based on the speaker location (sound direction of arrival actually) obtained by a microphone array using the Steered Response Power - Phase Transform (SRP-PHAT) algorithm, i have a few problems :

A. i dont know how to choose the right microphone array configuration (linear, circular...etc) i cant see a difference between them since i just need to calculate the generalized cross correlation between their signals.

B. im confused between choosing Arduino or Raspberry Pi to control motors used to steer the camera, which one is more suitable to control two servo motors ???

 
Replies continue below

Recommended for you

Is this for school? Student posting is not allowed.

A. Why do you need more than two?
B. I would be more concerned about throughput.

TTFN
faq731-376
7ofakss

Need help writing a question or understanding a reply? forum1529
 
its not for school, its for me.

A.i need more than two in order to estimate the location of a source in 3d space.
B.in terms of processing Raspberry Pi is better but i dont know if its capable of controlling two motors?

 
Arduino has native PWM outputs, but that would seem to me to be a minor advantage; it doesn't matter if the Arduino could control a motor, if it doesn't have sufficient throughput to figure out what commands to send to the motors.

TTFN
faq731-376
7ofakss

Need help writing a question or understanding a reply? forum1529
 
"Sound"

Is it a predefined sound at a given frequency? If so, the usual default sensor spacing (in general) is one-quarter lambda.

If not, then the problem is infinitely more complicated. Because it's undefined, covers several orders of magnitude (20-20,000 Hz), allows multiple solutions, etc.

Pulse or impulse waveforms (gun shots) are pretty easy, obviously. Spacing based on your timing resolution.

If it's 3D, you'd need three baselines, minimum of four sensors (mics). Origin, X, Y, and Z.

This is all very standard.
 
Yes you either need to do some external processing for the Arduino, or add more controllers to the Pi, which sounds a damn sight easier or use both.

You need 4 microphones worst case, 3 if you aren't worried about the back plane. Arrange them as you like and do a bit of maths. Obviously the most elegant algorithmically is as a tetrahedron.

More mics don't really help much unless you are concerned with redundancy.

Is this in a reverberant room? that could be quite fun.

Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376
 
Raspberry Pi is running Linux so your code doesn't execute deterministically if run in user space

I vote for the Arduino. Of course the Arduino doesn't have the CPU power to calculate your SRP power.
You may need both !!

Capture the Audio with Arduino and pass it on to the RPi for the serious number crunching and it returns
desired motor locations for the camera is how I would do it with what you have specified.
 
Status
Not open for further replies.
Back
Top