<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Arduino%3A_DS1307_RTC_I2C_Setup</id>
	<title>Arduino: DS1307 RTC I2C Setup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Arduino%3A_DS1307_RTC_I2C_Setup"/>
	<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Arduino:_DS1307_RTC_I2C_Setup&amp;action=history"/>
	<updated>2026-04-08T02:22:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=Arduino:_DS1307_RTC_I2C_Setup&amp;diff=68286&amp;oldid=prev</id>
		<title>Onnowpurbo at 13:00, 2 April 2023</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Arduino:_DS1307_RTC_I2C_Setup&amp;diff=68286&amp;oldid=prev"/>
		<updated>2023-04-02T13:00:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:00, 2 April 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot; &gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  VCC	           +5V&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  VCC	           +5V&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GND	           Gnd&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  GND	           Gnd&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Library&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; https://github.com/adafruit/RTClib&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=Arduino:_DS1307_RTC_I2C_Setup&amp;diff=68270&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot;Sumber: http://www.labelektronika.com/2018/02/cara-program-rtc-ds1307-menggunakan-Arduino.html  thumb   RTC DS1307...&quot;</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Arduino:_DS1307_RTC_I2C_Setup&amp;diff=68270&amp;oldid=prev"/>
		<updated>2023-04-01T11:05:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Sumber: http://www.labelektronika.com/2018/02/cara-program-rtc-ds1307-menggunakan-Arduino.html  &lt;a href=&quot;/wiki/index.php/File:Wiring-RTC-DS1307-Dengan-Arduino.png&quot; title=&quot;File:Wiring-RTC-DS1307-Dengan-Arduino.png&quot;&gt;center|400px|thumb&lt;/a&gt;   RTC DS1307...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sumber: http://www.labelektronika.com/2018/02/cara-program-rtc-ds1307-menggunakan-Arduino.html&lt;br /&gt;
&lt;br /&gt;
[[File:Wiring-RTC-DS1307-Dengan-Arduino.png|center|400px|thumb]]&lt;br /&gt;
&lt;br /&gt;
 RTC DS1307	   Arduino     &lt;br /&gt;
 SCL	           A5&lt;br /&gt;
 SDA	           A4&lt;br /&gt;
 VCC	           +5V&lt;br /&gt;
 GND	           Gnd&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Code&lt;br /&gt;
&lt;br /&gt;
 #include &amp;lt;Wire.h&amp;gt;&lt;br /&gt;
 #include &amp;quot;RTClib.h&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 RTC_DS1307 rtc;&lt;br /&gt;
 &lt;br /&gt;
 char namaHari[7][12] = {&amp;quot;Minggu&amp;quot;, &amp;quot;Senin&amp;quot;, &amp;quot;Selasa&amp;quot;, &amp;quot;Rabu&amp;quot;, &amp;quot;Kamis&amp;quot;, &amp;quot;Jumat&amp;quot;, &amp;quot;Sabtu&amp;quot;};&lt;br /&gt;
 &lt;br /&gt;
 void setup () {&lt;br /&gt;
   Serial.begin(9600);&lt;br /&gt;
   if (! rtc.begin()) {&lt;br /&gt;
     Serial.println(&amp;quot;RTC TIDAK TERBACA&amp;quot;);&lt;br /&gt;
     while (1);&lt;br /&gt;
   }&lt;br /&gt;
 &lt;br /&gt;
   if (! rtc.isrunning()) {&lt;br /&gt;
     Serial.println(&amp;quot;RTC is NOT running!&amp;quot;);&lt;br /&gt;
     rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));//update rtc dari waktu komputer&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 void loop () {&lt;br /&gt;
     DateTime now = rtc.now();&lt;br /&gt;
     Serial.print(namaHari[now.dayOfTheWeek()]);  &lt;br /&gt;
     Serial.print(',');    &lt;br /&gt;
     Serial.print(now.day(), DEC);&lt;br /&gt;
     Serial.print('/');&lt;br /&gt;
     Serial.print(now.month(), DEC);&lt;br /&gt;
     Serial.print('/');&lt;br /&gt;
     Serial.print(now.year(), DEC);&lt;br /&gt;
     Serial.print(&amp;quot; &amp;quot;);   &lt;br /&gt;
     Serial.print(now.hour(), DEC);&lt;br /&gt;
     Serial.print(':');&lt;br /&gt;
     Serial.print(now.minute(), DEC);&lt;br /&gt;
     Serial.print(':');&lt;br /&gt;
     Serial.print(now.second(), DEC);&lt;br /&gt;
     Serial.println();&lt;br /&gt;
    &lt;br /&gt;
     delay(3000);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* http://www.labelektronika.com/2018/02/cara-program-rtc-ds1307-menggunakan-Arduino.html&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>