0% found this document useful (0 votes)
182 views

Simple Line Follow Program: Example: Mbot Program (Arduino Download)

Simple line follow program - mBlock | Block-based coding platform for teaching & learning coding

Uploaded by

ultrametrik9559
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
182 views

Simple Line Follow Program: Example: Mbot Program (Arduino Download)

Simple line follow program - mBlock | Block-based coding platform for teaching & learning coding

Uploaded by

ultrametrik9559
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

home > example

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/)

2 Alternating blink Let mBot move along a black track on a light-color


(https://www.mblock.cc/example
/alternating-blink/) Hardware requirements:
3 Mixed color
mBot
(https://www.mblock.cc/example
/mixed-color/)
Implementation:
4 Random color
(https://www.mblock.cc/example Upload the program to Arduino
/random-color/)

5 Press button to play


Company Resources Product
(https://www.mblock.cc/example
/press-button-to-play/) Example program download:
Makeblock Educator (http://education.makeblock.com/) Download mBlock
(https://www.makeblock.com/)
6 Play a piece of music (https://www.mblock.cc
(https://www.mblock.cc/exampleDocumentation (https://www.mblock.cc/doc/en
Simple Line-Follow Program.sb2 /en-us/download
mBlock Introduction /?footer) /?footer)
/play-a-piece-of-music/)
(https://www.mblock.cc
/introduction-to-product/?footer) Ask in the forum (https://forum.makeblock.com Extension Builder
7 Ambulance sound /c/mblock) (https://ext.mblock.cc
(https://www.mblock.cc/example
Cooperation /?footer><i class=
(http://education.makeblock.com
/ambulance-sound/) Project Community (https://planet.mblock.cc
/trainingcenters/join/) /?footer) Makeblock store
8 Sound gradient (https://store.makebloc
Terms and Conditions Blog (https://www.mblock.cc/blog/?footer)
(https://www.mblock.cc/example
(https://www.makeblock.com
/sound-gradient/)
/general-terms-conditions) Example: mBot program(Arduino dow
9 Brightness gradient
(https://www.mblock.cc/example
/brightness-gradient/)

Soporte
© 2019 Makeblock Co., Ltd. All rights reserved.
10 Fire engine sound
(https://www.mblock.cc/example
/fire-engine-sound-effects/)

11 Value of the light sensor


(https://www.mblock.cc/example
/value-of-the-light-sensor/)

12 Stage background brightness


(https://www.mblock.cc/example
/stage-background-brightness/)

13 Infrared communication
(https://www.mblock.cc/example
/infrared-communication/)

14 Control movement , sound


and light (https://www.mblock.cc
/example/control-movement-
sound-and-light/)

15 Move along the M-shaped


track (https://www.mblock.cc
/example/move-along-the-
m-shaped-track/) Script description
As black can absorb infrared light, then in consideration of
16 Move along the S-shaped
track (https://www.mblock.cc (http://www.mblock.cc/example/value-of-the-line-follower-senso
/example/move-along-the-
light-color surface or let mBot identify a light color track on a blac
s-shaped-track/)
Here we take a black track on a light color surface for example to
17 Simulate an ambulance
mBot move along a track.
(https://www.mblock.cc/example
/simulate-an-ambulance/) The following introduces four situations where mBot is relative to

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/)

24 Simple line follow program


(https://www.mblock.cc/example
/primary-line-patroling-program/)

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.

Attached – Line-patrolling sensor structure diagram

kids programming language

kids programming language

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License (http://creativecomm

/licenses/by-s

—— More examples (http://www.mblock.cc/ex

# 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/)

You might also like