Things used in this project

Hardware components:
BBC micro:bit board
5V power supply (generic)
Like a phone charger.
Adafruit industries ada592 image 75px
USB-A to Micro-USB Cable
White paper
Diffuse the LEDs by taping white paper over them.
Software apps and online services:
Mu editor
Editor for MicroPython.


Put this code on both micro:bits using the Mu editor.
# A micro:bit Firefly
# By Nicholas H.Tollervey. Released to the public domain. Modded by Alex Glow to display random emotions on your bike.
import radio
import random
from microbit import display, Image, button_a, sleep

faces = [Image.HAPPY, Image.SAD, Image.CONFUSED, Image.ANGRY, Image.ASLEEP, Image.SURPRISED, Image.SILLY, Image.FABULOUS, Image.MEH, Image.HEART, Image.SKULL ]

# The radio won't work unless it's switched on.

# Event loop.
while True:
    # Button A sends a "flash" message.
    if button_a.is_pressed():
        radio.send('flash')  # a-ha
    # Read any incoming messages.
    incoming = radio.receive()
    if incoming == 'flash':  # of course this does not actually display the same face as your "signal" micro:bit


Photo on 7 5 17 at 5 06 pm 7 05huowsyxv
Alex Glow
65 projects • 560 followers
The Hackster team's resident Hardware Nerd. I like robots, music, EEG, wearables, and languages. FIRST Robotics kid.


Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback


Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog