Enrolment options

   From Blockly to Python with the Ned2 Robot

From Blockly to Python with the Ned2 Robot

Course modified date: 24 November 2025
  • Length: 8
  • Content Type: Lab
  • Programming: Python
  • Equipment: Simulation

🎓 From Blockly to Python with the Ned2 Robot

This course guides learners through the gradual transition from visual programming with Blockly to text-based programming in Python, using the collaborative Ned 2 robot.

Through three complementary units, students strengthen their programming logic skills, discover the basics of Python, and create their first complete scripts to control a real robot.


Unit 1 — Advanced Blockly

Students deepen their knowledge in visual programming with Blockly.
They learn to structure programs, adopt best development practices (modularity, clarity, code reusability), and solve more complex problems using the Ned2 robot.

Topics covered:

  • Comments
  • Sequences
  • Variables
  • Loops
  • Conditions
  • Functions
  • Lists
Unit 2 — From Blockly to Python

This unit forms the bridge between visual and textual programming.
Through a series of practical challenges, learners discover how Blockly blocks translate into Python instructions, developing an intuitive understanding of the language.

Activity 1 - Compare Blockly and Python
Activity 2 - Predict the robot's behavior
Unit 3 — Python Programming and First Complete Script

Students put their knowledge into practice to write their first complete Python program.
They learn to use the pyniryo library to control the Ned2 robot, structure a standalone script, and understand the Python code execution flow using an IDE.


At the end of this course, learners are able to:
✅ Design structured and efficient programs in Blockly
✅ Understand and write basic Python code
✅ Develop a complete script to control the Ned2 robot

  • Enrolled students: 62
Self enrolment (Student)
Self enrolment (Student)