2021年1月17日 星期日

micro:bit

項目v1.5v2.0
大小4cm x 5cm
LOGO紅色鍍銅,電容式觸摸感應
麥克風MEMS 麥克風含指示燈
LED 矩陣v1.5v2.0
按鍵左右
邊緣連接器無缺口有缺口
天線
藍牙
2.4 Ghz Micro:bit Radio/BLE 4.0鍍銅
2.4 Ghz Micro:bit Radio/BLE 5.0
電源指示燈
USBmicro USB、動作指示燈
重置按鍵重置重置、關機、睡眠
電池連接器v1.5v2.0
主處理器nRF51822 256KB Flash 16KB RAMnRF52833 512KB Flash 128KB RAM
喇叭
USB 處理器NXP KL26Z 16KB RAMNXP KL27Z 32KB RAM
動作感應器ST LSM 303
I2C和動作感應器共用專屬
供電30mA 周邊 90mA90mA 周邊 200mA?190mA?
程式C++, MakeCode, Python, Scratch, Arduino 環境
  1. http://www.circuspi.com/index.php/2020/11/02/bbc-microbit-v2/
  2. https://tech.microbit.org/hardware
  3. https://tech.microbit.org/hardware/schematic 

LOGO

麥克風

LED 矩陣

5x5 紅色 LED 矩陣透過軟體高速多工驅動,在 V1 用 9x3 GPIO 實作,其中 Row 2 Col 8 和 Row 2 Col 9 沒用到。在 V2 板子改用 5x5 matrix GPIO 實作,5 row 正極到 5 col 負極,5 col 訊號有通道邊緣連接器,要作為 GPIO 時需要關閉顯示功能。

LED 矩陣亦可反過來用來感應紅光亮度,不同板子會有不同敏感度。

按鍵

邊緣連接器

有 25 根接腳包括 19 訊號和 6 電源,其中有 5 個是可接 4mm banana plug 或 crocodile clip 的  ring,剩下是 1.27mm 間隔的 strip。ring 中有 3 個可以作為數位或類比的輸入或輸出,剩下是 3V 和 GND。

https://tech.microbit.org/hardware/edgeconnector

  • 4 dedicated GPIO, PWM, I2C, SPI and ext.power.

擴充

RTC

  • SparkFun gator:RTC:Micro Crystal I²C RV-3028 RTC (40-60nA @ 3V),內建 3V 充電 lithium coin cell battery,外部手動事件輸入按鈕。
  • SparkFun RV-1805 (Qwiic):supercapacitor
  • SparkFun RV-8803 (Qwiic):CR1225、temperature compensated crystal providing extremely precise time-keeping, low power consumption, and time stamp event input along with a user-programmable timing offset value. The RV-8803 also has an improved I2C interface compared to the RV-1805 RTC that removes the need to sequence commands/writes to the device. Best of all, the temperature compensation comes factory calibrated.
  • SparkFun DS1307 CR1225
  • SparkFun DS3234 (SPI)

天線、藍牙

micro:bit Bluetooth Profile

電源指示燈

USB

重置按鍵

長按可關閉電源,或者轉為睡眠模式。

同時接到 nRF52 和 KL27 處理器。

電池連接器

主處理器

Nordic nRF52833 64 MHz ARM Cortex-M4 with FPU, 512KB Flash, 128KB RAM

執行 USB 處理器載入的單一 binary image,包括藍牙 SoftDevice 軟體,並提供邊緣連接器所有 GPIO。

nRF52 在 P0.09(NFC1) 和 P0.10(NFC2) 的 NFC 功能預設是關閉的,可使用 nRF5SDK 設定。

There is an on-board 2.4GHz radio peripheral used to provide Bluetooth and custom radio capabilities via an off-chip aerial.

nRF52 內建有 core 溫度感應器預測 ambient 溫度。-40°C to 105°C,0.25°C steps,Accuracy +/-5°C (uncalibrated) DAL Thermometer

喇叭

USB 處理器

NXP KL27 USB 處理器
  • ARM® Cortex®-M0+ 48 MHz 256 KB Flash 32KB RAM 工作電壓 1.71~3.6V
  • USB Full-Speed,使用 DAPLink firmware 提供 USB Mass Storage Class (USB Disk)、USB Connected Device Class (UART)、CMSIS-DAP、WebUSB
  • 內建有 Regulator 可輸出 3.3V 120mA 供處理器和其它週邊使用,但 V2 似乎改由額外 LDO 提供 300mA。USB 低於 3.6V 時通透式輸出 2.1V ~ 3.6V。USB 指示燈
  • Two-pin Serial Wire Debug (SWD) programming anddebug interface
  • Down to 54uA/MHz in very low power run mode and1.96uA in deep sleep mode (RAM + RTC retained)
  • 1x UART 最高 1.5 Mbit/s
  • 2x low-power UART modules supportingasynchronous operation in low-power modes
  • 2x I2C modules and I2C0 supporting up to 1Mbit/s
  • 2x 16-bit SPI 最高 24 Mbit/s
  • 1x FlexIO emulation 額外的 UART, IrDA, SPI, I2C, I2S, PWM and other serial modules, etc.
  • 1x serial audio interface I2S
  • 1x 16-bit 818 ksps ADC module with highaccuracy internal voltage reference (Vref) and up to16 channels
  • High-speed analog comparator containing a 6-bitDAC for programmable reference input
  • 1x 12-bit DAC
  • Standby Mode 時 2.8V 1mA。

動作感應器

包括加速度計和磁力計。加速度計量測三軸加速度,磁力計可作為羅盤或磁場偵測。 The magnetometer can generate one processor interrupt for the application processor, and the accelerometer can generate two different processor interrupts for the application processor. Note, the physical orientation of this IC is important for binary compatibility with the driver code in the application processor, which assumes a particular physical orientation in its calculations

I2C

供電

運作電壓 1.8~3.6V,有 3 個可能來源: micro USB、JST-PH 電池接頭、或邊緣連接器。
  • micro USB、電池接頭透過 LDO 提供 300mA, with thermal cut-out for short circuit protection。有 diode 防逆流,預留 90mA,外部可用約 190 mA。
  • 邊緣連接器直接提供。
  • Battery connector JST X2B-PH-SM4-TB Max current provided via edge connector 190mA
  • KL27 本身也是 LDO 供電?RTC 用電?

程式

範例程式:Out-of-box Experience C++ 原始碼

MakeCode:線上程式積木或 JavaScript 編輯器,可下載拖放燒錄或 WebUSB 直接燒錄。

參考

沒有留言:

張貼留言

SIP header Via

所有 SIP 訊息 都要有 Via,縮寫 v。一開始的 UAC 和後續途經的每個 proxy 都會疊加一個 Via 放傳送的位址,依序作為回應的路徑。 格式 sent-protocol sent-by [ ;branch= branch ][ ; 參數 ...] s...