Protection grid devices
These instructions outline how to make the 4 protection grid devices. Each is a very simple piece of code.
Key details
- Each uses radio group 2 and sends one of the following messages:
- one - turns off corner 1.
- two - turns off corner 2.
- three - turns off corner 3.
- four - turns off corner 4.
Bill of materials
- 4 x BBC micro:bits; a V1 micro:bit is fine.
- 4 x BBC micro:bit battery power box.
Either:
- Card or paper to mount each device and battery.
Or:
Click here for the completed code for device 1.
Click here for the completed code for device 2.
Click here for the completed code for device 3.
Click here for the completed code for device 4.
Here is an example of a device using a 3D printed housing and battery holder (housing and clip).
Explanation
Each of the devices used different buttons or gestures. The code for each device should be relatively straightforward.
Instructions
Each device is pretty simple.
Add the following code for device 1:
Add the following code for device 2:
Add the following code for device 3:
Add the following code for device 4:
Extensions
The protection grid devices are easy to customise or invent new types. Try these ideas:
- Play a sound when the device sends a message (perfect for V2 BBC micro:bits).
- Make a beeping sound whilst the protection grid is active (the grid will be sending out "disabled" messages).