MCU-Data-Logger-PCB

Public

@khaledghanem0

Download board files

Files for version 1. Pick what you came for.

Share MCU-Data-Logger-PCB

Check access before sharing the link.

Who can open this board

Anyone can open this board. No sign-in is required.

This link opens the latest version. Copying it does not grant additional access.

Loading…

README

MCU Data Logger PCB

A compact, battery-powered data logger PCB built around the ATmega328P, designed in KiCad. The board integrates an RTC for timestamping and dual EEPROM chips for storage, with all peripherals communicating over I2C. The design was optimized from an initial 4-layer layout down to 2 layers, cutting manufacturing cost from ~$8 to ~$2 per piece without sacrificing functionality.


Table of Contents


Overview

The board is designed to log data autonomously using an ATmega328P microcontroller. A DS1337S real-time clock provides accurate timestamps via I2C, and two 24LC1025 EEPROM chips (totaling 256 KB of storage) hold the logged data on the same bus. The entire system runs off a battery, with decoupling capacitors stabilizing the supply at the MCU.

External connectivity is handled through a dedicated connectors sheet (sheet 2 of the schematic), which breaks out I2C, UART, GPIO, and ICSP headers — allowing the board to interface with sensors or be reprogrammed in-circuit without any additional hardware.

The key engineering challenge of this project was reducing the board from 4 layers to 2 while keeping all signals properly routed in a compact 50.8 × 30.5 mm footprint.


Schematic

The schematic is split across two sheets. Sheet 1 captures the full circuit — MCU, RTC, EEPROM, power, and passive components. Sheet 2 is an embedded sub-sheet dedicated to the external connectors, keeping the top-level diagram uncluttered.

Sheet 1 — Main Circuit

Sheet 2 — Connectors

Key connections documented in the schematic:

  • ATmega328P (U4) — main MCU with a 16 MHz external crystal (Y2) and a 10k reset pull-up (R6)
  • DS1337S RTC (U2) — I2C real-time clock with a 32.768 kHz crystal (Y1) and 10k I2C pull-ups (R1, R2)
  • 24LC1025 EEPROM × 2 (U1, U3) — dual EEPROM chips on the I2C bus with 4.7k pull-ups (R3, R4)
  • Battery (BT1) — sole power source for the board
  • Status LED (D1, D2) — with 330 Ω current-limiting resistors (R5, R7)
  • Connectors (Sheet 2) — I2C header (J1), Serial UART header (J3), GPIO header (J2, 7 digital pins), ICSP header (J4)

PCB Layout

All 29 components are placed on the front side of the board. The back copper layer (B.Cu) is used as a ground pour, with signal and power routing handled on the front. Power traces run at 0.35 mm and signal traces at 0.2 mm throughout.

Routing highlights:

  • 39 through vias used to transition between layers and connect to the ground pour
  • Ground copper pour applied to B.Cu, stitched to the GND net
  • Power netclass (Vcc, GND): 0.35 mm trace width, 0.8 mm via diameter
  • Default netclass (signals): 0.2 mm trace width, 0.6 mm via diameter, 0.3 mm drill

3D Render


Design Optimization

The most significant design decision in this project was reducing the layer count from 4 to 2.

The initial 4-layer stackup was used to handle signal routing and grounding cleanly, with dedicated inner layers for power and ground planes. While functional, a 4-layer board costs roughly 4× more to manufacture than a 2-layer board at low quantities (~$8 vs ~$2 per piece).

To bring it down to 2 layers, the routing strategy was reworked: signals were rerouted to avoid conflicts without relying on inner layers, the ground plane was moved to B.Cu as a copper pour, and via placement was adjusted to maintain connectivity. The result is a board that meets the same electrical requirements at a fraction of the cost — a meaningful difference at any prototype or small-batch quantity.

Design Specifications

Board Stackup

LayerTypeThicknessMaterial
F.SilkscreenTop Silk Screen——
F.MaskTop Solder Mask0.01 mmEpsilon R: 3.3
F.CuCopper0.035 mm—
Dielectric 1Core1.51 mmFR4
B.CuCopper0.035 mm—
B.MaskBottom Solder Mask0.01 mmEpsilon R: 3.3

Total board thickness: 1.6 mm | Solder mask color: Green

Board Dimensions

PropertyValue
Width50.800 mm
Height30.480 mm
Area1,548.4 mm²

Routing Rules

ParameterPower NetDefault Net
Clearance0.25 mm0.20 mm
Trace width0.35 mm0.20 mm
Via diameter0.80 mm0.60 mm
Via drill—0.30 mm

Board Statistics

ItemCount
Total components29
SMD components20
THT components5
Through vias39
SMD pads88
Through-hole pads25
Mounting holes (NPTH)4

Bill of Materials

ReferenceDescriptionValueQty
U4Microcontroller, TQFP-32ATmega328P-AU1
U2Real-time clock, SOIC-8DS1337S1
U1, U3EEPROM 1 Mbit, I2C, SOIC-824LC10252
Y2Crystal oscillator16 MHz1
Y1Crystal oscillator32.768 kHz1
BT1Battery holder—1
D1, D2LED, 5 mm—2
R1, R2Resistor, I2C pull-up (RTC)10k Ω2
R3, R4Resistor, I2C pull-up (EEPROM)4.7k Ω2
R5, R7Resistor, LED current-limiting330 Ω2
R6Resistor, reset pull-up10k Ω1
C1, C4Decoupling capacitor0.1 µF2
C2, C3Crystal load capacitor22 pF2
C5Decoupling capacitor100 nF1
J1I2C headerConn_01×04_Pin1
J2GPIO headerConn_01×09_Pin1
J3Serial UART headerConn_01×04_Pin1
J4ICSP headerConn_02×03_Odd_Even1
H1–H4Mounting holes—4

File Structure

├── kicad/
│   ├── MCU_Datalogger.kicad_pro        # KiCad project file
│   ├── MCU_Datalogger.kicad_sch        # Main schematic (sheet 1)
│   ├── Connectors.kicad_sch            # Connectors sub-sheet (sheet 2)
│   ├── MCU_Datalogger.kicad_pcb        # PCB layout
│   └── fp-lib-table                    # Footprint library references
├── assets/
│   ├── schematic_main.pdf              # Schematic sheet 1 export
│   ├── schematic_connectors.pdf        # Schematic sheet 2 export
│   ├── pcb_layout.png                  # PCB layout screenshot
│   ├── 3d_front.png                    # 3D render, front side
│   └── 3d_back.png                     # 3D render, back side
├── LICENSE
└── README.md

License

This project is licensed under the MIT License.

Comments

No comments yet. Be the first to ask about this board.

Ask about this board

Sign in to BoardRepo

New here? Signing in creates your account; there is no separate sign-up.