All tutorials

6 · Full projects

Project: data logger

Expert40 min

Goal

Sample a sensor at a steady rate, timestamp it and store it.

Why it matters

Every scientific experiment starts with a reliable, timestamped acquisition.

Steps

  1. 01Read the sensor exactly every second (millis()).
  2. 02Timestamp with the DS3231.
  3. 03Output the lines as CSV.
  4. 04Store the sample count in EEPROM to survive a reset.

This tutorial runs inside the Circuitly simulator: your wiring and your code are checked automatically at every step.

Next tutorials