Had Picarx for two weeks with pPi4B and all working well. Been expanding example code but lately noticed motors running unevenly. Tested using calibration.py and select either motor and both motors run.
Rebuilt OS and reinstalled all code and same happens?
Not sure if this is software or hardware. Nothing changed on board and only made OS updates and example code enhancements. Core code still same.
Any ideas??
It is recommended that you run the motor working example, put the car on the ground and run it to see the running status of the car. Provide us with the operation video so that we can help you analyze and solve the problem.
Regarding the problem of deviation of the car’s straight driving, this is caused by the fact that the motor production cannot guarantee complete consistency. This is a problem that all motors will have. To achieve driving without deviation, it is necessary to add sensors such as gyroscopes and add real-time pid programs for adjustment.
It is normal for there to be slight differences in motor speeds. So when you control the car to move forward, it is impossible to keep going in a straight line, because there is friction on the ground, so you need to control the left and right directions of the front wheels to achieve the effect of the car moving forward relatively straight.