UART Protocol and I2C Protocol used but gyro data freezes

Hi there,

I have connected gyro with arduino using I2C protocol (SCL/SDA) and I have connected a BLDC The motor driver is this one: https://flipsky.net/products/mini-fsesc4-20-50a-base-on-vesc-widely-used-in-eskateboard-escooter-ebike

But when I try to rotate the motor based on angle data the serial monitor freezes. Gyro data stopped giving output. If I disconnect the motor driver wires then the data is showing perfectly.

I have also tried to control the motor without gyro, it works fine. But I can't understand why I can't rotate motor and read gyro data together.

Any suggestion??

Given your description most probably you have done something wrong in the code. As you use the serial monitor (probably for debugging) I assume you control the motor by a SoftwareSerial instance, probably the reason for your problems. But as we have seen neither your code nor your wiring we cannot help you further.

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