Simple Line Follow Program: Example: Mbot Program (Arduino Download)
Simple Line Follow Program: Example: Mbot Program (Arduino Download)
Introduction
(https://www.mblock.cc/example
/introduction/) Simple line follow program
1 Blink (https://www.mblock.cc
113,406 Author: Yisong Xu, Si Xu
/example/blink/)
Soporte
© 2019 Makeblock Co., Ltd. All rights reserved.
10 Fire engine sound
(https://www.mblock.cc/example
/fire-engine-sound-effects/)
13 Infrared communication
(https://www.mblock.cc/example
/infrared-communication/)
following strategies:
18 Value of the ultrasonic sensor
(https://www.mblock.cc/example 1, if it is on the black line, it keeps moving forward;
/value-of-the-ultrasonic-sensor/)
2, if it deviates from the black line, it turn left or right in time to ke
19 Stop automatically in front of 3, if it is not on the black line, it turns back to Jnd the black line.
a barrier (https://www.mblock.cc
/example/stop-automatically-in-
front-of-a-barrier/)
20 Avoid barriers
(https://www.mblock.cc/example
/avoid-barriers/)
21 Value of the line-follower
sensor (https://www.mblock.cc
/example/value-of-the-line-
follower-sensor/)
22 Let me down
(https://www.mblock.cc/example
/put-me-down/)
23 Cliff detection
(https://www.mblock.cc/example
/cliff-detection/)
For the above four situations, the program can be the example:
Knowledge point
The line-patrolling sensor is the best to identify pure white or black surfa
electrician tape to make a patrolling line on a light color surface to achieve the best effects.
Extended tasks
Firstly, change the speed of mBot when it is moving forward or turning, then observe mBot’s line patro
Task 1
effects.
Task 2 Let’s think: In Situation 4, what strategy can mBot use to find the black line.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License (http://creativecomm
/licenses/by-s
# arduino download # coding robots for kids # scratch download # scratch 2.0 # kids programming lang
# how to make games on scratch # scratch 3.0
prev
(https://www.mblock.cc/example/cliff-detection/)