16x2 lcd with UnoR3 probs

I've tested you sketch on my lcd+keypad shield and it worked perfectly. I just had to change the pin numbers because the lcd on my shield is wired differently than you test setup.

So I think there must be something wrong with your connections...