[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-720504-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-720504-en":130,"doc-similar-720504":161},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","ds3231-high-accuracy-rtc-real-time-clock-for-raspberry-pi","DS3231 High Accuracy RTC ( Real Time Clock) for Raspberry Pi","","DS3231 High Accuracy RTC provides an extremely accurate I2C real-time clock module for Raspberry Pi, using a TCXO-based clock source to maintain second, minute, hour, day, date, month, and year. It automatically adjusts dates for months with fewer than 31 days and applies leap-year corrections, supporting 24-hour or 12-hour formats with AM/PM. The device offers two programmable time-of-day alarms and a programmable square-wave output. A 3V CR1225 battery can retain time when the Pi is powered off, and a Raspberry Pi driver installation guide is included.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/ds3231-high-accuracy-rtc-real-time-clock-for-raspberry-pi/720504/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/ds3231-high-accuracy-rtc-real-time-clock-for-raspberry-pi/720504.png","ImageObject",300,407,{"name":42,"@type":43},"Terk","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-25","2026-11-18",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",5,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What clock source and accuracy does the DS3231 High Accuracy RTC module use?","Question",{"text":63,"@type":64},"It uses a TCXO (temperature compensated crystal oscillator) clock source and provides accuracy of ±2ppm from 0°C to +40°C.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does it handle dates like shorter months and leap years?",{"text":68,"@type":64},"The module automatically adjusts the date at the end of the month for months with fewer than 31 days and includes leap-year corrections.",{"name":70,"@type":61,"acceptedAnswer":71},"How do you install and use the RTC driver on supported Raspberry Pi systems?",{"text":72,"@type":64},"The guide installs the driver via the pi-hats repository and uses hwclock commands to read, set system time, or update the hardware clock; it notes the driver applies to Raspbian Jessie/Stretch.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},720504,1795037633,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":55,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":80,"read_time":112,"preview_page_count":33,"preview_urls":144},1099525198933,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","# DS3231 High Accuracy RTC ( Real\n\nTime Clock) for Raspberry Pi  \nThe High Accuracy Pi RTC is based on the clock chip DS3231 . TheDS3231 is a low-cost, extremely accurate I2C realtime clock (RTC) .  \nIt provides an RTC for Raspberry Pi via the I2C interface. With the  \nclock source from the TCXO(temperature compensated crystal  \noscillator), the RTC maintains seconds, minutes, hours, day, date,  \nhttps://wiki.seeedstudio.com/High_Accuracy_Pi_RTC-DS3231/ 1/ 12  \nmonth, and year information. The date at the end of themonth isautomatically adjusted for months with fewer than 31 days,including corrections for leap year. The clock operates in either the24-hour or 12-hour format with an AM/PM indicator. The clockprovides two programmable time-of-day alarmsand programmablesquare-wave output. The INT/SQW pin either generates an interruptdue to alarm condition or outputs a square-wave signal andtheselection is controlled by the bit INTCN.  \nIf you want to retain the time infomation even when the RaspberryPi is powered off, you need to insert a 3V CR1225 lithium cell intothe battery holder. And if you are looking for an RTC foryourArduino project, please also take a look at our blog Arduino RTCTutorial: Using DS1307 RTC with Arduino to easily get started.  \n  \n[ https://www.seeedstudio.com/High-Accuracy-Pi-RTC-  \n%28DS3231%29-p-3214.html]  \nVersion  \nProduct Version Changes Released Date  \nHigh Accuracy Pi RTC (DS3231) Initial Sep 2018  \n􀇞  \nNote  \nThe battery is not included.  \nhttps://wiki.seeedstudio.com/High_Accuracy_Pi_RTC-DS3231/ 2/ 12  \n## Features\n\n Support Raspberry Pi 2/ 3 B/B+/4/Zero  \n Suport seconds,minuutes,hours,day of week,month, year  \n Support 24-hour or 12-hour format withAM/PM indicator  \n Low-Power Consumption  \n Two Time-of-Day Alarms  \n Fast (400kHz) I2C Interface  \nSpeci¦ cation  \nhttps://wiki.seeedstudio.com/High_Accuracy_Pi_RTC-DS3231/ 3/ 12  \nItem  \nOperating Voltage  \nValue  \n3.3V  \n\n| Operating Temperature   | 0℃ to +70℃   |\n| --- | --- |\n| Accuracy   | ±2ppm from 0°C to +40°C   |\n| Interface   | I2C   |\n| I2C Address   | 0x68   |\n| Size   | L: 25mm W: 25mm H: 8mm   |\n| Weight   | 4.2g   |\n| Package size   | L: 85mm W: 75mm H: 25mm   |\n\nGross Weight 15g  \n## Typical applications\n\nAny applications need Real Time on Raspberry.  \nGet Started  \nPlatforms Supported  \nhttps://wiki.seeedstudio.com/High_Accuracy_Pi_RTC-DS3231/ 4/ 12  \n\n| Arduino   |  | RaspberryPi   |  |  |  |\n| --- | --- | --- | --- | --- | --- |\n| |  |  |  |  |  |\n| |  |  | |  | |\n\n## Materials required\n\n| Raspberry Pi   | High Accuracy Pi RTC(DS3231)   |\n| --- | --- |\n| | |\n\nGet One Now  \n[ https://www.seeedstudio.com/Raspberry-Pi-3-Model-B-p-2625.html]  \nGet One Now  \n[ https://www.seeedstudio.com/High-Accuracy-Pi-RTC-DS3231.html]  \n􀇞  \nNote  \nPlease plug the USB cable gently, otherwise you may damage the port.Please use the USB cable with 4 wires inside, the 2 wires cable can'ttransfer data. If you are not sure about the wire you have, you can clickhere[ https://www.seeedstudio.com/Micro-USB-Cable-48cm-p-1475.html]to buy.  \nhttps://wiki.seeedstudio.com/High_Accuracy_Pi_RTC-DS3231/ 5/ 12  \n7/23/22, 8:02 PM DS3231 High Accuracy RTC (Real Time Clock) for Raspberry Pi - Seeed Wiki  \n## Pin Out\n\n􀇞  \nNote  \n The chip itself supports the alarm function, we also reserved therelevant hardware interface, but our software library does not includethis function(S/INT pin), you need to carry out related softwaredevelopment.  \n RX/TX is not used in this module, but the 6x2 header takes up theRX/TX pin of the Raspberry Pi, so we bring the RX/TX out and comewith a 2pin header.  \n## Install\n\nThe driver we provide only applied for Raspbian Jessie/Stretch.  \nhttps://wiki.seeedstudio.com/High_Accuracy_Pi_RTC-DS3231/ 6/ 12  \n\n| 􀌖   | Tip  \u003Cbr>If you do not know how to use a raspberry pi, please check here[ https://www.raspberrypi.org/documentation/] before start.  \u003Cbr>|  |  |\n| --- | --- | --- | --- |\n|  Step 1. Driver Installation  \u003Cbr>Tap the following command in ","cbCairjEmOJ7Py3w","https://ap.wps.com/l/cbCairjEmOJ7Py3w","pdf",1297548,12,"English","# Features\n## Specification\n# Typical applications\n# Materials required\n# Pin Out\n# Install\n## Step 1. Driver Installation\n## Step 2. Power off Raspberry Pi\n## Step 3. Insert the HAT to Raspberry Pi\n## Step 4. Power up Raspberry Pi\n# Usage\n## Read hardware clock and print result\n## Set the system time from the hardware clock\n## Set the hardware clock from the current system time\n## More usage\n# Resources","[{\"question\":\"What clock source and accuracy does the DS3231 High Accuracy RTC module use?\",\"answer\":\"It uses a TCXO (temperature compensated crystal oscillator) clock source and provides accuracy of ±2ppm from 0°C to +40°C.\"},{\"question\":\"How does it handle dates like shorter months and leap years?\",\"answer\":\"The module automatically adjusts the date at the end of the month for months with fewer than 31 days and includes leap-year corrections.\"},{\"question\":\"How do you install and use the RTC driver on supported Raspberry Pi systems?\",\"answer\":\"The guide installs the driver via the pi-hats repository and uses hwclock commands to read, set system time, or update the hardware clock; it notes the driver applies to Raspbian Jessie/Stretch.\"}]","DS3231 High Accuracy RTC ( Real Time Clock) for Raspberry Pi | PDF",[145,149,153,157],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/2eebfaf5240a62d2e126809759031fa5.webp",983,1390,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/87a37a81aae2952ee0bda4f97a28fded.webp",982,1388,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/d6717498ec2af5f11890b3a6fbc23cfd.webp",981,1387,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/56d8f387634983a6f07a2d3e014f5e63.webp",980,1385,{"list":162,"token":11},[163,169,175,180,185,190,196,202,207,213],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":33,"category_name":29,"create_tm":168},720502,"Pico RTC DS3231 - Precision RTC Module for Raspberry Pi Pico","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024397564/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=E9RZWVuiFWouy4rZFF3Dov7BKKU%3D","pico-rtc-ds3231-precision-rtc-module-for-raspberry-pi-pico",1795037631,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":55,"category_name":29,"create_tm":174},720500,"DS3231 RTC Module - DS3231 Mini Real-Time Clock Module","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023674393/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=7UqdIKBtM%2BTC2pzIM7r6MhvjSuQ%3D","ds3231-rtc-module-ds3231-mini-real-time-clock-module",1795037624,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":30,"category_name":29,"create_tm":80},720503,"High Accuracy RTC (DS3231) for Raspberry Pi - Industrial Product Datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024397562/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=3NqeivxEACLK3n8IaPuuj3q79mY%3D","high-accuracy-rtc-ds3231-for-raspberry-pi-industrial-product-datasheet",{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":33,"category_name":29,"create_tm":174},720499,"Adafruit DS3231 Precision RTC Breakout","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024397556/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=dVX1TO1ha%2BnW%2FNWk%2B%2FK7vOPNlzU%3D","adafruit-ds3231-precision-rtc-breakout",{"doc_id":186,"doc_title":182,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":55,"category_name":29,"create_tm":189},720501,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024397560/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=dr%2BHf3EDtRofJRfW1jteRxmNAWY%3D","adafruit-ds3231-precision-rtc-breakout-720501",1795037628,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":30,"category_name":29,"create_tm":195},720497,"DS3231M - Product Brief - ±5ppm I²C Real-Time Clock","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024397378/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=JEhYngUJp%2BD7PbZkPT%2BvpCcbt0U%3D","ds3231m-product-brief-5ppm-i2c-real-time-clock",1795037583,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":55,"category_name":29,"create_tm":201},691762,"Customer Training Workshop Traveo II Real-Time Clock - Q4 2020","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002683302/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=XeXIFeVy2LEEF20uufPhQKwcq3w%3D","customer-training-workshop-traveo-ii-real-time-clock-q4-2020",1794176045,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":55,"category_name":29,"create_tm":174},720498,"DS3231 I2C Real-Time Clock Arduino and chipKit library - Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024397555/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=N0xIOgNq4ue6y4fl7k%2Fau4JSHnY%3D","ds3231-i2c-real-time-clock-arduino-and-chipkit-library-manual",{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":55,"category_name":29,"create_tm":212},720505,"Adafruit DS3231 Precision RTC Breakout - Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023674399/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=0FM2kE5bNVA02KLJ61Y5t%2F70NWU%3D","adafruit-ds3231-precision-rtc-breakout-guide",1795037639,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":33,"category_name":29,"create_tm":218},720514,"BNO055 Absolute Orientation Sensor with Raspberry Pi & BeagleBone Black","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024397699/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110619&Signature=1qwbjbRIE5BQbPSERhaZE8aWbuA%3D","bno055-absolute-orientation-sensor-with-raspberry-pi-beaglebone-black",1795037667]