I2C MPU6050 with I2S problem
Posted: Mon Apr 30, 2018 10:04 am
Hi,
I am running an application that reads the sensor data from the MPU6050 via I2C with @kolban-c++-lib - thanks for the great work!
However I have problems getting stable sensor data as soon as I am using the I2S driver. the application is supposed to play a beep sound (wave-data) when a certain accelerator value exceeded. Both parts work perfectly fine in two cores. But as soon as I start the I2S driver and play the sound in a loop the I2C starts to send randomly wrong data and worse stops after a while for 1000ms and then continues. This repeats as long as the I2S is active. I tried to run both in different cores also both in same loop on one core, there is no change in the behaviour.
I wonder if somebody has an idea?!
Cheers dreamworker
I am running an application that reads the sensor data from the MPU6050 via I2C with @kolban-c++-lib - thanks for the great work!
However I have problems getting stable sensor data as soon as I am using the I2S driver. the application is supposed to play a beep sound (wave-data) when a certain accelerator value exceeded. Both parts work perfectly fine in two cores. But as soon as I start the I2S driver and play the sound in a loop the I2C starts to send randomly wrong data and worse stops after a while for 1000ms and then continues. This repeats as long as the I2S is active. I tried to run both in different cores also both in same loop on one core, there is no change in the behaviour.
I wonder if somebody has an idea?!
Cheers dreamworker