I am attempting to use an MPU6050 to gather accelerometer data while also controlling two ESCs for two motors. The motors are powered by an external power supply and the MPU is controlled by the 3.3 V pin on the Arduino.
When collecting data from the MPU with the motor power supply turned OFF, data is collected for an indefinite amount of time without any interruptions.
When collecting data from the MPU with the motor power supply turned ON, the data collection breaks after a few seconds and the Serial Monitor freezes.
I am using the example code for gathering raw data from the MPU605 found here and added in ESC control functionality to this base sketch.
I’m curious why the data collection would work without the motors being powered but not when the motors are powered since the motors/MPU do not share a common power supply.
Any help would be great!