Chuyển đến nội dung chính

Bài 1: Công cụ lập trình với BBC:Microbit

The Micro Bit (also referred to as BBC Micro Bit, stylized as micro:bit) is an open source hardware ARM-based embedded system designed by the BBC for use in computer education in the UK. It was first announced on the launch of BBC's Make It Digital campaign on 12 March 2015[4][5] with the intent of delivering 1 million devices to pupils in the UK. The final device design and features were unveiled on 6 July 2015[6] whereas actual delivery of devices, after some delay,[7] began in February 2016.[8] The device is described as half the size of a credit card[9] 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.[2]
The device inputs and outputs are through five ring connectors that form part of a larger 25-pin edge connector.

Hardware

The physical board measures 43 mm × 52 mm and, as of the start of final manufacturing,[10] 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.[2][3][11][12][13][14] 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.[15] NXP/Freescale MAG3110 – 3-axis magnetometer sensor via I²C-bus (to act as a compass and metal detector).[15] MicroUSB connector, battery connector, 25-pin edge connector.[2][13][15][16] Display consisting of 25 LEDs in a 5×5 array.[13] Three tactile pushbuttons (two for user, one for reset).[17] I/O includes three ring connectors (plus one power one ground) which accept crocodile clips or 4 mm banana plugs[17] as well as a 25-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.[15] 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.[3][9][13] Health and safety concerns, as well as cost, were given as reasons for the removal of the button battery from early designs.[18] The available hardware design documentation consist of only the schematic and BOM distributed under the Creative Commons By Attribution license, no PCB layout is available.[19][20] The compatible reference design by Micro:bit Educational Foundation, however, is fully documented.

Software


There are two official code editors on the micro:bit foundation web site: Microsoft MakeCode (formerly Microsoft PXT Editor) MicroPython.[21] Alongside these two editors are 3 legacy editors that are no longer updated: CodeKingdoms, using JavaScript;[22][23] Microsoft Block Editor, based on Blockly; Microsoft TouchDevelop; The Python programming experience on the Micro Bit is provided by MicroPython.[24][25] 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, this allows them 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.[16] Other editors for the BBC micro:bit include: codethemicrobit.com, a Blocks/JavaScript editor Mu, a Python editor Espruino, a JavaScript interpreter EduBlocks, a block editor for MicroPython Other programming languages for the BBC micro:bit: Free Pascal (instructions) Simulink (Simulink Coder Support Package for BBC micro:bit Board) Provides access to all peripherals like accelerometer, magnetometer, radio, LEDs, buttons and allows one-click code generation and execution on the micro:bit board with signal logging and parameter tuning from the Simulink block editor. C++ (programming language) (instructions) Forth (programming language) (instructions) Lisp (programming language) (instructions) Ada (programming language) (instructions) Operating systems which can be built for the BBC micro:bit: Zephyr - the Zephyr lightweight OS comes with the required parameters file to be able to run it on this board.

Bài đăng phổ biến từ blog này

BBC:Microbit là gì?

I've got my micro:bit. What do I need to get started? Get started. easy. Super easy to start but with endless possibilities, from elementary school to university! I've got my micro:bit. What do I need to get started? Get started. easy. Super easy to start but with endless possibilities, from elementary school to university!

PHP là gì?

PHP (viết tắt hồi quy: "P... Hypertext Preprocessor", "Personal Home Page") là một ngôn ngữ lập trình kịch bản hay một loại mã lệnh chủ yếu được dùng để phát triển các ứng dụng viết cho máy chủ, mã nguồn mở , dùng cho mục đích tổng quát. Nó rất thích hợp với web và có thể dễ dàng nhúng vào trang HTML . Do được tối ưu hóa cho các ứng dụng web , tốc độ nhanh, nhỏ gọn, cú pháp giống C và Java , dễ học và thời gian xây dựng sản phẩm tương đối ngắn hơn so với các ngôn ngữ khác nên PHP đã nhanh chóng trở thành một ngôn ngữ lập trình web phổ biến nhất thế giới.