NVS Arduino Library Wear Leveling?
Posted: Sun Oct 25, 2020 3:31 pm
Hi All,
I'm quite new at all this but am loving it and learning a ton. I'm still using arduino IDE with my esp32 projects but some day I'll graduate. I made smart roller shades using motors with encoders, esp32, and two l98ns (there are 3 shades connected). Rather than using endstop switches, I'm using this NVS library that ports nvs functions to the arduino platform.
https://github.com/rpolitex/ArduinoNvs
My code writes the relevant encoder position when it arrives at its targeted location and writes the target location when it gets a command to move. What I can't figure out is whether this library is capitalizing on Wear Leveling, or if it would need to be modified in some way to improve longevity by wear leveling. My current feeling is that wear leveling is built into the api that the library is using by default and thus I'm covered without doing anything further. I'm doing about 24 writes of integers per day, so I should be set for a while, but it'd still be dumb to keep hitting the same space every time if I could avoid it as replacing the board is a big pain! Any thoughts?
I'm quite new at all this but am loving it and learning a ton. I'm still using arduino IDE with my esp32 projects but some day I'll graduate. I made smart roller shades using motors with encoders, esp32, and two l98ns (there are 3 shades connected). Rather than using endstop switches, I'm using this NVS library that ports nvs functions to the arduino platform.
https://github.com/rpolitex/ArduinoNvs
My code writes the relevant encoder position when it arrives at its targeted location and writes the target location when it gets a command to move. What I can't figure out is whether this library is capitalizing on Wear Leveling, or if it would need to be modified in some way to improve longevity by wear leveling. My current feeling is that wear leveling is built into the api that the library is using by default and thus I'm covered without doing anything further. I'm doing about 24 writes of integers per day, so I should be set for a while, but it'd still be dumb to keep hitting the same space every time if I could avoid it as replacing the board is a big pain! Any thoughts?