To connect blocks with each other, they have sequence connections and/or connectors. Depending on the mode of a block, the number of the connectors may vary.
Programming with NEPO is really easy. Every program begins with the »start« block.
This block is always added by default in the Open Roberta Lab workspace. The first block that you will execute is connected with the »sequence connector« of the »start« block. The sequence connector is a triangle at the bottom of the block and this triangle will become yellow as soon as a suitable block is in close proximity.
Transfer a program to the mBot
So that you can try out your first program, it must of course first transfer it to your mBot. Just press the »Start on mBot« button as long as there is a connection between the Open Roberta Lab and your mBot. You can read how to connect your mBot to the lab here.
NEPO is the name of our graphical programming language. It is easy and fun to learn programming. NEPO can also be used to program and interact with other robot systems.
The graphical NEPO blocks have different components and thus different attributes. A block always represents a certain functionality. Its function can easily be determined by its block category, for example »sensors« . Features of the graphical blocks are:
The individual blocks and their descriptions can be found here, sorted by categories.
For each block its function, setting possibilities, as well as input and output values are described in detail.
In the section »Example programs mBot« we show you different example programs. For each program there is a short description and a "sample solution". Each example program is divided as follows:
- block category
So far we have put the following sample programs online:
- The LEDs switch on
- Flashing lights
- Measuring the distance
- parking sensor
- Line follower