but eeprom can only do 100,000 write/delete runs on the arduino
someone on the arduino forum is mentioning something about "cells"
yes, 100,000 minimum
Of course, the 100,000 cycles applies to each cell. So, write 100,000 to each (collection of cells), then move to the next set. How many are in each set depends on the size of the value you are storing. You'd have one (set) to record where you were currently writing, updated only when that value changed.
reminimize eeprom uses: you don't have to write to eeprom everytime a coin is inserted. You can have the data held in ram and written to eeprom only when a brown-out is detected. You can use a diode / cap to isolate the mcu and outboard eeprom from the main rails to help sustain power supply for this purposes.
use lots of outboard eeprom and hash to distribute eeprom writes.
only writing to eeprom when you detect a power failure is well worth considering. That's what most systems do.
Ruffsta wrote:how do you detect a power failure in coding?
Users browsing this forum: paularcoleo and 8 guests