This program keeps time on a DS3231 and uses the alarm line of the DS3231 and a P-CH MOSFET to cut/give power to an ESP32 and save the recorded time and temperature onto an SD card.
You need the following components to use this program:
- ESP32 or ESP32 development board (this program was tested on the ESP32-DevKitC-32D)
- Adafruit DS3231 Precision RTC breakout
- DFRobot Micro SD Card Module for Arduino
- Logic-level P-CH MOSFET (I use this one)
- Some resistors (1x 100k and 3x 10k)
Before you begin, you need the ESP-IDF installed on your computer. Please visit the Espressif website for more information on installation.
You also need the ESP-IDF Component Library by @UncleRus in order to run this program