Programming with NEPO® follows a simple principle. The blocks are interconnected and executed by the robot according to their order. This principle is called »sequential operation«. Only blocks that are connected with each other are executed while running the program. The blocks that are connected together and to the start block are also called a sequence or »task«.
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.
Configuration
Before you can then program your robot, you must first configure the sensors and actuators. You can find the different sensors and actuators available for the mBot here.
For each sensor and actuator, you will find a description of its function and how to connect it.
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
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.
Perhaps NEPO seems familiar to you. When designing NEPO we were inspired by existing concepts from scratch and blockly.
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:
Programming Languages for Code Generation
| WeDo | Stackmachine JSON Code (It runs in the browser, editing is not recommended) |
EV3lejos 0.9.0, 0.9.1 Open Roberta xNN | Java |
EV3Dev NAO mBot 2 | Python |
EV3 c4ev3 Calliope mini ... | C/C++ |
| NXT | C (NXC, not exactly C) |
| micro:bit | MicroPython |
| Spike Prime/Robot Inventor | MicroPython |
| Edison | MicroPython (very limited) |
ROB3RTA BOB3 SenseBox mBot NEPO4Arduino Bionics Kit Bionic Flower Bot'n Roll | Arduino C/C++ |
Arduino C/C++ is actually C/C++, but a somewhat reduced selection from C/C++.
MicroPython is Python for microcontrollers.
Blockdescriptions
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.
Sample programs
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:
- Description
- Table
- sensors
- actuators
- block category
- difficulty
- tips
- Result
So far we have put the following sample programs online:
- The LEDs switch on
- Flashing lights
- Measuring the distance
- parking sensor
- Line follower

