Hello, I have a custom vex robot with 4 wheels tank drive using 6 269 motors. I have mounted custom wheels with high traction so they almost never slip. Whenever the wheels stall, the led on the PIC microcontroller will turn red and it will shut down and turn on again. The problem is when it turns on, all the motors receive a full pwm signal for a few hundred ms (which causes the robot to turn since the left motors are reversed from the right motors). When this occurs, the motors draw enough current to overload the 4 amps limit on the microcontroller, so it shuts off and turns on again. And this cycle goes on in few hundred ms intervals. Once I lift the robot off the floor, the robot will go back to normal since the wheels are now free spinning. So my question is, how do I fix this problem and why do the motors receive a full pwm signal when powered on?
Here’s some additional information for the diagnosis. The microcontroller I am testing with is new and I’ve also tested against an old PIC microcontroller which gave the same results. I am using 6 NiMH 2000 mAh duracell batteries as the robot battery. My gear ratio is 5:3 and everything mechanical is securely fixed. The code being tested against is a basic easy C project with just code for the motors.
Thanks so much.