View on GitHub

code-club-2025-6

2025/6 Code Club resources/lessons for BBC Micro:Bit and Cutebot

Lesson 4: Radio (Teacher Notes)

This is the teacher guide for Lesson 4.
It includes lesson flow, strategies, and example code.


Learning Objectives


Suggested Lesson Flow

1. Introduction (5 mins)

2. Demonstration (5 mins)

Show how to:

Emphasize:

3. Student Activity (15–20 mins)

Students build:

Then test with a partner or group.

Optional challenges:

4. Wrap-Up (5 mins)

Ask reflective questions:


Common Issues & Fixes

Problem Solution
Micro:bits aren’t communicating Check both devices use the same radio group number.
Nothing shows on the screen Ensure show number is added inside the received event block.
Messages interfere with other groups Assign different group numbers per pair or table.

Demo Code Example (JavaScript)

```javascript radio.setGroup(1)

input.onButtonPressed(Button.A, function () { radio.sendNumber(1) })

input.onButtonPressed(Button.B, function () { radio.sendNumber(2) })

radio.onReceivedNumber(function (receivedNumber) { basic.showNumber(receivedNumber) })