MAX14870 with 25:1 Metal Gearmotor 20D 12v motor

Hello! We use 4 motor drivers MAX14870 Single Brushed DC Motor Driver Carrier Pololu - MAX14870 Single Brushed DC Motor Driver Carrier and 4 motors 25:1 Metal Gearmotor 20Dx41L mm 12V CB with Extended Motor Shaft Pololu - 25:1 Metal Gearmotor 20Dx41L mm 12V CB with Extended Motor Shaft at the same time with arduino pro mega 2560. After a few seconds of operation, the arduino freezes and stops responding to any sensors. If we use 40% (102 on PWM) of the PWM speed, the robot is working fine. If we increase the value to 60% (153+ on PWM) or more, glitches and freezes begin. Installing a 0.1uF ceramic capacitor on motors brought no improvement. At the moment, the battery powers the Arduino and the motors directly through the driver. We will try to set the stabilizer to power the arduino. If that doesn’t help, we don’t know what to do. Is possible to power the motors from a separate battery and combine the motor power ground with the arduino ground, but this method will be very problematic for us.
Also, we are using:
Team Orion LiPo 1600 3S 11,1V 50C Team Orion Team Orion LiPo 1600 3S 11,1V 50C XT60 ORI60145 | Team Orion - Engineered Performance. Race Proven. battery, some I2C sensors, multiple LEDs and photoresistors…

Hello.

Can you be more specific about the signal you are sending to the drivers? Are you just using the analogWrite() function?

Could you try simplifying your system down to just a single motor driver and motor and seeing if you get the same results? If you do, could you post pictures of the simplified setup as well as the simplest complete version of your code that demonstrates the problem?

Brandon