CAS Community   >   Resources   >  

Screen_shot_2016-02-13_at_18.46.12
Text entry for the BBC Micro:bit

One approach to getting text onto a micro:bit, using Morse code...

Miles Berry

Created by Miles Berry
last edited Feb 14 2016 by Miles Berry


More a proof of concept than anything, but here’s one approach to entering text onto a BBC micro:bit using nothing more than Morse code.

Key in Morse using button A. To get the text displayed, hold button B and tap A.

At the moment, this only does one word at a time, and the timings are set very slow, as I’m not particularly good at Morse code! Video demo of this on YouTube. There’s plenty of scope for improvement…

The was inspired by, and borrows code from, the Raspberry Pi Morse code worksheet.

It was built using ntoll’s Mu editor for BBC micro:bit micropython.

The repo on github includes a refactored, commented version of the code by Nicholas Tollervey and a network version, allowing a couple of micro:bits to send and receive Morse via wires between pins 1 and 2: see this video.

Level: Intermediate

Duration: A few hours from scratch?

Teaches: input, encoding, binary representations, Python, BBC micro:bit

Downloaded 154 times.

Download

This resource has attached files: to access these files, please tick the box below to assent to the license terms
License: The resources on CAS website are under Creative Commons Attribution-Share Alike 3.0 licence unless otherwise specified by the resource creators.

You must confirm that you have read and agree the licence's ToS before you can download the attachments of this resource.

I have read the licence agreement of this resource and agree to abide by its terms and conditions.

Feedback and Comments


Available when logged in (join via the front page, for free):
  • View 0 comments on this resource.
  • View resource history, links to related resources.
  • Leave feedback for the author(s), or help by editing the resource.
Categories: