
Decabox pcb
arvindsa/decabox
A compact, intelligent battery management system for 6× Decapo batteries used with cochlear speech processors. This project monitors cell voltage, ambient light, and battery state-of-charge in real-time, with visual…

A compact, intelligent battery management system for 6× Decapo batteries used with cochlear speech processors. This project monitors cell voltage, ambient light, and battery state-of-charge in real-time, with visual…
Decabox pin pcb is an open-source printed circuit board by arvindsa, from the arvindsa/decabox repository on GitHub. It is a 2-layer board of 70 × 11 mm with 19 parts on 14 nets, routed with 163 tracks and 26 vias.
It is built around the ADS1115IDGS and WS2812B-2020. Its parts include 3 capacitors, 2 resistors, 2 diodes, 1 IC and 1 connector. It belongs with the lEDs and displays boards of this library.
A compact, intelligent battery management system for 6× Decapo batteries used with cochlear speech processors. This project monitors cell voltage, ambient light, and battery state-of-charge in real-time, with visual feedback via WS2812B RGB LEDs and a 128×64 OLED display.
Competition: element14 Project14 / Spring Clean 2026
Status: Complete firmware + hardware design
MCU: STM32U031C8T6 (56 MHz Cortex-M0+, 12KB SRAM)
Three boards included:
hardware/| Signal | GPIO | Function |
|---|---|---|
| I2C1_SCL/SDA | PB6/PB7 | I²C bus — all sensors |
| USART2_TX/RX | PA2/PA3 | Debug UART → ST-Link V3 |
| WS2812B_DATA | PA1 (TIM2_CH2) | 6× LEDs, DMA-driven @ 800 kHz |
| OLED_EN | PA11 | OLED power control (AO3401 gate) |
| HALL_SW | PA0 (EXTI0) | Hall switch — Stop2 wake |
| PGOOD | PA9 (EXTI9) | USB power good — Stop2 wake |
| FG_ALRT | PA8 (EXTI8) | MAX17048 low-battery alert |
| OPT_INT | PA10 (EXTI10) | OPT3001 interrupt |
| CHG | PA12 | BQ24074 charge status |
| FLASH_CS/MOSI/MISO/SCK | PA4–PA7 | SPI1 to W25Q128JVS (reserved) |
| ADS_RDY1/2/3 | PB10–PB12 | ADS1115 ready/alert pins |
| SWDIO/SWCLK/SWO | PA13/PA14/PB3 | ST-Link debug |
| Address | Device | Function |
|---|---|---|
| 0x36 | MAX17048 | Fuel gauge — LiPo SOC% |
| 0x3C | SSD1306 | OLED 128×64 display |
| 0x44 | OPT3001 | Ambient light sensor |
| 0x48 | ADS1115 #1 | Cells 1+2 voltage |
| 0x49 | ADS1115 #2 | Cells 3+4 voltage |
| 0x4A | ADS1115 #3 | Cells 5+6 voltage |
SLEEP (Stop2) → HALL_SW rises or PGOOD falls → WAKE
WAKE → Read sensors → Update LEDs + OLED → SLEEPSleep target: < 15 µA (Stop2 mode, OLED powered off via PA11, all timers disabled).
firmware/
Core/
Inc/
app/
battery_map.h — Cell voltage (mV) → LED color mapping
display.h — OLED framebuffer + layout
drivers/
max17048.h — Fuel gauge (I²C register map)
ads1115.h — ADC reads, mux config
opt3001.h — Lux reading, auto-range
ssd1306.h — OLED I²C framebuffer
ws2812b.h — PWM/DMA bit encoding
main.h, stm32u0xx_hal_conf.h, stm32u0xx_it.h
Src/
app/
battery_map.c — Color thresholds
display.c — OLED layout rendering
drivers/
max17048.c, ads1115.c, opt3001.c, ssd1306.c, ws2812b.c
main.c — FSM, init, ISRs
stm32u0xx_hal_msp.c — HAL clock/GPIO setup
stm32u0xx_it.c — Interrupt handlers
syscalls.c, sysmem.c, system_stm32u0xx.c
Makefile, Drivers/, startup_stm32u031xx.s, STM32U031xx_FLASH.ldFrom STM32CubeIDE (GUI):
firmware/ as an existing projectFrom CLI:
cd firmware
make -C Debug/ all
# Flash via ST-Link
st-flash write Debug/decabox.bin 0x08000000
# or via STM32_Programmer_CLI
STM32_Programmer_CLI -c port=SWD -d Debug/decabox.elf -v -rstDebug UART (115200 baud):
minicom -D /dev/ttyACM0 -b 115200 # Linux/macOS
# or use PuTTY/Tera Term on COM port (Windows)| Color | Threshold | Status |
|---|---|---|
| WHITE | < 100 mV | No cell or sensor error |
| GREEN | ≥ 1350 mV | Full |
| YELLOW–GREEN | ≥ 1200 mV | Good |
| ORANGE | ≥ 1050 mV | Low |
| RED | < 1050 mV | Critical |
Brightness: OPT3001 lux linearly mapped to 15–50% over 1–10,000 lux range.
800 kHz PWM/DMA on TIM2_CH2 (PA1):
Each ADS1115 reads 2 differential channels with configurable gain. Resistor divider on pogo contacts scales 0–6V to 0–2V ADC range. Calibration divider ratio defined in firmware/Core/Inc/drivers/ads1115.h.
i2c_scan() to detect all devices (should see 0x36, 0x3C, 0x44, 0x48–0x4A)All component datasheets included in datasheets/:
decabox/
README.md ← This file
firmware/ — STM32CubeIDE project
Core/ — Application code + drivers
Drivers/ — STM32 HAL (auto-generated)
Makefile, *.ld, *.s — Build files
hardware/
main/ — Main PCB (KiCad)
pin-pcb/ — Pin adapter board ×2 (KiCad)
datasheets/ — Component datasheets (PDF)Design and firmware are open source. Refer to the LICENSE file in the repository.
Project: DEV CI/BOX — Cochlear Implant Battery Monitor
Platform: element14 Project14
MCU: STM32U031C8T6
Build: STM32CubeIDE + GCC ARM
For questions, issues, or hardware discussions, see the GitHub repository.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | SolderJumper_2_Open | Arvind_Debug:SolderJumper-2_P1.3mm_Open_Pad1.0x1.0mm | JP1, JP2, JP3, JP4 |
| 4 | TestPoint | Arvind_TestPoint:MILL-MAX_0908-0-15-20-75-14-11-0 | TP1, TP2, TP3, TP4 |
| 3 | 100nF | Capacitor_SMD:C_0603_1608Metric | C1, C2, C3 |
| 2 | MountingHole | MountingHole:MountingHole_2.2mm_M2 | H1, H2 |
| 2 | WS2812B-2020 | LED_SMD:LED_WS2812B-2020_PLCC4_2.0x2.0mm | D1, D2 |
| 1 | 10K | Resistor_SMD:R_0603_1608Metric | R1 |
| 1 | 300E | Resistor_SMD:R_0603_1608Metric | R2 |
| 1 | ADS1115IDGS | Package_SO:TSSOP-10_3x3mm_P0.5mm | U1 |
| 1 | Conn_01x07 | Connector_JST:JST_SHL_SM07B-SHLS-TF_1x07-1MP_P1.00mm_Horizontal | J1 |

arvindsa/decabox
A compact, intelligent battery management system for 6× Decapo batteries used with cochlear speech processors. This project monitors cell voltage, ambient light, and battery state-of-charge in real-time, with visual…

Adamibus/ESPAtomizer-iOS
This is a minimal KiCad 6/7 project skeleton. Open ESPAtomizer.kicadpro in KiCad.



joeltroughton/uSMU
Credit card-sized, USB-powered 4 quadrant source-measure unit hardware and firmware

dridri/bcflight
Raspberry Pi based drone flight controller and remote control

Bylin-code/Stradex1
STRADEX1 Documentation and Build Instructions ============== I've always wanted to put my violin skills to use in a MIDI environment, but there really isn't a controller on the market that can emulate the feel of a…


luftaquila/monolith
DIY wireless real-time datalogging platform for Student Formula and Baja.
It measures 70 × 11 mm and has 2 copper layers, 1.6 mm thick.
19 parts, built around the ADS1115IDGS and WS2812B-2020. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the arvindsa/decabox repository on GitHub, at the commit this page was made from: the board is hardware/pin-pcb/decabox-pin-pcb.kicad_pcb and its schematic hardware/main/Hall Effect Switch.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask arvindsa before reusing the design.