Introduction: Hot and Cold *
My project is named Hot and cold. I programed two microbits. One microbit is the a beacon" Heart" that sends a signal on the same radio set group as the second microbit. The second microbit or the "hunter" is the finder.
Supplies
Microbit (2) batteries(4) usb cable(1)
Step 1: Program the Beacon Micro:bit
- Open the Mu Editor or MakeCode Editor on your computer.
- Connect one of the Micro:bit boards to your computer using a USB cable.
- In the editor, create a new project for the beacon Micro:bit.
- Write or copy the code for the beacon Micro:bit. The code should send a signal to the other Micro:bit on the same radio group and display a heart icon that appears to grow
Step 2: Program the Hunter Micro:bit
- Open a new project in the Mu Editor or MakeCode Editor.
- Connect the second Micro:bit to your computer using a USB cable.
- Write or copy the code for the hunter Micro:bit. The code should receive the signal from the beacon and display different icons (fire, hot, heart, little heart, skull) based on the proximity to the beacon.
Step 3: Test
After programming both Micro:bits, turn them on. The beacon Micro:bit should start sending signals, and the hunter Micro:bit should display different icons depending on the proximity to the beacon. You can adjust the distance thresholds in the code to fine-tune the behavior.
Video link: https://drive.google.com/file/d/17Zeu7cNXVOzr60qsDDsQG9d8flpsWXq_/view?usp=sharing