Press "Enter" to skip to content

Is it possible to use RTC for a loop

I know that RTC is more used for long periods of time so i don´t know if this can be the case to use it

the system is going to send data to a Lorawan Gateway every 10 minutes, i have a level sensor that is going to trigger and stop an alarm for floods:

programmation logic

void loop (

Read level, sample and average distance of river

send the data to Lorawan gateway

{

if level is medium trigger alarm 1

if level is high trigger alarm 2

then go to sleep mode during 4 minutes

then RTC wake up the controller

Send a signal to stop the alarm

and go to sleep for 6 minutes

}

{

else go to sleep mode for 10 minutes

}

i´m using a Waspmote but the logic is the same of Arduino

submitted by /u/oscarilllo
[link] [comments]

Be First to Comment

Leave a Reply

%d bloggers like this: