by Banana Pi
The BPI-Bit-S2 is a development board equipped ESP32-S2 chip, with 5x5 RGB LED matrix, 1 buzzer, 2 photosensitive sensors, 1 thermosensitive sensor, provides Wi-Fi functions via PCB antenna.
And, the board uses the same edge connector as the micro:bit or micro:bit v2, which makes it possible to connect the alligator clip, or the breakout boards in most micro:bit kits.
- ESP32-S2N4R2: Xtensa® single-core 32-bit LX7 microprocessor, up to 240 MHz; 2.4G Wi-Fi; RISC-V Ultra Low Power Co-processor; 2 MB PSRAM and 4MB FLASH are integrated in the package, so don’t worry too much about using massive buffers, it’s basically sufficient.
- Native USB Port: ESP32-S2 full-speed USB OTG interface, using Type-C USB Connector with back-feed protection. The interface is used for power supply to the board, download firmware or programs to the chip.
- 5x5 RGB LED matrix: 25 WS2812 Lamp beads, addressable, driven by GPIO18.
- GPIO0 LED: It lights up by default and acts as a power indicator, controlled by GPIO0.
- Buzzer: 8.5mm buzzer, controlled by GPIO17.
- Photosensitive Sensors: On the upper front of the board, there is one on each side, read their analog values through GPIO12 and GPIO13.
- Thermosensitive Sensor: Directly above pin 2, read its analog values through GPIO14.
- A/B Button: A controlled by GPIO38, B controlled by GPIO33.
- Reset Button
- Boot Button: It is a button that controls boot mode only at startup, and can be used as a normal button at other times. Holding down Boot and then pressing Reset initiates Firmware Download mode for downloading firmware through the USB port;If UF2 Bootloader already exists, press Reset once and press Boot once within a second to enter the bootloader.
- 5V to 3.3V DC/DC: Maximum theoretical output 2A 3.3V.
- Edge Connector: Same as the micro:bit, support for alligator clips or the breakout boards in most most micro:bit kits.
Have some info to add for this board? Edit the source for this page here.
This is the latest unstable release of CircuitPython that will work with the BPI-Bit-S2.
Unstable builds have the latest features but are more likely to have critical bugs.
Built-in modules available: _asyncio, _pixelmap, adafruit_bus_device, adafruit_pixelbuf, aesio, alarm, analogio, array, atexit, audiobusio, audiocore, audiomixer, binascii, bitbangio, bitmaptools, board, builtins, busio, canio, collections, countio, digitalio, displayio, dualbank, errno, fontio, framebufferio, frequencyio, getpass, gifio, hashlib, i2ctarget, ipaddress, json, keypad, math, mdns, memorymap, microcontroller, msgpack, neopixel_write, nvm, onewireio, os, paralleldisplay, ps2io, pulseio, pwmio, qrio, rainbowio, random, re, rgbmatrix, rotaryio, rtc, sdcardio, select, sharpdisplay, socketpool, ssl, storage, struct, supervisor, synthio, sys, terminalio, time, touchio, traceback, ulab, usb_cdc, usb_hid, usb_midi, vectorio, watchdog, wifi, zlib
Included frozen(?) modules: neopixel
Every time we commit new code to CircuitPython we automatically build binaries for each board and language. The binaries are stored on Amazon S3, organized by board, and then by language. Try them if you want the absolute latest and are feeling daring or want to see if a problem has been fixed.
All previous releases are listed on GitHub, with release notes, and are available for download from Amazon S3. They are handy for testing, but otherwise we recommend using the latest stable release. Some older GitHub release pages include the same binaries for downloading. But we have discontinued including binaries as assets on newer release pages because of the large number of files for each release.
Install, Repair, or Update UF2 Bootloader
Latest version: 0.11.0
The UF2 bootloader allows you to load CircuitPython, MakeCode, and Arduino programs. The bootloader is not CircuitPython. If a UF2 bootloader is installed, you can check its version by looking in the INFO_UF2.TXT file when the BOOT drive is visible (FTHRS2BOOT, MAGTAGBOOT, HOUSEBOOT, etc.)
It is not necessary to reinstall a UF2 bootloader you unless a BOOT drive is not visible when in UF2 bootloader mode, or you know of a problem with your current UF2 bootloader.
If a UF2 bootloader has never been installed on the board, or the UF2 bootloader was removed by erasing or overwriting the flash, the UF2 bootloader must be installed in order to flash .uf2 files onto the board. .bin files can be uploaded without a UF2 bootloader, using the ESP Web Flasher or esptool.py.
Note: update.uf2 files are not currently working on ESP32-S2 or ESP32-S3 boards.
Important: this will erase previously flashed firmware and sketches from the board, but needs to be perfomed only once.
The instructions here are general. We recommend you consult the manufacturer's board documentation for detailed instructions, which may be different.
- Unzip to find the file combined.bin.
- Place board in bootloader mode:
- Plug board into a USB port on your computer using a data/sync cable. Make sure it is the only board plugged in, and that a charge-only cable is not being used.
- Press and hold down the BOOT or 0 button.
- Press and release the RESET or RST button.
- Release the BOOT button.
- Upload combined.bin (Google Chrome 89 or newer):
- Open ESP Web Flasher in a new window/tab.
- Select 460800 Baud from the pull-down menu (top-right).
- Click Connect (top-right).
- Select the COM or Serial port from the pop-up window.
- After successful connection, click Erase.
- After successful erase, click any Choose a file..., then locate and select the combined.bin file unzipped earlier.
- After successfully choosing combined.bin, click Program.
- After the TinyUF2 firmware update is complete, press the RESET button on the board. A new drive BOOT should be visible in your file browser.
After installing the UF2 bootloader, enter the bootloader by double-clicking the reset button. On boards with an RGB status LED, tap reset once, wait for the LED to turn purple, and tap again before the purple goes away. On other boards, consult the board documentation.
After you update, check INFO_UF2.TXT to verify that the bootloader version has been updated. Then you will need to load or reload CircuitPython using the .uf2 file.