Jump to content

arteq

Members
  • Content Count

    4
  • Joined

  • Last visited

About arteq

  • Rank
    Noob Class

Contact Methods

  • Website URL
    http://digi-led.pl

Profile Information

  • Location
    Poland
  • Github
    http://github.com/artekw
  1. @@spirilis 3.3V @@Rei Vilo Sory, I use this library https://github.com/elpaso/rtclib I wil try with this delays.
  2. I solder on spare pcb a pcf8563 acording to diagram: PCF is connected to I2c 3 (PD_0 and PD_1). Tiva-C is flashed with code: #include <Wire.h> #include <RTClib.h> RTC_PCF8563 RTC; void setup () { Serial.begin(57600); Wire.setModule(3); Wire.begin(); RTC.begin(); // following line sets the RTC to the date & time this sketch was compiled RTC.adjust(DateTime(__DATE__, __TIME__)); } void loop () { DateTime now = RTC.now(); Serial.print(now.year(), DEC); Serial.print('/'); Serial.print(now.month(), DEC); Serial.print('/'); Serial.print(now.day(), DEC); Serial.print(' '); Serial.print(now.hour(), DEC); Serial.print(':'); Serial.print(now.minute(), DEC); Serial.print(':'); Serial.print(now.second(), DEC); Serial.println(); delay(3000); } In terminal I got: 2013/12/29 17:45:31 2013/12/29 17:45:34 2032/11/17 5:37:13 2013/12/29 17:45:40 2013/12/29 17:45:43 2052/1/17 5:46:13 2013/12/29 17:45:49 2052/11/17 5:52:13 2052/11/17 5:55:52 2052/19/17 5:58:52 2013/12/29 17:46:1 2013/12/29 17:46:4 2012/1/17 6:7:13 2013/12/29 17:46:10 2012/11/17 6:13:13 2012/11/17 6:16:12 2013/12/29 17:46:19 2013/12/29 17:46:22 2032/1/17 6:25:13 2032/9/17 6:28:32 2013/12/29 17:46:31 2013/12/29 17:46:34 2032/11/17 6:37:13 2013/12/29 17:46:40 2052/1/17 6:43:13 2013/12/29 17:46:46 What is the cause of such problems? PCF not keep proper time. The same PCB works on Arduino and the same code and libraries.
  3. Hi! I want it for weatherstation!
×
×
  • Create New...