i2C & UART Issues on ESP32

Hi guys,

Made a bunch of previous posts on the MLX90640, MPU6050 and other i2C sensors. Trying to debug and wrap up my project for showcase and use. What I have found is when I use UART it leads to a lag on my i2C communication, making the MPU6050 directly stop, and the MLX90640 give a corrupted output.

The architecture I have designed is that the First core will handle my touch screen inputs and the GUI, while also reading the MLX90640 i2C inputs and creating an output. The second core handles more data like getting the accelerometer and angles from the MPU6050, and the myDFPlayermini outputs.

The main issue is when I bootup if the myDFPlayer isn't used the Gyroscope & Infared Camera return back results, but as soon as I use one of the UART ports (Both are taken by a different sensor) the Gyroscope data freezes and the Infared camera gives corrupted data. The wire clock speed has been set to 1MHz and this system use to previously work when the myDFPlayer was on both cores but then it would often get overloaded by two cores.

Any ideas?

code. in tags. schematic.

In particular, show all code relating to UART, but preferably all code. Can't compile to test what we ain't got.

I figured it out nvm

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.