Bee Motion
ESP32-S2 board with an onboard PIR motion sensor, USB-C and LiPo charging, built for battery-powered motion-detection projects.

On this page
Pinout
22 pins| Pin | GPIO | Labels | Status | Capabilities | Notes |
|---|---|---|---|---|---|
| 1 | 0 | BOOT_BTN | strapping | - | |
| 2 | 1 | A0T1PWM | safe | adc · touch | |
| 3 | 2 | A1PWM | safe | adc | |
| 4 | 3 | A2T3PWM | safe | adc · touch | |
| 5 | 5 | SSA4T5PIRPWM | safe | adc · touch · spi | |
| 6 | 6 | A5T6PWM | safe | adc · touch | |
| 7 | 7 | A6T7PWM | safe | adc · touch | |
| 8 | 8 | A7T8PWM | safe | adc · touch | |
| 9 | 9 | A8T9PWM | strapping | adc · touch | |
| 10 | 10 | A9T10PWM | strapping | adc · touch | |
| 11 | 11 | A10T11PWM | strapping | adc · touch | |
| 12 | 12 | A11T12PWM | strapping | adc · touch | |
| 13 | 13 | A12PWM | strapping | adc | |
| 14 | 14 | T14PWM | strapping | touch | |
| 15 | 15 | SCKPWM | strapping | spi | |
| 16 | 16 | MOSIPWM | strapping | spi | |
| 17 | 35 | SDOPWM | strapping | - | |
| 18 | 36 | SDAPWM | strapping | i2c | |
| 19 | 37 | SCLSDIPWM | strapping | i2c | |
| 20 | 38 | MISOPWM | strapping | spi | |
| 21 | 43 | TXPWM | uart | uart | |
| 22 | 44 | RXPWM | uart | uart |
Start with these
9 pins with no boot or system involvementFreely assignable - no strapping, flash, USB or JTAG duties. Ideal first picks for buttons, sensors and LEDs.
Fine - with a little care
sampled at boot or shared with debug/serial| Pin | Label | What to know | Role |
|---|---|---|---|
| BOOT_BTN | GPIO0 | Must be pulled high for normal boot; pulling low at reset enters bootloader (download mode). Also serves as SPI flash data-in (SPID) line when using external flash memory. | Strapping |
| SCK | XTAL_32K_P | If an external 32 kHz crystal is used for RTC, this pin is dedicated to the crystal and cannot be used as GPIO. | Other |
| MOSI | XTAL_32K_N | If using an external 32 kHz crystal, this pin is connected to the crystal and should not be used as general I/O. | Other |
Only if you know the tricks
wired to flash or USB - expect a fight| Pin | Label | What to know | Role |
|---|---|---|---|
| A8 | FSPIHD | Typically used as flash/PSRAM IO line in certain configurations; avoid using as GPIO if flash or PSRAM is present. | Flash |
| A9 | FSPICS0 | Often used as flash chip select in some designs; not available for GPIO when controlling flash. | Flash |
| A10 | FSPID | Used for flash data transfer in certain configurations; should be avoided for general use if flash is connected. | Flash |
| A11 | FSPICLK | Used as flash clock line in some boards; not free for GPIO if driving flash. | Flash |
| A12 | FSPIQ | Used for flash data output in certain configurations; avoid using as GPIO if connected to flash. | Flash |
| T14 | FSPIWP | Used as flash write-protect/data line on some modules; not recommended for other usage. | Flash |
| SDO | FSPID | Used by internal flash/PSRAM on some ESP32-S2 variants; avoid using as GPIO to prevent conflicts. | Flash |
| SDA | FSPICLK | May be connected to internal flash or used for high-speed SPI; not intended for general GPIO use. | Flash |
| SCL | FSPIQ | Used for internal flash/PSRAM data in some models; should not be repurposed for GPIO. | Flash |
| MISO | FSPIWP | Reserved for flash/PSRAM in ESP32-S2 modules with internal memory; not recommended for general I/O. | Flash |
Pinout notes All 22 pins on the Bee Motion are usable GPIO. Peripheral wiring is straightforward: I²C is mapped to SDA on GPIO36 and SCL on GPIO37; the SPI bus ( MOSI ,…
All 22 pins on the Bee Motion are usable GPIO.
Peripheral wiring is straightforward: I²C is mapped to SDA on GPIO36 and SCL on GPIO37; the SPI bus (MOSI, MISO, SCK, SS) is broken out in full; TX/RX on GPIO43 and GPIO44 cover serial logging and flashing.
Beyond plain digital I/O you get 12 ADC-capable pins for sensors and battery monitoring and 11 capacitive-touch inputs.
3 of the exposed pins carry boot-time or system duties on the ESP32-S2 (BOOT_BTN, SCK and MOSI) - check the guidance above before wiring anything to them. A0, A1, A2, SS and 5 more are free of any such role - the safest first picks.
Getting started
flash your first firmware in ~2 minutesBoard: ESP32S2 Dev Module USB CDC On Boot: Enabled Flash Size: 4MB (32Mb) Flash Mode: DIO Partition Scheme: Default 4MB with spiffs (1.2MB APP / 1.5MB SPIFFS) Upload Speed: 921600
// blink the onboard LED
void setup() {
pinMode(1, OUTPUT);
}
void loop() {
digitalWrite(1, HIGH); delay(500);
digitalWrite(1, LOW); delay(500);
}[env:Bee_Motion]
platform = espressif32
board = esp32-s2-saola-1
framework = arduino
monitor_speed = 115200
upload_speed = 921600esp32-s2-saola-1 — or type it after board =.esp32:
board: esp32-s2-saola-1
variant: Bee_Motion
framework:
type: esp-idf
# blink - GPIO1
output:
- platform: gpio
pin: 1
id: led_out
light:
- platform: binary
name: "LED"
output: led_outesp32-s2-saola-1 (same ids as PlatformIO).esptool.py --chip esp32s2 --port /dev/ttyACM0 \
--baud 921600 write_flash 0x0 firmware.bin--port = your /dev/tty* (macOS/Linux) or COMx (Windows).Specifications
ESP32-S2About this board
Inside sits the ESP32-S2 - a single-core Xtensa with native USB-OTG and no Bluetooth.
The $19.99 price tag is typical for an ESP32-S2 board.
Around the module: a motion sensor, battery charging (MCP73831) and Reset/Boot buttons.
It flashes over native USB - no serial-converter driver needed, which isn't a given among ESP32-S2 boards.
Where to buy
prices are typical street prices
Resources
Similar boards



