Mission 8 - Real Time Clock
 DuinoKit Essentials - View Only. See new "Mission Manual" forum for manual and code   Started by Daniel Alich   2017-06-27 21:38:57 -04:00   Comments: 6    Viewed: 1899

  1. Daniel Alich
    Daniel Alich Member Staff Member
    Daniel Alich, 2017-06-27 21:38:57 -04:00
  2. Eduardo
    Eduardo Member
    Where is RTClib.h?
    Eduardo, 2019-01-02 16:50:09 -05:00
  3. Eduardo
    Eduardo Member
    I found an RTClib.h

    Now I get these compile errors relating to RTC:

    /var/folders/xl/7dlqk0hx0wn5tpzzlklqy_5c0000gn/T//ccMG59Py.ltrans0.ltrans.o: In function `setup':
    /Users/beb/Documents/Arduino/Mission_8_Real_Time_Clock/Mission_8_Real_Time_Clock.ino:14: undefined reference to `RTC_DS1307::begin()'
    /Users/beb/Documents/Arduino/Mission_8_Real_Time_Clock/Mission_8_Real_Time_Clock.ino:15: undefined reference to `RTC_DS1307::isrunning()'
    /Users/beb/Documents/Arduino/Mission_8_Real_Time_Clock/Mission_8_Real_Time_Clock.ino:17: undefined reference to `DateTime::DateTime(__FlashStringHelper const*, __FlashStringHelper const*)'
    /Users/beb/Documents/Arduino/Mission_8_Real_Time_Clock/Mission_8_Real_Time_Clock.ino:17: undefined reference to `RTC_DS1307::adjust(DateTime const&)'
    /var/folders/xl/7dlqk0hx0wn5tpzzlklqy_5c0000gn/T//ccMG59Py.ltrans0.ltrans.o: In function `loop':
    /Users/beb/Documents/Arduino/Mission_8_Real_Time_Clock/Mission_8_Real_Time_Clock.ino:22: undefined reference to `RTC_DS1307::now()'
    collect2: error: ld returned 1 exit status
    exit status 1
    Error compiling for board Arduino Nano.

    They all seem to be "undefined reference to RTC_DS1307"
    Eduardo, 2019-01-02 17:21:20 -05:00
  4. Daniel Alich
    Daniel Alich Member Staff Member
    I ued to have that file attached...  I'll look for and try to attach again.  However I did modify the post above.  It also appeared soem of the "Include" files were missing.  Sould be okay to copy/paste from about.

    In the "newer" edition of the Arduino IDE (uploading program), you may need to search
    for and install the Library file for the Real Time Clock module. Do this...
    Go to Tools --> Manage Libraries In filter bar type "DS1307RTC"
    Install the first Library listed. Leave a comment below if this does/does not work for you.
    Daniel Alich, 2019-01-02 21:12:21 -05:00
  5. Eduardo
    Eduardo Member
    I put the DS1307RTC in the libraries folder.

    The sketch compiles, but nothing appears on the lcd. It is backlit but does not display any information.
    Eduardo, 2019-01-03 15:28:44 -05:00
  6. Daniel Alich
    Daniel Alich Member Staff Member
    Did you turn the contrast knob or try displaying different text in the LCD?

    I am working on a .zip file that will contain the needed library file so it will not have to be installed.  I think the errors are coming in with the new Arduino IDE 1.8
    Daniel Alich, 2019-01-22 21:04:17 -05:00
  7. (You must log in or sign up to post here)

Report Post

Write your reason

Log in | Sign up
Terms & Conditions!