Micro:bit

From ElecFreaks
Jump to: navigation, search

Introduction:

The Micro Bit (also referred to as BBC Micro Bit, stylized as micro:bit) is an ARM-based embedded system designed by the BBC for use in computer education in the UK. The board is 4 cm × 5 cm and has an ARM Cortex-M0 processor, accelerometer and magnetometer sensors, Bluetooth and USB connectivity, a display consisting of 25 LEDs, two programmable buttons, and can be powered by either USB or an external battery pack.The device inputs and outputs are through five ring connectors that are part of the 23-pin edge connector.

Function

hardware

B9.png
The size of the device is described as half the size of a credit card, measuring 43 mm × 52 mm and, as of the start of final manufacturing,includes:
• Nordic nRF51822 – 16 MHz 32-bit ARM Cortex-M0 microcontroller, 256 KB flash memory, 16 KB static ram, 2.4 GHz Bluetooth low energy wireless networking. The ARM core has the capability to switch between 16 MHz or 32.768 kHz.
• NXP/Freescale KL26Z – 48 MHz ARM Cortex-M0+ core microcontroller, that includes a full-speed USB 2.0 On-The-Go (OTG) controller, used as a communication interface between USB and main Nordic microcontroller. This device also performs the voltage regulation from the USB supply (4.5-5.25V) down to the nominal 3.3 volts used by the rest of the PCB. When running on batteries this regulator is not used.
• NXP/Freescale MMA8652 – 3-axis accelerometer sensor via I²C-bus.
• NXP/Freescale MAG3110 – 3-axis magnetometer sensor via I²C-bus (to act as a compass and metal detector).
• MicroUSB connector, battery connector, 23-pin edge connector.
• Display consisting of 25 LEDs in a 5×5 array.
• Three tactile pushbuttons (two for user, one for reset).
I/O includes three ring connectors (plus one power one ground) which accept crocodile clips or 4 mm banana plugs as well as a 23-pin edge connector with two or three PWM outputs, six to 17 GPIO pins (depending on configuration), six analog inputs, serial I/O, SPI, and I²C. Unlike early prototypes, which had an integral battery, an external battery pack (AAA batteries) can be used to power the device as a standalone or wearable product. Health and safety concerns, as well as cost, were given as reasons for the removal of the button battery from early designs.


software

There are four official code editors in the BBC micro:bit web site:
• CodeKingdoms, using JavaScript;
• Microsoft Block Editor, based on Blockly;
• Microsoft TouchDevelop;
• MicroPython.
The Python programming experience on the Micro Bit is provided by MicroPython.Users are able to write Python scripts in the Micro Bit web editor which are then combined with the MicroPython firmware and uploaded to the device. Users can also access the MicroPython REPL running directly on the device via the USB serial connection, and this allows to interact directly with the Micro Bit's peripherals.
The Micro Bit was created using the ARM mbed development kits. The run-time system and programming interface utilize the mbed cloud compiler service to compile the user's code. The compiled code is then flashed onto the device using USB or Bluetooth connections. The device will appear as a USB drive when connected to a computer and code can be flashed using drag and drop.
Other editors for the BBC micro:bit include:
• codethemicrobit.com, a Blocks/JavaScript editor
• Mu, a Python editor
• Espruino, a JavaScript interpreter
• Microsoft PXT Editor Microsofts new micro:bit Programming Experience Toolkit (PXT) editor provides a programming experience supporting both a block-based editor and JavaScript, along with features like peer-to-peer radio. Other programming language for the BBC micro:bit:
• Free Pascal (instructions)

Application Program Creation

Children Programming Education
Robotic controller
Game Controller
Alarming System
Bluetooth Communication System

Theoretical Layout


download:https://www.elecfreaks.com/wp-content/uploads/2017/09/SCH_BBC-Microbit_V1.3B.pdf

B3.png B4.png B5.png B6.png B7.png B8.png


Footers Definition and Dimension

B1.png B2.png