Getting Started with Micro:bit: Value Sequences and Mini Games

Getting Started with Micro:bit: Value Sequences and Mini Games

Micro:bit, as the most popular microcontroller board in China today, has captured the hearts of many young people and teachers.

Its high-tech features have been fully explored by enthusiasts, and it truly lives up to the phrase “value for money”!

Getting Started with Micro:bit: Value Sequences and Mini Games

First, there is the online programming version provided by the official website, which greatly facilitates those who are new to programming;

Then, the offline programming version launched by Miao’s family solves the problem of programming due to network issues for enthusiasts (teachers)! Oh, I (Miao) am simply a genius, right?

For the offline version, click Getting Started with Micro:bit: Value Sequences and Mini Games【Micro:bit】Miao Technology now offers the makecode offline version.

Getting Started with Micro:bit: Value Sequences and Mini Games

In addition, I (Miao) have also created an advanced expansion version for enthusiasts—Robot:bit, which greatly expands the capabilities of Micro:bit!

Method:

  1. Enter makecode in the browser to open the webpage;

  2. Click “Add Package”;

  3. Copy the following link and hit enter to add;

https://github.com/KittenBot/pxt-robotbit

Getting Started with Micro:bit: Value Sequences and Mini Games

There are many dedicated teachers like Miao, bringing a wealth of tutorials and gameplay to enthusiasts!

Today’s tutorial from I Love Mushroom xmg includes a digital tutorial that utilizes Teacher Shao’s font library, and the expansion pack (as follows); copy—paste the link—to add the package to the software; let’s start today’s lesson with Xiao!

https://github.com/microbit-makecode-packages/WhaleySansFont

Getting Started with Micro:bit: Value Sequences and Mini Games

Sum of Elements in a Sequence

In language exams, it’s common to calculate the sum of multiple numbers in a sequence; this is a regular exam question (parents take note)!

Programming Logic:Set a sum variable and accumulate the sum of each element in the sequence!!

Programming Example

Getting Started with Micro:bit: Value Sequences and Mini Games

Getting Started with Micro:bit: Value Sequences and Mini Games

Class Summary

To find the sum of a sequence (Z), you should operate like this on the small bit;

First, set a base number (X)

Check the target sequence (Z)

If (Z) > (X), decrement by B (-1)

If (Z) < (X), increment by A (+1)

Finally, A + B gives you the sum of the sequence (Z).

For example, if you want to find the sum of natural numbers up to (13), based on the above program, when pressing A shows (11), you should continue pressing A until the number 13 appears, at which point you can press A + B to get the sum (13) of the sequence. Or wait until the number (14) appears, and then press button B (-1), you will get the same answer!

Some friends might say this is the same thing, right?

It’s over-complicating things; it’s too troublesome;

Actually, the answers are indeed the same;

However, while nurturing young people;

we should cultivate their problem-solving methods;

ignite their curiosity about new things;

train their mathematical thinking patterns;

so they can explore and discover more on their own;

and not just tell them the answers;

For them, that is the most important!

This tutorial ends here, welcome to learn and communicate with fellow enthusiasts. Don’t forget to like the tutorial if you enjoyed it~

Getting Started with Micro:bit: Value Sequences and Mini Games

Leave a Comment