A micro:bit is a microcontroller designed by BBC for the use of computer education. The micro:bit can be programmed to control it’s function which can make use of an accelerometer, a magnetometer, Bluetooth, a 25 LED display and two mechanical push-buttons. The function of the micro:bit is in the open hands of the user’s creativity which can include: games, tools, toys, science experiments, etc.
The micro:bit can be programmed using its official code editor which supports block coding (by Microsoft MakeCode), Python and JavaScript. The Micro:bit can also be programmed in other coding languages albeit, through unofficial code editors.
Coding is becoming a very valuable skill to know. Outside of teaching your students job-marketable skills, the act of coding teaches your students mathematical logic, creative exploration, how to understand systems, and a systemic procedure that exists in common computer programs (automator, video editing, animation, web design.)
The micro:bit can be used to expose a beginner level of coding to elementary and secondary students. One of the biggest barriers to teaching coding to a new audience is how complicated and detailed text-based programming languages can seem off first glance. The official micro:bit block code editor attempts to circumvent this barrier by representing functional code bits in terms of visual blocks. This makes coding seem more like joining puzzle pieces together rather than typing out complex functions.
- Go to microbit.org
- Click Let’s Code
- Select between the JavaScript Blocks Editor(more guidance, comes with the block editor, tutorials, and projects) or the Python Editor (less guidance) and click Let’s Code under your respective choice.
- Start building your code!
- Once you are finished building your code, download your code into the form of a .hex file, connect your micro:bit to your computer and upload the .hex file into the micro:bit’s drive
- Test it out, revise your code, and have fun!
micro:bit extras
Click above to view a sample of micro:bits’ tutorials and games section.
micro:bit step-by-step tutorials and games
If you are completely new to coding, and you would like a smooth introduction into how to use your micro:bit, I would suggest starting with micro:bit’s tutorials and sample games. In the official micro:bit MakeCode code editor, you can find micro:bit’s tutorials as well as pre-made sample games in the MakeCode dashboard. The sample games and tutorials will guide you through building a project step-by-step with an explanation of how the code is working.
Block coding to text coding
While block coding is a very effective way to expose students to coding, block coding is not used outside of educational contexts. We should approach block coding as a stepping stone towards learning text coding such as Java, JavaScript, Python etc. The official micro:bit MakeCode block editor provides a button that allows you to swap between JavaScript and block code. In conjunction with building a program with blocks, a student can flip back and forth between JavaScript and block code to see how the two translate into one another. Furthermore, once a student feels comfortable building with block code, introducing text coding to a student would seem much less daunting. The structural component of block coding remains in text code; the student would only need to learn the syntax of a text coding language to get a fair grasp of the language.
More resources
Check out our blog post about coding in classrooms!
Make a moveable robot using Dash & Dot Robots.
Introduce your students to the smart and social robot, the Ozobot.