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)