BPI-Bit STEAM 教育开发板
Contents
BPI:bit介绍
BPI bit (又可以叫BPI-bit和bpi:bit). 支持Webduino, Arduino, MicroPython ,和Scratch X 编程环境 ,专注在STEAM教育领域
BPI:bit 主要功能介绍
bpi:bit 开发板仅有5厘米X5厘米大小,重12克左右。并有20个金手指定义与Micro:bit完全兼容。集成了25颗全彩LED灯,两上光敏传感器,两个可编程按键,温度传感器,蜂鸣器,MPU-9250 九轴传感器(三轴加速度三轴陀螺仪和三轴磁盘)。GPIO控制定义如下
- 25 LED全彩灯: GPIO4
- 光敏传感器: GPIO36 (Analog A0, upper left), GPIO39 (Analog A3, upper right)
- 按键控制 : GPIO35 (Botton A), GPIO27 (Botton B)
- 温度传感器: GPIO34 (Analog A6)
- 蜂鸣器: GPIO25
- MPU-9250 九轴传感器: GPIO0, GPIO21(SDA), GPIO22(SCL)
硬件
硬件简介
BPI:bit采用ESP32作为主控模块,ESP32是集成2.4G WiFi和蓝牙双模的单芯片方案,采用超低功耗的40纳米工艺,拥有最佳的功耗性能、射频性能、稳定性、通用性和可靠性,适用于各种应用和不同功耗需求。ESP32采用 Xtensa 32bit LX6单/双核处理器,运算能力高达600DMIPS,内置448KB ROM和520 KB SRAM。
BPI:bit提供丰富的板载资源,支持光敏传感器,数字三轴传感器,数字罗盘,温度传感器接口,金手指接口与micro:bit完全兼容。特别是5X5智能控制LED光源,控制电路和RGB芯片集成在5050个组件的包中。级联端口传输信号单线。三种原色的每个像素都可以实现256亮度显示,完成16777216彩色全彩色显示,扫描频率不低于400Hz/s。配合webduino平台,可以实现炫酷的展示效果。
硬件接口
GPIO PIN针定义
BPI:bit金手指GPIO定义与micro:bit兼容. 可以使用micro:bit的GPIO扩展板配件。
BPI:bit 金手指接口定义 | |||||
Pin Name | Analog Function1 | Analog Function2 | Function1 | Function2 | Power |
P3 | ADC2_CH4 | GPIO13 | |||
P0 | ADC2_CH8 | DAC_1 | GPIO25 | ||
P4 | ADC2_CH3 | GPIO16 | |||
P5 | ADC1_CH7 | GPIO35 | |||
P6 | ADC2_CH5 | GPIO12 | |||
P7 | ADC2_CH6 | GPIO14 | |||
P1 | ADC1_CH4 | GPIO32 | |||
P8 | GPIO16 | ||||
P9 | GPIO17 | ||||
P10 | ADC2_CH9 | DAC_2 | GPIO26 | ||
P11 | ADC2_CH7 | GPIO27 | |||
P12 | ADC2_CH2 | GPIO02 | |||
P2 | ADC1_CH5 | GPIO33 | |||
P13 | GPIO18 | SPI_SS | |||
P14 | GPIO19 | SPI_SCK | |||
P15 | GPIO23 | SPI_MISO | |||
P16 | GPIO05 | SPI_MOSI | |||
3V3 | POWER:3V3 | ||||
3V3 | POWER:3V3 | ||||
3V3 | POWER:3V3 | ||||
P19 | GPIO22 | I2C_SCL | |||
P20 | GPIO21 | I2C_SDA | |||
GND | GROUND | ||||
GND | GROUND | ||||
GND | GROUND |
5*5 25全彩LED灯
BPI:bit 有25颗全彩LEDs灯, 并且能用单GPIO控制.
25 5*5 LED list of BPI:bit | ||||
20 | 15 | 10 | 5 | 0 |
21 | 16 | 11 | 6 | 1 |
22 | 17 | 12 | 7 | 2 |
23 | 18 | 13 | 8 | 3 |
24 | 19 | 14 | 9 | 4 |
MPU9250 9轴传感器
BPI:bit集成了九轴传感器:MPU-9250, 使用I2C 接口控制,控制地址为:0x69 .
MPU-9250 9轴是3个独立的三轴传感器的组合。有关此芯片的更详细信息请下载规格书MPU 9250 规格书
BPI-BIT MPU9250 代码及使用方法请参考 : https://github.com/BPI-STEAM/MPU9250
BPI:bit 供电
当您使用BPI:bit时,必须先给BPI:bit供电,BPI:bit支持三种供电方式:
- 1.micro USB :使用micro USB线供电,BPI:bit 设计有micro USB 供电口,在日常生活中很常见,使用起来也很方便
- 2.电池供电:通过2针电池电源插座,可以通过锂电池,电池,电源板,接口防误操作的设计,不用担心电源通过2针电池电源插座,可以通过锂电池,电池,电源板,接口防误操作的设计,不必担心电力供应满足问题。
- 3.金手指GPIO供电:在板子底部的金手指则包含电源接口。同时,它具有输入和输出功能,具有较高的兼容性。
BPI:bit 与 micro:bit 比较表
bpi:bit 与micro:bit比较 | |||||||
型号名 | bpi:bit | micro:bit | |||||
主控 | Dual-core 32bit Xtensa LX6, up to 240MHz | NXP KL26Z 32bit ARM Cortex M0, up to 16MHz | |||||
RAM | 520 KB | 16 KB | |||||
ROM | 448 KB | Unkown | |||||
Flash | 4096 KB | 256 KB | |||||
蓝牙 | BT4.2 BR/EDR and BLE | BLE only | |||||
WIFI无线 | 802.11 b/g/n/e/i | N/A | |||||
蜂鸣器 | 1x Buzzer | N/A | |||||
5*5 LED 灯 | 25 intelligent-control full-color (16777216 color) LEDs, Cascading all LEDs by a single line. | 25 red LEDs | |||||
光敏传感器 | 2 light sensors | Basic light detection function on LEDs | |||||
温度传感器 | Stand along temperature sensor | On CPU chip temperature sensor | |||||
运动传感器 | MPU-9250 9-axis Motion Tracking : 3-axis accelerometer, 3-axis magnetometer, 3-axis gyroscope | 3-axis Accelerometer; 3-axis magnetometer; no gyroscope, no motion processor | |||||
IO 控制介面 | edge interface (compatible with most micro:bit I/O features) | edge interface | |||||
按键 | 2 programmable buttons | 2 programmable buttons | |||||
micro USB | 1x micro USB(UART) | 1 x micro USB(Mass Storage Device) | |||||
软件支持 | Webduino, Arduino, MicroPython, Scratch X | Microsoft MakeCode, MicroPython, Scratch X | |||||
Size | 5*5 cm | 5*4 cm |
软件
BPI:bit 软件开发规划表与支持应用:
Webduino 软件支持
What is Webduino
Webduino = WebComponents + Arduino
BPI:bit Webduino 开发
如何使用 :Use BPI:bit with webduino
webduino 参考教程
- BPI:bit Through the photosensitive resistors built into Webduino Bit on the left and right sides, it is easy to determine which side the gesture comes from
- Using Webduino Bit nine shaft sensor "attitude Angle" + full color dot matrix, simple implementation ~ ^_^ interesting effects
Arduino 开发
测试例程
MicroPyhton 开发
Scratch 支持与开发
BPI:bit have full support microPyton。firmware、exploitation environment、software and wiki documtnets have update to :
https://github.com/BPI-STEAM/BPI-BIT-MicroPython/wiki
code on github and support :
1. Provide terminal command line operation tools 2. Provide wired or wireless to operation board 3. Provide Pycharm IDE development 4. Provide Microbit for MicroPython function library
We are now testing all micro:bit online documentation examples,we have let BPI:bit compatibility micro:bit function library,so,microPyton support for micro:bit,You can run it directly on BPI:bit.
This is BPI:Bit run:https://microbit-micropython.readthedocs.io/en/latest/tutorials/hello.html code . You can run the code directly on BPI:bit, you can see the video demo.
https://www.youtube.com/watch?v=AczqV6zMi9E&feature=youtu.be
For more board examples, see the following url:
microbit online documents :https://microbit-micropython.readthedocs.io/en/latest/tutorials/introduction.html
microbit online simulator genuine: http://www.micropython.org.cn/pye/editor-en.html
资料与资源
- BPI:bit Webduino Easy How-To's Episode 1: Initial Setup : https://www.youtube.com/watch?v=23_a27N3_7k
- How to Program Esp32 with Arduino IDE with C++ : https://technicalustad.com/program-esp32-with-arduino-ide-with-c/