A collection of demos for the Micro:bit
Filename(s)
Description
sender & receiver
Send a word to another micro:bit that displays the word
compass
Read compass heading and display N,S,E,W
displayWords
Display string on shake and button press
sortinghat
Press button to play Harry Potter theme song and display random house name
lightSensor
Display current light level as a graph
passTheParcel
Press button, after a random period of time a song is played and heart icon displayed
stepCounter
Display number of steps taken
temperature
Display current temperature
throwingSpeed
Display accelerometer reading as a bar graph
ledOn
Display smiley face. Toggle nose with button press
magic8ball
Ask a question and shake for the answer
balancingAct
Stop a LED from falling off the matrix while moving around a room
blockDodge
Avoid falling LED blocks by moving your player across the matrix with the A & B buttons. For every block avoided, player's score increases
mi:node IoT starter kit demos
Filename
Sensor/Module
Connectors
Description
fan
Mini fan module, motor & fan
A0, A1 or A2
Control fan speed with button press
lightsensor
Light sensor
A0, A1 or A2
Display light level from 5 to 1 (dull to bright)
pir-sensor
PIR (Passive infrared) sensor
D12, D13, D14 or D15
Display tick icon when movement is detected
relay
Relay module
D12, D13, D14 or D15
Press button to toggle the relay. Displays light and makes 'clicking' sound
rgb-led
RGB LED module
D12, D13, D14 or D15
Press buttons to toggle LED between red and blue
rotarysensor
Rotary sensor
A0, A1 or A2
Display smiley face when potentiometer is turned
soundsensor
Sound sensor
A0, A1 or A2
Display exclamation mark when the sound level changes
speaker
Speaker module
A0
Play music beats
switch
Switch module
D12, D13, D14 or D15
Toggle switch to display 'open' or 'closed'
temp-and-humidity
Temperature & humidity sensor
D12, D13, D14 or D15
Press button A to display current temperature. Press button B to display current humidity