Thames & Kosmos Robotics Workshop handleiding
Handleiding
Je bekijkt pagina 13 van 68

WRITING PROGRAMS
Programming the Robots
This manual does not explain the function of every
block in the Blockly library. The educational intent
is for you to learn how many of the blocks function
by building the models in this manual, loading the
demo code for each model, and experimenting with
how the demo code functions with each model. If
you have a question about a specific code block, we
suggest you look it up online with the help of an
adult. Because Blockly is open-source, there is a
considerable amount of information available about
it online. The CB1 code blocks are explained below.
CB1 BLOCKS
A. Motor Blocks
Use the motor blocks to control one to four of the
motors. You can select which motor port you want
to control with the block, and set the direction and
the relative speed (power level) you want the motor
to turn.
B. Sensor Blocks
The sensor blocks allow you to use the sensor input
data in your programs. With the sensor blocks, you
can choose to get sensor data from the ultrasonic
sensor (distance), light sensor (luminance), sound
sensor (microphone), touch sensors (buon 1 and 2),
and rotary variable resistor (knob). You can plug the
sensor blocks into logic blocks.
C. Buzzer Blocks
The buzzer blocks allow you to play sounds from
the speaker on the CB1 core controller.
D. LED Blocks
The LED blocks allow you to program the LEDs on
the CB1 core controller to light up.
CREATING IF-ELSE STATEMENTS
As you will learn, if-else and if-else-if-else function
blocks are important to many programs. To create
an if-else block, tap on the small blue gear on an if
block. Drag an else-if or else block to the right side
of the window to make a new type of block.
A
B
C
D
11
Bekijk gratis de handleiding van Thames & Kosmos Robotics Workshop, stel vragen en lees de antwoorden op veelvoorkomende problemen, of gebruik onze assistent om sneller informatie in de handleiding te vinden of uitleg te krijgen over specifieke functies.
Productinformatie
Merk | Thames & Kosmos |
Model | Robotics Workshop |
Categorie | Niet gecategoriseerd |
Taal | Nederlands |
Grootte | 55434 MB |