Skip to the content
2 layers52.2 × 34.4 mmMCU DataLoggerPCB, the printed circuit board in 3D

MCU DataLoggerPCB

lologog/MCU_DataLogger1

A microcontroller-based device for logging and storing data from external sensors. The data is saved to EEPROM memory for later retrieval and analysis

Size
52.2 × 34.4 mm
Copper layers
2
Thickness
1.6 mm
Parts
30
Nets
35
Pads
117
Tracks, vias
271, 54
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
8 Mar 2025
Updated
2 Nov 2025

Overview

MCU DataLoggerPCB is an open-source printed circuit board by lologog, from the lologog/MCU_DataLogger repository on GitHub, published under the MIT licence. It is a 2-layer board of 52.2 × 34.4 mm with 30 parts on 35 nets, routed with 271 tracks and 54 vias.

It is built around the ATMEGA328P-AU, 24LC1025-I/P and DS1337S+T&R. Its parts include 7 resistors, 5 capacitors, 4 ICs, 4 connectors and 2 diodes. It belongs with the sensors and measurement boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

3

README

README.md

MCU Data Logger

Project description

In many embedded systems, there is often a lack of non-volatile or a dedicated mechanism for long-term data logging. Sensor readings, digital signals or communication data are frequently lost or must be transmitted in real time, which can be inconvenient or require constant infrastructure.

To address this limitation, I developed a compact data logger that acts as an independent module capable of storing data for later analysis. The device can capture data from digital or receive custom data frames sent by other devices via a communication bus.

Project Goals and Scope

  • Design and build a complete embedded data-logging system including hardware, firmware and mechanical design.
  • Capture data from digital inputs or communication frames transmitted over a bus.
  • Store data safely in non-volatile memory (using internal CPU EEPROM or two external I2C chips).
  • Provide a user interface for operation control and system status.
  • Include a custom 3D-printed enclosure to protect the electronics and ensure ease of installation.

Hardware design

The hardware is build around an ATmega328p microcontroller running with an external 16MHz crystal oscillator, ensuring stable and precise timing for all operations. Data may be stored in two external 24LC1025 I2C EEPROM chips, which provide a large amount of non-volatile memory for long-term data logging. An additional DS1337S+ RTC module keeps accurate time for timestamping logged events.

The board includes two LEDs: one serves as a power indicator, while the second is user-programmable and can be freely controlled by the firmware for signaling various system states. External connection are provided for 5 V power input, six digital inputs and accompanying +5 V and GND rails for convenient sensor or signal wiring. Communication and programming interfaces are also available through UART, I2C and SPI/ICSP headers.

The PCB has been designed with mechanical integration in mind. It can be easily mounted inside the custom 3D-printed enclosure, with precisely aligned M2 mounting holes and standoff positions that provide a secure fit between the base and the upper part of the case.

3D render of the PCB board made in KiCad software


Finished PCB board


PCB board with bottom part of the enclosure


Assembled device


Example Application - Office Window Monitor

To demonstrate the flexibility of the MCU Data Logger platform, a sample firmware project project was implemented for monitoring office windows.

The system uses six magnetic reed switches (contact sensors) connected to the digital inputs of the board. It continuously monitors each window's state, counts the number of openings and calculates the total time each window remains open.

Communication Interface (UART)

The device communicates with a PC via UART, accepting three command codes:

  • '1' - Sends the current window states , total number of openings and total open time for each channel.
  • '2' - Resets all data stored in EEPROM and RAM.
  • '3' - Prints the system uptime since power-on.

This allows the user to easily monitor and control the logger from a serial console or custom PC software.

Firmware structure

The firmware was written entirely in C and designed to be modular, reusable and easy to extend for different data-logging applications. It is divided into two layers: a set of core low-level drivers and an application layer implementing the example project logic.

Core drivers

These modules provide essential hardware functionality and can be reused across multiple projects built on this platform:

  • i2c.c / i2c.h - Communication with external 24LC1025 EEPROMs and the DS1337S+ RTC module via I2C bus
  • uart.c / uart.h - UART serial interface for communication with a PC or other microcontrollers
  • eeprom.c / eeprom.h - Management of non-volatile internal data storage
  • rtc.c / rtc.h - Real-time clock driver providing precise timekeeping and timestamps
Application layer

This section implements the Office Window Monitor example, showcasing how the data logger can be adapted to real-world tasks:

  • windows.c / windows.h - Detects window openings, counts events and measures how long each window remains open.
  • console.c / console.h - handles UART command parsing and formatted data output for the serial console.

Example UART Output

After startup, the device displays basic information such as firmware version, UART settings and available commands. The first readout shows the initial state where all windows are closed. After a short time, another read reveals that window 2 and 6 have been opened several times, with their total open duration displayed. Next, the system uptime is requested and shown as 00:00:43. Finally, the reset command is issued, clearing all stored data - the last read confirms that all counters and timers have returned to zero.

Reusability and Development Notes

  • The device operates from a 5 V power supply, which can be provided through the main power connector on the left side of the board or directly from the ICSP header during programming or testing.
  • Firmware is programmed via the ICSP interface, and in this project the board was flashed using a USBasp HW-437 programmer.
  • For serial communication and debugging, a USB-UART converter (FT232) was used to connect the logger to a PC terminal.

Author

Parts

30
QtyValueFootprintReferences
4MountingHoleMountingHole:MountingHole_2.2mm_M2H1, H2, H3, H4
310kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2, R3, R7
20.1uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C4
222pFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC2, C3
224LC1025Package_SO:SOIC-8_5.3x5.3mm_P1.27mmU1, U2
2330Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR4, R5
24.7kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R6
2Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1, J2
2LEDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1, D2
1100nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC5
116 MHzCrystal:Crystal_SMD_5032-2Pin_5.0x3.2mm_HandSolderingY2
132.768 kHzCrystal:Crystal_SMD_3215-2Pin_3.2x1.5mmY1
1ATMEGA328P-AUFootprints:QFP80P900X900X120-32NU4
1BatteryConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalBT1
1Conn_01x09_PinConnector_PinHeader_2.54mm:PinHeader_1x09_P2.54mm_VerticalJ3
1Conn_02x03_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ4
1DS1337S+Footprints:SOIC127P600X175-8NU3

The 29 most common of 30 parts.

Similar boards

  • 2 layers50.2 × 31.2 mmMCU Datalogger, the printed circuit board in 3D

    MCU Datalogger

    futureshocked/KLP4e_MCU-Datalogger

    This is the repository for the "MCU Datalogger" project.

    31 parts138MIT
  • 2 layers42.7 × 24.4 mmBACEE, the printed circuit board in 3D

    BACEE

    futureshocked/KicadLikeAPro-Project-3-BACEE

    This is one of the PCB projects from the Kicad Like a Pro book. It contains a two and four layer board that implements an Arduino clone with external EEPROM and a clock.

    20 parts19MIT
  • 4 layers49.3 × 34.1 mmDattalogger Board, the printed circuit board in 3D

    Dattalogger Board

    DevMajed/DataLogger-Board

    Hardware PCB Design for AVR-based Datalogger using KiCAD

    30 parts4
  • 2 layers41.4 × 27.7 mmDuinoClone, the printed circuit board in 3D

    DuinoClone

    ARHollisSr/DuinoClone

    Arduino Clone with extended EEPROM

    20 parts1MIT
  • 4 layers50 × 30 mmDatalogger v1, the printed circuit board in 3D

    Datalogger v1

    GildardoRestrepo/course_electronics_design

    Repositorio de actividades entregables del curso de diseño electrónico. UPB 2026-02

    35 parts1MIT
  • 2 layers51.4 × 38.7 mmLayout (2 Layer), the printed circuit board in 3D

    Layout (2 Layer)

    VishwanathKambalyal/MCU-Data-Logger

    Data logger

    30 parts1
  • 2 layers47.6 × 30.5 mmMCU Datalogger, the printed circuit board in 3D

    MCU Datalogger

    adixit-03/kicad_project

    29 parts

Questions

How big is the MCU DataLoggerPCB PCB?

It measures 52.2 × 34.4 mm and has 2 copper layers, 1.6 mm thick.

What parts does the MCU DataLoggerPCB use?

30 parts, built around the ATMEGA328P-AU, 24LC1025-I/P and DS1337S+T&R. 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.

Where can I download the MCU DataLoggerPCB KiCad files?

From the lologog/MCU_DataLogger repository on GitHub, at the commit this page was made from: the board is PCBs/MCU_DataLoggerPCB.kicad_pcb and its schematic PCBs/Connectors.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the MCU DataLoggerPCB design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).