Movatterモバイル変換


[0]ホーム

URL:


 
 »   »   »   » 

Comparison of four real-time clocks

Lead Image © Oleksiy Tsupe, 123RF.com

In Time

In the previous column we looked at the DS1307 real-time clock and the I2C bus. This month, we look at three more real-time clocks and compare all four.

A real-time clock (RTC) is necessary for any project requiring accurate time-keeping, especially when you don't always have an Internet connection – for example, if you're sending a Raspberry Pi up in a balloon. The Raspberry Pi keeps pretty good time, but only if it is connected to the Internet. If you're not on the Internet, and you turn it off at, say, 10:43am and then turn it on at 12:34pm, the clock will resume at 10:43am and go forward.

The Pi uses an Internet service called NTP to set the clock on power-up if the Internet is available. It then calls the NTP servers (some are hosted by the National Institute of Standards and Technology [NIST] and linked to their atomic clocks). You aren't going to get atomic clock accuracy using NTP, but it's pretty good. Here, I used NTP to update the Raspberry Pi so I can use it to estimate the error rates of these RTCs.

Introduction to the Clocks

I chose four popular RTCs to test. They had to meet the following criteria:

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF

Pages: 6

Price $2.95
(incl. VAT)

Buy Raspberry Pi Geek

SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

Current Issue

23/2017
Back to Basics (sort of): Commandeering the Linux command line, looking at logs, and securing Secure Shell

Buy this issue as a PDF

Price $15.99
(incl. VAT)


[8]ページ先頭

©2009-2025 Movatter.jp