Go Down

Topic: code the robot car to turn 90 degrees with the L239D (Read 121 times) previous topic - next topic

hcy123

Could anyone help with the coding of the robot car turning 90 degrees. We design the robot car that one side of wheels moving forward and another side wheels moving backwards.

groundFungus

#1
Apr 19, 2018, 05:31 pm Last Edit: Apr 19, 2018, 05:32 pm by groundFungus
Are there encoders on the wheels?  Any sort of positional feedback, like a compass?  If not, you will have a hard time turning with any accuracy.  To do it without positional feedback all you can do is time the actuation of the motors and try to find a time that accomplishes the turn.  The problem is that the timing that works for one surface or set of friction conditions may well not work for a different set of conditions.

Go Up