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

Pemrograman Terstruktur Robomind

This document introduces structured programming using Robomind, focusing on teaching students to write programs that solve simple problems through sequential processes, conditional statements, and loops. It includes examples of programming tasks for students, such as moving robots, changing paint colors, and navigating maps. The document emphasizes the importance of understanding flow processes in programming.

Uploaded by

yosefargok
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Pemrograman Terstruktur Robomind

This document introduces structured programming using Robomind, focusing on teaching students to write programs that solve simple problems through sequential processes, conditional statements, and loops. It includes examples of programming tasks for students, such as moving robots, changing paint colors, and navigating maps. The document emphasizes the importance of understanding flow processes in programming.

Uploaded by

yosefargok
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 29

Oleh: Rosihan Ari Yuana, S. Si, M.

Kom

Structured
Programming
(an intro with Robomind)
Objectives

 Students can write programs to solve


simple problems with robomind
 Students can apply flow control to
solve simple problems with robomind
Software

 Robomind (Freeware)
Link download ->
https://www.robomind.net/en/download.ht
ml
Robomind Objective

 Tocontrol the robot to do certain


activities using a script/program

Examples:
 Tell the robot to move beacons
 Tell the robot to follow the white lines
 Tell the robot to draw spiral
 Tell the robot to find hidden beacons
Today’s Activity

 How to learn basic programming


with Robomind:
 Sequencial process
Robomind Basic
Instructions
Robomind Basic
Instructions
Flow Process
 Sequencial
 Instructions are executed one by one sequentially
(top-down)
 Example: how to run a motorcycle
 Conditional
 An instruction will be executed when a condition is
fulfilled
 Example: how to cook instant noodles (when the
water is boiling, add the noodles)
 Loop
 An instruction is executed repeatedly up to n times
or until certain conditions are met
 Example: the process of adding sugar to tea until it
is sweet
Example of Sequencial
Process
How to run a motorcycle:

1. Set the gear to neutral


2. Start the engine
3. Set the gear to 1
4. Accelerate the speed
5. Set the gear to 2
6. Accelerate the speed
7. Set the gear to 3
8. Accelerate the speed
9. Set the gear to 4
Seq Process in
Robomind
 Example

tell the robot to go forward 3 steps,


turn right, then go forward 3 steps
Seq Process in
Robomind
 Exercises
 Write a program code to tell the robot to
move along the white line (use default
map)
 Write a program code to move objects in
the upper right corner to the upper left
corner
 Write a program code to tell the robot to
make a number eight with white paint
(use openArea map)
Seq Process in
Robomind
Exercises (cont)

 Open map: passbeacon


Write a program with minimum
instructions for the robot to go through a
series of beacons and stop at a white dot
on the map! (do not eat the beacons)
Seq Process in
Robomind
Exercises (cont)

 Open map: castle


write a program so that the robot can
paint on the map as shown below
Seq Process in
Robomind
Exercises (cont)

 Open map: changebelt12


Write a code for the robot to move
all beacons in white line to black line
Today’s Activity

 How to learn basic programming


with Robomind:
 Conditional statement
Example of Conditional
Statement
Cooking instant noodles:
1. prepare the pot
2. Put 200 cc of water into the pot
3. Boil water in the pot.
4. if the water in the pot is
boiling, then put the instant
noodles into the pot
5. add the spices and mix
6. After 3 minutes, pour the noodles
into the bowl
Robomind – Flow
Process
 Examples in Robomind
Robomind – Flow
Process
 Wecan use logical operators in the
condition: & (and), | (or), ~ (not)
Robomind – Flow
Process
 Commands in Robomind for
conditions
Robomind – Flow
Process
 Exercise 1

map: if02
(https://bit.ly/robomindMaps)

Using if, write a program for the


robot to change the color of paint
(white to black, and vice versa).
Don’t use repeat statement!
Robomind – Flow
Process
 Exercise 2

map: if03

Using if, write a program for the


robot to change the color of paint
(white to black, and vice versa).
Don’t use repeat statement!
Robomind – Flow
Process
 Exercise 3

map: if04

Using if, write a program for the


robot to go forward. Turn right, when
passing a white dot. And turn left,
when passing a black dot. Stop if
front is a beacon. Don’t use repeat
statement!
Robomind – Flow
Process
 Exercise 4

map: if05

Using if, write a program for the


robot to eat all beacons. Don’t use
repeat statement!
Robomind – Flow
Process
 Exercise 5

map: if06

Using if, write a program for the


robot to eat all beacons on the white
dot only. Don’t use repeat
statement!
Robomind – Flow
Process
 Exercise 6

map: if07

Using if, write a program for the


robot to move the beacon on the left
to the white dot on the right. If there
is a black dot on the right, then eat
the beacon on the left.
Robomind – Flow
Process
 Looping
Robomind – Flow
Process
 Contohlooping terus menerus (be
careful)
Robomind – Flow
Process
 Latihan 2
 Buka map openArea, kemudian buatlah
program supaya si robot dapat membuat
spiral seperti berikut ini
Kesimpulan

 Flow process di dalam pemrograman


terstruktur:
 Sequencial
 Conditional
 Looping
 Didalam sebuah program dapat
menggabungkan beberapa jenis flow
process

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy