0

Currently to get time/date i'm using DS3231 module with the RTClib library, i want to use the Atmel 24C32 chip on the module to store some small values (temperature etc).

Can i use the current library AND an external EEPROM library (which one?) OR i need to change my RTC library in order to use EEPROM feature?

  • 1
    why not use the EEPROM of your MCU? – Juraj Jun 21 '19 at 8:35
  • @Juraj because built in EEPROM have a limited number that can be write, i think it's 100,000 times. – ElectronSurf Jun 21 '19 at 9:34
  • every EEPROM has 'limited' count of writes. you have an Arduino Uno with removable ATmega328? – Juraj Jun 21 '19 at 10:48
  • @Juraj yes but 24C32 have write cycle of 1 million times instead of 100,000 times of ATmega328. – ElectronSurf Jun 21 '19 at 11:47
1

Can i use the current library AND an external EEPROM library (which one?)

Yes. Devices on an I2C bus are separate devices and use their own separate libraries.

| improve this answer | |
  • is this a proper library to use? – ElectronSurf Jun 21 '19 at 10:14
  • 1
    It's the first hit on Google so I guess so. I don't use Arduino and have my own chipKIT DTWI based library so I don't know. – Majenko Jun 21 '19 at 12:28
  • just in case anyone stumble upon this question; i tested this library and it's working. – ElectronSurf Jun 21 '19 at 20:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.