查看: 1735|回复: 2
收起左侧

rtc model

2014-4-15 14:38:59 | 显示全部楼层 |阅读模式

找到 http://nicegear.co.nz/raspberry-pi/high-precision-real-time-clock-for-raspberry-pi/

在TB购入,测试中。

参考:http://nicegear.co.nz/blog/using-an-i2c-real-time-clock-rtc-with-a-raspberry-pi/

更多图片 小图 大图
组图打开中,请稍候......
回复

使用道具 举报

 楼主| 2014-4-15 15:43:45 | 显示全部楼层
待测。

关机。断电。

插上模块。

通电进入系统。(当然是raspbian)
  1. #!/bin/sh

  2. # Remove the module blacklist entry so it can be loaded on boot
  3. sudo sed -i 's/^blacklist i2c-bcm2708/# blacklist i2c-bcm2708/' /etc/modprobe.d/raspi-blacklist.conf

  4. # Load the module now
  5. sudo modprobe i2c-bcm2708

  6. # Notify Linux of the Dallas RTC device
  7. echo ds1307 0x68 | sudo tee /sys/class/i2c-adapter/i2c-1/new_device

  8. # Add the RTC device on boot
  9. sodo sed -i '/^exit 0$/i\echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device' /etc/rc.local

  10. exit
复制代码
回复 支持 反对

使用道具 举报

 楼主| 2014-4-15 15:45:48 | 显示全部楼层
https://github.com/fabletang/mydoc/blob/master/raspberrypi/install_rtc.txt
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

热点推荐

关注我们,了解更多

官方微信

服务时间:10:00-16:00

13714503811

公司地址:深圳市龙岗区南湾街道东门头路8号

Copyright © 2012-2020 Powered by 树莓派论坛 2019.4  粤ICP备15075382号-1
快速回复 返回列表 返回顶部