A learning resource fromSpread Robotics Education Foundation

Lesson 03 · 55 minutes · Scrolling text

Create a name badge

Give the micro:bit words to display. Use your name, a team name, or a short greeting.

New programming concept

Text string

A string is text stored by a program. It can contain letters, numbers, spaces, and symbols. In MakeCode, the words inside the show string block are the string.

show string “ANU”ANU

Say it simply: “A string is a piece of text the computer can use.”

Before you code

Choose a short message

Long messages take a long time to scroll across five lights. Start with a name, initials, or a word with fewer than ten characters.

ANUTEAM 4HELLONAMASTE

MakeCode steps

Build the badge

  1. 1

    Start a new project

    Name it Name Badge.

    Open MakeCode
  2. 2

    Find show string

    Open Basic and drag show string into the forever block.

  3. 3

    Enter your text

    Select the text inside the block. Delete “Hello!” and type your short message.

    forever
    show string “ANU”
  4. 4

    Watch the simulator

    Read the letters as they move. If the message is too slow, shorten it.

  5. 5

    Add one picture

    After show string, add show icon. Choose an icon that represents you or your team.

  6. 6

    Download and share

    Transfer the program to the micro:bit. Let a partner read your message.

Ready for one improvement?

Add a second show string block with a short greeting. Predict which message will appear first.

Optional videos

Watch the official guides

Visit the official Name badge project

For the teacher

A calm 55-minute plan

Recall
Review forever and the LED display.

Introduce strings
Compare text with a picture icon.

Guided build
Use one short message first.

Personalize and transfer
Add one icon after the text.

Partner reading
Swap boards and read each badge.

Language and pacing note

The 5×5 display handles Latin letters and numbers most clearly. Learners can use initials, English transliterations, or a student-designed icon if their name does not display well.

Before you finish

Can you explain it?