Arduino Uno Starter Kit DS1307 Problems

Hi I'm working my way through the starter kit for the arduino Uno and it has gone relatively smoothly until I have hit lesson no 19 which is the DS1307 real time clock module.
I have downloaded every relevant library also some others from GITHUB after doing quite a lot of research into the problem and keep coming up with this message;

Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Arduino Uno"

DS1307_Example:6:8: error: 'DS3231 clock' redeclared as different kind of symbol

DS3231 clock;

    ^~~~

             from E:\English\code\Lesson 19 Real Time Clock Module\DS1307_Example\DS1307_Example.ino:4:

c:\program files\windowsapps\arduinollc.arduinoide_1.8.57.0_x86__mdqgnx93n4wtt\hardware\tools\avr\avr\include\time.h:164:20: note: previous declaration 'clock_t clock()'

 extern clock_t clock(void);

                ^~~~~

DS1307_Example:7:1: error: 'RTCDateTime' does not name a type; did you mean 'DateTime'?

RTCDateTime dt;

^~~~~~~~~~~

DateTime

E:\English\code\Lesson 19 Real Time Clock Module\DS1307_Example\DS1307_Example.ino: In function 'void setup()':

DS1307_Example:15:9: error: request for member 'begin' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

clock.begin();

     ^~~~~

DS1307_Example:22:9: error: request for member 'setDateTime' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

clock.setDateTime(DATE, TIME);

     ^~~~~~~~~~~

E:\English\code\Lesson 19 Real Time Clock Module\DS1307_Example\DS1307_Example.ino: In function 'void loop()':

DS1307_Example:31:3: error: 'dt' was not declared in this scope

dt = clock.getDateTime();

^~

DS1307_Example:31:14: error: request for member 'getDateTime' in 'clock', which is of non-class type 'clock_t() {aka long unsigned int()}'

dt = clock.getDateTime();

          ^~~~~~~~~~~

Multiple libraries were found for "DS3231.h"

exit status 1

'DS3231 clock' redeclared as different kind of symbol

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I am using the code which came from the starter disc.
Any ideas?

(Post deleted by Author)

Be aware that a lot of us are not familiar with the starter kit. Please post your code here using code tags; if you don't know how, please read How to get the best out of this forum.

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project :wink: See About the Installation & Troubleshooting category.

Ok thanks, where has it been moved to?

Here, the Programming Questions category of the forum

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.