LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 05-07-2017, 05:32 AM   #16
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 480
Blog Entries: 13

Original Poster
Rep: Reputation: 43

I've recently connected an I2C RTC to one of my Arduino ... it's a real easy and requires very little external components.
When I get some time I'll write an article about it and the maxim's DS1306 is really cheap (60 cents or so) and requires even less power then new gen GPS.
You can get really cheap TinyRTC from banggood (I got 5 units for just under 5 Euro) and they came with all the external components soldered and included the 2032 battery.
I doubt a GPS based solution could bee that cheap ... but GPS timekeeping will be better then a 60 cent RTC.
 
Old 05-09-2017, 03:43 PM   #17
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 480
Blog Entries: 13

Original Poster
Rep: Reputation: 43
Well the article is kinda 1/2 there already: the DS1307 is a 5V I2C RTC so the voltage level shifting section is exactly the same if you want to connect it to a rPI. If you care to read the DS1307 datasheet it's possible to write a simple shell script to set/read the time on it with the use of I2CTools ... just bare in mind that the registers are in Binary Code Decimal.
Threre is howver a really simple trick to print a 2 digit BCD number as a human readable decimal (print it as if it was Hexadecimal) ... conversion is only required if you want to manipulate the data to set the system clock.

Asap I'll add a section to that article with a bit more gory details.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware ARM -current & 'Kirkwood' devices - must read drmozes Slackware - ARM 5 11-14-2014 11:54 PM
Removable devices auto-mounted as read-only ( not desirable ) William (Dthdealer) Debian 5 06-04-2010 03:34 AM
Removable devices auto-mounted as read-only ( not desirable ) William (Dthdealer) Linux - Software 2 05-30-2010 08:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 08:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration