Lesson 2: Beating Heart
First Lessons with MakeCode & the
micro:bit
Objective
• Create a heart animation using LED patterns
on the micro:bit.
THINK
• Discuss animations (e.g., flipbooks).
• What makes a still image appear to move?
CREATE
• Use the tutorial: mbit.io/tutorial-beating-
heart
• Build as a class or individually.
EVALUATE
• Transfer the code to the micro:bit and observe
the animation.
EXTEND
• Try animating other shapes like a diamond or
square.
• Experiment with timing.
SHARE
• Show and explain the animations created.
• Preview next project: Emotion Badge.
EXERCISES
• 1. Create a pulsing square animation.
• 2. Add a delay to make it pulse slower.
• 3. Combine shapes into a sequence.
• 4. Create a surprise animation (not a heart).
• 5. Explain your animation to a peer.