1.. _bbc_microbit_v2:
2
3BBC MicroBit V2
4#################
5
6Overview
7********
8
9The Micro Bit (also referred to as BBC Micro Bit, stylized as micro:bit) is an
10ARM-based embedded system designed by the BBC for use in computer education in
11the UK.
12
13The board is 4 cm × 5 cm and has an ARM Cortex-M4F processor, accelerometer and
14magnetometer sensors, Bluetooth and USB connectivity, a display consisting of
1525 LEDs, a microphone, two programmable buttons, and can be powered by either
16USB or an external battery pack. The device inputs and outputs are through five
17ring connectors that are part of the 23-pin edge connector.
18
19.. figure:: img/bbc_microbit2.jpg
20     :align: center
21     :alt: BBC Micro Bit V2
22
23     BBC Micro Bit V2 (Credit: http://microbit.org/)
24
25More information about the board can be found at the `microbit website`_.
26
27Hardware
28********
29
30The micro:bit-v2 has the following physical features:
31
32* 25 individually-programmable LEDs
33* 2 programmable buttons
34* Microphone sensors
35* Physical connection pins
36* Light and temperature sensors
37* Motion sensors (accelerometer and compass)
38* Wireless Communication, via Radio and Bluetooth 5
39* USB interface
40
41
42Supported Features
43==================
44
45The bbc_microbit_v2 board configuration supports the following
46hardware features:
47
48+-----------+------------+----------------------+
49| Interface | Controller | Driver/Component     |
50+===========+============+======================+
51| NVIC      | on-chip    | nested vectored      |
52|           |            | interrupt controller |
53+-----------+------------+----------------------+
54| RTC       | on-chip    | system clock         |
55+-----------+------------+----------------------+
56| UART      | on-chip    | serial port          |
57+-----------+------------+----------------------+
58| GPIO      | on-chip    | gpio                 |
59+-----------+------------+----------------------+
60| FLASH     | on-chip    | flash                |
61+-----------+------------+----------------------+
62| RADIO     | on-chip    | Bluetooth            |
63+-----------+------------+----------------------+
64
65Programming and Debugging
66*************************
67
68Flashing
69========
70
71Build and flash applications as usual (see :ref:`build_an_application` and
72:ref:`application_run` for more details).
73
74Here is an example for the :ref:`hello_world` application.
75
76First, run your favorite terminal program to listen for output.
77
78.. code-block:: console
79
80   $ minicom -D <tty_device> -b 115200
81
82Replace :code:`<tty_device>` with the port where the micro:bit board
83can be found. For example, under Linux, :code:`/dev/ttyACM0`.
84
85Then build and flash the application in the usual way.
86
87.. zephyr-app-commands::
88   :zephyr-app: samples/hello_world
89   :board: bbc_microbit_v2
90   :goals: build flash
91
92
93References
94**********
95
96.. target-notes::
97
98.. _microbit website: http://www.microbit.org/
99