Skip to content
Greg edited this page Oct 24, 2018 · 12 revisions

Welcome to the Arduino-Data-logger-with-RTC-SD-card-OLED-display wiki!

This code is for an Arduino (UNO for instance) connected to:

  • A real time clock DS3231 (RTC) module (I2C interface).
  • A SD card reader (with SPI interface).
  • an SSD1306 OLED display (I2C interface)

The systems monitors any change of state of a digital pin (here #2) of the Arduino, and writes the time and date of each change to the SD card (file "data.txt"). As a bonus, the temperature (from the internal RTC temperature sensor) is also written to the file. When booting, if the file "data.txt" does not exist, it is created. Otherwise the data are appended to it.

It is also possible to set the time and date of the RTC using a special file on the SD card ("setdate.txt"). Finally, the OLED display shows the time of each change of the input pin.

Clone this wiki locally