I am working on a simulator and I am using 2 pololu 18v25 SMC to control two 12V PMDC motors with the help of arduino mega 2560 and potentiometers. The connections from SMCs are as follows:
Vin - 12V power supply
OutA - +ve of motor
OutB- -ve of motor
Gnd - Gnd of power supply
Rx - Tx of arduino mega 2560
Gnd - Gnd of arduino mega 2560
The SMC is connected to a computer via USB.
The problem I am facing is that, the SMC 1, used to control the left motor is showing some serial noise and frame errors, but it is driving the motor and it brakes whenever there is serial error. The SMC 1 is brand new since the old one was damaged and I have checked the left motor with the SMC 2 (which controls the right motor) and it works fine.
I have checked for grounding issues and could not find any problem with that. Also i have changed the soldering, but it did not solve it either.
As a next step, I have given various speeds (with a simple program to drive the motor forward) to SMC 1 to drive the left motor. At a continuous speed of 500 (max speed 3200), there is a continuous serial error for approximately 5 seconds and from then it works fine. Again at a continuous speed of 600, there is a serial error for approximately 7 seconds: This duration of getting serial errors increases with increase in speed. The motor still drives with intermediate braking during the time of serial error and after a few seconds it is driven perfectly by the SMC1.
Kindly advise me what has to be done to remove this error.
Thanks in advance.