Analyzing sensor data on ThingSpeak through the MATLAB Analysis.

5 visualizaciones (últimos 30 días)
Ritch
Ritch el 8 de Mzo. de 2023
Comentada: Christopher Stapels el 9 de Mzo. de 2023
Hi, I have a few sensors which send data to the thingspeak platform and the data is being displayed correctly. I am trying to analyze this data in MATLAB to detect a pattern and if possible create an alert. Example if someone walks into a room and creates noise or vibrations within a certain frequency it can detect and create an alert. The data I am getting in MATLAB is in the form of a wave therefore setting parameters or being able to extract only data with a certain frequency and display it as an alert would be ideal. How do I approach this? Sorry, very limited programming skills.
  2 comentarios
Star Strider
Star Strider el 8 de Mzo. de 2023
I’m not sure what that plot image demonstrates, however to detect frequencies in a certain range, the best option is n analogue or digital bandpass filter. These are straightforward to design and implement. Calculating the Fourier transform is not necessary.
Ritch
Ritch el 8 de Mzo. de 2023
Thank you.
The image was an example. So if I only wanted to record the frequencies for e.g above 0.2 and -0.2 I would only need to use a filter. Also can I set an alert or statement to highight everytime this occurs?

Iniciar sesión para comentar.

Respuestas (1)

Christopher Stapels
Christopher Stapels el 9 de Mzo. de 2023
Editada: Christopher Stapels el 9 de Mzo. de 2023
You can use the Alerts API to create an alert based on a condition you calculate in MATLAB code.After you apply the bandpass filter, call the API to send an email to your MathWorks account address.
  2 comentarios
Ritch
Ritch el 9 de Mzo. de 2023
Thank you Christopher, much appreciated.
Christopher Stapels
Christopher Stapels el 9 de Mzo. de 2023
You are welcome, but @Star Strider had the helpful advice first, I just know the links to copy.

Iniciar sesión para comentar.

Comunidades de usuarios

Más respuestas en  ThingSpeak Community

Categorías

Más información sobre Manage Products en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by