Load that onto your arduino with the LCD diconnected.
Unplug from the computer, plug in your LCD to the hardware serial port and then power it up using an external supply.
Have a play around with that and see if it sorts it.
Well if none of that worked then I would say that the display is duff.
I can't think of anything else...
If you have an FTDI header then you could try sending commands at 9600 baud to it directly from your computer but I highly doubt that would make a difference.
Thanks for taking the time to help. At least I now know how to send some of the config commands to the Serial LCDs now!
I'll take this up with the supplier. I normally buy from the established suppliers but took a chance and bought this from eBay. We'll have to see now if I get any support!
The seller has responded and said they'll be in touch tomorrow. They stock a large number of Arduino items, Sparkfun etc and I don't think they're a fly by night seller, 100% feedback etc.
Given it's the weekend I guess it's a little unfair of me to jump to conclusions and pre-judge the outcome just yet.
In this case I didn't buy because they were cheaper than an established seller, I chose them simply because they were the only ones who stocked a Sparkfun 20x4 Serial LCD that I could find and who were able to ship that day.
I'll keep y'all updated. In the meantime I'm back to debugging Canbus!
The seller has responded and said they'll be in touch tomorrow. They stock a large number of Arduino items, Sparkfun etc and I don't think they're a fly by night seller, 100% feedback etc.
Given it's the weekend I guess it's a little unfair of me to jump to conclusions and pre-judge the outcome just yet.
In this case I didn't buy because they were cheaper than an established seller, I chose them simply because they were the only ones who stocked a Sparkfun 20x4 Serial LCD that I could find and who were able to ship that day.
Good to hear :) That is a good thing about the feedback stuff. It makes sellers be the best they can be.
Well after sending the LCD back and the supplier having confirmed it as working properly I received it back this morning and still no go.
The LCD is plugged into a shield so I removed the shield and connected directly to the Arduino abd bu**er me it works fine :-[
Now I did try this before I sent it back but must have done something wrong (you'd think with only three wires it would be hard to mess up eh!) as it didn't work.
So now I have a working LCD and it must be the shield that is the problem.
The shield has a 3-pin connector for a Serial LCD and works fine with the 16x2. So what could be wrong that causes the LCD not to function via the shield but OK directly connected whereas the 16x2 is fine?
It's the SKPang Canbus Shield. I'm going to re-test with a 9v PSU or the LiPo Vackpack and see if it is simply a power draw issue.
When I connected directly to the Arduino I was using the same pins as are passed through to the connector on the shield so it has to be a power issue I think.
As I've just solved the problem I thought I'd post back to bring closure!
I was in a lengthy discussion over on Sparkfun's forum and it had everyone there just as baffled.
In the end I discovered the cause whilst measuring the voltages in various configurations and its both obvious and annoying at the same time.
For reasons known only to Sparkfun, the JST connectors on the 16x2 and 20x4 are configured differently! I was using the cable I had with the 16x2 and so when I used that on the 20x4 it was transposing VDD and Rx pins >:(