logo elektroda
logo elektroda
X
logo elektroda

ESP32 - Writing temperature sensor data to non-volatile memory: EEPROM vs memory card

RometFan;p 1209 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19600163
    RometFan;p
    Level 26  
    Hi,
    I have temperature sensor data to save - 24 records per day.
    The data history needs to be available for a month which gives me 744 int's.

    Obviously with such a long period, the power may disappear, you would need to save this data somewhere to non-volatile memory. Which is better to use? The ESP doesn't have its own EEPROM only an emulated one, and this is too small anyway.
    1. external EEPROM, e.g. 32k?
    2. memory card?
    3. something else?
  • ADVERTISEMENT
  • #2 19600227
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • #3 19600250
    TvWidget
    Level 38  
    There is probably a non-volatile flash memory connected to the ESP32 processor into which you write the program. Is it all occupied ?
  • ADVERTISEMENT
  • #4 19600564
    khoam
    Level 42  
    RometFan;p wrote:
    ESP does not have its EEPROM only an emulated one, and this one is too small anyway.
    .
    Don't exaggerate. It could be 1MB, 2MB or more in flash memory and it's certainly faster than EEPROM. Instead of using EEPROM emulation (in my opinion, it doesn't make sense) it is better to go for the SPIFFS or LittleFS file systems available for ESP.
  • #5 19637943
    powerTGS
    Level 1  
    Save to SPIFFS memory (you have 1, 2, 3 MB available) depending on your configuration when you win the software. Add an FTP server, then you will have access from the FTP software to the SPIFFS memory in the ESP - you can view, download, delete this data.
ADVERTISEMENT