2016-03-28 16:35:51 -07:00
# Device
2016-03-25 16:47:20 -07:00
2017-03-08 05:01:11 -08:00
2017-09-07 13:42:08 -07:00
## ~ hint
2017-03-08 05:01:11 -08:00
**Looking to buy a micro:bit?** See the [list of resellers ](https://microbit.org/resellers ).
2017-09-07 13:42:08 -07:00
## ~
2017-03-08 05:01:11 -08:00
2016-07-14 12:09:40 -07:00
All the bits and pieces that make up the BBC micro:bit
2016-03-25 16:47:20 -07:00
![](/static/mb/device-0.png)
2017-03-08 05:01:11 -08:00
2017-09-07 13:42:08 -07:00
## LED Screen and Status LED
2016-03-25 16:47:20 -07:00
2016-04-13 08:27:45 -07:00
The red lights are [LEDs ](/device/screen ) (light emitting diodes) and form a 5 x 5 LED Screen.
2016-04-09 16:42:29 -04:00
They can be set to on/off and the brightness can be controlled.
2016-03-25 16:47:20 -07:00
2016-04-09 16:42:29 -04:00
The yellow light on the back of the micro:bit is the status LED.
It flashes yellow when the system wants to tell the user that something has happened.
2016-03-25 16:47:20 -07:00
2019-02-08 13:48:49 -08:00
See how the @boardname @ shows numbers, text, and displays images by watching this video about LEDs:
https://www.youtube.com/watch?v=qqBmvHD5bCw
2017-09-07 13:42:08 -07:00
## Buttons
2016-03-25 16:47:20 -07:00
2016-04-09 16:42:29 -04:00
Buttons A and B are a form of input. When you press a button, it completes an electrical circuit.
2016-06-13 14:53:08 -04:00
The micro:bit can detect either of its two buttons being pressed/released and be programmed
to act on these events.
2016-03-25 16:47:20 -07:00
2016-04-09 16:42:29 -04:00
Button R on the back of the micro:bit is a system button. It has different uses.
When you have downloaded and run your code onto your micro:bit, press Button R to restart and run your program from the beginning.
2016-03-25 16:47:20 -07:00
2019-02-08 13:48:49 -08:00
Find out how buttons provide input to the @boardname @ in this video:
https://www.youtube.com/watch?v=t_Qujjd_38o
2017-09-07 13:42:08 -07:00
## USB connection
2016-06-13 14:53:08 -04:00
2017-03-08 05:01:11 -08:00
When you plug in your micro:bit via [USB ](/device/usb ), it should appear as a ``MICROBIT` ` drive.
2016-04-09 16:42:29 -04:00
If you accidentally hold down the reset button as you’ re plugging in your micro:bit,
2017-03-08 05:01:11 -08:00
the micro:bit will appear as a MAINTENANCE drive instead of ``MICROBIT` `. This is known as maintenance mode.
2016-03-25 16:47:20 -07:00
2016-06-23 23:22:46 -07:00
To continue programming your micro:bit YOU MUST unplug your USB and reconnect it. Check that the drive now shows as ``MICROBIT` `.
2016-03-25 16:47:20 -07:00
2017-09-07 13:42:08 -07:00
## ~ hint
2017-03-08 05:01:11 -08:00
Use with caution. If you click on the drive while it shows as ``MAINTENANCE` `,
2016-04-09 16:42:29 -04:00
you can see which version of firmware you have running on your micro:bit.
Firmware on your micro:bit should be up-to-date already.
You can find the version of firmware in the 'version.txt' file on the micro:bit. Further information on the firmware can be found here:
2016-03-25 16:47:20 -07:00
https://developer.mbed.org/platforms/Microbit/#firmware
2017-09-07 13:42:08 -07:00
## ~
2017-03-08 05:01:11 -08:00
2017-09-07 13:42:08 -07:00
## Compass
2016-03-25 16:47:20 -07:00
2016-04-09 16:42:29 -04:00
The compass can detect magnetic fields such as the Earth’ s magnetic field.
As the micro:bit has this compass, it is possible to detect the direction it is moving in.
The micro:bit can detect where it is facing and movement in degrees.
This data can be used by the micro:bit in a program or be sent to another device.
2016-03-25 16:47:20 -07:00
2017-09-07 13:42:08 -07:00
## Accelerometer
2016-03-25 16:47:20 -07:00
2016-06-13 14:53:08 -04:00
There is an accelerometer on your micro:bit which detects changes in the micro:bit’ s speed.
2016-04-09 16:42:29 -04:00
It converts analogue information into digital form that can be used in micro:bit programs.
Output is in milli-g. The device will also detect a small number of standard actions e.g. shake, tilt and free-fall.
2016-03-25 16:47:20 -07:00
2019-02-08 13:48:49 -08:00
Watch this video to learn how the accelerometer works:
https://www.youtube.com/watch?v=byngcwjO51U
2017-09-07 13:42:08 -07:00
## Pins
2016-03-25 16:47:20 -07:00
2017-03-08 05:01:11 -08:00
The [pins ](/device/pins ) can be a form of electrical input or output.
There are labels for the input/output pins ``P0``, ``P1``, ``P2` `, which you can attach external sensors to such as thermometers or moisture detectors.
2016-03-25 16:47:20 -07:00
2017-09-07 13:42:08 -07:00
## Light level
2016-06-23 23:22:46 -07:00
The screen can also be used a light level sensor (it's a really cool trick).
2019-02-08 13:48:49 -08:00
Learn more about how light level is detected in this light sensor video:
https://www.youtube.com/watch?v=TKhCr-dQMBY
## Temperature
Temperatrue is measured on the @boardname @ by detecting how hot its physical CPU material is. Since it operates nearly as cool as the air around it, the temperature it measures for itself is a good approximation for the ambient temperature (the temperature near and around it).
See how the @boardname @ can detect hot or cold in this temperature sensing video:
https://www.youtube.com/watch?v=_T4N8O9xsMA
2017-09-07 13:42:08 -07:00
## Runtime
2017-03-08 05:01:11 -08:00
The micro:bit embodies many fundamental concepts in computer science. To learn more, read [the micro:bit - a reactive system ](/device/reactive ).
Sometimes, your micro:bit may display an error code. For more information, see:
* [the error codes ](/device/error-codes )
2017-09-07 13:42:08 -07:00
## How do I connect the micro:bit to my computer?
2016-03-25 16:47:20 -07:00
2016-04-09 16:42:29 -04:00
Your micro:bit can be connected to your computer via a micro USB cable.
Data can be sent and received between the micro:bit and the computer so programs
can be downloaded from Windows, Macs and Chromebooks onto the micro:bit via this USB data connection.
2017-09-07 13:42:08 -07:00
[Click here to read more information on how to run scripts on your micro:bit ](/device/usb ),
and [click here to read more about the error messages you might get ](/device/error-codes ).
2016-03-25 16:47:20 -07:00
2017-09-07 13:42:08 -07:00
## Powering your micro:bit
2016-03-25 16:47:20 -07:00
2016-06-13 14:53:08 -04:00
When your micro:bit is connected to your computer with the micro USB, it doesn’ t need another power source.
2016-04-09 16:42:29 -04:00
When your micro:bit isn’ t connected to your computer, tablet or mobile, you will need 2 x AAA 1.5 V batteries to power it.
2016-03-25 16:47:20 -07:00
2016-04-09 16:42:29 -04:00
The pins labelled 3V and GND are the power supply pins.
You can attach an external device such as a motor to these and power it using the battery or USB.
2016-03-25 16:47:20 -07:00
2017-09-07 13:42:08 -07:00
## Serial Communication
2016-04-15 16:36:31 -07:00
2018-11-20 13:26:26 -08:00
The micro:bit can send and receive data via [serial communication ](/device/serial ). The serial data can be transferred via USB or BLE.
2016-04-15 16:36:31 -07:00
2017-09-07 13:42:08 -07:00
## Bluetooth Low Energy (BLE) Antenna
2016-03-25 16:47:20 -07:00
2016-06-13 14:53:08 -04:00
You will see the label BLE ANTENNA on the back of your micro:bit. It is for a messaging service,
2016-04-09 16:42:29 -04:00
so that devices can talk to each other. The micro:bit is a peripheral
device which can talk to a central device like a smart phone or tablet that has Bluetooth Low Energy (BLE).
The micro:bit can send signals and receive signals from a central device so another BLE device can
control the micro:bit or the micro:bit can control another BLE device.
2016-03-25 16:47:20 -07:00
2017-09-07 13:42:08 -07:00
## Technical Information
2016-03-25 16:47:20 -07:00
2016-04-09 16:42:29 -04:00
The micro:bit has been designed to be a bare-board micro controller for use by children aged 11-12.
2018-03-05 15:31:09 -08:00
More information is available at the [Microbit Foundation web site ](https://microbit.org/guide/ ).