Skip to main content
Arduino

Timeline for How to improve date-time control from RTC?

Current License: CC BY-SA 3.0

11 events
when toggle format what by license comment
Apr 13, 2017 at 12:50 history edited Community Bot
replaced http://arduino.stackexchange.com/ with https://arduino.stackexchange.com/
Oct 16, 2016 at 13:54 vote accept jules
Sep 27, 2016 at 23:48 comment added jules There was an underlying issue with same-name components in different libraries. Very helpful explanation and advice in another question resolved the compile errors. Now I can now try to use the two recommended libraries for date-time.
Sep 27, 2016 at 15:06 history edited Edgar Bonet CC BY-SA 3.0
+ sun_rise() and sun_set() from avr-libc.
Sep 26, 2016 at 21:45 comment added jules Looked at files on my laptop, see installed Stoffregen Time library (link in your answer above) has time.h in the Time-master folder. Where do I look for typedef struct {...} etc please?
Sep 26, 2016 at 20:18 comment added Edgar Bonet @jules: TestRTC has #include <Time.h> on line 46. Did it find that header? Don't you have typedef struct {...} tmElements_t, TimeElements, *tmElementsPtr_t; in it?
Sep 26, 2016 at 12:23 comment added jules Checked both two new libraries are present, Wire was already installed. Compile TestRTC has exit status 1 'tmElements_t' does not name a type
Sep 26, 2016 at 12:01 comment added jules Great to know I have required hardware, thanks. I installed DS3232 and Time libraries you linked above. TestRTC, the example sketch for tecsmith DS3232 library gave compile errors that I cannot understand. Error text too long to add here. Any advice on how to resolve this?
Sep 26, 2016 at 10:06 comment added Edgar Bonet @jules: All the peripherals of the Arduino Uno are part of the ATmega328P chip. Thus you still have them on a "barebones" Uno (i.e. the bare ATmega). The I2C port (called TWI by Atmel) is available on pins PC4 = A4 = SDA and PC5 = A5 = SCL. You would use this port through the standard Wire library.
Sep 26, 2016 at 9:15 comment added jules Many thanks and sorry I don't fully understand. Using SoftI2C.h because I followed example doing it that way. Unsure whether my RTC module and atmega chip will communicate without it. Started with Uno board connected to laptop via USB, using serial window to see what was happening. At that point had to add Serial.flush(). Left it in, being unsure if needed later. Have moved the atmega chip from Uno to a breadboard with no 'peripherals' in order to minimise power usage. How do I determine whether "hardware I2C port" is available or not? Many thanks for patience with total beginner!
Sep 26, 2016 at 8:20 history answered Edgar Bonet CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /