Neill's micro:bit Resources

Challenges, demos, and discussion.

Adding sound and remote control to micro:bit neopixelracer: MicroPython and radio-messaging for the bbc micro:bit

This is a proposal for a Education Summit workshop for young coders (Saturday, 50 mins).

Proposal details

What is your session about?

In this workshop we will add sound effects, music, and remote-controllers to an existing, exciting two-player neopixel light-racing game! We’ll do this by using radio messaging between micro:bits, and we’ll code this in MicroPython (It looks just like Python 3 code).

We’ll make and customise the controllers ourselves.

If you’re looking for cool project ideas for your micro:bit, you should definitely check this out!

Note: to get the most out of this workshop it is best if you’ve done a little bit of Python (or MicroPython) before. However, you do NOT need any experience with the micro:bit!

Note: We won’t be programming the actual NeoPixels in this workshop, but we have made the code for that part available for anyone to reuse and learn from.

Is there anything else we should know about your proposal? The workshop will be led by two young coders, F and N. Neill (the mentor) hopes to be silent support during delivery but may facilitate in discussions and time-keeping as necessary.

We recommend the maximum number of participants for this workshop is 12.

A version of this workshop for educators will also be submitted. We feel strongly that it will be very useful for them.

Examples will also be on hand of a few custom algorithmically-generated sound effects to inspire any advanced programmers.

An early (MakeCode) version of this activity was run very successfully at the London Science Museum’s first CoderDojo by our group, and at Camden CLC’s after-school “Hack Club” (in this workshop form). We found that young participants loved being able to contribute to a game that the rest of the group really enjoys playing, even if they don’t yet have the skill to code the larger whole by themselves.

Can you give us an outline of your proposed session?

@-05mins: Welcome the arriving workshop participants and learn about their programming experience in python and in micro:bit (if any). Learn their names! Assure them, if they’re nervous, that the workshop isn’t highly technical, but is highly fun.

[START]

@00mins: Invite people to play the game (in its core form - without sound and without remote controllers). Let everyone have a turn. YES, this is before any introductions have been made!

@03mins: Ask the audience to identify problems with the game, and areas for improvement. Two things inevitably come up: its lack of sound, and the fact that the crocodile clips can come loose when two players excitedly mash the micro:bit’s buttons.

@04mins: Ask the audience about sound effects in other racing games they know: what are the sounds during the starting lights of Mario Kart? What other sound effects we might try to add to the game? This develops a rough spec for the sound effect part of the workshop.

@05mins: Confirm with the audience that they agree it would be easier to play if you had remote controls like on a video game console. Ask how many buttons each controller would need. This develops a rough spec the remote controller “make” part of the workshop.

@06mins: Finally, welcome everyone to the workshop and introduce the presenters. Show off micro:bit badges that speak our names and send messages! Say what we’ll be doing: adding sound effects and remote controllers to the game and playing it at the end! Remember to set expectations: it’s a short workshop so most people will just get one or the other done, of their choice, but not both.

@07mins: find out everyone’s programming and micro:bit experience - know your audience.

@08mins: everyone get a micro:bit and start coding through the following tasks:

@20mins: SPLIT the participants into two groups: sound effects and controller-makers. LET PEOPLE CHOOSE their activity (it does not matter if one group is much larger than the other).

THE SOUND EFFECT GROUP

sfx@21mins: Sound effect makers meet the music API:

sfx@30mins: start designing and coding YOUR sound effects.

sfx@40mins: final touches

THE REMOTE-CONTROLLER ‘MAKE’ GROUP

rc@21mins: remote-controller group make simplest controller

rc@30mins: Make a better controller from kitchen-foil, cardboard, blutack, and croc clips

rc@40mins:

Decorate and customise your controller with felt-pen, stickers, etc, so that it is unique. Get it photographed if you want it on twitter!

ALL

@45mins: ALL REGROUP to play the game together!

@48mins: discussion

Reflection, discussion, and ideas for further work:

@50mins: Wrap up

@51mins: remind those still playing the game not to forget to go to their next workshop :)

What are your equipment and other requirements?

Computers with which to program the micro:bits. Ideally with Mu installed and tested.

USB leads and battery packs for the supplied micro:bits.

A workspace which is not too noisy to hear our young coders.