Skip to content

ESP32 (MCU)

OSECHI uses the ESP32-WROOM-32E module as its main controller. It runs the detection firmware, communicates with sensors via I2C and SPI, and outputs data over USB serial.


Specifications

Item Specification
Chipset ESP32-WROOM-32E
CPU Dual-core Xtensa LX6 @ 240 MHz
SRAM 520 KB
Flash 4 MB
WiFi 802.11 b/g/n @ 2.4 GHz
Bluetooth v4.2 + BLE
RTC Real-time clock built-in
Operating Temperature -40 to 85°C

OSECHI Usage

Interface Role in OSECHI
GPIO (digital input) Reads detection signals from 3 scintillator channels (GPIO12, GPIO19, GPIO27)
GPIO (digital output) Drives 3 LEDs for visual detection feedback (GPIO14, GPIO26, GPIO33)
ADC Measures analog signal from MPPC sensor (GPIO32)
SPI Controls 3 DAC chips that set detection thresholds (GPIO5/13/15/18/23)
I2C Reads environmental sensor BME280 — temperature, pressure, humidity (GPIO21/22)
UART USB serial communication — command input and JSONL data output at 115200 baud
RTC Provides absolute unix timestamps for detection events (detected_us field)
WiFi Optional AP mode for wireless monitoring (ENABLE_WIFI=1)

Firmware Resource Usage

Resource Usage
Flash ~900 KB (~22% of 4 MB)
RAM ~74 KB (~14% of 520 KB)

References