Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Teensy 3.5 real time clock problems

  1. #1
    Junior Member
    Join Date
    Jan 2019
    Posts
    2

    Teensy 3.5 real time clock problems

    Hi there,
    I recently purchased a Teensy 3.5 because I had run out of i/o pins on Arduino, Pro trinket etc.

    The teensy 3.5 is working fine, with the exception of the real time clock. I have used all the examples, changed the libraries, double checked everything and I cannot either set or display the time using the examples provided.

    The serial window just reports the following or the error message contained within the sketch used.

    DS1307 Communication Error :-{
    Please check your circuitry

    Obviously because the rtc is contained within the Teensy 3.5 board it is not possible to check the circuitry. I have not connected the rtc battery to the rtc.

    thanks in advance

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,226
    Quote Originally Posted by jwteensy View Post
    DS1307 Communication Error :-{
    "DS1307" sounds like you're running the wrong example! DS1307 is an external chip you'd connect to SDA & SCL (pins 18 & 19).

    For the internal RTC, in Arduino, click File > Examples > Time > TimeTeensy3. That is the example using Teensy's internal RTC.

    In that example, you should see this function which actually reads the RTC:

    Code:
    time_t getTeensy3Time()
    {
      return Teensy3Clock.get();
    }

  3. #3
    Junior Member
    Join Date
    Jan 2019
    Posts
    2
    Hello Paul,
    fixed straight away, the clock is working perfectly.
    I am using the 3.5 in a board I have designed with a 3.5" tft display and a uhf transmitter to send data 7km.
    A suggestion. In your examples on your site, it gives a lot of information on using earlier versions of your Teensy with separate real time clocks.
    It would be helpful to have an example for the 3.5 and 3.6.
    Many thanks
    John
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Teensyboard.jpg 
Views:	12 
Size:	108.0 KB 
ID:	15704  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •