What could be the possible reason behind curved signal?

4 visualizaciones (últimos 30 días)
Giggs B.
Giggs B. el 2 de Mayo de 2022
Comentada: Walter Roberson el 4 de Mayo de 2022
Hi,
This question is not directly related to MATLAB, but if someone can help me, I would really appreciate.
I have a MEMS microphone connected to the microcontroller on a PCB. The microphone collects the data and sends the analog data to the microcontroller in real-time. On the microcontroller, this data is converted to digital form and then I extract this digital data from the microcontroller. But when I plot the signal, I get the signal as a curved one. It looks like the DC offset is not constant. All the recordings have this issue.
However, for ex., I record a song and when I play the file (after converting them to .wav files using MATLAB with specs such as sampling freq: 40KHz, Bits/sample:16), I don't see any problem in the audio files, I am able to hear the song properly. I have attached the plot as well as the audio file for reference.
Can anybody suggest what could be the issue here or what can I try to get rid of this? Thanks.
This is audio file: Audio file
  10 comentarios
Giggs B.
Giggs B. el 4 de Mayo de 2022
Yes, I can do that! But the microphone will also capture noise, I mean it has a noise floor...so it will be the noise + sine wave. But I can try!
After your earlier suggestion, I thought about it and maybe I can try sending a sine wave using a signal generator and check what is the output (since I have a few boards and I can spare one for testing). I will let you know what I get. Thank you so much for the inputs!
Walter Roberson
Walter Roberson el 4 de Mayo de 2022
Calibration at different frequencies seems in order. If the chain seems to faithfully reproduce sine through the mic then there is probably no point in forcing the signal generator... but if through-the-mic is distorted then Yes, signal generator would be a classic debugging step.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Measurements and Spatial Audio 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