Accurate timekeeping is a fundamental requirement in many electronic systems, from simple clocks and data loggers to industrial controllers and IoT devices. Depending on the application, time can be maintained locally using a real-time clock (RTC), or synchronized from external sources such as atomic radio signals, GPS satellites or internet time servers.
This article gives an overview of the most important timekeeping methods used in modern electronics and helps you choose the right approach for your project.
Real-Time Clocks (RTC)
Real-time clock chips are dedicated ICs designed to keep track of time continuously, even when the main system is powered down.
- Operate with a 32.768 kHz crystal
- Maintain seconds, minutes, hours, date, month and year
- Include battery backup for power loss
- Communicate via I2C or SPI
RTCs are widely used because they are simple, low-cost and work completely offline. However, their accuracy depends on the quality of the crystal and environmental conditions such as temperature.
Typical use cases:
- Data logging
- Timers and schedulers
- Standalone clocks
- Embedded systems without internet access
Atomic Clock Radio Signals
Atomic clock receivers use long-wave radio signals transmitted by national time services. These signals are derived from highly accurate atomic clocks and allow devices to synchronize automatically.
- 60 kHz signals (North America, UK, Japan)
- 77.5 kHz signal (Germany / Europe)
- Very high long-term accuracy
- No internet required
Common systems include WWVB (USA), MSF (UK), JJY (Japan) and DCF77 (Germany). These signals can be received over large distances, but reception quality depends on location, antenna orientation and environmental noise.
Typical use cases:
- Radio-controlled wall clocks
- Precision timekeeping devices
- Standalone systems requiring long-term accuracy
Modern WWVB-BPSK Receivers
Traditional atomic clock receivers use amplitude modulation (AM). Newer systems such as WWVB-BPSK introduce phase-shift keying for improved robustness and decoding reliability.
- Better noise immunity than AM
- Improved indoor reception
- More reliable time decoding
This technology represents a significant improvement for projects where classic AM-based reception is unreliable.
GPS Time Synchronization
GPS receivers provide extremely accurate time derived from atomic clocks onboard satellites. Unlike radio time signals, GPS works worldwide.
- Global coverage
- Very high accuracy (microsecond range)
- Requires antenna with sky visibility
- Higher power consumption than RTC
GPS is often used in systems where precision is critical or where radio time signals are unavailable.
Typical use cases:
- Precision timing systems
- Telecommunications
- Scientific measurements
- Outdoor installations
Internet Time (NTP)
Network Time Protocol (NTP) allows devices to synchronize their clocks over the internet using time servers.
- Requires network connectivity (WiFi or Ethernet)
- Good accuracy for most applications
- Easy to implement on ESP32 and similar platforms
NTP is one of the most convenient methods for connected devices, especially in IoT applications.
Typical use cases:
- Smart home devices
- IoT systems
- Web-connected clocks
Comparison of Time Sources
| Method | Accuracy | Works Offline | Coverage | Complexity |
|---|---|---|---|---|
| RTC | Medium | Yes | Global | Low |
| Atomic Radio (AM) | Very high | Yes | Regional | Medium |
| WWVB-BPSK | Very high | Yes | Regional | Medium |
| GPS | Extremely high | Yes | Global | Higher |
| NTP | High | No | Global (internet) | Low |
Which Time Source Should You Use?
- Simple offline systems: RTC
- Long-term accuracy without internet: atomic radio receiver
- Difficult reception environments: WWVB-BPSK
- Highest precision or global use: GPS
- Connected devices: NTP
Conclusion
There is no single “best” timekeeping method. The right choice depends on your application, environment and required accuracy.
In many real-world designs, a combination of methods is used. For example, a system may use an RTC for continuous timekeeping and periodically synchronize using NTP, GPS or an atomic clock receiver to correct drift.
