nejohnson2 / rpi-i2s

Using the ICS43432 MEMS microphone on a Raspberry Pi with i2s
108 stars 24 forks source link

Recorded Data is distorted #8

Open cmouli703 opened 5 years ago

cmouli703 commented 5 years ago

I'm working on raspbeerry pi 3 B+ and trying to use i2s interface. I'm sending i2s data via Digital serial cable from a generator with the configuration : Pure Sine wave 8 bit 8khz data. When i measure using oscilloscope all the clocks are accurate but when i'm using recording audio on i2s with arecord the output was completely distorted. I'm not getting why the output is distorted. I made all the configurations correct and measured all the clocks. I will thankful to you if you can help me in this.

nejohnson2 commented 5 years ago

I'm not entirely sure about your hardware setup, so I can't help troubleshoot too much. Have you tried using an I2S microphone with your setup instead of a sine waste generator? I'm pretty sure the setup described in this repo is specifically for a microphone input and sending a sine wave into one of the I2S input channels probably wont work out of the box...not too sure.

cmouli703 commented 5 years ago

I want my pi to receive i2s data, i dont think there will be any issue in using the different source(in your case you are usign a i2s mic, in my case i'm using i2s signal generator) as my signal generator is also sending the data in i2s format only. Can you help me in giving some pointers how to debug where something is going wrong. What are the things i have to take care before using arecord.