Hey folks-
I have a project where I'm recording stereo audio to an SD card on the Audio shield with a Teensy 3.2. The sketch records and plays fine, but the recording is sped up/distorted if I run any commands on the I2C bus while it's recording. I have an OLED and a GPIO expander on the I2C bus as well as the Audio shield.
I initially had problems with SD card write times/missing samples when I first started the project, so I thought this may be something similar, however, I tried increasing the AudioMemory and didn't notice any difference. For reference I'm using a SanDisk 16gb SD card. The project is on a custom PCB, so there may be potential for noise as well (there's some wires from reworking the board). I don't necessarily have to be using the I2C bus while I'm recording and could likely could run the I2C commands on an event rather than in the loop, but I was curious because I thought in theory I should be able to do both I2S and I2C. Maybe recording to the SD card is further complicating things?
I'd appreciate any input.
Thanks!
I have a project where I'm recording stereo audio to an SD card on the Audio shield with a Teensy 3.2. The sketch records and plays fine, but the recording is sped up/distorted if I run any commands on the I2C bus while it's recording. I have an OLED and a GPIO expander on the I2C bus as well as the Audio shield.
I initially had problems with SD card write times/missing samples when I first started the project, so I thought this may be something similar, however, I tried increasing the AudioMemory and didn't notice any difference. For reference I'm using a SanDisk 16gb SD card. The project is on a custom PCB, so there may be potential for noise as well (there's some wires from reworking the board). I don't necessarily have to be using the I2C bus while I'm recording and could likely could run the I2C commands on an event rather than in the loop, but I was curious because I thought in theory I should be able to do both I2S and I2C. Maybe recording to the SD card is further complicating things?
I'd appreciate any input.
Thanks!