Let's Make Robots!

How to make your robot drive strait

Simple way of correcting a very anoying problem

 

If you ever made a tracked robot you most likely had this problem: my robot wont go in a strait line !!!! what can i do ?

Well ... there is a simple solution and it doesnt envolve modifing you robot ! 

A simple code will allmost completely fix the problme !

The problem is that one track goes faster then the other so the solution is to slow one of them down with is realy easy.

The normal code to make your robot go forwards looks like this :

main:

high 7 : high 5 : low 4 : low 6

goto main

 

Now the code will need a bit of tweeking depending on with track goes to fast, in my case it is the one on the left witch is high 7. To slow it you need to pause it fora bit depending on your robot.

 

main:

high 7 : high 5 : low 4 : low 6

pause 1

low 7  : high 5 : low 4 : low 6

pause 3

high 7 : high 5 : low 4 : low 6

goto main

 

Now the problem is this might slow it down too much, the solution? Slow the other one down a bit. The timeing is a bit of guess work but will figure it out. 

 

main:

high 7 : high 5 : low 4 : low 6

pause 1

low 7  : high 5 : low 4 : low 6

pause 3 'This is the time you should change.

high 7 : high 5 : low 4 : low 6

pause 1

high 7 : low 5 : low 4 : low 6

pause 1 'This is the time you should change.

high 7 : high 5 : low 4 : low 6 

goto main 

goto main

 I will post a video onece I record one.

Hope this helped somebody! 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
I think that George Strait is straight.

What I do before I mess with the programming is, I'll take the gearbox a part and make sure the gears have no molding bits, or rough edges that will bind them while turning. I also add a bit of grease on the gears, and a drop of thin oil on the motor bearings. Sometimes I'll even go as far as to sand the sides of the gears then add nylon washers to better center the gears.

This typically makes them run a lot closer speeds, then I mess with my code to make them exact.

Taking it apart is the best thing to do but in some cases you no longer have acces to the gears so this in an alternatif