Live data from Hacker News

Arduino Death Clock

github.com

61–64 of 64 posts

Re: Arduino Death Clock

#62
post #34

ATmega's EEPROM has a lifetime of 100k write/erase cycles. The program stores current time every 10 minutes, giving it ~2 years of lifetime. It looks like the clock will die long before you.

Thanks! I've updated the code to only save twice a day giving the EEPROM an estimated lifetime of 137 years. It's a little more inconvenient, but (maybe) less inconvenient than having to buy a new EEPROM (or likely a new Arduino) every couple years.

Re: Arduino Death Clock

#63
post #21

Earlier quoted context omitted.

I essentially have something like this on my laptop (Chrome new tab) and it was awkward having to explain to the interviewer who saw that on my screen what it was counting down for.

...did you get the job?

Lol no but actually I think I did pretty well on his portion of the interview FWIW. Just set an awkward initial tone that I had to dissipate with some small talk before the actual programming interview.

Re: Arduino Death Clock

#64
post #34

ATmega's EEPROM has a lifetime of 100k write/erase cycles. The program stores current time every 10 minutes, giving it ~2 years of lifetime. It looks like the clock will die long before you.

Thanks! I've updated the code to only save twice a day giving the EEPROM an estimated lifetime of 137 years. It's a little more inconvenient, but (maybe) less inconvenient than having to buy a new EEPROM (or likely a new Arduino) every couple years.

Or you could add a circular buffer to distribute the writes over the whole EEPROM as per Atmel app note AVR101: High Endurance EEPROM Storage [0]? :)

Just kidding...

[0]: http://www.atmel.com/images/doc2526.pdf

Post reply on HN