Tutorial 1: Addition Quiz Machine
Introduction: This tutorial comes from the Miao Family Forum, a loyal fan of I Love Mushroom xmg tutorials; without further ado, let’s raise a toast!We are just good friends!
[I Love Mushroom xmg said]When my son was in first grade, the teacher assigned 20 questions as homework every day; I often worried about creating the questions. At that time, there were no mental arithmetic question cards, so I wrote a program in VB to print many sheets, one for each day. While learning about the bit, I thought about implementing this function again. Children would definitely be interested in solving problems and improving their mental arithmetic skills while playing. Without further ado, let’s experiment together! Program Idea: Define two variables to store the two addends; pressing the A button randomly generates a number within 10, and pressing B also randomly generates a number; both are displayed.
When children see the numbers, they can calculate and then press A+B simultaneously to display the result, checking their answers; they can also connect and display the entire equation in text format.
[The Cat Has Something to Say] After reading this tutorial, cool dads and cute moms feel that this method is great for improving children’s problem-solving abilities while playing. It not only enhances children’s arithmetic skills but also stimulates their curiosity about technology. This is a great start for enlightening children’s education. Thumbs up!
Tutorial 2: How to Display Decimals
[Miao Family CC Miao said] A few days ago, while browsing the small bit group, I saw a screenshot shared by the teacher in the group. Finally, I solved the problem that had been bothering me for a long time—How to display decimals on Micro:bit, I am very grateful for the teacher’s sharing in the group, so I’ll make a record here! Because information in QQ groups can easily get buried, it’s not easy for everyone to check, so I upload it for everyone as a learning reference! No need to thank me, after all, Miao Family CC Miao is a diligent cat!
In the MakeCode programming environment, decimals are not supported, but this does not stop these learning and creative small bit enthusiasts. They found another way to solve this problem—let’s first do a small experiment to display π=3.141.
Program Idea:
Step 1: As shown in the picture, drag the A and B button modules out; select “Basic—Display Number Module“; choose: “Number (or More under Number)—Number String” to set it up. Now, when you press A, it displays 3, and when you press B, it displays 141.
Step 2: Set up when A+B is pressed; at this time, we need to use a combined string. You can complete this part through Color, or “Advanced—Text—Combine Strings“. Now, when you click A+B, it will display 3.141!
For those who are new to small bit, here’s a small detail to explain: As shown in the picture, there are only two combined strings here, but today’s tutorial requires three. What should we do? I made a GIF for everyone; those who don’t understand can go check it out!
Alright~ today’s tutorial ends happily. Everyone go enjoy the joy of learning programming!
[The Cat Has Something to Say] If you have good tutorials, please leave your exquisite tutorials on the Miao Family Forum~ As a thank you, the Miao Family store manager has beautiful gifts to give away! See you at the forum!