Trouble following custom track with mBot line sensors


#21

@AAA Do you mean like make it slowly go faster and faster around turns, or slower and slower, of less choppy (eliminate correction turning)?


#22

Something less choppy and faster around turns since it’s speed based.


#23

Well, there isn’t much you can do to prevent choppiness. :frowning:
One thing you can do:
Change the turn type. See below what I mean:
image

So have only an mBot wheel on one side turn, not both, so it turns rounded, not in place:
image

Try it and see how it does. @AAA

P.S. Keep in mind that depending on how sharp the bends in your track are, you may need to adjust the block, e.g.,
left 70% right 30%,
left 70% right 70%,
left 50% right 30%,
and so on.


#24

We tried both but it won’t work. It immediately gets stuck at the start of the track:(


#25

@AAA Assuming that the line is the start, does it move direction a or b from the start?
image
And where does it get stuck, what behavior is performed when it is stuck (does it turn, stop, etc.). Also, what is your code?


#26

@Best_codes
It moves from direction A.

As for how it gets stuck, it wiggles around the moment it starts to follow the track.


#27

@AAA There is a mistake in your code. Change to “white” where the arrows are:

image


#28

@Best_codes

It just goes straight.


#29

@AAA It doesn’t turn?


#30

@Best_codes

Nope. It turns for a bit but then just goes forward.


#31

@AAA Your code is exactly like this, right?


#32

@Best_codes

Kind of, yes. It’s supposed to follow a black line though.


#33

Oops, yeah, sorry. Reverse mine @AAA


#34

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.