Issue on using both I2C and Serial simultaniously in raspberry pi 2

145 Views Asked by At

Currently, I am working on a project that need both Serial port and I2C of the raspberry pi (it's a raspberry pi 2) simultaneously. I am having an issue when communicating with the serial port while I2C data read. The data from the I2C will corrupt when communicating with serial port.

The serial port is connected to SIM800L and I2C port is connected to MPU6050 gyro.

Can someone explain this issue ?

The below image contains the error readings from the gyro (right side window) when try to send command to serial port (left side window)

Data corruption

0

There are 0 best solutions below