Difference between pages "Banana Pi BPI-ZERO" and "BPI-Bit STEAM 教育开发板"

From Banana Pi Wiki
(Difference between pages)
Jump to: navigation, search
(Source code)
 
 
Line 1: Line 1:
[[zh:香蕉派_BPI-M2 ZERO]]
+
[[en:BPI-Bit]]
=Introduction=
 
  
[[File:BPI-M2_zero_11.JPG|thumb|Overview zero with Allwinner H2+ chip]]
+
= BPI:bit 开发板介绍=
[[File:Zero_wih_H3_1.jpg|thumb|Overview zero with Allwinner H3 chip]]
 
[[File:BPI-M2_zero_5.JPG|thumb|BPI-M2 zero VS  Raspberry pi Zero W]]
 
[[File:Newwork_scu.JPG|thumb|BPI-4.0 OEM&ODM [[Successful case]] H3 for Network security information analysis instrument]]
 
  
The Banana Pi M2 Zero is an ultra compact single board computer which measures only 60mm*30mm. Its external interfaces are the same as the Raspberry Pi Zero W, and it will fit almost all cases and accessories for the Zero W. It uses the quad-core Cortex A7 Allwinner H2+ processor, with 512MB RAM. It's ideal for light-weight systems and space-limited applications. Like other members of the Banana Pi family, it supports both Linux and Android operating systems.  
+
[[File:Webduino_gif.gif|thumb|Overview: BPI:bit]]
 +
[[File:ESP32_6.JPG|thumb|[[BPI-UNO32]] with ESP32 design]]
 +
[[File:Webduino_bit_1.JPG|thumb|Overview: BPI:bit]]
 +
[[File:BPi_bit_webduino_3.jpg|thumb|Overview: BPI:bit for Webduino]]
 +
[[File:BPI_bit_acrylic_shell_1_.JPG|thumb|[[BPI-bit acrylic shell compatible LEGO bricks]]]]
 +
[[File:Bpi_bit_gpio_expansion_board_2.JPG|thumb|[[BPI:bit gpio expansion board]]]]
 +
[[File:BPIbit_breadboard_GPIO_expansion_board_3.jpg|thumb|[[BPI:bit gpio expansion board]]]]
 +
[[File:BPI-bit_robort_board_3.JPG|thumb|[[BPI:bit robot 机器人扩展板]]]]
 +
[[File:Original.jpg|thumb|[[BPI:bit MoonCar 登月小车]]]]
  
[[File:BPI-M2_zero.jpg]]
+
'''BPI bit''' (又可以叫'''BPI-bit'''和'''bpi:bit'''). 支持Webduino, Arduino, MicroPython ,和Scratch X 编程环境 ,专注在STEAM教育领域
  
==Key Features==
+
[[File:A_BPI-Bit.jpg]]
  
* CPU: Allwinner H2+, Quad-core Cortex-A7.
+
BPI:bit 主要功能介绍
* 512MB DDR 3 SDRAM.
 
* WiFi (AP6212) & Bluetooth onboard.
 
* Mini HDMI.
 
* 40 Pin Raspberry Pi-compatible GPIO, including UART, SPI, I2C, etc.
 
  
==Getting Start==
+
[[File:Webduino_web_ch_1.png]]
::Quick strart your BPI-M2 zero : [[Quick Start Banana pi SBC]]
 
::How to development : [[Getting Start with M2 Zero]]
 
  
=Hardware=
+
bpi:bit 开发板仅有5厘米X5厘米大小,重12克左右。并有20个金手指定义与Micro:bit完全兼容。集成了25颗全彩LED灯,两上光敏传感器,两个可编程按键,温度传感器,蜂鸣器,MPU-9250 九轴传感器(三轴加速度三轴陀螺仪和三轴磁盘)。GPIO控制定义如下
 
 
 
 
==Hardware interfaces==
 
 
 
[[File:Zerointerface.jpg]]
 
 
 
==Hardware spec==
 
  
 +
*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)
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
| style="background: PaleTurquoise; color: black" colspan="4"| '''HardWare  Specification of Banana pi BPI-P2 Zero VS BPI-M2 zero  VS Raspberry Pi Zero W'''
+
| style="background: PaleTurquoise; color: black" colspan="4"| '''GPIO control of BPI:bit'''
|-
 
|Module||'''Banana Pi BPI-P2 Zero'''|| '''Banana Pi BPI-M2 Zero''' || '''Raspberry Pi Zero W'''
 
|-
 
|CPU ||H2+ Quad-core Cortex-A7 H265/HEVC 1080P  ||H2+ Quad-core Cortex-A7 H265/HEVC 1080P ||Broadcom BCM2835 32 Bit 1 GHz ARM1176JZF-S single-core
 
|-
 
|GPU || Mali400MP2 GPU @600MHz,Supports OpenGL ES 2.0|| Mali400MP2 GPU @600MHz,Supports OpenGL ES 2.0 ||VideoCore IV
 
 
|-
 
|-
| Memory \(SDRAM\) || 512M DDR3(shared with GPU)||512M DDR3(shared with GPU) ||512 MB DDR2
+
|光敏传感器(L) || GPIO 36|| Analog Input
 
|-
 
|-
| Onboard Storage ||TF card \(Max. 64GB\) ||TF card \(Max. 64GB\) ||TF card \(Max. 64GB\)
+
|光敏传感器(R)|| GPIO 39|| Analog Input
 
|-
 
|-
| Onboard Network || 100M LAN||NOPE (but can extension with PIN define) ||NOPE
+
|按键 A|| GPIO 35 ||Digital Input
 
|-
 
|-
| PoE power || PoE function support ||NOPE ||NOPE
+
|按键 B|| GPIO 27|| Digital Input
 
|-
 
|-
| Onboard flash || 8G eMMC||NOPE||NOPE
+
|温度传感器|| GPIO 34 ||Analog Input
 
|-
 
|-
| Onboard WIFI ||SDIO AP6212(option AP6181、AP6335) ||SDIO AP6212(option AP6181、AP6335) ||802.11n wireless, Bluetooth 4.1
+
|蜂鸣器|| GPIO 25 ||PWM(Digital Output) / Analog Output
 
|-
 
|-
|Video decoding ||1080p@60fps,H.264 Video encoding 1080p@30fps,H.264|| 1080p@60fps,H.264 Video encoding 1080p@30fps,H.264 || 1080p30 H.264/MPEG-4 AVC high-profile decoder and encoder
+
|RGB_LED|| GPIO 4 ||Digital Output
 
|-
 
|-
| Video input || A CSI input connector Camera||A CSI input connector Camera || CSI camera connector
+
|九轴传感器MPU9250_SCL|| GPIO 22 ||Digital Output
 
|-
 
|-
| Video Outputs || mini HDMI 1.4,1080P@30fps, DHCP||mini HDMI 1.4,1080P@30fps, DHCP ||Mini HDMI and USB On-The-Go ports
+
|九轴传感器MPU9250_SDA|| GPIO 21|| Digital Output
 
|-
 
|-
| Audio Output || Mini HDMI ||Mini HDMI ||Mini HDMI
+
|九轴传感器MPU9250_INT|| GPIO 16 ||Digital Input
 
|-
 
|-
| Power Source || Micro USB with 5V/2A or PoE power||Micro USB with 5V/2A ||5V/2A
+
|R_LED(SPI_SCK)|| GPIO 18 ||Digital Output
 
|-
 
|-
| USB 2.0 Ports || one USB 2.0 OTG ||one USB 2.0 OTG ||one USB 2.0 OTG
 
|-
 
| Buttons || Power Button, Reset Button ||Power Button, Reset Button ||Composite video and reset headers
 
|-
 
| Low-level peripherals ||  40 Pins Header,compatible with Raspberry Pi 3 ||40 Pins Header,compatible with Raspberry Pi 3 ||40 PIN
 
|-
 
| uart GPIO\(1x3\) pin ||  UART, ground ||UART, ground ||UART
 
|-
 
| LED ||Power led & Status led|| Power led & Status led  ||Power Status LED
 
|-
 
| IR ||N/A|| N/A ||N/A
 
|-
 
| Supported OS ||android linux|| android linx|| Linux
 
|-
 
| Product size || 65mm X 52.5mm||65mm × 30mm ||65mm x 30mm
 
|-
 
| Weight ||30g|| 15g ||9g
 
|-
 
 
|}
 
|}
  
==GPIO PIN define ==
+
= 硬件=
 +
 
 +
==硬件简介 ==
 +
 
 +
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平台,可以实现炫酷的展示效果。
 +
 
 +
==硬件接口==
 +
 
 +
[[File:Bpi_bit_接口图.JPG]]
 +
 
 +
==GPIO PIN针定义==
  
Banana Pi BPI-M2 zero has a 40-pin GPIO header that matches that of the Model Raspberry Pi 3. Following is the Banana Pi GPIO Pinout:
+
BPI:bit金手指GPIO定义与micro:bit兼容. 可以使用micro:bit的GPIO扩展板配件。
  
[[File:Gpio define.png]]
+
[[File:Bpi_bit_gpio_detail-05.jpg]]
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
| style="background: PaleTurquoise; color: black" colspan="4"| '''40 PIN GPIO of Banana pi BPI-M2 zero'''
+
| style="background: PaleTurquoise; color: black" colspan="4"| '''BPI:bit 金手指接口定义'''
 
|-
 
|-
| GPIO Pin Name || Default Function || Function2:GPIO || Function3
+
|Pin Name||Analog Function1||Analog Function2||Function1||Function2||Power
 
|-
 
|-
| CON2-P01 || VCC-3V3 || ||
+
|P3||ADC2_CH4|| ||GPIO13||||
 
|-
 
|-
| CON2-P02 || VCC-5V || ||
+
|P0||ADC2_CH8||DAC_1||GPIO25|| ||
 
|-
 
|-
| CON2-P03 || TWI0-SDA || PA12-EINT12 ||
+
|P4||ADC2_CH3||||GPIO16||||
 
|-
 
|-
| CON2-P04 || VCC-5V || ||
+
|P5||ADC1_CH7|| ||GPIO35|| ||
 
|-
 
|-
| CON2-P05 || TWI0-SCK || PA11-EINT11||  
+
|P6||ADC2_CH5|| ||GPIO12|| ||
 
|-
 
|-
| CON2-P06 || GND || ||
+
|P7||ADC2_CH6|| ||GPIO14|| ||
 
|-
 
|-
| CON2-P07 || PWM1 || PA6-EINT6||  
+
|P1||ADC1_CH4|| ||GPIO32|| ||
 
|-
 
|-
| CON2-P08 || UART3-TX || PA13-EINT13 || SPI1-CS
+
|P8||||||GPIO16|| ||
 
|-
 
|-
| CON2-P09 || GND || ||  
+
|P9||||||GPIO17|| ||  
 
|-
 
|-
| CON2-P10 || UART3-RX || PA14-EINT14 || SPI1-CLK
+
|P10||ADC2_CH9||DAC_2||GPIO26|| ||
 
|-
 
|-
| CON2-P11 || UART2-RX || PA1-EINT1 ||
+
|P11||ADC2_CH7||||GPIO27|| ||
 
|-
 
|-
| CON2-P12 || UART3-CTS || PA16-EINT16 || SPI1-MISO
+
|P12||ADC2_CH2||||GPIO02|| ||
 
|-
 
|-
| CON2-P13 || UART2-TX || PA0-EINT0 ||
+
|P2||ADC1_CH5||||GPIO33|| ||
 
|-
 
|-
| CON2-P14 || GND || ||
+
|P13|||| ||GPIO18||SPI_SS||
 
|-
 
|-
| CON2-P15 || UART2-CTS || PA3-EINT3 ||
+
|P14|||| ||GPIO19||SPI_SCK||
 
|-
 
|-
| CON2-P16 || UART3-RTS || PA15-EINT15 || SPI1-MOSI
+
|P15||||||GPIO23||SPI_MISO||
 
|-
 
|-
| CON2-P17 || VCC-3V3 || ||
+
|P16||||||GPIO05||SPI_MOSI||
 
|-
 
|-
| CON2-P18 || PC4 || PC4 ||
+
|3V3|| || || ||||POWER:3V3
 
|-
 
|-
| CON2-P19 || SPI0-MOSI || PC0 ||
+
|3V3|| || || ||||POWER:3V3
 
|-
 
|-
| CON2-P20 || GND || ||
+
|3V3|| || ||||||POWER:3V3
 
|-
 
|-
| CON2-P21 || SPI0-MISO || PC1 ||
+
|P19||||||GPIO22||I2C_SCL||
 
|-
 
|-
| CON2-P22 || UART2-RTS || PA2-EINT2 ||
+
|P20||||||GPIO21||I2C_SDA||
 
|-
 
|-
| CON2-P23 || SPI0-CLK || PC2 ||
+
|GND||||||||||GROUND
 
|-
 
|-
| CON2-P24 || SPI0-CS || PC3 ||
+
|GND||||||||||GROUND
 
|-
 
|-
| CON2-P25 || GND || ||  
+
|GND||||||||||GROUND
 +
|-
 +
|}
 +
 
 +
== 5*5 25全彩LED灯==
 +
BPI:bit 有25颗全彩LEDs灯, 并且能用单GPIO控制.三种原色的每个像素都可以实现256亮度显示,完成16777216彩色全彩色显示,扫描频率不低于400Hz/s
 +
{| class="wikitable"
 
|-
 
|-
| CON2-P26 || PC7 || PC7 ||
+
| style="background: PaleTurquoise; color: black" colspan="4"| ''' 25 5*5 LED list of BPI:bit'''
 
|-
 
|-
| CON2-P27 || TWI1-SDA || PA19-EINT19 ||
+
|20||15||10||5||0
 
|-
 
|-
| CON2-P28 || TWI1-SCK || PA18-EINT18 ||
+
|21||16||11||6||1
 
|-
 
|-
| CON2-P29 || PA7-EINT7 || PA7-EINT7 ||
+
|22||17||12||7||2
 
|-
 
|-
| CON2-P30 || GND || ||
+
|23||18||13||8||3
 
|-
 
|-
| CON2-P31 || PA8-EINT8 || PA8-EINT8 ||
+
|24||19||14||9||4
 
|-
 
|-
|  CON2-P32 || PL2-S-EINT2 || PL2-S-EINT2 ||
 
|-
 
|  CON2-P33 || PA9-EINT9 || PA9-EINT9 ||
 
|-
 
|  CON2-P34 || GND || ||
 
|-
 
|  CON2-P35 || PA10-EINT10 || PA10-EINT10 ||
 
|-
 
|  CON2-P36 || PL4-S-EINT4 || PL4-S-EINT4 ||
 
|-
 
|  CON2-P37 || PA17-EINT17 || PA17-EINT17 || SPDIF-OUT
 
|-
 
|  CON2-P38 || PA21-EINT21 || PA21-EINT21 ||
 
|-
 
|  CON2-P39 || GND || ||
 
|-
 
|  CON2-P40 || PA20-EINT20 || PA20-EINT20 ||
 
|-
 
 
|}
 
|}
  
'''CSI Camera Connector specification:'''
+
== MPU9250 9轴传感器==
 +
 
 +
BPI:bit集成了九轴传感器:MPU-9250, 使用I2C 接口控制,控制地址为:0x69 .
 +
 
 +
MPU-9250 9轴是3个独立的三轴传感器的组合。有关此芯片的更详细信息请下载规格书[https://github.com/yelvlab/BPI-BIT/blob/master/doc/MPU-9250A-01-v1.1.pdf MPU 9250 规格书]
 +
 
 +
BPI-BIT MPU9250 代码及使用方法请参考 : https://github.com/BPI-STEAM/MPU9250
 +
 
 +
==BPI:bit 供电==
  
The CSI Camera Connector is a 24-pin FPC connector which can connect external camera module with proper signal pin mappings. The pin definitions of the CSI interface are shown as below. This is marked on the Banana Pi board as “CSI″.
+
当您使用BPI:bit时,必须先给BPI:bit供电,BPI:bit支持三种供电方式:
 +
 
 +
*1.micro USB :使用micro USB线供电,BPI:bit 设计有micro USB 供电口,在日常生活中很常见,使用起来也很方便
 +
*2.电池供电:通过2针电池电源插座,可以通过锂电池,电池,电源板,接口防误操作的设计,不用担心电源通过2针电池电源插座,可以通过锂电池,电池,电源板,接口防误操作的设计,不必担心电力供应满足问题。
 +
*3.金手指GPIO供电:在板子底部的金手指则包含电源接口。同时,它具有输入和输出功能,具有较高的兼容性。
 +
 
 +
==BPI:bit,掌控板与 micro:bit 比较表==
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
| style="background: PaleTurquoise; color: black" colspan="4"| '''24 PIN CSI Camera connector of Banana pi BPI-M2 Zero'''
+
| style="background: PaleTurquoise; color: black" colspan="8"| ''' bpi:bit ,掌控板与micro:bit比较'''
|-
 
| CSI Pin Name || Default Function || Function2:GPIO
 
|-
 
|  CN3-P01 || NC ||
 
|-
 
|  CN3-P02 || GND ||
 
|-
 
|  CN3-P03 || CSI0-SDA || PE13
 
|-
 
|  CN3-P04 || CSI0-AVDD ||
 
 
|-
 
|-
| CN3-P05 || CSI0-SCK || PE12
+
|型号名||bpi:bit||掌控板||micro:bit
 
|-
 
|-
| CN3-P06 || CSI0-Reset || PE14
+
|主控||ESP32 Dual-core 32bit Xtensa LX6, up to 240MHz||ESP32 Dual-core 32bit Xtensa LX6, up to 240MHz||NXP KL26Z 32bit ARM Cortex M0, up to 16MHz
 
|-
 
|-
| CN3-P07 || CSI0-VSYNC || PE3
+
|RAM||520 KB||520KB||16 KB
 
|-
 
|-
| CN3-P08 || CSI0-PWDN || PE15
+
|ROM||448 KB||448||Unkown
 
|-
 
|-
| CN3-P09 || CSI0-HSYNC || PE2
+
|Flash||4096 KB||4096 KB||256 KB
 
|-
 
|-
| CN3-P10 || CSI0-DVDD ||
+
|蓝牙||BT4.2 BR/EDR and BLE|| BT4.2 BR/EDR and BLE||BLE only
 
|-
 
|-
| CN3-P11 || CSI0-DOVDD||
+
|WIFI无线||802.11 b/g/n/e/i|||802.11 b/g/n/e/i|| N/A
 
|-
 
|-
| CN3-P12 || CSI0-D7 || PE11
+
|蜂鸣器||1x 板载蜂鸣器||1x 板载蜂鸣器||N/A
 
|-
 
|-
| CN3-P13 || CSI0-MCLK || PE1
+
|5*5 LED 灯||25 智能控制全彩(16777216色)led灯,单GPIO控制||1.3英寸OLED显示屏||25 个单色灯(红色)
 
|-
 
|-
| CN3-P14 || CSI0-D6 || PE10
+
|光敏传感器|| 2 个独立光敏传感器||光线传感器||LED灯支持的基本亮度检测
 
|-
 
|-
| CN3-P15 || GND ||
+
|温度传感器|| 1个独立的温度传感器|| 无||仅仅有CPU运行温度指示
 
|-
 
|-
| CN3-P16 || CSI0-D5 || PE9
+
|运动传感器|| MPU-9250 九轴运动跟踪:三轴加速度计,三轴磁强计,三轴陀螺仪||三轴加速度计MSA300,测量范围:±2G ||3-轴加速计;使用硬件磁强计;没有陀螺仪,没有运动处理器
 
|-
 
|-
| CN3-P17 || CSI0-PCLK || PE0
+
|IO 控制介面 ||金手指介面(兼容micro:bit配件)||金手指介面|| 金手指介面
 
|-
 
|-
| CN3-P18 || CSI0-D4 || PE8
+
|按键||2 个可编程按键||2个物理按键(A/B)||2 个可编程按键
 
|-
 
|-
| CN3-P19 || CSI0-D0 || PE4
+
|micro USB||1x micro USB(UART)||Micro USB||1 x micro USB(Mass Storage Device)
 
|-
 
|-
| CN3-P20 || CSI0-D3 || PE7
+
|软件支持||[http://www.webduino.com.cn Webduino], Arduino, MicroPython, Scratch X|| Arduino, MicroPython, Scratch X || Microsoft MakeCode, MicroPython, Scratch X
 
|-
 
|-
| CN3-P21 || CSI0-D1 || PE5
+
|尺寸||5*5 厘米||5*4 厘米||5*4 厘米
 
|-
 
|-
|  CN3-P22 || CSI0-D2 || PE6
 
|-
 
|  CN3-P23 || GND ||
 
|-
 
|  CN3-P24 || CSI0-DOVDD ||
 
|-
 
 
|}
 
|}
  
'''UART specification:'''
+
= 软件 =
 +
BPI:bit 软件开发规划表与支持应用:
  
The jumper CON3 is the UART interface. For developers of Banana Pi, this is an easy way to get the UART console output to check the system status and log message.
+
[[File:BPI_bit_map_wiki.png]]
  
{| class="wikitable"
+
== Webduino 软件支持 ==
|-
+
===Webduino STEAM 教育项目===
| style="background: PaleTurquoise; color: black" colspan="4"| '''jumper CON3 of Banana pi BPI-M2 Zero'''
+
[http://www.webduino.com.cn/site/en/index.html Webduino ]= [http://webcomponents.org WebComponents] + [http://arduino.cc Arduino]
|-
 
| CON3 Pin Name || Default Function || GPIO
 
|-
 
| CON3 P03 || UART0-TXD || PA4
 
|-
 
| CON3 P02 || UART0-RXD || PA5
 
|-
 
| CON3 P01 || GND ||
 
|-
 
|}
 
  
=Development=
+
[[File:Webduino.png]]
  
==Basic Development==
+
*[https://drive.google.com/file/d/1V3k5p9DCj_jcsmSk4ffbPlO3MNpBGvnB/view?usp=sharing Webduino introduce (Public)-en.pdf]
===how to use zero 10/100 Ethernet===
+
*[https://drive.google.com/file/d/1-BH_AYh7fbwwMwVeYzMEeA_GOmTxn_KD/view?usp=sharing Webduino 介绍(公开)-中文.pdf]
  
BPI-M2 zero not RJ45 interface ,but it support 100M network with PIN define.
+
===BPI:bit Webduino 开发===
  
[[File:RJ45_PIN.jpg]]
+
如何使用 :[[Use BPI:bit with webduino]]
  
PIN define:
+
===webduino 参考教程===
  
[[File:Zero-EPHY-pcb.jpg]]
+
*BPI:bit 通过在左右两边嵌入Webduino位的光敏电阻,很容易判断手势来自哪一边
 +
::code link:https://bit.ly/2lFNeYL
 +
::demo : https://www.facebook.com/oxxo.studio/videos/10216710024566280/?t=9
  
schematic diagram:
+
*使用Webduino位九轴传感器+全彩色点阵,简单实现~ ^ _ ^有趣的效果
 +
::code link: https://bit.ly/2MAhHTF
 +
::demo : https://www.facebook.com/oxxo.studio/videos/10216709482752735/?t=20
  
[[File:Zero-EPHY-sch.png]]
+
==Arduino 开发==
  
test
+
*[[How to use Arduino | Arduino IDE & PlatformIO]]
 +
*BPI:bit arduino IDE 开发github代码:https://github.com/BPI-STEAM/BPI-BIT-Arduino-IDE
 +
*BPI:bit arduino IDE 开发在线文档:https://github.com/BPI-STEAM/BPI-BIT-Arduino-IDE/wiki
 +
*BPI:bit Arduino 入门与开发,国全老师整理的教材与视频教学:https://forum.banana-pi.org.cn/t/topic/3035
  
[[File:Zero_eth_test.jpg]]
+
===测试例程===
  
=== Zero power with GPIO 5V input===
+
*[[MPU9250 sample code]]
  
BPI-M2 Zero 40 PIN GPIO have support 5V input , so you can use 5V input PIN to power zero board .
+
==MicroPyhton 开发==
  
[[File:Zero_gpio_5V.jpg]]
+
[[File:Mircopython.png]]
  
=Resources=
+
BPI:bit 已经完整支持microPyton。固件、开发环境、代码与 wiki 文档已经整理到:
== Documents==
 
* schematic diagram: https://drive.google.com/file/d/0B4PAo2nW2KfnMW5sVkxWSW9qa28/view?usp=sharing
 
* DXF file :https://drive.google.com/file/d/0B4PAo2nW2KfnZGcycVk2bWhmWjA/view?usp=sharing
 
* CE FCC RoHS : [http://forum.banana-pi.org/t/bpi-m2-zero-ce-fcc-rohs-certification/4613 BPI-M2 zero CE,FCC,RoHS ]
 
* Allwinner documents:
 
** allwinner H3 chip doc baidu link: https://pan.baidu.com/s/1qTULll2CR02d0Hw9itq1rw
 
** Allwinner H2+ chip doc baidu link: https://pan.baidu.com/s/1TGMYr3rhizfhlg5hl6hLyg
 
*Banana Pi M2 Zero - Review and compare to RPI Zero:https://www.youtube.com/watch?v=CaXi1qbOvYk
 
*Banana Pi M2 Zero - Unboxing, Caratteristiche e Test (CPU, Gimp, WiFi, USB, Burntest):https://www.youtube.com/watch?v=rioWNzPXBnM
 
*A Review of the Banana Pi M2 Zero Running openHAB : https://community.openhab.org/t/a-review-of-the-banana-pi-m2-zero-running-openhab/37652
 
  
==Source code==
+
https://github.com/BPI-STEAM/BPI-BIT-MicroPython/wiki
* Android 4.4 source code
 
::download link: https://drive.google.com/open?id=0B_YnvHgh2rwjdWNEQzg1UDl1bUE
 
::forum thread: http://forum.banana-pi.org/t/bpi-m2-android-4-4-source-code-download-link/3159
 
  
*Linux source code
+
功能提供
:: kernel 3.4 source code : https://github.com/BPI-SINOVOIP/BPI-M2Z-bsp
+
*1. 提供 终端命令行操作工具
 +
*2. 提供 有线或无线操作板子
 +
*3. 提供 Pycharm IDE 开发
 +
*4. 提供 Microbit 函数库
  
*BPI-M2 Zero Mainline linux kernel 4.19.0 (experimental)
+
我们现在在测试所有micro:bit 在线文档的例子,我们已经可以让BPI:bit 兼容micro:bit库,这样,microPyton对micro:bit的支持,可以直接在BPI:bit上运行。
::https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal#whats-new-with-this-image-v5-experimental
 
  
=Image Release=
+
下面就是BPI;bit运行:运行:https://microbit-micropython.readthedocs.io/en/latest/tutorials/hello.html 代码的 代码的效果。直接可以用。
  
==Android 4.4==
+
更多板子示例可以参考以下网址
===2018-07-09 update Android 4.4===
 
::Google Drive:  https://drive.google.com/file/d/1fAwnXuJI9C8aAfVrD3gM0mIgPKQGWFBY
 
::Baidu Drive : https://pan.baidu.com/s/1zaUoVBK39AxZw6ou5bDv2g
 
::Forum pthread:
 
::http://forum.banana-pi.org/t/bananapi-bpi-m2z-h2-new-image-android4-4-release-2018-07-09/6223
 
  
===2017-11-12 update Android 4.4===
+
microbit 在线文档:https://microbit-micropython.readthedocs.io/en/latest/tutorials/introduction.html
::Google Drive: https://drive.google.com/open?id=1TywrMLLxqJj23ql2jyzLruZw18V_XwX3
 
::Baidu Drive : https://pan.baidu.com/s/1c2pTXUo
 
::MD5: 67a5953dac47f3ca7a2628e1422a36e2
 
::Forum pthread:
 
::http://forum.banana-pi.org/t/bpi-m2-zero-new-image-android-4-4-version-v1/4384
 
  
==Armbian==
+
microbit 在线仿真器 :http://www.micropython.org.cn/pye/editor-en.html
  
* Image Link:
+
*[https://github.com/BPI-STEAM/BPI-BIT-MicroPython/wiki Github Wiki Chinese]
**Debian Jessie http://www.mediafire.com/file/rd58jqjp1vyx61e/Armbian_5.41_Bananapim2zero_Debian_jessie_default_3.4.113.img.zip
 
**Ubuntu Xenial http://www.mediafire.com/file/lblc0l0c41c3cj8/Armbian_5.41_Bananapim2zero_Ubuntu_xenial_default_3.4.113_desktop.img.zip
 
  
* Forum thread:
+
==Scratch 支持与开发==
**http://forum.banana-pi.org/t/bpi-m2-zero-armbian-5-41-3-4-113-debian-jessie-ubuntu-xenial/5485
 
  
==RetroPie ==
+
*[https://github.com/BPI-STEAM/BPI-BIT-Scratch Base MicroPyhton Scratch]
*RetroPie for Banana Pi M2 Zero v.1.2.1 beta
 
::mage Link : http://www.nintendont.it/download/nintendont-retropie-banana-pi-m2-zero-v-1-2-1-beta/
 
::Forum thread: http://forum.banana-pi.org/t/bpi-m2-zero-new-image-retropie-for-banana-pi-m2-zero-v-1-2-1-beta/4889
 
  
==retrorangepi==
+
=资料与资源=
 +
*[https://github.com/BPI-STEAM/BPI-BIT/blob/master/doc/BPI-bit%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C.pdf BPI:bit 用户手册l]
 +
*[https://github.com/BPI-STEAM/BPI-BIT/blob/master/doc/BPI-WEBDUINO-BIT-V1_4.pdf BPI:bit V1.4 schematic diagram]
 +
*[https://github.com/BPI-STEAM/BPI-BIT/blob/master/doc/BPI-WEBDUINO-BIT-V1_2.pdf BPI:bit V1.2 schematic diagram]
 +
*[http://forum.banana-pi.org/uploads/default/original/2X/0/0b86ccaeb565cdeef093164fd1ff837727ca2887.rar BPI:bit dxf 结构文件]
 +
*[https://drive.google.com/file/d/1JoQqcHd12TBzTResew5SkeNFxlJ3BGL8/view?usp=sharing BPI:bit 3D 设计文件]
 +
*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/
 +
*BPI:bit CE FCC RoHS 产品认证:http://forum.banana-pi.org/t/banana-pi-bpi-bit-ce-fcc-rohs-certification/7363
 +
*BPI:bit platformio official support :https://docs.platformio.org/en/latest/boards/espressif32/bpi-bit.html
  
* retrorangepi support BPI-M2+ BPI-M2 Zero : http://retrorangepi.download/download/index2.html
+
==Github 源代码==
  
==Raspbian 8.0 ==
+
*[https://github.com/webduinoio Webduino github]
===2018-07-09===
 
* Image Link:
 
**Google Drive: https://drive.google.com/file/d/1XMVCWCWoWmhzL-c89rkqzZVE_k7xYCvd/view
 
**baidu Drive: https://pan.baidu.com/s/1ahXv3Hl7Dst7uBwz60pcrg 2
 
* Forum thread:
 
**http://forum.banana-pi.org/t/bananapi-bpi-m2z-h2-new-image-raspbian-ubuntu-release-2018-07-09/6221
 
  
==Ubuntu 16.04 mate desktop ==
+
*[https://github.com/BPI-STEAM bpi:bit open soruce github]
===2018-07-09===
 
* Image Link:
 
**Google Drive: https://drive.google.com/file/d/19WUVZGEeUaIXe5vPtGpsENvS61fPYmEi/view
 
**baidu Drive: https://pan.baidu.com/s/1dg7okBYBkt_1U3saVqOMUw
 
* Forum thread:
 
**http://forum.banana-pi.org/t/bananapi-bpi-m2z-h2-new-image-raspbian-ubuntu-release-2018-07-09/6221
 
  
===2017-11-13===
+
==参考链接==
  
* Image Link:
 
**Google Drive: https://drive.google.com/file/d/1Q4NxmO33RYtmECZ8BobW6DXzGWkvCs9F/view?usp=sharing
 
**baidu Drive: http://pan.baidu.com/s/1gfvRUk7
 
* Forum thread:
 
**http://forum.banana-pi.org/t/bpi-m2-zero-new-image-2017-11-13-ubuntu-16-04-mate-desktop-beta-bpi-m2z-sd-emmc-img/4172
 
  
=FAQ=
+
*[https://github.com/BPI-STEAM/BPI-BIT/blob/master/doc/ESP32-datesheet_english.pdf ESP32 规格书]
 +
*[https://www.dfrobot.com/blog-964.html ESP32 Arduino 参考文档]
 +
*[https://www.espressif.com/products/hardware/esp32/resources Espressif ESP32 资源列表]
 +
*[https://esp-idf.readthedocs.io/en/latest/ Espressif ESP-IDF 开发用户手册]
 +
*[http://www.invensense.com/wp-content/uploads/2015/02/PS-MPU-9250A-01-v1.1.pdf MPU9250 九轴传感器规格书]
 +
*[https://github.com/BPI-STEAM/BPI-BIT/tree/master/doc 更多其他文档]
 +
*[http://webuino.io Webduino STEAM教育平台台湾官方网站]
 +
*[http://www.webduino.com.cn/site/en/ Webduino STEAM教育平台大陆官方网站]
 +
*[https://pt.aliexpress.com/store/product/O-BPI-bit-Webduino-e-placa-arduino-com-educa-o-EPS32-para-VAPOR/302756_32861694375.html?spm=a2g03.12010611.0.0.203230d9sYXj5K Easy to buy bpi:bit sample form aliexpress ]
 +
*[https://www.facebook.com/groups/1618158071553661 Facebook group ]
 +
* webduino 官方QQ技术交流群 : 751187356
 +
*[https://maker.pro/[[Maker Pro]]]

Revision as of 18:29, 28 November 2019


BPI:bit 开发板介绍

Overview: BPI:bit
BPI-UNO32 with ESP32 design
Overview: BPI:bit
Overview: BPI:bit for Webduino

BPI bit (又可以叫BPI-bitbpi:bit). 支持Webduino, Arduino, MicroPython ,和Scratch X 编程环境 ,专注在STEAM教育领域

A BPI-Bit.jpg

BPI:bit 主要功能介绍

Webduino web ch 1.png

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)
GPIO control of BPI:bit
光敏传感器(L) GPIO 36 Analog Input
光敏传感器(R) GPIO 39 Analog Input
按键 A GPIO 35 Digital Input
按键 B GPIO 27 Digital Input
温度传感器 GPIO 34 Analog Input
蜂鸣器 GPIO 25 PWM(Digital Output) / Analog Output
RGB_LED GPIO 4 Digital Output
九轴传感器MPU9250_SCL GPIO 22 Digital Output
九轴传感器MPU9250_SDA GPIO 21 Digital Output
九轴传感器MPU9250_INT GPIO 16 Digital Input
R_LED(SPI_SCK) GPIO 18 Digital Output

硬件

硬件简介

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平台,可以实现炫酷的展示效果。

硬件接口

Bpi bit 接口图.JPG

GPIO PIN针定义

BPI:bit金手指GPIO定义与micro:bit兼容. 可以使用micro:bit的GPIO扩展板配件。

Bpi bit gpio detail-05.jpg

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控制.三种原色的每个像素都可以实现256亮度显示,完成16777216彩色全彩色显示,扫描频率不低于400Hz/s

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
主控 ESP32 Dual-core 32bit Xtensa LX6, up to 240MHz ESP32 Dual-core 32bit Xtensa LX6, up to 240MHz NXP KL26Z 32bit ARM Cortex M0, up to 16MHz
RAM 520 KB 520KB 16 KB
ROM 448 KB 448 Unkown
Flash 4096 KB 4096 KB 256 KB
蓝牙 BT4.2 BR/EDR and BLE BT4.2 BR/EDR and BLE BLE only
WIFI无线 802.11 b/g/n/e/i 802.11 b/g/n/e/i N/A
蜂鸣器 1x 板载蜂鸣器 1x 板载蜂鸣器 N/A
5*5 LED 灯 25 智能控制全彩(16777216色)led灯,单GPIO控制 1.3英寸OLED显示屏 25 个单色灯(红色)
光敏传感器 2 个独立光敏传感器 光线传感器 LED灯支持的基本亮度检测
温度传感器 1个独立的温度传感器 仅仅有CPU运行温度指示
运动传感器 MPU-9250 九轴运动跟踪:三轴加速度计,三轴磁强计,三轴陀螺仪 三轴加速度计MSA300,测量范围:±2G 3-轴加速计;使用硬件磁强计;没有陀螺仪,没有运动处理器
IO 控制介面 金手指介面(兼容micro:bit配件) 金手指介面 金手指介面
按键 2 个可编程按键 2个物理按键(A/B) 2 个可编程按键
micro USB 1x micro USB(UART) Micro USB 1 x micro USB(Mass Storage Device)
软件支持 Webduino, Arduino, MicroPython, Scratch X Arduino, MicroPython, Scratch X Microsoft MakeCode, MicroPython, Scratch X
尺寸 5*5 厘米 5*4 厘米 5*4 厘米

软件

BPI:bit 软件开发规划表与支持应用:

BPI bit map wiki.png

Webduino 软件支持

Webduino STEAM 教育项目

Webduino = WebComponents + Arduino

Webduino.png

BPI:bit Webduino 开发

如何使用 :Use BPI:bit with webduino

webduino 参考教程

  • BPI:bit 通过在左右两边嵌入Webduino位的光敏电阻,很容易判断手势来自哪一边
code link:https://bit.ly/2lFNeYL
demo : https://www.facebook.com/oxxo.studio/videos/10216710024566280/?t=9
  • 使用Webduino位九轴传感器+全彩色点阵,简单实现~ ^ _ ^有趣的效果
code link: https://bit.ly/2MAhHTF
demo : https://www.facebook.com/oxxo.studio/videos/10216709482752735/?t=20

Arduino 开发

测试例程

MicroPyhton 开发

Mircopython.png

BPI:bit 已经完整支持microPyton。固件、开发环境、代码与 wiki 文档已经整理到:

https://github.com/BPI-STEAM/BPI-BIT-MicroPython/wiki

功能提供

  • 1. 提供 终端命令行操作工具
  • 2. 提供 有线或无线操作板子
  • 3. 提供 Pycharm IDE 开发
  • 4. 提供 Microbit 函数库

我们现在在测试所有micro:bit 在线文档的例子,我们已经可以让BPI:bit 兼容micro:bit库,这样,microPyton对micro:bit的支持,可以直接在BPI:bit上运行。

下面就是BPI;bit运行:运行:https://microbit-micropython.readthedocs.io/en/latest/tutorials/hello.html 代码的 代码的效果。直接可以用。

更多板子示例可以参考以下网址

microbit 在线文档:https://microbit-micropython.readthedocs.io/en/latest/tutorials/introduction.html

microbit 在线仿真器 :http://www.micropython.org.cn/pye/editor-en.html

Scratch 支持与开发

资料与资源

Github 源代码

参考链接