Devices that talk
About this lesson: Devices that talk
In short
Two small boards can send messages by radio. A board only listens to its own group number. Press send, then change the sender's group until the receiver gets the number.

What you'll explore
- Radio groups: Tune in to the same group
- Two small boards can send messages by radio. A board only listens to its own group number.
- Sending text: Words travel as numbers
- Messages can be words. Each letter is sent as a number code, and the receiver turns the codes back into letters. Send each word and look at its codes.
- Responding: Test with different messages
- The receiver's program uses if, elif and else to choose a picture.
- Check yourself: Nothing arrives
- Ana's board sends on group 3. Ben's board listens on group 4. Ben's board never shows anything.
Also in this lesson
- Sender and receiver code
- Common mix-ups
- Torch messenger
Words to know
- microcontroller
- A small programmable board with inputs and outputs.
- input
- Something the device senses, such as a button press or a radio message.
- output
- Something the device does, such as lighting LEDs or sending a message.
- radio group
- A channel number; boards only hear messages on their own group.
- sender
- The device that transmits a message.
- receiver
- The device that picks up the message and responds.
Sources
- Micro:bit Educational Foundation: MicroPython radio documentation
- BBC Bitesize KS3 Computing: Physical computing