Andre_Leonardo
Posts: 59
Joined: Wed Nov 12, 2014 1:47 am

Real Time clock

Tue Mar 17, 2015 2:58 am

ow to connect this DS1307 I2C Real-time Clock Module with AT24C32 EEPROM to the raspberry pi, http://www.lankatronics.com/ds1307-rtc-module.html

Is there any soldering to do, can I connect it directly to raspberry pi or do i have to change the voltage levels, This module is different from the module found in Adafruit
https://www.adafruit.com/products/264

so, what is the correct procedure, Is there any changes to do in configuration when connecting this module to the Pi 2

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: Korea

Re: Real Time clock

Tue Mar 17, 2015 4:12 am

It looks like you can just hook it up directly, although the pins might not be in a convenient order so you might need some short wires..

This is the same module, with a fairly detailed explanation:
http://www.pihomeserver.fr/en/2014/03/0 ... e-bus-i2c/

Hope you get it working. I prefer this module from DX, you can push it directly on to the GPIO pins:
http://www.dx.com/p/ds3231-raspberry-pi ... QepkY7Ue7Q

DirkS
Posts: 9957
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Real Time clock

Tue Mar 17, 2015 4:08 pm

I used the instructions from the German Raspi forum: http://www.forum-raspberrypi.de/Thread- ... -betreiben
(Seems to translate well using Google Translate)
Advice there is to remove pullup resistors R2 and R3. I did this and the RTC works fine.

If you're using kernel 3.18 then installation has changed because of the device tree.
Add

Code: Select all

dtoverlay=i2c-rtc,ds1307
to config.txt to enable the RTC. (see https://github.com/raspberrypi/firmware ... t/overlays)
Somewhere on the forum there are more details about these and other changes, but I can't find the relevant topic ATM.

Andre_Leonardo
Posts: 59
Joined: Wed Nov 12, 2014 1:47 am

Re: Real Time clock

Thu Mar 19, 2015 2:34 am

Thanx. It is required to remove R2 and R3. I found it in these two pages. See the translation.

http://www.forum-raspberrypi.de/Thread- ... -betreiben

http://raspberry.tips/raspberrypi-tutor ... pberry-pi/

Andre_Leonardo
Posts: 59
Joined: Wed Nov 12, 2014 1:47 am

Re: Real Time clock

Thu Mar 19, 2015 2:51 am

Anyway i would like to know if there any changes to do to the bcm numbers used because i'm using pi 2.

Code: Select all

snd-bcm2835 
bcm2708 spi 
i2c bcm2708 
i2c-dev 
rtc-DS1307

arsenale
Posts: 8
Joined: Mon Jul 01, 2013 9:49 pm

Re: Real Time clock

Tue Mar 24, 2015 1:23 pm

does anyone have an opinion on this product, or can suggest an alternative for a real time clock? possibly a store in europe, thanks

http://www.aliexpress.com/item/Free-shi ... 59392.html

DirkS
Posts: 9957
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Real Time clock

Tue Mar 24, 2015 1:30 pm

arsenale wrote:does anyone have an opinion on this product, or can suggest an alternative for a real time clock? possibly a store in europe, thanks

http://www.aliexpress.com/item/Free-shi ... 59392.html
Ebay: http://www.ebay.co.uk/sch/i.html?_from= ... =&_sacat=0
I have a couple of those and they work fine. You'll have to remove the 2 pullup resistors.

BTW: it's the same as the one as being discussed in the last couple of posts in this topic.

Return to “General discussion”