battery battery-power data-storage mlab-kicad mlab-module sd-card usb-c lii-on measuring-device measuring-platform


Multiple parallel Li-ion 18650 battery cell module with BMS and data storage with MCU control.

This is an open-source hardware design, one of the modules from the MLAB labolatory system.

BATDATUNIT01B - Li-ion power and Data Storage Module

The BATDATUNIT01 is a versatile battery and data module incorporating an ATmea1284p microcontroller paired with a quintet of Li-ion batteries. It is a reliable power source for extended durations, making it an integral component in various detectors or measuring systems.



  • Microcontroller: ATmega1284p provides robust processing capabilities to manage complex tasks efficiently.
  • Battery Pack: A Set of up to five Li-ion batteries offers substantial power, facilitating long-term operations without frequent recharging.
  • USB-C Charging: Enables hassle-free charging with a modern USB-C interface, ensuring the module is readily powered for sustained use.
  • Charging and Monitoring Circuits: The BQ25628E circuit oversees the charging, while the BQ34Z100 gauge monitors the battery state for optimal energy management.


The BATDATUNIT01 is designed for versatility:

  • As a power module for semiconductor particle detectors like the AIRDOS04, it ensures uninterrupted data acquisition in environmental monitoring.
  • It can be integrated into remote sensing stations, providing consistent power and data logging capabilities for long-term ecological studies.
  • In automated weather stations, the module's resilience and sensor suite offers valuable insights into meteorological conditions.
  • The module can be deployed in mobile robotics for energy supply and environmental data collection, aiding navigation and decision-making processes.
  • It is also ideal for educational purposes, as a hands-on tool to teach about energy management, data acquisition, and sensor integration.

The robust design and connectivity options make the BATDATUNIT01 a dependable choice for powering and managing data across many scientific applications.

For more detailed information on interfacing and protocols, please refer to the ATmea1284p datasheet and the communication standards for UART, I2C, SPI, and GPIO.


Designed for convenience, the module allows for fast detachment from the measuring part without tools, streamlining the replacement process. Data can be downloaded during battery charging thanks to onboard memory.

BATDATAUNIT01 top view

BATDATAUNIT01 bottom view


Internal structure

    flowchart TD

    subgraph a[User interfaceI]
        USB[[USB-C\nData + power]]
        UI1([User interface \n Button + battery indicator])
        UI2([User interface \n Button + 3x LED])


    USB --USB --> USW

    FTDI -- I2C --> I2CSW
    FTDI -- UART <--> MCU
    MCU -- I2C --> I2CSW[I2C mux]
    MCU --SPI <--> SDW
    MCU --> SDW

    subgraph one[Memory interface]
    SDR[SD card] <--> SDI
    SDI[SD card interface] -- USB <--> USW
    SDW[SD card \n SPI-SWITCH] <--> SDI

    subgraph three[Digital part ]
    USW -- USB <--> FTDI[FTDI\nI2C + UART]

    I2CSW --I2C--> HYG[Hygrometer]
    I2CSW --I2C--> ALT[Pressure sensor]

    I2CSW -- I2C --> I2Cen


    I2CSW --I2C--> GAUGE
    I2CSW --I2C--> charger

    GAUGE --> UI1
    MCU --> UI2

    GAUGE --> PWR3v3
    GAUGE --> PWR3v3E
    GAUGE --> PWR5vE

    USB -- Power --> charger

    subgraph two[POWER sources]
    PWR3v3[Power supply\nfor internal 3.3V]
    PWR3v3E[Power supply\nfor detector 3.3V]
    PWR5vE[Power supply\nfor detector 5V]

    charger --> GAUGE[Accumulators gauge]
    GAUGE <==> LIION[(5x Li-ion cells)]
    PWR3v3 --> MCU

    PWR3v3E --> DI
    PWR5vE --> DI

    I2Cen[I2C switch] -- I2C --> DI
    DI[[Detector interface]] == GPIO, SPI <==> MCU


A durable connector brings together data and detection elements with impressive mechanical resilience. It hosts UART, I2C, SPI buses, and extra GPIO signals, providing extensive interfacing options with various systems.