White line black line


#1

have nice days, we will go to robot contest next week, we have a problem , our mbot robot isn’t passing white line from black line, how can we write the codes about this problem , please help us


#2

Can you post the code that you are using?


#3

The mBot line sensor returns the following values:

0 - Both sensors over a black line
1 - Left sensor over a black line / Right sensor not over a black line
2 - Right sensor over a black line / Left sensor not over a black line
3 - Both sensors not over a black line

As @Bleky asked, please post your code.


#4