BPI:bit Webduino and arduino board with EPS32 for STEAM education


(bpi team) #1

The BPI bit (also referred to as BPI-bit, stylised as bpi:bit) is an ESP32 with 32-bit Xtensa LX6 dual-core processor based embedded system. It supports Webduino, Arduino, MicroPython as well as Scratch X programming environments.

bpi:bit board is 5 cm x 5 cm in size, weighs 10 ~ 12 grams, it houses a 20-Pin edge connector, built-in lighting matrix with 25 programmable full-color LEDs , two photosensitive light sensors, two programmable buttons, an NTC resistor, a buzzer and a nine shaft sensor (triaxial acceleration Three-axis gyroscope and three-axis magnetic compass),

the I/O space configuration is as follows:

  • Full color LED matrix: GPIO4
  • Photosensitive sensor: GPIO36 (Analog A0, upper left), GPIO39 (Analog A3, upper right)
  • Button switch : GPIO35 (Botton A), GPIO27 (Botton B)
  • Temperature sensor: GPIO34 (Analog A6)
  • Buzzer: GPIO25
  • MPU-9250 9-axis sensor: GPIO0, GPIO21(SDA), GPIO22(SCL)

BPI:bit Webduino Easy How-To’s Episode 1: Initial Setup

BPI:bit interfact:

edge connector PIN define same as micro:bit

BPI bit edge pin define

BPI:bit support webduino all function:

webduino blockly:

webduino cloud:

webduino simulator:

webduino blockly and simulator for STEAM education

webduino official website:

http://webduino.com.cn

webduino source code on github:

BPI:bit for arduino open source code

==MicroPyhton ==

*BPI:bit microPython Source code on github : https://github.com/BPI-STEAM/BPI-BIT-MicroPython

*Online wiki documents: http://wiki.banana-pi.org/BPI:bit_for_MicroPython

==Arduino ==

*BPI:bit for Arduino IDE source code : https://github.com/BPI-STEAM/BPI-BIT-Arduino-IDE

*BPI:bit for Arduino IDE wiki :http://wiki.banana-pi.org/BPI:bit_for_Arduino

more please see wiki page:

http://wiki.banana-pi.org/BPI-Bit

BPI-STEAM online documents:

https://doc.bpi-steam.com/en/latest/

easy to buy sample:

note :Webduino service now only provide cloud services in Taiwan and the mainland of China, overseas server has not been set up now, so buy BPI, BIT and BPI: UNO32 overseas clients, only can test and use open source software


BPI-Webduino:bit Basic functional testing
(bpi team) #2

Banana pi BPI:bit with arduino IDE function demo

bpi:bit new hardware function test demo, use open source arduino PlatformIO test

Banana pi BPI:bit how to control with webduino blockly

Learn to code using the Webduino Bit Blockly editor.


(bpi team) #3

easy to buy sample:

note :Webduino service now only provide cloud services in Taiwan and the mainland of China, overseas server has not been set up now, so buy BPI, BIT and BPI: UNO32 overseas clients, only can test and use open source software

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


(bpi team) #4

(Jochen Hinkelmann) #5

Question on the Edge Connector’s PIN assignment: Touch PINs P0, P1, P2 are assigned to GPIO25, 32 and 33. According to the WIKI, GPIO25 is occupied by the MPU and 33 by the buzzer. So P0 and P2 they are not usable ?


(Juwan) #6

0F%25%5DVMW63K0HD6BPL5KY%7DS5

The result is that I tested it using the following Python code.

from machine import Pin
import time

from machine import I2C, Pin
from mpu9250 import MPU9250
i2c = I2C(scl=Pin(22), sda=Pin(21), freq=400000)
sensor = MPU9250(i2c)
print("MPU9250 id: " + hex(sensor.whoami))

P0 = Pin(25, Pin.OUT)
P1 = Pin(32, Pin.OUT)
P2 = Pin(33, Pin.OUT)

while Thread[0]:
	
	print('acceleration:', str(sensor.acceleration))
	print('gyro:', str(sensor.gyro))
	print('magnetic:', str(sensor.magnetic))
	
	time.sleep(1)
	P0.value(1)
	P1.value(1)
	P2.value(1)
	
	time.sleep(1)
	P0.value(0)
	P1.value(0)
	P2.value(0)

It can be seen that the OUT of GPIO can work, but P0 and buzzer are connected, the buzzer sounded.

The problem with IN is that when WIFI is running, ADC2_CH cannot work, such as P0(ADC2_CH8), but DAC_1 can be used.

Other pin functions are not affected In pin-define.


(bpi team) #7

BPI:bit for STEAM education online documents. Arduino,microPython,Webduino :

https://doc.bpi-steam.com/en/latest/