官术网_书友最值得收藏!

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:

Hardware setup

The following diagram shows, the circuit connection:

Hardware setup

The following image shows the final connection:

Hardware setup
主站蜘蛛池模板: 潍坊市| 抚宁县| 论坛| 濉溪县| 浮山县| 平凉市| 海宁市| 饶阳县| 明光市| 茂名市| 禄劝| 兴国县| 菏泽市| 瓮安县| 华阴市| 卓尼县| 山西省| 图们市| 九江市| 卢氏县| 博兴县| 进贤县| 大丰市| 伊春市| 庆阳市| 那曲县| 屯昌县| 邛崃市| 洪湖市| 湖南省| 鱼台县| 赤峰市| 晋州市| 韩城市| 内乡县| 和林格尔县| 广德县| 丽水市| 五河县| 社会| 彭山县|