เชื่อมต่อ RTC DS3231 กับ Raspberry Pi
Wiring RTC DS3231 with Raspberry Pi.
Following commands are used in video but I highly recommend to watch the whole clip and following the instruction neatly.
1. Initialization
sudo apt-get update
sudo apt-get install python-smbus
sudo apt-get install i2c-tools
2. Enabling the kernel interface
sudo raspi-config
3. Modify the module file
sudo nano /etc/modules
then add the following three lines:
i2c-bcm2708
i2c-dev
i2c-ds1307
4. Testing the i2c bus
sudo i2cdetect -y 1
5. Loading the driver when booting
sudo nano /boot/config.txt
add the following line:
dtoverlay=i2c-rtc,ds3231
6. Disabling the fake hardware clock
sudo apt-get -y remove fake-hwclock
sudo update-rc.d -f fake-hwclock remove
7. Starting the original hardware clock
sudo nano /lib/udev/hwclock-set
then commend the first three lines
8. Finallization
to test reading date-time from RTC:
sudo hwclock -r
to write the system time to RTC:
sudo hwclock -w
to set time from RTC to the system:
sudo hwclock -s
Music:
This Feeling - Atch https://soundcloud.com/atch-music
Видео เชื่อมต่อ RTC DS3231 กับ Raspberry Pi канала GeekSloth
Following commands are used in video but I highly recommend to watch the whole clip and following the instruction neatly.
1. Initialization
sudo apt-get update
sudo apt-get install python-smbus
sudo apt-get install i2c-tools
2. Enabling the kernel interface
sudo raspi-config
3. Modify the module file
sudo nano /etc/modules
then add the following three lines:
i2c-bcm2708
i2c-dev
i2c-ds1307
4. Testing the i2c bus
sudo i2cdetect -y 1
5. Loading the driver when booting
sudo nano /boot/config.txt
add the following line:
dtoverlay=i2c-rtc,ds3231
6. Disabling the fake hardware clock
sudo apt-get -y remove fake-hwclock
sudo update-rc.d -f fake-hwclock remove
7. Starting the original hardware clock
sudo nano /lib/udev/hwclock-set
then commend the first three lines
8. Finallization
to test reading date-time from RTC:
sudo hwclock -r
to write the system time to RTC:
sudo hwclock -w
to set time from RTC to the system:
sudo hwclock -s
Music:
This Feeling - Atch https://soundcloud.com/atch-music
Видео เชื่อมต่อ RTC DS3231 กับ Raspberry Pi канала GeekSloth
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![วิธีบัดกรีสายไฟ | Copper Wire Soldering](https://i.ytimg.com/vi/7yXlUIroPAo/default.jpg)
![วิธีใช้ USB Capture Card กับ OBS สำหรับเกมเมอร์ สตรีมเมอร์ ไลฟ์สด Content Creator](https://i.ytimg.com/vi/6xK9hNGUJL0/default.jpg)
![รีวิว #เคสมือถือ UAG สำหรับ iPhone 15 Pro | ชอบบ่นว่าแพง แต่ก็ซื้ออยู่ดี](https://i.ytimg.com/vi/W1D5FJH-wuE/default.jpg)
![#พรีวิว DJI Osmo Pocket 2](https://i.ytimg.com/vi/rMBcV0zWv3Y/default.jpg)
![ติดที่ครอบเลนส์ดีมั้ย?](https://i.ytimg.com/vi/N-UuTB2ahPU/default.jpg)
![#รีวิว เคส UAG สำหรับ iPhone 15 Pro Max | แพง แต่ก็ซื้ออีกแล้ว](https://i.ytimg.com/vi/dlG1YKIjWQ4/default.jpg)
![iPhone 15 Pro vs Pro Max ผมเลือกแบบนี้](https://i.ytimg.com/vi/BQ65Jtv9ejM/default.jpg)
![#ซ่อมโดรน เสร็จแล้ว อย่าลืมเช็คแบบนี้](https://i.ytimg.com/vi/ROtQlAp5yf0/default.jpg)
![เล่าปสก.ตรง ฟิล์มมือถือ Focus 9H สำหรับ iPhone](https://i.ytimg.com/vi/0tgSUYTUyfQ/default.jpg)
![รีวิวเคส UAG | เหมือนจะแพง แล้วจะสมราคามั้ย?](https://i.ytimg.com/vi/3FrEVHa2INE/default.jpg)
![ส่งต่อ RIG ขุดคริปโตฯ RX 6600 8GB *8 ประกันไทย พร้อมใช้ ไม่มีตำหนิ](https://i.ytimg.com/vi/Yivxh1PPrFY/default.jpg)
![iPhone 15 Pro Max เทียบกับ iPhone 14 Pro Max | เลือกอะไรดี | รักพี่เสียดายน้อง](https://i.ytimg.com/vi/G05PuagMw1k/default.jpg)
![รีวิว ดิจิตอล เวอร์เนียร์ คาลิเปอร์ (Digital Vernier Caliper)](https://i.ytimg.com/vi/yPNko1biMuU/default.jpg)
![เปิดเครื่องระหว่างซ่อมได้มั้ย? | #ซ่อมโดรน DJI Air 3](https://i.ytimg.com/vi/L8ttLSONOqY/default.jpg)
![#โดรนตก แขนหัก ไหล่หัก วิธีเปลี่ยนข้อพับ | #ซ่อมโดรน DJI Air 3](https://i.ytimg.com/vi/p7oIhoPIcpM/default.jpg)
![#ซ่อมโดรน ต้องใช้เครื่องมืออะไรบ้าง?](https://i.ytimg.com/vi/kkTjgLHSDgc/default.jpg)
![ทำไมค่าซ่อมโดรน (ควร) แพง!? | #ซ่อมโดรน DJI Air 3](https://i.ytimg.com/vi/_fFd4GiKRlU/default.jpg)
![#ซ่อมโดรน DJI Air 3 | สิ่งที่ต้องเตรียมก่อนซ่อมโดรน](https://i.ytimg.com/vi/g-hxMqC9FMM/default.jpg)
![วิธีนำ AI ไปรันบน Production Server](https://i.ytimg.com/vi/5RyUPZGETeg/default.jpg)
![mini project โดรนกู้ภัย ep.3 - ออกแบบใช้ microcontroller](https://i.ytimg.com/vi/1Ij-0QRlKrY/default.jpg)
![พล็อตกราฟสวย ๆ ด้วย Matplotlib | Python 3 Visualization Library](https://i.ytimg.com/vi/z3PGISZgiW0/default.jpg)