What could be the possible reason behind curved signal?

4 views (last 30 days)
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 Comments
Giggs B.
Giggs B. on 4 May 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 on 4 May 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.

Sign in to comment.

Answers (0)

Categories

Find more on Measurements and Spatial Audio in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!