I have a Arduino uno board connected with PCA9698(I/O expander) through i2c communication. Controlling if input and output were working correctly. The data pins from the PCA9698 is connected to the 24v DC motor driver(BTS7960) and also sensors(PROXIMITY sensors). While reading the sensors there are no issues, but While running the motor the PCA gets hangs and i2c gets disconnected. Kindly help me with this problem.