Home Blog Page 2

HC-SR04 Ultrasonic ranging module and Pyboard example in Micropython

In this example we connect a HC-SR04 Ultrasonic ranging module to a Pyboard Ultrasonic ranging module HC - SR04 provides 2cm - 400cm non-contact measurement function,...

Connecting an AD keypad to a Micro:bit with Micropython example

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

Micro:bit and Neopixel examples with Micropython

The neopixel module lets you use Neopixel (WS2812) individually addressable RGB LED strips with the Microbit. Note to use the neopixel module, you need...

Micro:bit RGB led examples in Micropython

Tri-color LEDs contain three different LED emitters in one case. Each emitter is connected to a separate lead so they can be controlled independently....

Micro:bit and light-dependent resistor example in Micropython

A photoresistor (or light-dependent resistor, LDR, or photocell) is a light-controlled variable resistor. The resistance of a photoresistor decreases with increasing incident light intensity;...

Micro:bit and dice simulator in Micropython

This is a fairly simple dice throwing game for the micro:bit, in this example you shake the micro:bit and a dice image will be...

Micro:bit and Neopixel examples in Micropython

The neopixel module lets you use Neopixel (WS2812) individually addressable RGB LED strips with the Microbit. Note to use the neopixel module, you need...

Playing Micro:bit built in tunes with Micropython

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

Micro:bit CPU temperature measurement in Micropython

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...

Micro:bit onboard compass example with micropython

The micro:bit also has a compass (magnetometer), it is a MAG3110 Overview The MAG3110 is a small, low-power digital 3D magnetic sensor with a wide dynamic...