element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Real Time Clock (RTC) for RasPi
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 12 replies
  • Subscribers 667 subscribers
  • Views 1629 views
  • Users 0 members are here
  • rtc
  • interface_modules
Related

Real Time Clock (RTC) for RasPi

Former Member
Former Member over 12 years ago

Has anyone done and RTC for the pi, or know of a link for more info on implementing one?

 

Many thanks.

  • Sign in to reply
  • Cancel
  • morgaine
    morgaine over 12 years ago

    Hi Brian.

     

    You're in luck -- Drew wrote up a nice blog post about exactly that -- http://www.element14.com/community/groups/raspberry-pi/blog/2012/07/19/what-time-is-it-adding-a-rtc-to-the-raspberry-pi-via-i2c

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to morgaine

    Brilliant, Thanks Morgaine!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jamodio
    jamodio over 12 years ago in reply to Former Member

    I'm about to test something similar using Microchip's MCP79411.

     

    I'l write a little article when I'm done and post the link.

     

    -J

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 12 years ago in reply to jamodio

    @jamodio:  Excellent, I don't know the device so I looked it up, links in case someone needs:

     

    • Product page --  http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en550283
    • Datasheet      --  http://ww1.microchip.com/downloads/en/DeviceDoc/22266D.pdf

     

    Looking forward to the article! image

     

    @Brian:  Forum contributors write useful blog articles like that one quite frequently.  I'm maintaining a list of Element 14 Blog entries at the top of the following forum thread.  If you're considering projects, it may be useful to check the list occasionally:

     

    http://www.element14.com/community/thread/19133?tstart=0

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to jamodio

    That would be nice, thanks jamodio

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    I also found these PIC boards which may also work with Pi?

     

    http://www.mikroe.com/eng/categories/view/38/time-measuring-boards/

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 12 years ago in reply to Former Member

    Nice list of boards there, thanks Brian.  I'll keep an eye out for MikroElektronika in future.

     

    They seem to use two different RTC devices in their boards:

     

    • NXP PCF8583P/F5,112PCF8583P/F5,112              -- http://www.nxp.com/search?q=pcf8583&type=keyword
    • Maxim/Dallas DS1307  -- http://www.maxim-ic.com/datasheet/index.mvp/id/2688/t/al

     

    It might be of interest that Adafruit links to Drew's article for Pi timekeeping (Drew used two of their products):

     

    • Drew's blog post (repeated)           -- http://www.adafruit.com/blog/2012/07/19/raspberry-pi-what-time-is-it-how-to-add-an-adafruit-rtc-to-the-raspberry-pi-via-i2c/
    • Adafruit's DS1307 breakout board -- http://adafruit.com/products/264
    • Adafruit's logic level converter       -- https://www.adafruit.com/products/757

     

    Morgaine.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jamodio
    jamodio over 12 years ago in reply to Former Member

    They should work Brian, I used the PCF8583P/F5,112PCF8583P/F5,112 before talking to a PIC18F97J60 and didn't have any problems to make it work. Getting the board instead of the parts saves you the work of trying to find the right crystal and capacitors to use, sometimes those crystals and the RTC cirtuits are very picky to get working.

     

    One detail to take in account with the Microchip part (I don't recall being necessary on the NXP part) is that before the internal clock for the oscillator to start working you need first to initialize the device, by default the oscillator is OFF.

     

    -J

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to jamodio

    Thanks again, perhaps now I have too many options image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fustini
    fustini over 12 years ago in reply to Former Member

    The downside of the DS1307 for the Pi is that it requires a logic level converter as it runs at 5V and the Pi is 3.3V logic.  If you don't already have logic level converters, then I'd recommend going with a RTC that can operate at 3.3V (such as the PCF8583P/F5,112PCF8583P/F5,112 or MCP79411 mentioned above).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube