BBC micro:bit V2 simulator, matrix and all
Mokxi models the micro:bit V2 on our own Cortex-M4 core, running the nRF52833 at 64 MHz. GPIO and GPIOTE, three TIMERs, RTC0, UARTE0, CLOCK, NVMC and FICR at their real addresses, the 5x5 LED matrix scanned the way the hardware scans it, and the two buttons and the speaker on the pads they really sit on.
- 7peripheral areas modeled
- 3projects ready to run
- Real timeon your own machine
What is modeled
Taken from the board's own contract document and put in plain words, with what is missing listed underneath.
Not in the model
- The radio. There is no 2.4 GHz anything in the model, so no Bluetooth and no micro:bit to micro:bit messages.
- The sensors: the accelerometer, the compass and the microphone. The touch logo is not wired either.
- SAADC, PWM and PPI. analogRead and hardware PWM have no peripheral behind them yet; tone() is a square wave that the TIMER1 compare interrupt toggles.
- MakeCode and MicroPython .hex files. The firmware runtime here is ours, and it is Arduino-shaped.
Open one and press Run
Each of these opens in the editor exactly as it is drawn here.
Every built-in project on the BBC micro:bit V2
Each has its own page with the circuit running, the code and a parts list.
Arduino libraries that compile as they are
Paste a tutorial that includes one of these and it builds: each is written for Mokxi, on its own drivers, under the name the tutorials use. For any other library the build names the Mokxi header that does the same job.
Questions
Is it free?
Yes. Every board and every part is on the free plan, with no account needed.
Which micro:bit?
The V2, on the nRF52833. The V1 is a different chip and is not modeled.
Does it run MakeCode or MicroPython?
No. Those ship as .hex images built against the vendor stack; the runtime here is ours and it is Arduino-shaped. Write the sketch in C++ and press Run.
Does it simulate the radio or the accelerometer?
No. There is no radio and no sensor in the model, and there is no pretense of one.
Why is the board beside the breadboard rather than in it?
A micro:bit has no header to push in. The five big rings sit along its bottom edge, and on a desk it is wired with crocodile clips, so here it stands over the board and reaches it with jumpers.
The other boards
Every one of these runs today, and every one is free.
Looking for the shorter introduction? See the micro:bit simulator page.
Try it on your own firmware
What you build here runs on the board on your desk, unchanged. Nothing to install and no account needed.