Introduction: Micro:bit Fencing Control

About: I am a full stack developer and project manager. Coding/robotics teacher for primary school children (3rd-5th grade). On this channel I will try to publish all the works done with my students and beyond.

Our school collaborates with a fencing team. My students, and not only that, often complain because the cable limits them in their movements.

What better opportunity to create a control with Micro:bit!

The idea is to use two Micro:bit that communicate with each other via radio and assign the point count.

Supplies

Step 1:

The steps are very simple:

It is much easier if you plug the banana plugs into the sword and take the distance measurement

The PCB breadboard must be cut to size Micro:Bit in width and about half of the height, or in any case as long as the BANANA PLUG.

Weld two BANANA plugs and two wires on the BANANA plug.

Step 2:

Mount Mi-Power on Microbit, and connect the wires to PIN 1 and GND.

PIN 0 will be used for sounds.

It is possible to fix the MI-Power to the PCB with two spacers.

Step 3:

This is the link to the editor with the code.

https://makecode.microbit.org/_d8rX9qMpJbEz