XDK Sound Sensor
Answer
8/23/18 7:46 PM
I've tried the examples on the XDK Workbench 3.4.0 but it seems like the V in rms given by the sound sensor doesn't change. How can I properly customize or set up the sound sensor in order to detect a decent signal in return?
0 (0 Votes)
RE: XDK Sound Sensor
Answer
8/24/18 3:29 PM as a reply to Daniel Nunez.
Hello Daniel,

First of all, I would like to welcome you to the XDK Community.

It would be very helpful, if you could name the examples your tried out?

I tested the acoustic sensor with the StreamSensorDataOverUSB example from the welcome page of the Workbench 3.4.0 and it worked flawless.
In that regard, I disabled all other sensors in the SensorSetup.Enable struct except the .Noise sensor at line 115 in AppController.c .

In addition to that I would ask you to go more into detail about your use case, maybe I will be able to provide some additional insight.

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Franjo
0 (0 Votes)
RE: XDK Sound Sensor
Answer
8/24/18 4:49 PM as a reply to Franjo Stjepandic.

Thanks, Franjo for your quick response.

I tried the same example you have mentioned before, I disable all sensors as you did, and I always have this output on the console:

 INFO | XDK DEVICE 1: Noise Sensor RMS Voltage :
 INFO | XDK DEVICE 1: Vrms = 0.797924 
 INFO | XDK DEVICE 1: Noise Sensor RMS Voltage :
 INFO | XDK DEVICE 1: Vrms = 0.797924 
 INFO | XDK DEVICE 1: Noise Sensor RMS Voltage :
 INFO | XDK DEVICE 1: Vrms = 0.797924 
 INFO | XDK DEVICE 1: Noise Sensor RMS Voltage :
 INFO | XDK DEVICE 1: Vrms = 0.797924 
 INFO | XDK DEVICE 1: Noise Sensor RMS Voltage :
 INFO | XDK DEVICE 1: Vrms = 0.797924 

In addition, I program the task delay on 500 ms, I also mention that I'm using XDK Workbench 3.4 on Linux. Could this problem be on the operating system? I have two XDKs and I tried this code in both and I saw the same issue.

0 (0 Votes)
RE: XDK Sound Sensor
Answer
8/27/18 2:48 PM as a reply to Daniel Nunez.
Hello Daniel,
thank you very much for the update on your issue.

It seems to be very unlikely, that the error results from your Linux system.

However, I would like to reproduce your issue.
What kind of sound source did you use to test the noise sensor, a constant noise or a short noise like a clap?

Additionally, could you please go more into detail about the reason why you inserted a delay of 500 ms? Please note that the value you receive is already a calculated root mean square value over 256 samples of the acoustic sensor. A additional delay could result the behavior of using the same root mean square value over and over, while blocking a new calculation.

In that regard, I recommend removing the delay and trying it out once more.

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Franjo
0 (0 Votes)
RE: XDK Sound Sensor
Answer
8/28/18 7:45 PM as a reply to Franjo Stjepandic.

Hello Franjo!

I have tried the sound sensor example too, in Linux, I didn't modify anything, only the struct where all sensors are configurated on false except the sound sensor, and I have the same issue.  I didn't even modify the default delay.

Is it problem of Workbench in Linux? I tried the same script on windows 7 and it worked.

0 (0 Votes)
RE: XDK Sound Sensor
Answer
8/29/18 2:52 PM as a reply to Rolando Gonzalez.
Hello Rolando,

Thank you for your additional information on this topic.

On the first glance, I do not assume this error is operation system related. To be sure, I will conduct tests with the acoustic sensor implementation within the Linux XDK-Workbench.

What exact linux based operation system do you use?

Furthermore, could you please provide an outline of the messages from your workbench console with only the acoustic sensor enabled?

Kind regards,
Franjo
0 (0 Votes)
RE: XDK Sound Sensor
Answer
9/5/18 2:22 PM as a reply to Franjo Stjepandic.
Hello guys,

I reconstructed your use case scenario by running the StreamSensorDataOverUsb example on Ubuntu version 18.04.1.
Furthermore, I explored the same issue with the noise sensor RMS voltage value at constant 0.797924 and this case truely seems to be Linux based.

I will forward this issue directly, so it might be probably fixed with the next XDK-Workbench update for Linux.

Kind regards,
Franjo
0 (0 Votes)