Multiple Messages on 16x2

Hello,
I am trying to work on a project in which will have multiple LCDs and will flash different rotating messages. I have gotten it to work, but the Arduino seems to crash after 5-10 mins. If I remove the last two messages, the code seems to hold solid and the arduino doesn’t crash. Can anyone make any suggestions?

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
// set up the LCD’s number of columns and rows:
lcd.begin(16, 2);

}

void loop() {
// Print message on line #1 to the LCD.
lcd.print(" ALLAGASH WHITE");
// set the cursor to column 0, line 1
lcd.setCursor(0, 1);
// // Print message on line #2 to the LCD.
lcd.print(" ABV:5.1%");
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(5000); // wait for a second
digitalWrite(13, LOW); // turn the LED off (LOW is the voltage level)
lcd.clear();
delay(1000);

// Print message #2 on line #1 to the LCD.
lcd.print(“ALLAGASH BREWING”);
// set the cursor to column 0, line 1
lcd.setCursor(0, 1);
// Print message #2 on line #2 to the LCD.
lcd.print(" PORTLAND, ME");
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(5000); // wait for a second
digitalWrite(13, LOW); // turn the LED off (LOW is the voltage level)
lcd.clear();
delay(1000);

// Print message #3 on line #1 to the LCD.
lcd.print(" RELEASE DATE");
// set the cursor to column 0, line 1
lcd.setCursor(0, 1);
// Print message #3 on line #2 to the LCD.
lcd.print(" 1995");
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(5000); // wait for a second
digitalWrite(13, LOW); // turn the LED off (LOW is the voltage level)
lcd.clear();
delay(1000);

}

ALLAGASH_FLASHING.ino.ino (2.55 KB)

You may be running out of RAM. Check this out: The hidden Arduino Macro F() fixes random lock ups - Bald Engineer

Also read the forum instructions and learn how to format your code properly.

Don

(Insults removed) - moderator

shepherdspie88:
(Insults removed) - moderator

You don't have to worry about having any problems with future help from me.

Don

The code doesn't suggest multiple LCD's. With this code it looks like you only have 1 LCD rather than the multiple you talked about.

@shepherdspie88 - that's quite enough from you.

Read the forum posting guidelines please.

How to use this forum

Please use code tags.

Read this before posting a programming question

3-day time-out for you.