04-08-2020 08:16 PM
Hello, I have a problem with using claps.
I am trying to use clap as a switch that a system turns off and on using a clap but unfortunately, I cannot have the system running as the microphones are constantly recording audio so I am unable to find the minimum and maximum amplitudes to determine if it is a clap or not as they are constantly changing.
would you please explain to me in simple terms as I am new to the LabVIEW.
thank you.
04-08-2020 08:07 PM
Hello I had the same problem here
I am trying to use clap as a switch that a system turns off and on using a clap but unfortunately, I cannot have the system running as the microphones are constantly recording audio so I am unable to find the minimum and maximum amplitudes to determine if it is a clap or not as they are constantly changing.
would you please explain to me in simple terms as I am new to the LabVIEW.
thank you.
04-09-2020 01:23 AM
Hi sina,
@sinaaa wrote:
Hello, I have a problem with using claps.
Don't they clap as intended? 🙂
@sinaaa wrote:
I cannot have the system running as the microphones are constantly recording audio
Isn't this expected behaviour? You surely want to record audio data constantly to be able to recognize the clap sound!?
@sinaaa wrote:
so I am unable to find the minimum and maximum amplitudes to determine if it is a clap or not as they are constantly changing.
I don't think a simple min/max comparison will fulfill the requirement. Maybe some FFT to detect typical clap sounds?
@sinaaa wrote:
would you please explain to me in simple terms as I am new to the LabVIEW.
When you are new to LabVIEW you should note the Training resources offered for free in the header of the LabVIEW board!
04-09-2020 01:49 AM
Hello Gerdw
So let me put it this way.
I want to create a switch by detecting claps but i was unable to use it as a switch. I have some ideas to use shift register but i dont know how to implement it
Would you please help me?
04-09-2020 01:58 AM
Hi sina,
@sinaaa wrote:
I want to create a switch by detecting claps but i was unable to use it as a switch. I have some ideas to use shift register but i dont know how to implement it
Would you please help me?
Sure!
Why don't you attach your VI and tell us why you cannot implement your ideas using shift registers?
04-09-2020 02:26 AM
Sure
Here is my VI although it is not working
Would you please tell me how should i proceed?
Thank you
04-09-2020 02:35 AM - edited 04-09-2020 02:36 AM
Hi Sina,
@sinaaa wrote:
Sure Here is my VI although it is not working
Would you please tell me how should i proceed?
Ok, all we get is a blurry photograph, even taken with wrong orientation of the camera.
What would you say when you ask for some C sourcecode and all you get is a blurry image instead of a text file?
Proceed with attaching the real VI!
04-09-2020 02:50 AM
sorry, here you go.
04-09-2020 03:10 AM - edited 04-09-2020 03:11 AM
04-09-2020 04:21 AM
Since you only check the max value, any loud sound would trigger the function. It might be good enough, but the aforementioned FFT would be a better solution, and e.g. check the power of some key frequencies, like 5 kHz (i don't know if that's a big one of a clap, but such a short, sharp sound should have some fairly high frequency components, measure and compare)