LCD screen test

Hi im new to the arduino format and fairly new to coding.

I have connected up my Arduino MEGA 2560 to an LCD screen (http://www.aliexpress.com/store/600281/200598545-378126364/16x2-LCD.html) using the guide at http://arduino.cc/en/Tutorial/LiquidCrystalDisplay

i have used the following code:-

// 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);
// Print a message to the LCD.
lcd.print(“hello, world!”);
}

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 the number of seconds since reset:
lcd.print(millis()/1000);
}

And when this is uploaded it brings up the following error- avrdude: stk500_getsync(): not in sync: resp=0x00

Any ideas?

Thanks

Dan

Do you have the correct board selected in the IDE?

The not in sync is not the sketch it's the connection so it could be the wrong board selected.

thats it :blush:
I had just worked that out:) it obviously resets to the default board each time?

thanks

Next problem is that the screen is very dull, maybe i need a smaller pot?

im runing a 25k Pot but the Voltage accross it is only at .15v , so normaly i wouldnt think to large of one should matter , unless it can not change down to that low.