/robot

My micro:bit + MiniBit robot

Primary LanguageTypeScript

robot

My robot based on a micro:bit and a MiniBit.

Setup

  1. Get a micro:bit: https://microbit.org.
  2. Get a MiniBit: https://4tronix.co.uk/blog/?p=2068.
  3. Get a type A male to micro type B male USB cable.
  4. Get 3 AA Alkaline batteries. The micro:bit cannot power the MiniBit's wheels or LEDs.
  5. Pair the micro:bit with your computer via Bluetooth:
  6. Hold down the A, B, and reset buttons simultaneously.
  7. Release the reset button but still hold the A and B buttons.
  8. The LED matrix should fill and you should see the Bluetooth logo.
  9. Go into your computer's Bluetooth settings and pair your computer with your micro:bit.
  10. In a MakeCode editor (https://makecode.microbit.org/):
  11. Copy-paste the content of this repository's main.ts/.
  12. In settings, turn on "No Pairing Required: Anyone can connect via Bluetooth".
  13. Flash the .hex file.

If you want to be able to control the robot from your phone, get the app microbitBLE by ayama: https://apps.apple.com/us/app/microbitble/id1635024315. It's one of the few apps that I was consistently able to connect to my micro:bit with.

Troubleshooting

Use a low-level language like Zig, C/C++, or Rust?

Nope, this time in this project I'm saving myself from all this headache and just doing it the easy way and having fun by doing it like everyone else: Microsoft MakeCode with blocks, JavaScript/TypeScript, or Python (TypeScript for this project).

The micro:bit runtime (https://lancaster-university.github.io/microbit-docs/) similarly comes with its own difficulties.