Getting Started
Pre-coding:
Get hold of a Micro:bit Tinker Kit
Download the Mu editor

Get hold of a Micro:bit Tinker Kit
Download the Mu editor
Buzzer: Pin0
ADKeypad: Pin2
The ADKeypad returns an analog signal when its buttons are pressed. Each button pressed would return a unique integer value ranging from 0 (meaning 0V) to 1023 (meaning 3V).
However, it is not uncommon that each button would give a small range of values when pressed at different times and different ADKeypads might give different signals yet again. Hence, in this example code, we provide a range of possible values that your ADKeypad’s buttons are likely to return when pressed.
Feel free to test out the values that your ADKeypad might return when pressed and change the values in the example code 🙂
PIR Sensor: Pin0
LED: Pin1
Buzzer: Pin0
Potentiometer: Pin1
Crash Sensor: Pin0
LED: Pin8
OLED: I2C row (at the bottom of the BoB)
Buzzer: Pin0
Soil Moisture Sensor: Pin1
OLED: I2C row (at the bottom of the BoB)
Mix and match the component in the Tinker Kit to create your own projects.
For a more comprehensive explanation of MicroPython, visit the official documentation here!