Line follower programme


#1

Hello

I wanted to see if you can help me (my English isn’t the best), but I want to create a program in mBlock v5 where the Mbot1 follows a black line and, if it encounters an intersection, it takes the left path along the line. Then, it should continue forward until it reaches a square, advance through it, and exit through the other line… I hope that makes sense. I’m sending a reference image.


#2

@omar Hey! No worries about your English :slight_smile:

There are a few example programs to make mBot follow a line. You can access them here:
https://ide.mblock.cc/

image
image

Here are some of the options. You can use them as a starting point and customize the logic to do what you want:

image
image

Let me know if you have any questions!