Skip to main content
added 6 characters in body; edited title
Source Link
ocrdu
  • 1.8k
  • 3
  • 12
  • 24

Sound localization using two mics,arduino uno Arduino Uno on matlabMATLAB

I have been trying to achieve this for a long time using the ITD method and have gone through various articles on the net.

I want to know if its possible to actually achieve sound localization using an arduino unoArduino Uno and two MEMS mics with a high gain (https://www.sparkfun.com/products/9868).

I have been trying this on matlabMATLAB using the a=arduino() command. And and readVoltage command but the main issue I face is that for a particular sound (clapping for instance) the time difference between the two mics is not always the same which results in different direction predictions. 

We managed to increase the low resolution of the arduinoArduino by removing unnecessary operations. Now we are able to get an array of size 750 for 10 secs giving a resolution of 0.01 secs. I am not sure if that is enough.

I basically have 3 arrays, one storing the sampling times, and the other two storing the amplitudes of the two analog inputs at that particular time in the first array. 

Now iI look for a peak in one and then the corresponding near peak in the second one and then compute the time difference. After this I can compute the angle using the speed of sound and the distance between the mics.

Please let me know how I can make this work or where I am going wrong.

Sound localization using two mics,arduino uno on matlab

I have been trying to achieve this for a long time using the ITD method and have gone through various articles on the net.

I want to know if its possible to actually achieve sound localization using an arduino uno and two MEMS mics with a high gain (https://www.sparkfun.com/products/9868).

I have been trying this on matlab using the a=arduino() command. And readVoltage command but the main issue I face is that for a particular sound (clapping for instance) the time difference between the two mics is not always the same which results in different direction predictions. We managed to increase the low resolution of the arduino by removing unnecessary operations. Now we are able to get an array of size 750 for 10 secs giving a resolution of 0.01 secs. I am not sure if that is enough.

I basically have 3 arrays, one storing the sampling times, and the other two storing the amplitudes of the two analog inputs at that particular time in the first array. Now i look for a peak in one and then the corresponding near peak in the second one and then compute the time difference. After this I can compute the angle using the speed of sound and the distance between the mics.

Please let me know how I can make this work or where I am going wrong.

Sound localization using two mics, Arduino Uno on MATLAB

I have been trying to achieve this for a long time using the ITD method and have gone through various articles on the net.

I want to know if its possible to actually achieve sound localization using an Arduino Uno and two MEMS mics with a high gain (https://www.sparkfun.com/products/9868).

I have been trying this on MATLAB using the a=arduino() command and readVoltage command but the main issue I face is that for a particular sound (clapping for instance) the time difference between the two mics is not always the same which results in different direction predictions. 

We managed to increase the low resolution of the Arduino by removing unnecessary operations. Now we are able to get an array of size 750 for 10 secs giving a resolution of 0.01 secs. I am not sure if that is enough.

I basically have 3 arrays, one storing the sampling times, and the other two storing the amplitudes of the two analog inputs at that particular time in the first array. 

Now I look for a peak in one and then the corresponding near peak in the second one and then compute the time difference. After this I can compute the angle using the speed of sound and the distance between the mics.

Please let me know how I can make this work or where I am going wrong.

edited body
Source Link
Mikael Patel
  • 8k
  • 2
  • 16
  • 21

I have been trying to achieve this for a long time using the ITD method and have gone through various articles on the net.

I want to know if its possible to actually achieve sound localization using an arduino uno and two MEMS mics with a high gain (https://www.sparkfun.com/products/9868).

I have been trying this on matlab using the a=arduino() command. And readVoltage command but the main issue I face is that for a particular sound (clapping for instance) the time difference between the two mics is not always the same which results in different direction predictions. We managed to increase the low resolution of the arduino by removing unnecessary operations. Now we are able to get an array of size 750 for 10 secs giving a resolution of 0.01 secs. I am not sure if that is enough.

I basically have 3 arrays, one storing the sampling times, and the other two storing the amplitudes of the two analog inputs at that particular time in the first array. Now i look for a peak in one and then the corresponding near peak in the second one and then compute the time difference. After this I can compute the angle using the speed of lightsound and the distance between the mics.

Please let me know how I can make this work or where I am going wrong.

I have been trying to achieve this for a long time using the ITD method and have gone through various articles on the net.

I want to know if its possible to actually achieve sound localization using an arduino uno and two MEMS mics with a high gain (https://www.sparkfun.com/products/9868).

I have been trying this on matlab using the a=arduino() command. And readVoltage command but the main issue I face is that for a particular sound (clapping for instance) the time difference between the two mics is not always the same which results in different direction predictions. We managed to increase the low resolution of the arduino by removing unnecessary operations. Now we are able to get an array of size 750 for 10 secs giving a resolution of 0.01 secs. I am not sure if that is enough.

I basically have 3 arrays, one storing the sampling times, and the other two storing the amplitudes of the two analog inputs at that particular time in the first array. Now i look for a peak in one and then the corresponding near peak in the second one and then compute the time difference. After this I can compute the angle using the speed of light and the distance between the mics.

Please let me know how I can make this work or where I am going wrong.

I have been trying to achieve this for a long time using the ITD method and have gone through various articles on the net.

I want to know if its possible to actually achieve sound localization using an arduino uno and two MEMS mics with a high gain (https://www.sparkfun.com/products/9868).

I have been trying this on matlab using the a=arduino() command. And readVoltage command but the main issue I face is that for a particular sound (clapping for instance) the time difference between the two mics is not always the same which results in different direction predictions. We managed to increase the low resolution of the arduino by removing unnecessary operations. Now we are able to get an array of size 750 for 10 secs giving a resolution of 0.01 secs. I am not sure if that is enough.

I basically have 3 arrays, one storing the sampling times, and the other two storing the amplitudes of the two analog inputs at that particular time in the first array. Now i look for a peak in one and then the corresponding near peak in the second one and then compute the time difference. After this I can compute the angle using the speed of sound and the distance between the mics.

Please let me know how I can make this work or where I am going wrong.

Source Link
geek101
  • 111
  • 7

Sound localization using two mics,arduino uno on matlab

I have been trying to achieve this for a long time using the ITD method and have gone through various articles on the net.

I want to know if its possible to actually achieve sound localization using an arduino uno and two MEMS mics with a high gain (https://www.sparkfun.com/products/9868).

I have been trying this on matlab using the a=arduino() command. And readVoltage command but the main issue I face is that for a particular sound (clapping for instance) the time difference between the two mics is not always the same which results in different direction predictions. We managed to increase the low resolution of the arduino by removing unnecessary operations. Now we are able to get an array of size 750 for 10 secs giving a resolution of 0.01 secs. I am not sure if that is enough.

I basically have 3 arrays, one storing the sampling times, and the other two storing the amplitudes of the two analog inputs at that particular time in the first array. Now i look for a peak in one and then the corresponding near peak in the second one and then compute the time difference. After this I can compute the angle using the speed of light and the distance between the mics.

Please let me know how I can make this work or where I am going wrong.