element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Hard wire RTC?
  • 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
  • State Suggested Answer
  • Replies 1 reply
  • Answers 1 answer
  • Subscribers 663 subscribers
  • Views 478 views
  • Users 0 members are here
  • rtc
  • raspberry_pi
  • ras pi
Related

Hard wire RTC?

toddh86
toddh86 over 7 years ago

I'm looking for advice on best way to proceed with a small pi project I'm making.

 

Overview

I'm making a countdown timer to my wifes due date for our first child. To achieve this I'm using an old RaspPi Model B and a WaveShare SpotPear 4Inch RPiLCD (A) and a 3D printed case with a python script to perform the  countdown.

I have it all working OK except for that I need to make it stand alone as she works in an office where she will not be able to connect it to a network (wired or wireless) so I purchased a RTC to add into the Pi to give it a proper clock.

 

Issue comes when constructing the 3 components. The screen and the RTC both use the GPIO pins, with the screen taking all of the pins (I doubt all pins are required by the screen but the connector takes up all pins) and the RTC taking up 10 (2x5) whichi I doubt it uses all.

 

My question is, can I reloate the RTC elsewhere to other parts of the board? Is there a better product for doing this? I have uploaded pictures of all the components as well, all help is welcome and appreciated!

 

Cheeers,

 

Todd

Attachments:
image
image
image
image
image
image
image
  • Sign in to reply
  • Cancel
Parents
  • shabaz
    0 shabaz over 7 years ago

    Hi Todd,

     

    Most of these small TFT screens for the Pi use 'SPI' (Serial Peripheral Interface), which is a serial interface that only uses a handful of pins. The RTC most likely uses a different interface called I2C (Inter-Integrated Circuit), and the Pi has different pins allocated for SPI and I2C, so there isn't usually any clash at all (the LCD screen _may_ also use I2C, but there is no clash with adding additional devices to the I2C bus, it is designed for that, so again no issue).

     

    So, long story short, electrically there should be no issue with connecting them both up. However, physically you have the problem that they won't fit, since the screen plugs on top of all the pins. Your only simple solution is to see what pins are used on the RTC board, and manually patch wires (using a soldering iron) between the RTC board and the LCD board, such that when the LCD board is plugged onto the Pi, then the correct RTC connections are made too. There are not really other simple alternatives here unfortunately, Still, it is an easy thing to do (requires soldering iron and thin solder and wire of course). Unfortunately I'm not aware of a TFT board with built-in RTC.

     

    Finally, there _may_ be one or two other input/output pins used by the RTC, so you'd need to verify that they do not clash. It is likely the RTC will run without them connected, if you find there is a clash.

    You can refer to the diagram below for a list of the pin assignments. The I2C pins are labelled SDA and SCL (data and clock pins respectively).

     

    I hope that helps!

     

    image

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • shabaz
    0 shabaz over 7 years ago

    Hi Todd,

     

    Most of these small TFT screens for the Pi use 'SPI' (Serial Peripheral Interface), which is a serial interface that only uses a handful of pins. The RTC most likely uses a different interface called I2C (Inter-Integrated Circuit), and the Pi has different pins allocated for SPI and I2C, so there isn't usually any clash at all (the LCD screen _may_ also use I2C, but there is no clash with adding additional devices to the I2C bus, it is designed for that, so again no issue).

     

    So, long story short, electrically there should be no issue with connecting them both up. However, physically you have the problem that they won't fit, since the screen plugs on top of all the pins. Your only simple solution is to see what pins are used on the RTC board, and manually patch wires (using a soldering iron) between the RTC board and the LCD board, such that when the LCD board is plugged onto the Pi, then the correct RTC connections are made too. There are not really other simple alternatives here unfortunately, Still, it is an easy thing to do (requires soldering iron and thin solder and wire of course). Unfortunately I'm not aware of a TFT board with built-in RTC.

     

    Finally, there _may_ be one or two other input/output pins used by the RTC, so you'd need to verify that they do not clash. It is likely the RTC will run without them connected, if you find there is a clash.

    You can refer to the diagram below for a list of the pin assignments. The I2C pins are labelled SDA and SCL (data and clock pins respectively).

     

    I hope that helps!

     

    image

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
No Data
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