Lcd boot up message

Hello guys!

Iam searching the net and the forums but i cant find a solution. I would like to make a welcome message before the main code starts.
So for example when you power up arduino i would like to see "welcome!" And after a short time like 2-4 sec later the main code starts so for example welcome 2 sec later lcd display shows data
I have got arduino uno and a 16x2 lcd.
Where can i find some info for coding or someone can help me with this?

Thanks Ricsi!

Put the boot splash code in setup()

Hello guys
Thanks for quick help i just started programmint arduino.as soon as possible i will try to make this in the program
What do you mean its easier to have set time than 2 4 secs?

(deleted)

Ahh okay its not a problem 3 sec is good for me i will try to make it work! :smiley: thank you very much!
above that code is a random time? OR how can i do with fixed time like 3 sec or something like that?

#include <LiquidCrystal.h>

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

void setup() {
randomSeed(analogRead(0)); // seed random number generator

int time = random(3000, 5001); // get random number between 3000 and 5000 for the 3-5 seconds

// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("Welcome!");

delay(time); // wait for the 2 to 4 seconds

// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("pressure ");
}

void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print a message to the lcd.
lcd.print("Temp: 36 "); lcd.print( char( 223)); lcd.print("C ");
}

So its working but can i make it easier by fix time? like 3....5...8...sec but how can i get fixxed time welcome message?

Thank you very much i just started this programming arduino stuff like 3 days ago i would like to make a pressure and temperature meter with lcd display so its very hard to understand this but thanks for reply and help me out!!

Ricsi168:
Thank you very much i just started this programming arduino stuff like 3 days ago i would like to make a pressure and temperature meter with lcd display so its very hard to understand this but thanks for reply and help me out!!

Maybe you should consider a simpler project to start with....