- Internet of Things Programming with JavaScript
- Rubén Oliva Ramos
- 171字
- 2021-04-02 20:31:21
DS3231 module setup
The module DS3231 is a real-time clock. It can be used to get the time and date from an integrated circuit, so it can work with your system to control specific events that you want to program from an embedded chip. It can work perfectly with the Raspberry Pi Zero in order to get the time and date in real time.
You need to be sure that you have the latest updates. To do that, type the following commands in your terminal:
sudo apt-get update sudo apt-get -y upgrade
Modify the system file with the following command:
sudo nano /etc/modules
Add the following lines to the modules.txt
file:
snd-bcm2835 i2c-bcm2835 i2c-dev rtc-ds1307
Hardware setup
In this section, we will look at the pins of the RTC module:
DS3231 Pi GPIO GNDP 1-06 VCC (3.3V) SDA (I2CSDA) SCL (I2CSCL)
This is the RTC module, and we can see the pins of the chip:

The following diagram shows, the circuit connection:

The following image shows the final connection:

推薦閱讀
- MySQL高可用解決方案:從主從復制到InnoDB Cluster架構
- 數據分析實戰:基于EXCEL和SPSS系列工具的實踐
- Mastering Ninject for Dependency Injection
- 輕松學大數據挖掘:算法、場景與數據產品
- 深入淺出MySQL:數據庫開發、優化與管理維護(第2版)
- 科研統計思維與方法:SPSS實戰
- 新手學會計(2013-2014實戰升級版)
- Access 2010數據庫程序設計實踐教程
- 算力經濟:從超級計算到云計算
- Spring Boot 2.0 Cookbook(Second Edition)
- 數據中心經營之道
- 數據挖掘與數據化運營實戰:思路、方法、技巧與應用
- 深入理解Flink:實時大數據處理實踐
- Redis 6開發與實戰
- 達夢數據庫集群