Pine, What time is it?
#1
4:00 pm, it's always 4pm.  To be specific it's New Year's Eve 2015 and my Pine thinks it's enjoying the good life on the beautiful west coast of the US.

So, my question to the Pine dev team, Can I add a battery backup clock to my board thru the GPIO pins? Like this one I use on my Arduino projects:http://www.ebay.com/itm/2X-DS3231-AT24C32-IIC-precision-Real-time-clock-RTC-memory-module-For-Arduino-/221972261503?hash=item33ae93ea7f:g:QGoAAOSwZ1lWdDWW
  Reply
#2
(04-02-2016, 10:20 PM)HeadShot Wrote: 4:00 pm, it's always 4pm.  To be specific it's New Year's Eve 2015 and my Pine thinks it's enjoying the good life on the beautiful west coast of the US.

So, my question to the Pine dev team, Can I add a battery backup clock to my board thru the GPIO pins? Like this one I use on my Arduino projects:http://www.ebay.com/itm/2X-DS3231-AT24C32-IIC-precision-Real-time-clock-RTC-memory-module-For-Arduino-/221972261503?hash=item33ae93ea7f:g:QGoAAOSwZ1lWdDWW

Possibly. Or you could use the Real Time Clock port, located in top right corner of image.
  Reply
#3
Well color me stupid. I didn't know realize that was what RTC stood for. I guess it would have been funnier if it was an April Fools joke instead of me missing the obvious.

Thnx
  Reply
#4
(04-03-2016, 06:17 AM)HeadShot Wrote: Well color me stupid.  I didn't know realize that was what RTC stood for.  I guess it would have been funnier if it was an April Fools joke instead of me missing the obvious.

Thnx

I kind of like the idea of my Pine64 repeating New Year's Eve over and over, à la Groundhog Day....
  Reply
#5
Even if you don't power the real time clock to keep the time across power cycling, if your pine64 is connected to the internet, just run ntp to sync the system clock with internet time every so often.

Now, if you plan to run the pine64 without internet, then yes you want to provide power to the RTC port. I have not seen whether the developers have added the smarts to monitor the temp and auto correct the time. I would suspect that they use the built-in RTC in the arm chip with a decent crystal (but not super expensive one), it may drift a little bit. The DS3231 chip in various i2c RTCs (like Adafruit's Chronodot) does this and provides a more accurate time source. I would suspect that when internet is available you should run ntp, and every so often reset the hardware clock to internet time.

Alternatively, if your pine64 is running outdoors, consider getting a GPS and hook it up to one of the pine64's serial UARTs. As part of the GPS infrastructure, it provides accurate time.

It all depends on how accurate you need the clock to be.
  Reply
#6
Also consider fake-hwclock as it saves the last known date, so logs dont start at epoch 0.
  Reply
#7
(04-04-2016, 01:33 PM)drag00n Wrote: Also consider fake-hwclock as it saves the last known date, so logs dont start at epoch 0.

Given the pine64 does come with a RTC (unlike the Raspberry Pi), it should be fairly simple to spend a few bucks more and get a battery for it, so the time is generally correct.

I would assume you still might have a problem with fake-hwclock, depending where in the boot cycle it starts running (i.e. if the logs are started before fake-hwclock).
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Pine HDMI -> DVI monitor Pineapple 4 233 09-10-2019, 11:28 AM
Last Post: Pineapple
  PINE A64+ 4K Media Computer RWL 4 729 11-08-2018, 04:20 PM
Last Post: mindwave
  Multi Room Audio - Pine style mjgoode 4 933 09-19-2018, 10:30 AM
Last Post: mjgoode
  Pine 64 LTS Schematic And R18 Reference Manual Akash Gajjar 2 803 12-26-2017, 07:01 PM
Last Post: tllim
  [PINE A64+ 2GB] Ubuntu - Losing Signal Arlanps 4 746 02-12-2017, 05:12 PM
Last Post: Arlanps
  Applying a fan for the Pine 64+? Maximum 5 1,955 01-20-2017, 03:34 PM
Last Post: Shad0wSt4R
  Using Pine cluster for Docker Swarm jpnh 1 1,297 11-22-2016, 07:11 AM
Last Post: jpnh
  Pine 64 IR Receiver not working rajatgarg21 1 554 08-31-2016, 12:47 AM
Last Post: MarkHaysHarris777
  My personal discovery of no video upon first booting my Pine A64 AZ_Ron 3 930 08-17-2016, 02:10 PM
Last Post: efalsken
  New to Pine A64 : Troubleshooting Toeknee 6 1,079 08-05-2016, 05:21 AM
Last Post: MarkHaysHarris777

Forum Jump:


Users browsing this thread: 1 Guest(s)