The Micro:bit is a small computer, only 4 × 5 cm, made for learning to code. A
normal computer runs many programs on a screen. A microcontroller(ไมโครคอนโทรลเลอร์) runs one program and connects directly to
lights, buttons and sensors.
Why the BBC built it
In the 1980s the BBC Micro computer taught a whole generation of British students
to program. The BBC wanted to do that again, because it sees computing
(วิทยาการคำนวณ) as a basic skill for everyone.
So it worked with partner companies, and Lancaster University helped design a board that was
cheap and easy to learn on. About 1 million boards were given free to students in
Year 7, the same age as Thai M.1.
What can you make?
A dice that rolls when you shake it
Rock, paper, scissors with a friend
An electronic compass
A name badge, or a doll or bag with a picture that changes
Games between boards, using radio
The book’s idea is to start with something real you can hold, then move on to the
abstract ideas. You see your code do something in your hand.
The board runs on 3.3 V. USB gives 5 V, and the KL26Z chip lowers it to 3.3 V. A
battery pack gives about 3 V directly through the small JST socket. Connect one or the other.
✏️ Book correction
The book calls the pins “GPIB”. The usual word is GPIO, General Purpose
Input/Output, and GPIB is a different thing. The book also numbers two different pictures as
Fig 1-8.
The book was written in 2018 for V1. A newer V2 arrived in 2020.
The buttons, display and pins stay in the same places, so the labs in this course work on both.
To check yours, turn it over: V2 has a notched gold edge and a small microphone hole.
Teachers, programmers and students around the world share projects and lessons. Companies make
add-on boards, such as breadboard adapters, robot car kits and INEX’s AX-microBIT+ from Thailand,
which we use in the next chapter.
Start at microbit.org for
projects, lessons and technical details. Its menus have changed since the book, so look for the
same topics rather than the same button names.