COAST-Lab / Open-Water-Level

An open-source, low-cost, DIY ultrasonic water level sensor
MIT License
9 stars 4 forks source link

Optimize sleep config #28

Closed SUPScientist closed 5 months ago

SUPScientist commented 5 months ago

Current sleep configuration uses SystemSleepNetworkFlag::INACTIVE_STANDBY which was selected for < 10' sleep duration of original design. Current sampling period is 60', so INACTIVE_STANDBY burns power wastefully.

https://github.com/COAST-Lab/Open-Water-Level/blob/0efb8d7127e500b1fe9524e049f246ad905534ea/Firmware/SLR_Boron_Maxbotix_MB7092_cm/src/SLR_Boron_Maxbotix_MB7092_cm.ino#L210-L213

Get rid of INACTIVE_STANDBY flag, at least for longer sampling intervals. Make sure to add back in if interval returns to ~ 6' period.

SUPScientist commented 5 months ago

Fixed, seemingly, with https://github.com/COAST-Lab/Open-Water-Level/commit/95b8029a5a3109da641ae0f197c54f86aa2ce130