OPEnSLab-OSU / OPEnS-Hypnos

Power Control Board for microcontroller projects, designed at OPEnS Lab OSU.
https://github.com/OPEnSLab-OSU/OPEnS-Lab-Home/wiki/Hypnos
GNU General Public License v3.0
5 stars 0 forks source link

Periodic Sleep/Wake Hangs After ~20min #5

Open prototypicalpro opened 4 years ago

prototypicalpro commented 4 years ago

I am experience hanging when using the Hypons board with the Loom Sleep example (https://github.com/OPEnSLab-OSU/Loom/tree/master/examples/Lab%20Examples/Hypnos_SD_Sleep). I have found that consistently after about 20 minutes of continuous sleep/wakeup operation, the board will freeze just after waking up, and will remain unresponsive until it is reset.

I am using an Adafruit Feather M0 WiFi with the new and old hypnos versions. I used the same RTC battery for both, which measured 2.913V. Interestingly, an RTC breakout with an adalogger did not experience the same symptoms, despite also using sleep functionality (The RTC battery on the breakout measured slightly higher at 3.012V, but seemed too little of a difference to cause issues). Frustratingly, I also found this issue only happens when using sleep functionality: in other words I am unable to reproduce the issue after removing the "Loom.SleepManager().sleep()" line.

prototypicalpro commented 4 years ago

All of a sudden I'm having issues replicating the problem: I ran the same setup of both new and old hypnos over the weekend with no issue. Since my previous tests were Tuesday-Thursday, @udellc suggested the issue might be related to the RTC being set to that time, however I tested setting RTC to last Thursday and was still unable to replicate the issue.

I'm stumped as to what to test next. Any ideas @nguyenb5 ?

baonguyen21 commented 4 years ago

I still not yet heard any other report about the board freeze from walking up. There will be another batch for Hypnos V3.2 that have been tested by two other projects. Please let me know if this happen again. For now, I think you should wake up, turn on the 3V rail and delay for at least 10ms for the I2C pull up.

udellc commented 4 years ago

FYI

On Fri, Jul 3, 2020, 3:20 PM Bao Nguyen notifications@github.com wrote:

I still not yet heard any other report about the board freeze from walking up. There will be another batch for Hypnos V3.2 that have been tested by two other projects. Please let me know if this happen again. For now, I think you should wake up, turn on the 3V rail and delay for at least 10ms for the I2C pull up.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/OPEnSLab-OSU/OPEnS-Hypnos/issues/5#issuecomment-653688015, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFMY7373N6KCL3KM6TT7NUTRZZKTZANCNFSM4KXNTB4A .