This book presents a series of activities to teach the basics of computer networks. While you will not learn all aspects of computer networking, we hope that it will serve as a good starting point.
To network micro:bits, we use custom micro:bit radio to radio communication. When one hears the word radio, what comes to mind is the radio that blasts out tunes from your favourite radio broadcasting channel. But, a radio, or a radio transceiver (transmitter/receiver), is used in communications to generate and receive radio waves that contain information such as audio, video or digital data. And all micro:bits have built-in radios 1.
Writing this book, we have assumed no knowledge of radio communications or networking. However, we assume that you have written programs with a micro:bit. For example, we expect that you are familiar with variables, if-then-else statements, and loops. The activities in each chapter will provide ample opportunity to put this knowledge into practice.
This open book is licensed under a Creative Commons License (CC BY-SA). You can download Networking with the Micro:bit ebook for free in PDF format (13.6 MB).
Table of Contents
Communication over Wires
Wireless and Broadcast Communication
Game 1: Shakey Donkey
Unicast communication: One to One
Game 2: Rock, paper, scissors over the radio
Handling Errors: Retransmissions
Handling Errors: Acknowledgements
Game 3: Battleship over Radio