{"id":4437,"date":"2015-12-29T02:16:19","date_gmt":"2015-12-29T02:16:19","guid":{"rendered":"http:\/\/xronosclock.com\/home\/?p=4437"},"modified":"2019-02-15T11:46:29","modified_gmt":"2019-02-15T11:46:29","slug":"real-time-clock-chip-upgradehack","status":"publish","type":"post","link":"http:\/\/xronosclock.com\/home\/?p=4437","title":{"rendered":"Real Time Clock Chip upgrade\/hack"},"content":{"rendered":"<p>Xronos Clock has been\u00a0using DS1307 time chip from very beginning. It&#8217;s an OK chip, and it&#8217;s biggest advantage is that it comes in DIP package to easy soldering which is great for DIY kit.<\/p>\n<p>However it&#8217;s not the best and most accurate RTC chip. \u00a0It can loose or gain few seconds per day, which can turns into a minute or two in a month. \u00a0There&#8217;s a much better chip out there called DS3231. It&#8217;s super accurate and stable under wide temperature range and has built in Oscillator, while DS1307 needs a separate one soldered to the PCB.<\/p>\n<p>It has only two drawbacks. Chip comes in only SMD (not thru the hole) packages and it costs a little more thatn DS1307.<\/p>\n<p>I&#8217;ve been thinking how to replace DS1307 with DS3231 on existing clocks and found relatively simple solution. Solution is small adapter PCB which has DS3131 chip soldered to it and it plugs into space meant for DS1307 IC.<\/p>\n<p><!--more--><\/p>\n<p><a href=\"http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080149.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-4442\" src=\"http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080149-300x219.jpg\" alt=\"20151223_080149\" width=\"300\" height=\"219\" srcset=\"http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080149-220x161.jpg 220w, http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080149-300x219.jpg 300w, http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080149.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Biggest challenge is de-soldering existing chip if you didn&#8217;t use IC socket. With socket it&#8217;s easy. You just remove one and plug in another.<\/p>\n<p><a href=\"http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080259.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-4445\" src=\"http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080259-300x169.jpg\" alt=\"20151223_080259\" width=\"300\" height=\"169\" srcset=\"http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080259-300x169.jpg 300w, http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080259.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Once chip is replaced, only thing that remains is to add <a href=\"https:\/\/github.com\/JChristensen\/DS3232RTC\">DS3131 library<\/a> and change single line in the code. Basically replace:<\/p>\n<p>#include &lt;DS1307RTC.h&gt;<\/p>\n<p>with<\/p>\n<p>#include &lt;DS3231RTC.h&gt;<\/p>\n<p>And that&#8217;s it!<\/p>\n<p>I will have DS3231 adapter in my <a href=\"http:\/\/lensdigital.com\/shop\/\">online shop<\/a> shortly. \u00a0It will include PCB with pre-soldered DS3131 chip, and headers. \u00a0And as always design is <a href=\"http:\/\/lensdigital.com\/files\/DS1307_to_DS3231_adapter.zip\">open source<\/a> so you are welcome to make your own.<\/p>\n<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 hundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-overflow:visible;\" ><div class=\"fusion-builder-row fusion-row\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-one-full fusion-column-first fusion-column-last fusion-column-no-min-height\" style=\"--awb-bg-size:cover;--awb-margin-top:0px;--awb-margin-bottom:0px;\"><div class=\"fusion-column-wrapper fusion-flex-column-wrapper-legacy\"><div id='gallery-1' class='gallery galleryid-4437 gallery-columns-3 gallery-size-thumbnail'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon portrait'>\n\t\t\t\t<a href='http:\/\/xronosclock.com\/home\/?attachment_id=4444'><img decoding=\"async\" width=\"150\" height=\"150\" src=\"http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080237-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080237-66x66.jpg 66w, http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080237-150x150.jpg 150w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/xronosclock.com\/home\/?attachment_id=4443'><img decoding=\"async\" width=\"150\" height=\"150\" src=\"http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080207-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080207-66x66.jpg 66w, http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080207-150x150.jpg 150w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/xronosclock.com\/home\/?attachment_id=4442'><img decoding=\"async\" width=\"150\" height=\"150\" src=\"http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080149-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080149-66x66.jpg 66w, http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080149-150x150.jpg 150w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/xronosclock.com\/home\/?attachment_id=4440'><img decoding=\"async\" width=\"150\" height=\"150\" src=\"http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080049-150x150.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080049-66x66.jpg 66w, http:\/\/xronosclock.com\/home\/wp-content\/uploads\/2015\/12\/20151223_080049-150x150.jpg 150w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n\n<p><a href=\"http:\/\/lensdigital.com\/files\/DS1307_to_DS3231_adapter.zip\">Download Eagle Design files here<\/a><div class=\"fusion-clearfix\"><\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Xronos Clock has been\u00a0using DS1307 time chip from very beginning. It&#8217;s an OK chip, and it&#8217;s biggest advantage is that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4443,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[11,62,12],"tags":[],"class_list":["post-4437","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-alarmclockupdates","category-diytutorials","category-work-in-progress"],"_links":{"self":[{"href":"http:\/\/xronosclock.com\/home\/index.php?rest_route=\/wp\/v2\/posts\/4437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/xronosclock.com\/home\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xronosclock.com\/home\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xronosclock.com\/home\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xronosclock.com\/home\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4437"}],"version-history":[{"count":8,"href":"http:\/\/xronosclock.com\/home\/index.php?rest_route=\/wp\/v2\/posts\/4437\/revisions"}],"predecessor-version":[{"id":4480,"href":"http:\/\/xronosclock.com\/home\/index.php?rest_route=\/wp\/v2\/posts\/4437\/revisions\/4480"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/xronosclock.com\/home\/index.php?rest_route=\/wp\/v2\/media\/4443"}],"wp:attachment":[{"href":"http:\/\/xronosclock.com\/home\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xronosclock.com\/home\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4437"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xronosclock.com\/home\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}