Unplugged Lesson
Beginner
40 mins
Teacher/Student led
+50 XP
What you need:
IWB/Projector/Large Screen

Digital Robot

Get ready to meet a robot on your screen that follows your commands to draw amazing patterns! You'll learn to give clear instructions, using direction buttons to create shapes step by step, and see your code come to life.
Learning Goals Learning Outcomes Teacher Notes

Teacher Class Feed

Load previous activity

    1 - Introduction

    So far, we've been the robots ourselves, following instructions to make patterns and draw pictures. We learned that to get the right result, the sequencing and order of our code has to be perfect.

    Today, we're going to meet a robot that lives on a screen. This robot can follow all the same commands we used to draw, and it will show us just how good it is at following our code.

    Materials Needed:

    • A Screen/Projector: To display the simple web application.

    • Worksheets: Have the "Drawing Robot" worksheets for reference.

    • Markers: To draw example shapes before moving to digital drawing.

    2 - Paintbrush Path

    Introduce the Paintbrush Path.

    Pupils will direct the brush with clear commands  to try to recreate the target image shown on the left hand side grid.

    Do a quick demo: point to the start, read one command at a time, and show how the brush draws a line after each move.

    Then let the class suggest the next single command to build the picture step by step. This warm-up tunes their direction and sequencing skills for the rest of today’s lesson.

    3 - Robot Letter Tracer

    Tell the students you are going to code the digital robot to draw letters on the dot grid, just like they drew shapes with their markers.

    Choose a simple letter (like L or T) and sketch it on the board using a 4×4 dot grid.

    Click the arrow buttons in the order the robot must move to trace that letter.

    As you click, the code will appear on the screen, building the sequence.

    Once you are done, press the “Run” button. The digital robot will then draw the letter on the screen.

    Robot Letter Tracer

    Use the arrows to code the robot so its trail matches the target letter on the dots.

    Target Letter

    Letter: L

    Yellow dots show the letter. The outlined dot is the robot's starting point.

    Your Code

    Add arrows to build your program (tap a chip to remove).
    Ready. Add arrows to trace the letter.
    🌟

    Nice coding!

    Your robot’s trail matches the letter.

    4 - Drawing Robot

    Give each student a worksheet. Tell them it's their turn to be the programmer.

    Challenge them to write the code to draw a simple square and then a rectangle (There are more complex challenges for more advanced students below)

    When they have completed the code, they can enter it into our online drawing robot to see if it works!

  • Warm-up square: From the top-left start, draw a 2×2 square.

  • Rectangle: From top-left, draw a 3 wide × 2 tall rectangle.

  • Staircase: Make three steps going right, down, right, down.

  • Perimeter walk: Trace the outer border of the whole 4×4 grid and return to start.

  • Letter L: Draw a tall line down the left edge, then right along the bottom.

  • Letter T: Draw a long line right across the top row, then from the middle go down to row 3.

  • Window panes: Draw two small 2×2 squares, one in the top-left, one in the top-right.

  • Zigzag: Cross the grid with a zigzag (right, down, right, up, right, down, right…).

  • Drawing Robot — 4×4 Grid

    Start is the top-left dot. Add arrows, then press Run to see what your code draws.

    Try writing code for the square, rectangle, staircase, perimeter walk, L or T from the worksheet.
    Queue is empty — add some arrows.
    Start is top-left (row 1, col 1). Add arrows to draw.
    🎉

    Nice coding!

    Your path matched one of the challenge shapes.

    5 - Secret Shape Challenge

      Tell pupils they’re going to write their own code to challenge a friend.

        Put pupils in pairs. One is the Programmer, the other is the Robot.

          Give each Programmer a small grid (4×4 or 3×3) and ask them to choose a simple shape or letter in their head – for example:
          a 2×2 square, a little rectangle, an L, a T, or a short staircase.

            The Programmer writes the arrow code only (➡️ ⬇️ ⬅️ ⬆️) starting from the top-left dot.
            They do not draw the picture – just the code.

            The Robot gets a blank grid. They follow the arrows carefully, drawing the path as they go.

            When they finish, they guess the shape or letter they’ve drawn.

              The Programmer then shows what they were aiming for. If it doesn’t match, they can debug together and fix the code.

                Let them swap roles and repeat with a new shape.

                If you like, finish by asking a few pairs to share a favourite “secret code” with the whole class and see if the class can guess the shape before you run it.

                Unlock the Full Learning Experience

                Get ready to embark on an incredible learning journey! Get access to this lesson and hundreds more in our Digital Skills Curriculum.

                Copyright Notice
                This lesson is copyright of DigitalSkills.org 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