![howto set the rtc power on time howto set the rtc power on time](https://i2.wp.com/app.skufetch.com/images.tmp/1571701965_f38b9.jpg)
We can also set the Pi’s time based on the RTC module’s time. Note that if you set this up manually, it will be automatically corrected if there is an Ethernet or Wi-Fi internet connection. Or use $ date -date="13:12:10" to set the date and time manually. To check the date and time input in the terminal, enter $date. To correct the time of the RTC, we must have an Ethernet or Wi-Fi connection to sync the correct time from the internet to our RTC module. We need to correct its time so that we can use the RTC as our hardware clock.
![howto set the rtc power on time howto set the rtc power on time](http://i.ytimg.com/vi/t7dp8jzSvaE/maxresdefault.jpg)
Initially, the RTC will have an incorrect time.
#Howto set the rtc power on time how to
How to Sync Time From Raspberry Pi to RTC
![howto set the rtc power on time howto set the rtc power on time](http://smartgen-america.com/upload/iblock/43b/SmartGen-HAT880-Dual-power-bypass-ATS-controller.jpg)
Now we are ready to test if our setup is working. Before doing the actual wiring, make sure that the Raspberry Pi is turned off or powered down.įollow the connections in the table and circuit diagram below. Hardwareįirst, we must connect our RTC module to our Raspberry Pi Zero. In this article, we will talk about how to use the RTC DS3231 module with a Raspberry Pi as a hardware clock using a library. There are different types of RTC modules available for different needs. To keep track of time without using the Internet to sync every time the Pi is booted up, a real-time clock (RTC) module is needed.Īn RTC is an electronic device that keeps track of the current date and time by using an internal battery that allows it to continue running even when the primary source of power is turned off. Instead, it utilizes a network time protocol (NTP), which relies on an Ethernet or Wi-Fi connection each time it is powered on. The Raspberry Pi does not contain a built-in clock that runs when the board is powered off.