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
I2C MPU6050 with I2S problem
Re: I2C MPU6050 with I2S problem
Hi,
if this not problem you can try this library:
https://github.com/jrowberg/i2cdevlib/t ... 32_ESP-IDF
I've added esp-idf. This library has implemented DMP if you need it.
if this not problem you can try this library:
https://github.com/jrowberg/i2cdevlib/t ... 32_ESP-IDF
I've added esp-idf. This library has implemented DMP if you need it.
-
- Posts: 3
- Joined: Mon Apr 30, 2018 9:08 am
Re: I2C MPU6050 with I2S problem
@chegewara: Thank you for your proposal. Unfortunately that didn't help. I seems not to be a direct problem with I2C since getting values works just fine as long as no external I2S device is used. as soon as I start the I2S communication by installing the I2S driver, the I2C messages seem to break randomly with 1000ms breaks. Maybe somebody else came along this problem too?!
Who is online
Users browsing this forum: Baidu [Spider] and 156 guests