JyeSmith / 18650-Backpack

Battery management system for your FPV goggles.
MIT License
26 stars 4 forks source link

5 second EEPROM writes will cause write exhaustion in under 200 hours #1

Closed mon closed 5 years ago

mon commented 5 years ago

Logic: 100k writes / writes per hour Writes per hour = (60/5)*60

Either slow the rate, or do some load balancing (change EEPROM address every 100k writes?) since it's 100k per cell, not for the entire flash.

JyeSmith commented 5 years ago

Youre not wrong! Ive added an external eeprom (at24c02) to the pcb but Im yet to test is there is enough memory for the exteeprom lib. Things to do...

image

mon commented 5 years ago

Great to hear it! Sounds like it'll (probably) be sorted then :)

JyeSmith commented 5 years ago

Thanks for having a good enough look to pick that up!

If you see anywhere code can be optimised for space let me know, or submit a pull. My next step is to cut back the font sone more.

mon commented 5 years ago

The 2 major things are gonna be the Arduino backend and the font. Might be more trouble than it's worth.

JyeSmith commented 5 years ago

External eeprom added :)

https://github.com/JyeSmith/18650-Backpack/commit/c09f394be49028447418069dc1ab59f5c57f5c23