DS3231 RTC installation guide for RPi updated
The ChronoDot RTC [DS3231] installation guide for the Raspberry Pi has been updated to include Device Tree (DT) and non-Device Tree (pre-DT) methods.
http://rpi.fatdog.eu/index.php?p=chronodot-rtc Whichever method you choose to use, it should be easy to install and configure a DS3231 RTC on your Slackware ARM system. |
And many thanks for doing that. I got my first ever Raspi this morning and it came bundled with a DS1307 rtc module, your instructions were very helpful.
|
Quote:
|
How many wires does an rtc need?
I just received a breadboard and one of the T-cobbler things ( :D ) so my rtc (this model): http://thaieasyelec.com/en/developme...pi-detail.html is now hooked up to it all and working fine. To play it safe I used 10 wires (because I know nothing about this stuff so I was being cautious) and just replicated the pins that the rtc usually covers on the GPIO but 10 seems excessive for a clock! I've been goggling it for a while and as far as I can tell it will only need 5V, GND and the GPIO2, GPIO3 (aka SDA1 i2c and SCL1 i2c aaka Pins 3 & 5 depending on which schematic you follow) Is that right? |
Quote:
There are quite a few differences from device to device in quality and reliability with RTCs. I find the ones with Maxim controllers to be the easiest to work with, the best supported, and the most reliable. The DS1307 is regulated by a frequency-based crystal oscillator and the DS3231 is regulated by an integrated temperature-compensated crystal oscillator. The difference here is; the DS3231 is a hell of a lot more accurate at keeping time than the DS1307. With the DS1307 you could be very lucky and get a really good one which only loses/gains a second per month. With the DS3231 you probably won't lose/gain a second in two or three months. |
Brilliant and thanks so much for the assist Penthux.
New cron.weekly job is set up to write clock time from a server. After I fiddle with it tomorrow hopefully it will look better without so many wires attached to the breadboard. |
Quote:
|
wittyPi2
2 Attachment(s)
I got wittyPi2 to do rtc and have an ON switch.
I can shutdown and the sarpi turns off and I can push the little black button to turn it on. Using their software I was able to get the rtc stuff together but not sure why system and rtc are 1 hour off, haven't had time to look into it. The case with fan is from amazon, fan is very noisy. |
I've got a 40 pin GPIO extender and the ribbon cable that leads to the T-cobbler on the breadboard takes up all of it and I am reluctant to start snipping wires off because I am a total newb at this sort of thing.
It now has a little (14x14x10mm) heat sink mounted the SoC and I think I can scavenge a fan from my Mrs desktop that has a spare one in the case so that will be the next steps. |
Quote:
|
Quote:
# rm -f /etc/localtime # ln -sf /usr/share/zoneinfo/<YOUR_LOCATION> /etc/localtime # ntpdate 0.pool.ntp.org # hwclock -w This will set your timezone correctly. Take a look in /usr/share/zoneinfo/ for the different zone locations. < edit - oops! should have been 'hwclock -w' > |
Thanks bassmadrigal, Penthux for replying.
I did what Penthux said and now running ./wittyPi.sh I'm getting: >>> Your system time is: Sat 17 Sep 2016 17:28:11 EST >>> Your RTC time is: Sat 17 Sep 2016 17:28:11 EST Cheers! |
I'm having an odd problem with my ds1307.
It seems that when I add or remove anything from the breadboard it is connected to it resets itself. Even a simple led+resistor+cables will make the rtc forget its data. My house electrics aren't earthed/grounded (that is pretty common here in Thailand) so I thought that was the problem but it seems to happen randomly. Sometimes a 'halt' command will carry the date from the rtc upon starting up again, sometimes a 'reboot' command will do also but as often as not either command will cause the clock to reset. I have tried stopping anything that might write/reset to hwclock and also the ntpdate in rc.local is commented out but it is still happening. |
Quote:
I would highly recommend that you ditch the DS1307 and replace it with a DS3231 which are vastly more reliable/accurate. ;) |
All times are GMT -5. The time now is 12:06 PM. |