CAS Community   >   Resources   >  

Microbit KS2/KS3 PXT Resources

Resources aimed at children in KS2/KS3 to program BBC Micro:bits to communicate using PXT

David Franks

Created by David Franks
last edited Mar 02 2017 by David Franks

The BBC micro:bit is a wonderful little device. It is capable of teaching students how to program using a physical device that has a variety of different sensors to use as inputs, as well as being able to be controlled via buttons and has a LED array for output without having to connect it with other peripherals.

One of the particular strengths of the BBC micro:bit is its ease of interaction. We have successfully used the micro:bit with KS2, KS3 and KS4; so it has a low floor and a high ceiling of possible uses.

One difficulty that students have when first using the micro:bit is understanding how to program it TouchDevelop, which for most students is a new language, how to access this web-based language, how to save .hex files and how to load their .hex files back into the browser to be able to continue at a later date.

These resources should help you and your students to get two microbits to communicate with one another using PXT, a block version of JavaScript. The first method involves sending a number which the other interprets what to do with using if statements, this means you need a sender and receiver. The second method involves sending a string and displaying it on the second microbits screen, this means that two microbits with the same program can be both a sender and a receiver. The third method is using a microbit as a wireless controller for a microbit buggy.

The program tutorials are made up of three parts: A PDF of the guide, a Word Document for editing and the Hex file for you to import and run on a micro:bit/online simulated micro:bit. For programs requiring a different sender and receiver, both Hex files are attached.

We are working on creating a OneNote to share the resources and practices that have worked well for us. We would love teachers from other schools to use these resources too, or comment on them or share their own. Our intention is to try and create a OneNote where schools can collaborate with each other and share great ideas and lessons. Please have a look:

The progression we made with our students is graduating from TouchDevelop into PXT to allow students to get two microbits to communicate with one another, resources for the initial TouchDevelop topic is available on the CAS site here: They are also suitable for KS2/KS3/KS4

Resources Required:

  • BBC micro:bit
  • Micro USB Cable
  • Internet Connection
  • Computer with USB port
  • A battery pack with a JRT Connector (if moving away from the PC USB power) - not necessary
  • The PXT Buggy uses the Line Following Buggy made by [Kitronik]( but we didn't add on the line-sensor module at the bottom of it when building them.
Downloaded 857 times.


This resource has attached files: to access these files, please tick the box below to assent to the license terms
License: The resources on CAS website are under Creative Commons Attribution-Share Alike 3.0 licence unless otherwise specified by the resource creators.

You must confirm that you have read and agree the licence's ToS before you can download the attachments of this resource.

I have read the licence agreement of this resource and agree to abide by its terms and conditions.

Feedback and Comments

Available when logged in (join via the front page, for free):
  • View 0 comments on this resource.
  • View resource history, links to related resources.
  • Leave feedback for the author(s), or help by editing the resource.