Blockly
Blockly is the visual programming mode for Dotbot Flip. It lets you create behavior by arranging blocks in a workspace instead of writing code directly.
When to use it
Choose Blockly if you want to:
- start quickly without syntax concerns
- teach or learn programming concepts visually
- modify behavior by rearranging logic blocks
- save and return to different robot programs inside the app
The model and workspace concept
In the app, Blockly programming is organized around a model or workspace. This workspace acts as the container for the current Blockly program.
That model is used to:
- build the block layout
- save the current Blockly program
- load a previously saved Blockly program
- switch between different Blockly-based behaviors
This means the workspace is not just the editor view. It is also the vessel used to persist and restore Blockly logic over time.
Typical workflow
- Connect to the robot in the app.
- Open Blockly mode.
- Create or load a model or workspace.
- Add blocks for movement, arm actions, lights, sounds, sensors, or conditions.
- Save the workspace when you want to keep the current logic.
- Load another workspace when you want to continue a different Blockly program.
Common block groups
Typical Blockly groups include:
- logic
- loops
- math
- text
- arm
- battery
- compass and orientation
- drive
- lights
- screen
- speaker
- system
Good first Blockly projects
- drive forward, stop, and reverse
- flash the LEDs when a sequence starts
- move the arm after a short delay
- create a simple pick-up routine
- build a basic battle opening move
Why it is useful
Blockly is a strong middle ground between direct control and text-based programming. It is especially useful in classrooms and workshops, where being able to save and reload different workspaces matters.