coffeye / xpod

Hannigan lab's latest environmental monitoring platform
4 stars 3 forks source link

Requesting LED Indicating Improper Time (Not Only Initialization) #7

Open pesm6540 opened 11 months ago

pesm6540 commented 11 months ago

If RTC is writing the default: year = 2001, or an error: year = 2081, turn on LED

malolasimman commented 11 months ago

Added Led indicator for RTC power lost commit id (https://github.com/coffeye/xpod/commit/448c8e28704fcac63c1a15ddbe336351ff1a4288). Power lost could be one of the reason for improper init time, so added indicator for that.

pesm6540 commented 11 months ago

So RTC shouldn't lose power because it has the on-board battery supply. No matter what the power supplied to the Arduino is, it should keep the same time.

coffeye commented 11 months ago

We have actually seen the clock battery drop below 3V (after a while) and this causes the RTC to reset (once the pod is turned off). Having code to check the RTC time and tell if it is realistic and if it isn't flash some LED(s) would be useful. If the pod is continuously powered when the clock battery fails the time will be OK, it's just when the pod is turned off and then back on and there is insufficient power to keep the RTC working will you get the bad time.

On Thu, Nov 9, 2023 at 7:18 PM Percy @.***> wrote:

So RTC shouldn't lose power because it has the on-board battery supply. No matter what the power supplied to the Arduino is, it should keep the same time.

— Reply to this email directly, view it on GitHub https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcoffeye%2Fxpod%2Fissues%2F7%23issuecomment-1804972485&data=05%7C01%7CEvan.Coffey%40Colorado.EDU%7C3d35290e621346a3703208dbe193409d%7C3ded8b1b070d462982e4c0b019f46057%7C1%7C0%7C638351794789789265%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=p0r%2FyxuI%2FfpornfANK%2BVQfee9bSCkfNxcjUNhHYH7DU%3D&reserved=0, or unsubscribe https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAOQSYMRMXFDWBLI72VNR2YDYDWFFHAVCNFSM6AAAAAA6ZSM3TSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBUHE3TENBYGU&data=05%7C01%7CEvan.Coffey%40Colorado.EDU%7C3d35290e621346a3703208dbe193409d%7C3ded8b1b070d462982e4c0b019f46057%7C1%7C0%7C638351794789789265%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BL707C3baKzVK5Wb6eLSRGg8rGSODQ42TYsKRcDVZNs%3D&reserved=0 . You are receiving this because you are subscribed to this thread.Message ID: @.***>