How it works:

The accelerometer on the microbit gives a 3D direction, so you can use it to type on a virtual keyboard (like typing with a mouse when you don't have a keyboard)! I was trying to build a calculator but I found immediately that it can do much more: literally accepting and running Python codes in real time inside it. For presentation purpose, I use radio transmissions to sync its display with another microbit so that I only need to show the display microbit under the projector.

Different directions represent different letters, numbers and symbols. Pressing Button A confirms a character input. Pressing Button B runs the codes.

Challenges:

The accelerometer is quite sensitive so I had to redesign a keyboard layout to improve input speed and accuracy.

Enjoy coding in Python!

It's pure coding and everyone can download the codes to their microbits, like a mobile app. Isn't it cool?

Built With

Share this project:

Updates