I've looked all over for information on this, but I haven't found a solid answer.
The ZS-042 includes a DS3231 RTC, as well as an AT24C32 EEPROM, and has an I2C interface and battery backup.
What I'm trying to find out is how much memory in the EEPROM I can utilize for my project, and how do I access that memory?
The closest I've been able to find is this example sketch from a library called DS3231_Simple: DS3231_Simple/MultiDataLogger.ino at master · sleemanj/DS3231_Simple · GitHub
However, this seems to indicate that there are only 7 bits of available memory. That seems odd given that the AT24C32 supposedly has 32Kb.
At the end of the day, I am making a light controller (for an aquarium) and would like to have my parameters saved in the event of a power outage.
Thanks for your help, and let me know if you need any more information!
there are only 7 bits of available memory
That's not what it says. The AT24C32 has 32kbits of memory. The "7 bits" refers to the 7-bit I2C address of the EEPROM - which has nothing to do with the storage capacity of the EEPROM.
The "7 bytes" refers to the amount of data that you can write to the EEPROM using the library's logging functions. The writeLog function only allows you to write 7 bytes of data in one log entry. It does not explain why this value was chosen but it always writes 5 bytes of data as well as your 7 bytes. The extra 5 bytes are a date/timestamp.
You can use just the basic EEPROM library and write your data to the EEPROM in any way that suits you.
Pete
Thank you, that makes much more sense. I assume this is the library you're referring to: https://www.arduino.cc/en/Reference/EEPROM
This should get me going in the right direction! Thanks again!