Microbit With Arduino IDE


In this tutorial today, we would like to see how to program the micro:bit using Arduino ide. There are many other software which can be used to program the micro:bit, but today we would like to use the Arduino ide. Below is the video which demonstrate the steps before can use the Arduino ide to program the micro:bit


Hardware Preparation

This is the list of items used in the video.


No circuit is required since we will use the onboard micro:bit led array


For the software we will need to install the Arduino IDE


The code for this tutorial is as shown below

const int COL1 = 1;
const int LED = 9;

void setup() {
  Serial.println("microbit is ready");

  pinMode(COL1, OUTPUT);
  digitalWrite(COL1, LOW);

  pinMode(LED, OUTPUT);

void loop() {

  digitalWrite(LED, HIGH);
  digitalWrite(LED, LOW);


  1. The first step we will need to do is to install the mBed serial driver. This driver can be downloaded from here.

2021 12 21 16 29 40

The installation process is straight forward. Just follow the steps.

2. The next step is to install the Arduino Ide. If you already installed it, you may skip this step. If not you may click here to download the software. The installation process is easy to follow. Just follow the instructions.

3. The third step is to add the nRF5 board to the Arduino ide. To do this, we need to add the following “https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json” to the additional board manager. This is shown in the figure below

2021 12 21 17 02 58

4. The next step is to download the board. For this go to the Tools –> Board –> Board Manager

2021 12 21 17 07 15

That are crucial step, before we will able to program the micro:bit using Arduino ide. Now we are ready to program our micro:bit.

5. Now go to Tools –> and choose BBC Microbit. For the softdevice choose “S110” and for the port, choose the corresponding port.

2021 12 21 17 21 50

2021 12 21 17 29 53
The setting of the board should look something like this. Next copy the code shown above, compile and upload it.

Thank You


  • https://github.com/sandeepmistry/arduino-nRF5#installing

Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.

Please be reminded, this tutorial is prepared for you to try and learn.
You are encouraged to improve the code for a better application.

Leave a Comment

Your email address will not be published.

Share this Tutorial

Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest
Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest

Latest Tutorial

Microbit With Arduino IDE
Display Image on the graphic LCD using Maker Nano RP2040 and CircuitPython
Displaying DHT22 Sensor Data at Thingspeak with LoRaWAN Network
Multicolor 3D Printing with Ender 3
Sending Data From Node to The Things Stack
Tutorials of Cytron Technologies Scroll to Top