Skip to content

Instantly share code, notes, and snippets.

@xpander54
Created October 10, 2017 23:39
Show Gist options
  • Save xpander54/2fe44360c1125a80912efbb0207f428f to your computer and use it in GitHub Desktop.
Save xpander54/2fe44360c1125a80912efbb0207f428f to your computer and use it in GitHub Desktop.
Set RTC Raspberry Pi
RASPBERRY PI 2
^Usbs facing down
leave top line free then
5v w 5v
3v w 3v
Etc
Follow this tutorial
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=85683
1
Install i2c
sudo apt-get install python-smbus i2c-tools
2
Configure i2c to enable gpio
open this file and rasdo
sudo vim /etc/modules
i2c-bcm2708
i2c-dev
3
open and edit config file then add this 2 lines
sudo vim /boot/config.txt
In the end add this commands:
dtparam=i2c1=on
dtparam=i2c_arm=on
4
Enable i2c-tools on sudo raspi-config advanced options
6
sudo i2cdetect -y 1
check that rtc is connected on the right port
7
sudo reboot
8
sudo i2cdetect -y 1
This will show 68 when we enable rtc it will show UU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment