Skip to content
01micro:bit ยท MakeCode 25 minutes

Animated heartbeat and name badge

Make a heart beat forever, then scroll a word across the display.

Animated heartbeat and name badge project
Illustration of the finished idea. Build from the diagram and connection table, not the photo.

Lesson goal: Use 'forever' and 'pause' to animate two heart pictures, and scroll a practice word (ENGINEER by default) when button A is pressed.

Open MakeCode

Section 1

Understand

  • forever loop
  • pause in milliseconds
  • show string
  • on start vs forever
  • button event
  • 1on start runs once; forever repeats.
  • 2Two hearts with pauses make a heartbeat.
  • 3Scroll your badge name across the display.

Safety first

  • No wiring. Keep the USB cable away from drinks and hold the board by its edges.