Changing the World one Code at a Time

Micro bit Six Feet

In school we decided to make something that would tell you when you are within six feet of someone using the radio feature on the Micro Bit.

We started to make the code using the radio feature to detect distance. We had to test the distance as it could sometimes be inaccurate. We measured the distance using a ruler showing 6 feet and showing the number on the screen. We took the average of the numbers and decided that was the closest that we would get to six feet.

The Code
A sign showing that you are within the range of 6 feet of someone. (3! Is the older version. It now says “X”)

It was relatively easy to make the code, although measuring the distance was a bit challenging. We had to make sure it was accurate and getting the right readings. Next time I would probably take more measurements. I feel that the rest of the code is relatively simple and easy to understand to the person holding the Micro Bit.

Next Post

Leave a Reply

© 2024 SGQuestHackerStudent

Theme by Anders Norén

Skip to toolbar