Is there a simple way to have linux time up and running with minimum current consumption and good accuracy?
Preferably, some class with get_unix_time and set_unix_time methods, with a resolution of up to seconds.
Is there a simple way to have linux time up and running with minimum current consumption and good accuracy?
Preferably, some class with get_unix_time and set_unix_time methods, with a resolution of up to seconds.
Hi
I did a simple example using the time.h library a while back, and you might be able to use that as a basis:
https://github.com/NordicPlayground/nrf5-calendar-example
I only included project files for the nRF52 series though, but the code should be backwards compatible with the nRF51822.
The accuracy will depend on your 32kHz clock source. If you use the external 32k crystal on the nRF51 DK it will be 20ppm at room temperature.
Best regards
Torbjørn
Hi
It's possible to get more accurate crystals, including some that compensate for temperature changes, but if you don't need one at all it's obviously easier :)
Best regards
Hi
It's possible to get more accurate crystals, including some that compensate for temperature changes, but if you don't need one at all it's obviously easier :)
Best regards