Arduino Uno: RTC - printing on LCD and serial monitor

Hi Guys,

I’m a newbee in programming and to learn it I’d like to build a wakeuplight alarm clock.
I know, there are tons of projects in the WWW, but I’d like to try it on my own.

My first step is to get the time of a RTC module.
I found out how to “initialize” the RTC and print the time on my LCD using the LiquigCrystal librarie.
Then I found out how to print the time in the serial monitor.
In both cases I used the command “rtc.getTimeStr()” wich is part of the DS3231 librarie.

Now I have the problem, that I’m not abled to use the time in serial and LCD at once.
I can only print the Time and Date on the LCD when I remove the printing in Serial.
If I’m using the print in serial, the LCD only prints strange characters.

This is my code so far:
(The comments are just reminders for myself)

#include <DS3231.h>
#include <LiquidCrystal.h>
#include <Wire.h>

DS3231  rtc(SDA, SCL);
LiquidCrystal lcd(1, 2, 4, 5, 6, 7); // Gibt die Daten-Pins des LCD an.

void setup() { 
 lcd.begin(16,2); // Gibt die Größe des LCD an.
 Serial.begin(9600); // Initialisiert den Serial
void loop() { 

 Serial.println(rtc.getTimeStr()); // Zeitausgabe im Serial 

 lcd.print("Time:  ");
 lcd.print("Date: ");

I'm looking forward to hear about you're thoughts and learn about programming!

Best Regards, 
LiquidCrystal lcd(1, 2, 4, 5, 6, 7); // Gibt die Daten-Pins des LCD an.

If the first parameter is a pin number (ie pin 1) this is a bad choice for the LCD because it is also used for serial activities.

So, what would you recommend?

mariusbroll: So, what would you recommend?

Live with the problem. Or, use a different pin.

Ok, I wasn't sure if I was getting the right point. Now I changed from Pin 1 to Pin 8 and it's working well. Thank you!