Skip to Content
BonicBot A2DevelopmentBlockly

Blockly

Lesson 1: Introduction to the Blockly Interface

This lesson introduces the Blockly workspace and basic controls. Users learn how to navigate blocks, open sample programs, and run them on the robot.

Topics

  • Workspace overview
  • Block categories
  • Loading and running example programs

Lesson 2: Basic Robot Movements

Users learn how to control the robot’s wheels, head, and arm servos using motion blocks. This lesson focuses on understanding basic movement commands and simple routines.

Topics

  • Wheel movement controls
  • Head and arm servo control
  • Creating simple movement sequences

Lesson 3: Expressions and LED Display

This lesson covers how to use the LED matrix to display emotions and animations. Users learn to combine expressions with timing to create simple reactions.

Topics

  • Changing eye patterns
  • Displaying animations
  • Expression-based reactions

Lesson 4: Timing, Loops, and Sequences

Users learn how to structure actions using delays, loops, and ordered steps. This helps create smooth and repeatable robot behaviours.

Topics

  • Adding wait/delay blocks
  • Looping actions
  • Multi-step behavioural sequences

Lesson 5: Working With Sensors

This lesson explains how to use Blockly’s sensor blocks to read distance or tilt values. Users create simple programs that respond when sensors detect changes.

Topics

  • Distance and IMU readings
  • Basic sensor-triggered actions
  • Creating safety-based responses

Lesson 6: Interaction-Based Behaviours

Users learn how to make the robot react automatically using conditions. The robot monitors a sensor and performs actions when the condition is met.

Topics

  • Using “if” condition blocks
  • Responding to proximity or tilt changes
  • Creating simple reactive behaviours

Lesson 7: Multi-Step Animations

This lesson teaches how to combine movements and expressions to create animations. Users design gesture sequences with proper timing and flow.

Topics

  • Coordinating head, arm, and LED actions
  • Gesture and motion sequences
  • Timing and flow control

Lesson 8: Basic AI Interactions

Users learn how to use AI-based blocks that rely on the smartphone’s AI system. This enables actions such as speaking responses or triggering tasks based on AI output.

Topics

  • Using AI trigger blocks
  • Speaking predefined responses
  • Simple AI-driven behaviours

Lesson 9: Combining Movement, Sensors, and Emotions

This lesson shows how to combine multiple inputs and actions to create interactive routines. Users learn to build small behaviours that react naturally to the environment.

Topics

  • Motion + sensor + expression logic
  • Example: greeting when someone approaches
  • Layered behaviour design

Lesson 10: Mini Project — Custom Blockly Program

In this final lesson, users create a complete program using everything learned. They design custom behaviour such as an animation, game, or interactive sequence.

Topics

  • Planning a complete behaviour
  • Building the full program in Blockly
  • Example ideas: gesture routine, sensor game, storytelling

Last updated on