LinuxQuestions.org
Help answer threads with 0 replies.
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, 04:32 AM   #16
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 634

Original Poster
Blog Entries: 20

Rep: Reputation: 81

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, 02:43 PM   #17
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 634

Original Poster
Blog Entries: 20

Rep: Reputation: 81
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 10:54 PM
Removable devices auto-mounted as read-only ( not desirable ) William (Dthdealer) Debian 5 06-04-2010 02:34 AM
Removable devices auto-mounted as read-only ( not desirable ) William (Dthdealer) Linux - Software 2 05-30-2010 07:56 AM

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

All times are GMT -5. The time now is 06:48 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
Open Source Consulting | Domain Registration