Micro:bit compass example in micropython

The micro:bit also has a compass (magnetometer) The compass has to be calibrated before it can give accurate readings. Calibration involves moving a dot to...

Microbit basic serial port example

In this example we will create a VB.net program that will read data from the serial port, in this case a Microbit connected to...

Microbit built in tunes

For the purposes of education and entertainment, the module contains several example tunes that are expressed as Python lists. They can be used like...

force sensitive resistor example

A force-sensing resistor is a material whose resistance changes when a force or pressure is applied. Force-sensing resistors consist of a conductive polymer, which changes...

Microbit and an AD keypad

I purchased this module as part of a microcontroller kit, its an interesting little module as it has 16 buttons but with only 1 I/O...

Microbit temperature in python

The BBC micro:bit does not have a dedicated temperature sensor. Instead, the temperature provided is actually the temperature of the silicon die on the...

Microbit tune selector example

This example melds together our Microbit and an AD keypad and our Microbit built in tunes and allows you to play a different tune based on a key...

Image examples for the Micro:bit using Micropython

Here we show you how to create a custom image on the led matrix, we use the Mu editor - http://codewith.mu/ from microbit import * im =...

Micro:bit accelerometer Micropython example

The micro:bit has an accelerometer on board, you can see this in the picture below When you flash the program, you should see a reading of...

Random image on the Micro:bit using Micropython

The Image class also has the following built-in instances of itself included as its attributes (the attribute names indicate what the image represents). In...