Hot and Cold *

by rsstudent1991 in Teachers > 9

108 Views, 0 Favorites, 0 Comments

Hot and Cold *

Screen Shot 2023-10-20 at 5.54.45 PM.png
PXL_20231017_051145406.jpg
PXL_20231017_051154932.jpg

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

PXL_20231017_051154932.jpg
PXL_20231017_051145406.jpg
PXL_20231021_002612438.jpg

Microbit (2) batteries(4) usb cable(1)

Program the Beacon Micro:bit

Hex beacon.jpg
  1. Open the Mu Editor or MakeCode Editor on your computer.
  2. Connect one of the Micro:bit boards to your computer using a USB cable.
  3. In the editor, create a new project for the beacon Micro:bit.
  4. 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


Program the Hunter Micro:bit

Hex hunter~2.jpg
  1. Open a new project in the Mu Editor or MakeCode Editor.
  2. Connect the second Micro:bit to your computer using a USB cable.
  3. 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.


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