Skip to the content
2 layers113.9 × 86.2 mmDatalogger schematic, the printed circuit board in 3D

Datalogger schematic

neuesfliegen-ev/DataLogger4

This project is a Flight Data Logger designed for UAVs and model aircraft. It logs sensor and GPS data at 1 Hz to an SD card in CSV format and streams live telemetry to a server over a cellular (3G/4G) link.

Size
113.9 × 86.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
32
Nets
63
Pads
142
Tracks, vias
394, 61
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
26 May 2025
Updated
4 Oct 2026

Overview

Datalogger schematic is an open-source printed circuit board by neuesfliegen-ev, from the neuesfliegen-ev/DataLogger repository on GitHub. It is a 2-layer board of 113.9 × 86.2 mm with 32 parts on 63 nets, routed with 394 tracks and 61 vias.

Its parts include 11 resistors, 4 capacitors, 4 ICs, 1 diode and 1 switch. It belongs with the sensors and measurement boards and the ESP32 and AVR (ATmega, ATtiny) boards of this library.

README

README.md

🛩️ Flight Data Logger

This project is a Flight Data Logger designed for UAVs and model aircraft. It logs sensor and GPS data at 1 Hz to an SD card in CSV format and streams live telemetry to a server over a cellular (3G/4G) link. The system uses an IMU, a barometric sensor and a GPS module, and shows live status updates on an OLED screen.

📦 Features

  • Logs data to SD card in .csv format
  • Captures:
    • 9-axis IMU data (acceleration, gyroscope, magnetometer)
    • Barometric pressure, altitude and temperature
    • GPS coordinates, altitude, speed and satellite count
  • OLED display for live status updates
  • Live telemetry over cellular: an ESP32 gateway forwards data to a web server through a SIM7600 modem (see Live Telemetry)
  • Live dashboard for the telemetry data
  • Modular and extensible design for future sensor integration

🧠 Core Components

ComponentDescription
ArduinoPrimary microcontroller (Nano 33 BLE Sense REV2): sensors, SD logging, OLED
ESP32Telemetry gateway between the Arduino and the cellular modem
SIM7600Cellular modem (with SIM card), controlled by AT commands over UART
BMI270_BMM1509-DOF IMU (acceleration, gyroscope, magnetometer)
LPS22HBBarometric pressure sensor
TinyGPS++GPS data parser
SH1106 OLEDI2C 128x64 screen for live feedback
SD Card ModuleStores .csv data logs
Voltage DividerScales down battery voltage for safe ADC reading

📡 Live Telemetry (ESP32 + SIM7600)

Code: esp32SimNano.ino

text
Arduino Nano ──I2C (JSON frames)──► ESP32 ──UART (AT commands)──► SIM7600 ──HTTP POST──► Server ──► Dashboard
     ▲                                │
     └────── READY / ACK (GPIO) ──────┘
  • Arduino → ESP32: the ESP32 runs as an I2C slave (address 0x42) and receives each data frame as a JSON payload.
  • Handshake: two GPIO lines coordinate the transfer:
    • READY (ESP32 → Nano, GPIO 4): high when the modem is up and the ESP32 can accept a new frame.
    • ACK (ESP32 → Nano, GPIO 5): high when the last frame was delivered successfully (HTTP 200).
  • ESP32 → SIM7600: UART2 at 115200 baud (ESP32 TX = GPIO 17, RX = GPIO 16). On startup the ESP32:
    1. waits until the modem answers AT
    2. disables echo (ATE0)
    3. opens the network (AT+NETOPEN)
    4. starts an HTTP session (AT+HTTPINIT, recovering with AT+HTTPTERM if a session is stuck)
    5. sets the server URL and application/json content type (AT+HTTPPARA)
  • Sending: each frame is uploaded with AT+HTTPDATA and sent as an HTTP POST (AT+HTTPACTION=1). The ESP32 then waits for an HTTP 200 response.
  • Health check: the ESP32 polls the modem with AT every 200 ms and updates the READY line.
  • Modes: the payload carries a "mode" field (REALTIME or BATCH), which the ESP32 parses.

🔧 Circuit Diagram

Wiring diagram

Note: the schematic still shows a 430 Ω resistor in the voltage divider. Use 510 Ω as described below.


🔋 ADC Voltage Divider

To safely read the battery voltage with the Arduino's 3.3 V ADC pin, use the following voltage divider:

  • Input voltage: up to 4.2 V (LiPo 1S max)
  • Top resistor (battery side): 510 Ω
  • Bottom resistor (to GND, ADC reads across it): 1.8 kΩ

📐 Voltage Divider Calculation

text
Vout = Vin × R_bottom / (R_top + R_bottom)
     = 4.2 V × 1800 / (510 + 1800)
     ≈ 3.27 V

📂 Data Format

Logged data is stored as a CSV file (log.csv) with the following headers:

text
timestamp,accX,accY,accZ,gyroX,gyroY,gyroZ,magX,magY,magZ,
latitude,longitude,gpsAltitude,Speed,SatCount,roll,pitch,yaw,
pressure,temperature,paltitude

Example row:

text
1542,-0.01,0.02,9.81,0.01,-0.02,0.00,30.12,11.23,-45.66,
52.5200,13.4050,120.5,10.4,9,0,0,0,100.3,25.5,132.2

🛠️ Getting Started

🔌 Wiring

  • Connect sensors and modules via I2C/SPI/Serial as per the diagram.
  • Ensure GPS is connected to Serial1 (typically TX/RX on the Arduino). (IMPORTANT)
  • For telemetry: connect the Arduino to the ESP32 over I2C plus the READY/ACK lines, and the ESP32 to the SIM7600 over UART (pins above). Insert an active SIM card.
  • Insert a FAT32-formatted SD card.

🧪 Uploading

  1. Install dependencies (Arduino):
    • Arduino_BMI270_BMM150
    • Arduino_LPS22HB
    • TinyGPSPlus
    • U8g2
  2. Compile and upload the main sketch to the Arduino.
  3. Upload esp32SimNano.ino to the ESP32 (ESP32 board package, uses Wire and HardwareSerial). Set the server URL in initSIM7600() if needed.
  4. Open the Serial Monitor at 115200 baud to see real-time debug info (the ESP32 also echoes modem responses there).

📊 OLED Display

The OLED shows system status:

  • Sensor initialization
  • GPS satellite count
  • Errors during SD or sensor setup
  • Team number

To keep the display clear and reduce power, messages are brief and limited to startup and GPS updates.


🧩 Planned Improvements

  • Add orientation calculation (roll, pitch, yaw)
  • Support logging at configurable rates (5 Hz, 10 Hz)
  • Add battery voltage and current sensors

👨‍💻 Credits

  • Developed by the Neues Fliegen Avionics Team
  • Based on libraries by Arduino, Adafruit and Mikal Hart (TinyGPS++)

Parts

32
QtyValueFootprintReferences
7ResistorResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2, R3, R4, R5, R10, R11
6, , , , ,
410kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR6, R7, R8, R9
2100nF_Ceramic/10VCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC2, C4
2Battery_CellConnector_Pin:Battery single pinBT1, BT2
11000uF/10VCapacitor_THT:CP_Radial_D14.0mm_P5.00mmC3
1330uF/10VCapacitor_THT:CP_Radial_D5.0mm_P2.50mmC1
1APA-106-F5LED_THT:LED_D5.0mm-4_RGB_Wide_PinsD3
1Arduino_Nano_33_BLE_SocketPCM_arduino-library:Arduino_Nano_Every_SocketA1
1ESP32_DevKit_V1_DOIT_30GPIOsPCM_SL_Development_Boards:DOIT_ESP32_DEVKIT_30PinsA2
1OLED_128X64_1.3_I2COLED_128X64_1.3_I2C:LCD_OLED_128X64_1.3_I2CDS1
1Push_ButtonButton_Switch_THT:SW_PUSH_6mmSW3
1~Datalogger:Micro_SD_Card_ModuleU4
1~Datalogger:GPS6PINU6
1~MT3608 Custom:MT3608-ModuleU2
1~Datalogger:SIM7600EU5

Similar boards

  • 2 layers50 × 23.2 mmAnalog, the printed circuit board in 3D

    Analog

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    32 parts1kGPL-3.0
  • 2 layers136.8 × 54.2 mmRetropie zero, the printed circuit board in 3D

    Retropie zero

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    32 parts915
  • 2 layersMooltipass top, the printed circuit board in 3D

    Mooltipass top

    limpkin/mooltipass

    Github repository dedicated to the mooltipass project

    32 parts531
  • 2 layers16 × 20 mmESPKey, the printed circuit board in 3D

    ESPKey

    octosavvi/ESPKey

    Wiegand data logger, replay device and micro door-controller

    32 parts353GPL-2.0
  • 2 layers82 × 40.9 mmDisplay7447, the printed circuit board in 3D

    Display7447

    zmaker/arduino_cookbook

    gli sketch del nuovo progetto Arduino Cookbook e dei video di YouTube

    32 parts269
  • 2 layers40 × 38 mmShield, the printed circuit board in 3D

    Shield

    murexrobotics/electrical

    Highly integrated electronics design and printed circuit boards (PCBs) for the MATE ROV Competition. Attempt the impossible.

    32 parts192MIT
  • 2 layers47 × 39 mmQrss clock tx, the printed circuit board in 3D

    Qrss clock tx

    swharden/AVR-projects

    A collection of standalone AVR projects written in C

    32 parts184MIT
  • 2 layers30.9 × 63 mmStm32-io extend, the printed circuit board in 3D

    Stm32-io extend

    hardenedlinux/cheap-pcb

    Cheap PCB: Better understanding the current status of hardware supply chain

    32 parts170CC0-1.0

Questions

How big is the Datalogger schematic PCB?

It measures 113.9 × 86.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Datalogger schematic use?

32 parts. 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 Datalogger schematic KiCad files?

From the neuesfliegen-ev/DataLogger repository on GitHub, at the commit this page was made from: the board is Documentation/PCB files/Datalogger_schematic.kicad_pcb and its schematic Documentation/PCB files/Datalogger_schematic.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Datalogger schematic design in my own project?

Its repository states no licence, so its author keeps all rights: ask neuesfliegen-ev before reusing the design.