Intermediate
40 mins
Teacher/Student led
+90 XP

Robots and Rules: Programming the Floor Robot

In this lesson you will program a floor robot along a route with a turn and repeat. Predict where it stops, run the program and fix any bugs you find.

Teacher Class Feed

Load previous activity

    1 - Getting Started ~4 mins

    Illustration for Getting StartedOur robot only does what we press. So if it goes the wrong way, who has the bug?

    Key point

    Watch with the cards: the arrows in order are the program. A wrong arrow is a bug. The same arrow more than once is a short repeat, like three forwards.

    Today we will send the robot on a longer route with a turn and a repeat, predict where it stops, and fix any bug.

    2 - Watch a Program Run ~5 mins

    Watch the robot on the mat. Where do you think it will stop? Call out your prediction before we press Go.

    3 - Plan the Route on the Board ~7 mins

    Watch the robot on the grid on the board. Your job is to call out the next step and watch the run. I will put the arrows in order and press Run.

    Key point

    For the first challenge, use 6 steps or fewer. If the robot misses the goal, say where the bug is and which step we should change.

    Get the robot to the goal

    4 - Program the Floor Robot ~12 mins

    Key point

    In your group, plan a route from start to finish with arrow cards. It needs a turn and a short repeat (the same step more than once, like forward, forward, forward).

    Illustration for Program the floor robotSay your program in order and predict where it will stop. On your turn, run it. If it misses, fix one step and try again.

    Tip

    If you are waiting, keep working on your card plan at your desks until your turn.

    5 - Record Our Program ~6 mins

    On your Investigation Journal page, record the working program in order, the bug you found, and how you fixed it.

    Pupil practice · Investigation Journal
    Module 4 · Technology: Using Tech, Algorithms, Scratchjr and Robots
    Lesson 30 · Robots and Rules: Programming the Floor Robot
    Download Investigation Journal sheet (PDF)
    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2025. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more