Programming Sounds; Programming Pauses; Writing A Complete Program; Deleting Commands - Thames & Kosmos Robotics Smart Machines Experiment Manual

Table of Contents

Advertisement

PROGRAMMING SOUNDS

1. Press the notes command icon and the sound
programming window appears (J).
2. In the sound programming window, you can
create a command to make sounds. You can
choose the pitch (Do, Re, Mi, Fa, Sol, La, Si, and
Do) and the duration (0.5 to 5 seconds) for each
note command.
3. Press the green check mark button and the note
block (K) appears in the program segment.
In this way, you can program a simple melody
with multiple note blocks that will play when the
program segment runs.

PROGRAMMING PAUSES

1. The last command option is to add a pause, or
rest, to the program. Press the rest command icon
and the rest programming window appears (L).
You can choose the duration (0.5 to 5 seconds) of
the pause in the program. Press the green check
mark button and the rest block (M) is added to the
program segment.

WRITING A COMPLETE PROGRAM

Following the previous instructions for adding
commands, you can now go and write programs for
all of the segments. You can think of the different
actions you want your robot to perform when the
ultrasonic sensor reads objects at different
distances in front of it.
Don't be afraid to try a lot of different ideas and
play around with different combinations of
command blocks in different distance range
segments.

DELETING COMMANDS

To delete a command block, press the block you
want to delete to open its programming window.
Then press the trash button (N) in the bottom corner.
Programming the Robots
J
K
L
M
N
13

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents