HyracHubby Hyracbox
← Browse
Programming Your Robot

Programming Your Robot

Updated 9/13/2026

TechnologyEN114.1 KB

Free

▶ Start learning

Play it right here in your browser — no install needed.

Sign in to save your progress across devices
Get the appOffline learning lives in the app.

What you'll learn

  • Explain the sense-think-act paradigm that all robots use
  • Create and use variables to store robot data
  • Write if/else code so robots make decisions
  • Use loops to make robots repeat actions efficiently
  • Trace a robot program to predict its behavior
  • Connect sensor input to actuator output in code

About

Learn how robots think: variables, if/else decisions, loops, and sense-think-act programming logic for micro:bit and Arduino.

What's inside· 15 lessons
  1. 1Making Decisions: If / Else
  2. 2What is a Robot?
  3. 3Trace the Program
  4. 4Storing Data: Variables
  5. 5Full Example: Obstacle-Avoiding Robot
  6. 6How It Works
  7. 7=== SETUP ===
  8. 8Repeating Actions: Loops
  9. 9Arduino Example
  10. 10Micro:bit Example
  11. 11=== MAIN LOOP ===
  12. 12Programming Your Robot
  13. 13Sensors to Actuators: The Sense-Think-Act Code
  14. 14Sensors to Actuators: The Sense-Think-Act Code
  15. 15Quick Quiz

Part of these paths

Reviews

No reviews yet.

Questions & discussion

Ask a question or join the discussion in the Hyracbox app.

No questions yet.

Programming Your Robot · HyracHub