guidosch / bikecounter

This repository contains the hardware and software components of a PIR based tracking device to monitor the usage of local bike trails. The data is sent over LoRaWAN to TTN and from there to a Google Cloud backend which stores the data and provides api endpoints for the data visualization web UI.
Creative Commons Zero v1.0 Universal
5 stars 0 forks source link

Method to use internal RTC #48

Closed MeierTobias closed 1 year ago

MeierTobias commented 2 years ago

With time sync over downlink message

guidosch commented 2 years ago

We use the low power lib to make a deep sleep when only listening to the GPIO event from the PIR. Does the internal RTC work in deep sleep?

MeierTobias commented 2 years ago

I had a look at the documentation and the deepSleep mode should not affect the RTC but I have not tested it yet. It's a bit hard to check because the deepSleep messes with the serial connection. So the best way to test this is by sending the timestamp to the ttn and check it there.

MeierTobias commented 2 years ago

I'll test this on my breadboard after I finished the "allmendtrail-1" counter

MeierTobias commented 2 years ago

approach: (just a note for myself)

MeierTobias commented 1 year ago

To do: (note for myself)

MeierTobias commented 1 year ago

all finished and tested